:root {
            --primary-color: #8b5cf6;
            --secondary-color: #ec4899;
            --background-color: #000000;
            --text-color: #ffffff;
            --card-bg: rgba(0, 0, 0, 0.4);
            --card-border: rgba(255, 255, 255, 0.1);
            --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* 基础样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Arial', sans-serif;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--background-color);
            color: var(--text-color);
            overflow-x: hidden;
            min-height: 100vh;
            position: relative;
            overflow-y: overlay;
            -webkit-overflow-scrolling: touch;
        }

        /* 3D背景容器 */
        #starry-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
            position: relative;
            z-index: 1;
        }

        /* 头部样式 */
        header {
            text-align: center;
            margin-bottom: 3rem;
            padding-top: 2rem;
        }

        h1 {
            font-size: clamp(2rem, 5vw, 4rem);
            font-weight: bold;
            margin-bottom: 1rem;
            background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            opacity: 0;
            transform: translateY(-20px);
            animation: fadeInDown 1s forwards;
        }

        header p {
            font-size: clamp(1rem, 2vw, 1.25rem);
            color: rgba(255, 255, 255, 0.8);
            max-width: 600px;
            margin: 0 auto;
            opacity: 0;
            transform: translateY(20px);
            animation: fadeInUp 1s 0.3s forwards;
        }

        /* 按钮容器 */
        .button-container {
            display: flex;
            justify-content: center;
            margin-bottom: 3rem;
            opacity: 0;
            animation: fadeIn 1s 0.6s forwards;
        }

        .wish-button {
            background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            padding: 1rem 2rem;
            font-size: 1.125rem;
            font-weight: bold;
            border-radius: 9999px;
            cursor: pointer;
            box-shadow: var(--card-shadow);
            transition: all 0.3s var(--transition-timing);
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
        }

        .wish-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                90deg,
                transparent,
                rgba(255, 255, 255, 0.2),
                transparent
            );
            transition: 0.5s;
        }

        .wish-button:hover {
            transform: scale(1.05) translateY(-2px);
            box-shadow: 0 6px 15px rgba(139, 92, 246, 0.4);
        }

        .wish-button:hover::before {
            left: 100%;
        }

        .wish-button i {
            margin-right: 0.5rem;
            font-size: 1.2rem;
        }

        /* 愿望卡片容器 */
        .wishes-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto;
            opacity: 0;
            animation: fadeIn 1s 0.9s forwards;
        }

        /* 愿望卡片样式 */
        .wish-card {
            background: linear-gradient(135deg, var(--card-bg), rgba(0, 0, 0, 0.2));
            backdrop-filter: blur(10px);
            border-radius: 1rem;
            padding: 1.5rem;
            border: 1px solid var(--card-border);
            box-shadow: var(--card-shadow),
                        0 0 20px rgba(139, 92, 246, 0.1),
                        inset 0 0 10px rgba(236, 72, 153, 0.05);
            transform: translateZ(0);
            transition: all 0.5s var(--transition-timing);
            position: relative;
            overflow: hidden;
            will-change: transform;
            contain: content;
        }

        .wish-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                90deg,
                transparent,
                rgba(255, 255, 255, 0.05),
                transparent
            );
            transition: 0.5s;
        }

        .wish-card:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2),
                        0 0 30px rgba(139, 92, 246, 0.2);
        }

        .wish-card:hover::before {
            left: 100%;
        }

        /* 卡片头部 */
        .wish-card-header {
            display: flex;
            align-items: center;
            margin-bottom: 1.5rem;
            position: relative;
        }

        .avatar {
            width: 3rem;
            height: 3rem;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            font-weight: bold;
            font-size: 1.2rem;
            box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
            border: 2px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
            will-change: transform;
        }

        .wish-card:hover .avatar {
            transform: scale(1.1) rotate(5deg);
            box-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
        }

        /* 愿望内容 */
        .wish-content {
            margin-bottom: 1.5rem;
            line-height: 1.6;
            font-size: 1.1rem;
            color: rgba(255, 255, 255, 0.9);
            padding: 1rem;
            border-radius: 0.5rem;
            background: rgba(0, 0, 0, 0.2);
            transform-origin: center;
            transition: all 0.3s ease;
            position: relative;
        }

        .wish-content::before {
            content: '"';
            position: absolute;
            top: 0;
            left: 0.5rem;
            font-size: 2rem;
            color: var(--primary-color);
            opacity: 0.5;
        }

        .wish-content::after {
            content: '"';
            position: absolute;
            bottom: -0.5rem;
            right: 0.5rem;
            font-size: 2rem;
            color: var(--secondary-color);
            opacity: 0.5;
        }

        .wish-card:hover .wish-content {
            background: rgba(0, 0, 0, 0.3);
            transform: scale(1.02);
        }

        /* 卡片底部 */
        .wish-card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 1rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .wish-stat {
            display: flex;
            align-items: center;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 0.5rem;
            transition: all 0.3s ease;
            position: relative;
        }

        .wish-stat:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: scale(1.1);
        }

        .wish-stat.active {
            animation: pop 0.3s ease;
        }

        .wish-stat i {
            margin-right: 0.5rem;
            font-size: 1.2rem;
            transition: all 0.3s ease;
        }

        .wish-stat span {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.8);
            font-weight: 500;
        }

        .heart-icon {
            color: var(--secondary-color);
            filter: drop-shadow(0 0 5px rgba(236, 72, 153, 0.5));
        }

        .star-icon {
            color: #f59e0b;
            filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
        }

        .wish-stat:hover .heart-icon {
            transform: scale(1.2) rotate(-15deg);
            filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.8));
        }

        .wish-stat:hover .star-icon {
            transform: scale(1.2) rotate(15deg);
            filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.8));
        }
        .wish-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 0.5rem;
        }

        .wish-tag {
            padding: 0.25rem 0.75rem;
            background: rgba(139, 92, 246, 0.2);
            border-radius: 9999px;
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(4px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
        }

        .wish-tag:hover {
            background: rgba(139, 92, 246, 0.3);
            transform: scale(1.05);
        }
        .time-tag {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            padding: 0.25rem 0.75rem;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 9999px;
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.6);
            backdrop-filter: blur(4px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
        }

        .wish-card:hover .time-tag {
            background: rgba(139, 92, 246, 0.2);
            color: rgba(255, 255, 255, 0.8);
        }
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 100;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .modal.show {
            opacity: 1;
        }

        .modal-content {
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 1rem;
            padding: 2rem;
            width: 90%;
            max-width: 500px;
            transform: scale(0.9);
            opacity: 0;
            transition: all 0.3s ease;
        }

        .modal.show .modal-content {
            transform: scale(1);
            opacity: 1;
        }

        .modal-header {
            text-align: center;
            margin-bottom: 1.5rem;
        }

        .modal-header h2 {
            font-size: 1.5rem;
            font-weight: bold;
            background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .form-group {
            margin-bottom: 1rem;
        }

        .form-group label {
            display: block;
            font-size: 0.875rem;
            margin-bottom: 0.5rem;
            color: rgba(255, 255, 255, 0.8);
        }

        .form-control {
            width: 100%;
            padding: 0.75rem;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 0.5rem;
            color: white;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
        }

        textarea.form-control {
            min-height: 100px;
            resize: vertical;
        }

        .submit-button {
            width: 100%;
            background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            padding: 0.75rem;
            font-size: 1rem;
            font-weight: bold;
            border-radius: 0.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 1rem;
        }

        .submit-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
        }
        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes pop {
            0% { transform: scale(1); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }

        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
            100% { transform: translateY(0px); }
        }

        @keyframes glow {
            0% { filter: brightness(1); }
            50% { filter: brightness(1.2); }
            100% { filter: brightness(1); }
        }
        .floating {
            animation: float 6s ease-in-out infinite;
            will-change: transform;
        }

        .glowing {
            animation: glow 2s ease-in-out infinite;
        }

        .particle {
            position: absolute;
            pointer-events: none;
            z-index: 10;
            opacity: 0;
            will-change: transform, opacity;
            transform: translateZ(0);
        }
        @media (max-width: 768px) {
            .container {
                padding: 1rem;
            }

            .wish-card {
                margin: 1rem 0;
            }

            .modal-content {
                width: 95%;
                padding: 1.5rem;
            }
        }

        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
        }

        ::-webkit-scrollbar-thumb {
            background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(to bottom, #7c3aed, #db2777);
        }

        /* 未激活状态的图标颜色 */
        .heart-icon:not(.active),
        .star-icon:not(.active) {
            color: #ccc;
        }

        /* 激活状态的图标颜色 */
        .heart-icon.active {
            color: #ff0000;
        }

        .star-icon.active {
            color: #ffd700;
        }