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

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700&display=swap');

body {
    font-family: 'Noto Serif SC', 'Microsoft YaHei', 'PingFang SC', serif;
    background: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
    min-height: 100vh;
    color: #3e2723;
    position: relative;
    overflow-x: hidden;
}

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

.cloud {
    position: absolute;
    opacity: 0.3;
    background: radial-gradient(ellipse, #fff 0%, rgba(255,255,255,0) 70%);
}

.cloud-1 {
    top: 10%;
    left: -5%;
    width: 300px;
    height: 150px;
    animation: float 20s ease-in-out infinite;
}

.cloud-2 {
    top: 30%;
    right: -10%;
    width: 400px;
    height: 200px;
    animation: float 25s ease-in-out infinite reverse;
}

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

.petal-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.petal {
    position: absolute;
    width: 15px;
    height: 15px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    border-radius: 0 50% 50% 50%;
    transform: rotate(45deg);
    opacity: 0.7;
    animation: petalFall linear infinite;
}

@keyframes petalFall {
    0% {
        transform: rotate(45deg) translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: rotate(405deg) translateY(100vh);
        opacity: 0;
    }
}

.header {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.95) 0%, rgba(101, 67, 33, 0.95) 100%);
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #d4af37;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-chinese {
    font-size: 48px;
    font-weight: bold;
    color: #d4af37;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo {
    font-size: 36px;
    color: #f5deb3;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 8px;
}

.nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 12px 25px;
    border: 2px solid #d4af37;
    background: transparent;
    color: #f5deb3;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Noto Serif SC', serif;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.nav-btn:hover::before,
.nav-btn.active::before {
    left: 0;
}

.nav-btn:hover,
.nav-btn.active {
    color: #3e2723;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    position: relative;
    z-index: 10;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

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

.hero {
    background: linear-gradient(135deg, #fff9f0 0%, #fff5e6 100%);
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(139, 69, 19, 0.2);
    position: relative;
}

.scroll-decoration {
    height: 30px;
    background: linear-gradient(90deg, #8b4513 0%, #a0522d 50%, #8b4513 100%);
    position: relative;
}

.scroll-decoration.top::before,
.scroll-decoration.bottom::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 5px;
    background: repeating-linear-gradient(90deg, #d4af37 0px, #d4af37 20px, transparent 20px, transparent 40px);
}

.scroll-decoration.top::before { top: 0; }
.scroll-decoration.bottom::before { bottom: 0; }

.hero-content {
    padding: 50px 30px;
    text-align: center;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.chinese-title {
    font-size: 42px;
    color: #8b4513;
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 50%, #8b4513 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chinese-subtitle {
    font-size: 20px;
    color: #a0522d;
    letter-spacing: 5px;
}

.hero-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    filter: sepia(20%);
}

.section-title {
    font-size: 32px;
    color: #8b4513;
    text-align: center;
    margin: 50px 0 40px;
    position: relative;
    font-weight: bold;
    letter-spacing: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.title-decoration {
    font-size: 24px;
    color: #d4af37;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.section-title::after {
    display: none;
}

.opera-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.opera-card {
    background: linear-gradient(135deg, #fff9f0 0%, #fff5e6 100%);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(139, 69, 19, 0.15);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid #e8d5b7;
}

.card-decoration {
    overflow: hidden;
    border-bottom: 2px solid #d4af37;
}

.card-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid #d4af37;
}

.corner-tl { top: 5px; left: 5px; border-right: none; border-bottom: none; }
.corner-tr { top: 5px; right: 5px; border-left: none; border-bottom: none; }
.corner-bl { bottom: 5px; left: 5px; border-right: none; border-top: none; }
.corner-br { bottom: 5px; right: 5px; border-left: none; border-top: none; }

.opera-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(139, 69, 19, 0.3);
}

.opera-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: sepia(15%);
}

.opera-card:hover img {
    transform: scale(1.1);
}

.opera-card h4 {
    padding: 20px 20px 10px;
    font-size: 24px;
    color: #8b4513;
    font-weight: bold;
    letter-spacing: 5px;
}

.opera-card p {
    padding: 0 20px 25px;
    color: #a0522d;
    font-size: 15px;
    letter-spacing: 2px;
}

.opera-detail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(62, 39, 35, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
    padding: 20px;
}

.opera-detail.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.detail-content {
    background: linear-gradient(135deg, #fff9f0 0%, #fff5e6 100%);
    border-radius: 0;
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    border: 3px solid #d4af37;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.3);
}

.scroll-style::before,
.scroll-style::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(90deg, #8b4513 0%, #a0522d 50%, #8b4513 100%);
}

.scroll-style::before { top: 0; border-radius: 0; }
.scroll-style::after { bottom: 0; }

.close-detail {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 36px;
    background: none;
    border: none;
    cursor: pointer;
    color: #8b4513;
    z-index: 10;
    transition: transform 0.3s ease;
}

.close-detail:hover {
    transform: rotate(90deg);
    color: #d4af37;
}

.makeup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.makeup-card {
    background: linear-gradient(135deg, #fff9f0 0%, #fff5e6 100%);
    padding: 25px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.15);
    transition: all 0.4s ease;
    border: 2px solid #e8d5b7;
}

.makeup-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.25);
    border-color: #d4af37;
}

.makeup-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #d4af37;
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.2);
}

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

.makeup-card h4 {
    font-size: 24px;
    color: #8b4513;
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 5px;
}

.makeup-meaning {
    color: #d4af37;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.makeup-example {
    color: #a0522d;
    font-size: 14px;
}

.appreciate-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.appreciate-item {
    background: linear-gradient(135deg, #fff9f0 0%, #fff5e6 100%);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(139, 69, 19, 0.15);
    display: flex;
    flex-direction: column;
    border: 2px solid #e8d5b7;
    transition: all 0.4s ease;
}

.appreciate-item:hover {
    box-shadow: 0 15px 45px rgba(139, 69, 19, 0.25);
    border-color: #d4af37;
}

.video-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(20%);
    transition: transform 0.4s ease;
}

.appreciate-item:hover .video-placeholder img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(139, 69, 19, 0.9) 0%, rgba(139, 69, 19, 0.7) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 4px solid #d4af37;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.play-icon {
    font-size: 36px;
    color: #f5deb3;
    margin-left: 8px;
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.8);
}

.appreciate-info {
    padding: 30px;
}

.appreciate-info h4 {
    font-size: 26px;
    color: #8b4513;
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 5px;
}

.appreciate-info p {
    color: #a0522d;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 16px;
}

.duration {
    color: #d4af37;
    font-size: 15px;
    font-weight: bold;
}

.master-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.master-card {
    background: linear-gradient(135deg, #fff9f0 0%, #fff5e6 100%);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(139, 69, 19, 0.15);
    transition: all 0.4s ease;
    border: 2px solid #e8d5b7;
}

.master-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(139, 69, 19, 0.25);
    border-color: #d4af37;
}

.master-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-bottom: 3px solid #d4af37;
}

.master-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(20%);
    transition: transform 0.4s ease;
}

.master-card:hover .master-image img {
    transform: scale(1.08);
}

.master-info {
    padding: 25px;
}

.master-info h4 {
    font-size: 26px;
    color: #8b4513;
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 5px;
}

.master-title {
    color: #d4af37;
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 12px;
}

.master-desc {
    color: #a0522d;
    line-height: 1.7;
    font-size: 15px;
}

.quiz-container {
    background: linear-gradient(135deg, #fff9f0 0%, #fff5e6 100%);
    border-radius: 0;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(139, 69, 19, 0.2);
    border: 3px solid #d4af37;
}

.quiz-start-content,
.result-content {
    text-align: center;
    padding: 50px 30px;
}

.quiz-decoration,
.result-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.deco-left,
.deco-right {
    font-size: 28px;
    color: #d4af37;
    animation: sparkle 2s ease-in-out infinite;
}

.quiz-start-content h4,
.result-content h4 {
    font-size: 28px;
    color: #8b4513;
    margin-bottom: 0;
    font-weight: bold;
    letter-spacing: 5px;
}

.quiz-start-content p {
    color: #a0522d;
    margin-bottom: 35px;
    font-size: 17px;
    letter-spacing: 2px;
}

.chinese-btn {
    padding: 18px 50px;
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 50%, #8b4513 100%);
    color: #f5deb3;
    border: 3px solid #d4af37;
    border-radius: 0;
    font-size: 18px;
    cursor: pointer;
    font-family: 'Noto Serif SC', serif;
    transition: all 0.4s ease;
    letter-spacing: 5px;
    position: relative;
    overflow: hidden;
}

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

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

.chinese-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.4);
    border-color: #ffd700;
}

.quiz-progress {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.progress-bar {
    flex: 1;
    height: 15px;
    background: #e8d5b7;
    border-radius: 0;
    overflow: hidden;
    border: 2px solid #d4af37;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b4513 0%, #d4af37 50%, #8b4513 100%);
    width: 20%;
    transition: width 0.5s ease;
}

.question-count {
    color: #8b4513;
    font-size: 16px;
    white-space: nowrap;
    font-weight: bold;
}

.question-content h4 {
    font-size: 22px;
    color: #3e2723;
    margin-bottom: 30px;
    line-height: 1.8;
    font-weight: bold;
    letter-spacing: 2px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.option-btn {
    padding: 18px 25px;
    background: linear-gradient(135deg, #fff9f0 0%, #fff5e6 100%);
    border: 2px solid #e8d5b7;
    border-radius: 0;
    font-size: 17px;
    cursor: pointer;
    text-align: left;
    transition: all 0.4s ease;
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 2px;
}

.option-btn:hover:not(:disabled) {
    border-color: #d4af37;
    background: linear-gradient(135deg, #fff5e6 0%, #fff9f0 100%);
    transform: translateX(10px);
}

.option-btn.correct {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
    color: #155724;
}

.option-btn.incorrect {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-color: #dc3545;
    color: #721c24;
}

.option-btn:disabled {
    cursor: not-allowed;
}

.next-btn {
    margin-top: 35px;
    width: 100%;
}

.score {
    margin: 40px 0;
}

.score-number {
    font-size: 80px;
    font-weight: bold;
    background: linear-gradient(135deg, #8b4513 0%, #d4af37 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.score-text {
    font-size: 28px;
    color: #8b4513;
    margin-left: 15px;
    font-weight: bold;
}

#result-desc {
    color: #a0522d;
    margin-bottom: 35px;
    font-size: 19px;
    letter-spacing: 2px;
}

.footer {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.95) 0%, rgba(101, 67, 33, 0.95) 100%);
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    color: #f5deb3;
    border-top: 3px solid #d4af37;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.footer-decoration {
    font-size: 24px;
    color: #d4af37;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .nav {
        justify-content: center;
    }

    .logo-chinese {
        font-size: 36px;
    }

    .logo {
        font-size: 28px;
        letter-spacing: 4px;
    }

    .chinese-title {
        font-size: 28px;
        letter-spacing: 4px;
    }

    .hero-image {
        height: 280px;
    }

    .opera-grid,
    .makeup-grid,
    .master-grid {
        grid-template-columns: 1fr;
    }

    .quiz-decoration,
    .result-decoration {
        flex-direction: column;
        gap: 10px;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
    }
}
