* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #f0f4f8;
    --secondary-bg: #ffffff;
    --accent-mint: #4ECDC4;
    --accent-coral: #FF6B6B;
    --accent-yellow: #FFE66D;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(78, 205, 196, 0.3);
    --shadow-soft: rgba(78, 205, 196, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #e8f5f3 100%);
    color: var(--text-dark);
    overflow-x: hidden;
    min-height: 100vh;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    box-shadow: 0 2px 20px var(--shadow-soft);
}

.nav-items {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-items a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-items a:hover {
    background: rgba(78, 205, 196, 0.2);
    color: var(--accent-mint);
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.3);
}

.nav-items a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-mint);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-items a:hover::after {
    width: 80%;
}

section {
    min-height: 100vh;
    padding: 80px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--accent-mint), var(--accent-coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.video-sound-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.video-sound-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.hero-content {
    max-width: 600px;
    width: 90%;
    text-align: center;
    animation: content-fade-in 1.2s ease both;
}

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

.hero-title-row {
    margin-bottom: 40px;
}

.title-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 15px;
    animation: label-reveal 0.8s ease 0.2s both;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes label-reveal {
    from {
        opacity: 0;
        letter-spacing: 2px;
    }
    to {
        opacity: 1;
        letter-spacing: 8px;
    }
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    color: #fafafa;
    font-family: "Courier New", Courier, monospace;
    background-color: var(--tw-ring-offset-color);
    letter-spacing: 12px;
    margin: 0;
    line-height: 1.1;
    animation: title-reveal 1s ease 0.4s both;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

@keyframes title-reveal {
    from {
        opacity: 0;
        transform: scale(0.95);
        letter-spacing: 4px;
    }
    to {
        opacity: 1;
        transform: scale(1);
        letter-spacing: 12px;
    }
}

.hero-divider {
    width: 120px;
    height: 2px;
    margin: 35px auto;
    background: linear-gradient(90deg,
        transparent,
        rgba(210, 105, 30, 0.6),
        transparent);
    position: relative;
    animation: divider-reveal 0.8s ease 0.6s both;
}

@keyframes divider-reveal {
    from {
        opacity: 0;
        width: 0;
    }
    to {
        opacity: 1;
        width: 120px;
    }
}

.hero-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: rgba(210, 105, 30, 0.8);
    border-radius: 50%;
}

.hero-modules {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
    animation: modules-reveal 0.8s ease 0.8s both;
}

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

.module-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.3s ease;
}

.module-item:hover {
    transform: translateY(-3px);
}

.module-num {
    font-size: 0.85rem;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 2px;
}

.module-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 3px;
}

.hero-action {
    animation: action-reveal 0.8s ease 1s both;
}

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

.action-text {
    display: block;
    font-size: 1.3rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 6px;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: #ffffff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.hero-btn::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: left 0.5s ease;
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-btn:hover {
    background: #A0522D;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
}

.btn-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFF8E7;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.btn-arrow {
    display: inline-block;
    width: 20px;
    height: 2px;
    background: #FFF8E7;
    position: relative;
    transition: width 0.3s ease;
}

.btn-arrow::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid #FFF8E7;
    border-bottom: 2px solid #FFF8E7;
    transform: rotate(-45deg);
}

.hero-btn:hover .btn-arrow {
    width: 30px;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    animation: bounce 2s ease infinite;
}

.scroll-indicator span {
    width: 8px;
    height: 8px;
    background: var(--accent-mint);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-mint);
}

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

.scratch-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.scratch-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    max-height: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 10px 40px rgba(139, 69, 19, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(139, 69, 19, 0.2);
    background: #FFF8E7;
}

.scratch-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#scratchCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: grab;
    z-index: 10;
}

.scratch-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(139, 69, 19, 0.7);
    font-size: 1.2rem;
    z-index: 5;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

.scratch-stats span {
    font-size: 1.1rem;
    color: var(--text-light);
}

.scratch-stats span {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.scratch-stats button,
.gallery-controls button,
.puzzle-controls button {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    background: rgba(78, 205, 196, 0.2);
    color: var(--accent-mint);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}

.scratch-stats button:hover,
.gallery-controls button:hover,
.puzzle-controls button:hover {
    background: rgba(78, 205, 196, 0.4);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.card-carousel-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.card-carousel-scene {
    width: 100%;
    height: 350px;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.card-item {
    position: absolute;
    width: 180px;
    height: 260px;
    left: 50%;
    top: 50%;
    margin-left: -90px;
    margin-top: -130px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.card-item:nth-child(1) { transform: rotateY(0deg) translateZ(280px); }
.card-item:nth-child(2) { transform: rotateY(72deg) translateZ(280px); }
.card-item:nth-child(3) { transform: rotateY(144deg) translateZ(280px); }
.card-item:nth-child(4) { transform: rotateY(216deg) translateZ(280px); }
.card-item:nth-child(5) { transform: rotateY(288deg) translateZ(280px); }

.card-item.active {
    z-index: 10;
    filter: brightness(1.1);
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.card-inner.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(78, 205, 196, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.5);
}

.card-front {
    background-image: url('assets/背景图.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(78, 205, 196, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.card-icon {
    font-size: 4rem;
    animation: float 2s ease-in-out infinite;
}

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

.card-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    padding: 0 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-back {
    transform: rotateY(180deg);
    background: white;
    position: relative;
}

.card-back img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-burn-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/背景图.jpg') center/cover;
    z-index: 2;
    opacity: 1;
}

.card-burn-overlay.burning {
    animation: burn-reveal 1.5s ease-out forwards;
}

@keyframes burn-reveal {
    0% {
        clip-path: circle(0% at 50% 50%);
        opacity: 1;
        background: url('assets/背景图.jpg') center/cover;
    }
    20% {
        clip-path: circle(15% at 50% 50%);
        opacity: 1;
        background: radial-gradient(circle at 50% 50%, 
            rgba(255, 100, 0, 0.9) 0%, 
            rgba(255, 50, 0, 0.7) 20%, 
            rgba(150, 20, 0, 0.95) 100%), 
            url('assets/背景图.jpg') center/cover;
        box-shadow: inset 0 0 50px rgba(255, 100, 0, 0.6);
    }
    40% {
        clip-path: circle(35% at 50% 50%);
        opacity: 0.9;
        background: radial-gradient(circle at 50% 50%, 
            rgba(255, 150, 50, 0.7) 0%, 
            rgba(255, 80, 0, 0.5) 30%, 
            rgba(100, 20, 0, 0.8) 100%), 
            url('assets/背景图.jpg') center/cover;
        box-shadow: inset 0 0 40px rgba(255, 150, 50, 0.4);
    }
    60% {
        clip-path: circle(55% at 50% 50%);
        opacity: 0.6;
        background: radial-gradient(circle at 50% 50%, 
            rgba(255, 200, 100, 0.4) 0%, 
            rgba(255, 100, 0, 0.3) 40%, 
            rgba(100, 20, 0, 0.5) 100%), 
            url('assets/背景图.jpg') center/cover;
        box-shadow: inset 0 0 20px rgba(255, 200, 100, 0.2);
    }
    80% {
        clip-path: circle(80% at 50% 50%);
        opacity: 0.3;
        background: radial-gradient(circle at 50% 50%, 
            rgba(255, 220, 150, 0.2) 0%, 
            rgba(255, 150, 50, 0.1) 50%, 
            rgba(100, 20, 0, 0.3) 100%), 
            url('assets/背景图.jpg') center/cover;
    }
    100% {
        clip-path: circle(100% at 50% 50%);
        opacity: 0;
        pointer-events: none;
        background: transparent;
    }
}

.card-burn-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
}

.card-burn-particles.active {
    opacity: 1;
    animation: particles-fade 1.5s ease-out forwards;
}

@keyframes particles-fade {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 0.8; }
    100% { opacity: 0; }
}

.burn-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FF6B35;
    border-radius: 50%;
    animation: particle-rise 1.2s ease-out forwards;
}

@keyframes particle-rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-80px) scale(0);
        opacity: 0;
    }
}

.carousel-controls {
    display: flex;
    gap: 15px;
}

.draw-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #FF6B6B, #FFE66D);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 6px 20px rgba(255, 107, 107, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.draw-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 10px 30px rgba(255, 107, 107, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
}

.draw-btn:active:not(:disabled) {
    transform: translateY(-1px) scale(1.02);
}

.draw-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.reset-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 500;
    border: 2px solid var(--accent-mint);
    border-radius: 30px;
    background: transparent;
    color: var(--accent-mint);
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: rgba(78, 205, 196, 0.1);
    transform: translateY(-2px);
}

.draw-result {
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    min-height: 40px;
    padding: 15px 30px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 20px;
    color: var(--text-dark);
    animation: fade-in-up 0.5s ease;
}

.draw-result.success {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.2), rgba(255, 107, 107, 0.2));
    color: var(--accent-mint);
    animation: pulse 0.5s ease infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.card-display-area {
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.card-display-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
}

.card-display-header h3 {
    font-size: 1.2rem;
    color: var(--accent-mint);
    margin: 0;
}

.card-display-count {
    padding: 5px 15px;
    background: linear-gradient(135deg, var(--accent-mint), var(--accent-coral));
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.card-display-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

.displayed-card {
    width: 100px;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--glass-border);
    position: relative;
    background: white;
}

.displayed-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(78, 205, 196, 0.3);
    border-color: var(--accent-mint);
}

.displayed-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.displayed-card .card-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #FF6B6B, #FFE66D);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
    font-weight: bold;
}

.card-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 300;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.card-detail-modal.active {
    display: flex;
}

.modal-card-content {
    position: relative;
    background: white;
    border-radius: 25px;
    padding: 30px;
    max-width: 90%;
    width: 400px;
    animation: modalCardIn 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

@keyframes modalCardIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-card-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(78, 205, 196, 0.2);
    color: var(--accent-mint);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-card-close:hover {
    background: rgba(255, 107, 107, 0.5);
    color: white;
    transform: rotate(90deg);
}

.modal-card-inner {
    width: 100%;
    height: 320px;
    position: relative;
    transform-style: preserve-3d;
    margin-bottom: 20px;
}

.modal-card-front,
.modal-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
}

.modal-card-front {
    background: linear-gradient(135deg, var(--accent-mint), var(--accent-coral));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.modal-card-icon {
    font-size: 6rem;
    animation: float 2s ease-in-out infinite;
}

.modal-card-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    padding: 0 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-card-back {
    transform: rotateY(180deg);
    background: white;
}

.modal-card-back img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-card-info {
    text-align: center;
}

.modal-card-info h4 {
    font-size: 1.5rem;
    color: var(--accent-mint);
    margin-bottom: 10px;
}

.modal-card-info p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.cute-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #FFB6C1, #FF69B4);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(255, 105, 180, 0.3),
        0 0 0 4px rgba(255, 255, 255, 0.3) inset;
}

.cute-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(255, 105, 180, 0.4),
        0 0 0 4px rgba(255, 255, 255, 0.3) inset;
}

.cute-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-emoji {
    font-size: 1.5rem;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(10deg); }
}

.btn-text {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.gallery-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gallery-controls span {
    font-size: 1.1rem;
    color: var(--text-light);
    min-width: 60px;
}

.gallery-indicator {
    width: 100%;
    max-width: 400px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(78, 205, 196, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-mint), var(--accent-coral));
    border-radius: 4px;
    transition: width 0.1s ease;
}

.puzzle-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.puzzle-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.puzzle-controls select {
    padding: 10px 15px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: rgba(78, 205, 196, 0.1);
    color: var(--accent-mint);
    font-size: 1rem;
    cursor: pointer;
}

.image-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.image-selector span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.image-btn {
    padding: 8px 15px;
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    background: rgba(78, 205, 196, 0.1);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.image-btn:hover {
    background: rgba(78, 205, 196, 0.3);
    color: var(--accent-mint);
}

.image-btn.active {
    background: linear-gradient(135deg, var(--accent-mint), var(--accent-coral));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

.timer {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 600;
}

.puzzle-board {
    display: grid;
    gap: 3px;
    background: rgba(78, 205, 196, 0.2);
    padding: 3px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.2);
}

.puzzle-tile {
    background: var(--accent-mint);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-size: cover;
    background-position: center;
    aspect-ratio: 1;
}

.puzzle-tile:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

.puzzle-tile.empty {
    background: transparent;
    cursor: default;
}

.puzzle-tile.empty:hover {
    transform: none;
    box-shadow: none;
}

.puzzle-tile.filled {
    animation: tile-fill-in 0.8s ease-out forwards;
}

@keyframes tile-fill-in {
    0% {
        opacity: 0;
        transform: scale(0.8);
        filter: brightness(1.5);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.02);
        filter: brightness(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }
}

.puzzle-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.preview-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--glass-border);
}

.puzzle-preview span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.puzzle-message {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    min-height: 30px;
    color: var(--text-dark);
}

.puzzle-message.success {
    color: var(--accent-mint);
    animation: pulse 0.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}



@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
        letter-spacing: 8px;
    }

    .hero-modules {
        gap: 40px;
    }

    .module-name {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .action-text {
        font-size: 1.1rem;
        letter-spacing: 4px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .nav-items {
        gap: 15px;
    }

    .nav-items a {
        font-size: 12px;
        padding: 6px 12px;
    }

    .gallery-wrapper {
        height: 200px;
    }

    .puzzle-board {
        width: 90%;
        max-width: 300px;
    }


}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 6px;
    }

    .title-label {
        font-size: 0.65rem;
        letter-spacing: 5px;
    }

    .hero-divider {
        width: 80px;
    }

    .hero-modules {
        flex-direction: column;
        gap: 20px;
    }

    .module-name {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .action-text {
        font-size: 1rem;
        letter-spacing: 3px;
    }

    .hero-btn {
        padding: 14px 30px;
    }

    .btn-label {
        font-size: 0.85rem;
        letter-spacing: 3px;
    }



    .puzzle-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

/* 答案弹窗样式 */
.answer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.answer-modal.active {
    display: flex;
}

.answer-content {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.95), rgba(255, 107, 107, 0.95));
    border-radius: 20px;
    padding: 30px 40px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalPop 0.3s ease;
}

@keyframes modalPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.answer-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.answer-close:hover {
    transform: scale(1.2);
}

.answer-content h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.video-container {
    position: relative;
    width: 100%;
    max-height: 60vh;
    border-radius: 10px;
    overflow: hidden;
    background: black;
}

#answerVideo {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: white;
}

.video-play-btn span {
    font-size: 2rem;
    color: #4ECDC4;
    margin-left: 5px;
}

.video-play-btn.hidden {
    display: none;
}

.answer-analysis h4 {
    color: #4ECDC4;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
}

.answer-analysis ol {
    padding-left: 25px;
    margin: 0;
}

.answer-analysis li {
    margin-bottom: 12px;
    padding-left: 5px;
}

.answer-analysis li::marker {
    color: #FF6B6B;
    font-weight: bold;
}

/* 擦玻璃解析弹窗样式 */
.scratch-analysis-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.scratch-analysis-modal.active {
    display: flex;
}

.analysis-content {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.95), rgba(255, 107, 107, 0.95));
    border-radius: 20px;
    padding: 30px 40px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalPop 0.3s ease;
}

.analysis-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.analysis-close:hover {
    transform: scale(1.2);
}

.analysis-content h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.analysis-text {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    color: #333;
    font-size: 1rem;
    line-height: 1.8;
}

.analysis-text h4 {
    color: #4ECDC4;
    font-size: 1.2rem;
    margin-bottom: 10px;
    margin-top: 15px;
}

.analysis-text h4:first-child {
    margin-top: 0;
}

.analysis-text p {
    margin: 0 0 10px 0;
}

.poster-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.poster-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    background: #1a1a1a;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    animation: modalPop 0.3s ease;
}

@keyframes modalPop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-content img {
    width: 100%;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
}

.music-player-section {
    margin-top: 40px;
    padding: 40px 30px;
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    height: auto;
    width: 600px;
}

.music-player {
    padding: 0;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.player-back,
.player-refresh {
    cursor: pointer;
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
}

.player-back:hover,
.player-refresh:hover {
    opacity: 0.8;
}

.player-title {
    font-size: 1rem;
}

.player-disc-container {
    display: flex;
    justify-content: center;
    margin-bottom: 35px;
}

.player-disc {
    position: relative;
    width: 240px;
    height: 240px;
}

.disc-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 0 0 8px rgba(255, 255, 255, 0.05);
    animation: disc-spin 8s linear infinite;
    animation-play-state: paused;
}

.disc-inner.playing {
    animation-play-state: running;
}

@keyframes disc-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.disc-cover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.disc-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.disc-spindle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(145deg, #444, #222);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.disc-arm {
    position: absolute;
    top: -20px;
    right: 10px;
    width: 100px;
    height: 100px;
    transform-origin: top right;
    transform: rotate(-25deg);
    transition: transform 0.5s ease;
    z-index: 20;
}

.disc-arm.playing {
    transform: rotate(-5deg);
}

.arm-pivot {
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(145deg, #555, #333);
}

.arm-stem {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 2px;
    height: 80px;
    background: linear-gradient(180deg, #666, #444);
    transform-origin: top center;
    transform: rotate(-35deg);
}

.arm-cartridge {
    position: absolute;
    bottom: 5px;
    left: 20px;
    width: 15px;
    height: 8px;
    background: linear-gradient(90deg, #888, #555);
    border-radius: 2px;
}

.player-info {
    text-align: center;
    margin-bottom: 15px;
}

.song-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin: 0 0 8px 0;
}

.song-artist {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.player-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.stat-item {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.stat-item.like:hover {
    color: #FF6B6B;
}

.stat-item.comment:hover {
    color: #4ECDC4;
}

.player-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.progress-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: monospace;
}

.progress-time.current {
    color: rgba(255, 255, 255, 0.7);
}

.progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B6B, #FF8E8E);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-dot {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-bar:hover .progress-dot {
    opacity: 1;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.control-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: white;
}

.control-btn.play-btn {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    border-radius: 50%;
    font-size: 22px;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.control-btn.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.control-btn.play-btn.playing {
    background: linear-gradient(135deg, #4ECDC4, #45B7AA);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

#audioElement {
    display: none;
}

/* 音乐介绍弹窗样式 */
.music-intro-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 500;
    align-items: center;
    justify-content: center;
}

.music-intro-modal.active {
    display: flex;
}

.music-intro-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 30px;
    overflow: hidden;
    animation: musicIntroIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 40px 120px rgba(0, 0, 0, 0.7),
        0 0 80px rgba(212, 175, 55, 0.2);
}

@keyframes musicIntroIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.music-intro-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/背景图片3.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.music-intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 8, 6, 0.85) 0%,
        rgba(10, 8, 6, 0.75) 30%,
        rgba(10, 8, 6, 0.8) 70%,
        rgba(10, 8, 6, 0.95) 100%
    );
    z-index: -1;
}

.music-intro-inner {
    position: relative;
    padding: 50px 60px;
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
}

.music-intro-inner::-webkit-scrollbar {
    width: 6px;
}

.music-intro-inner::-webkit-scrollbar-track {
    background: transparent;
}

.music-intro-inner::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 3px;
}

.music-intro-close {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    color: var(--accent-gold);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-intro-close:hover {
    background: rgba(212, 175, 55, 0.3);
    color: var(--accent-gold-light);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
}

.music-intro-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, 
        var(--text-white) 0%, 
        var(--accent-champagne) 20%, 
        var(--accent-gold) 50%, 
        var(--accent-gold-light) 80%,
        var(--text-white) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 60px rgba(212, 175, 55, 0.3);
    position: relative;
}

.music-intro-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.music-intro-timeline {
    position: relative;
    margin-bottom: 50px;
    padding-left: 30px;
}

.music-intro-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, 
        var(--accent-gold), 
        rgba(212, 175, 55, 0.3),
        var(--accent-gold)
    );
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
    padding-left: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -26px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 
        0 0 20px var(--accent-gold),
        0 0 40px rgba(212, 175, 55, 0.4);
}

.timeline-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--accent-gold-light);
    border-radius: 50%;
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
    letter-spacing: 2px;
    font-weight: 700;
}

.timeline-content {
    color: #ffffff;
}

.timeline-content p {
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

.music-intro-ad {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.03));
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 25px;
    padding: 35px 40px;
    position: relative;
    color: #ffffff;
}

.music-intro-ad::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 25px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), transparent, rgba(212, 175, 55, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.music-intro-ad h3 {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    letter-spacing: 3px;
    text-align: center;
    font-weight: 700;
}

.music-intro-ad p {
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 18px;
    text-align: justify;
}

.music-intro-ad p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .music-intro-inner {
        padding: 40px 30px;
    }
    
    .music-intro-title {
        font-size: 1.8rem;
    }
    
    .music-intro-timeline {
        padding-left: 20px;
    }
    
    .timeline-item {
        padding-left: 25px;
    }
    
    .music-intro-ad {
        padding: 25px 25px;
    }
}