@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700;900&display=swap');

:root {
    --spring-green: #2d5a27;
    --spring-gold: #b45309;
    --festive-red: #c41e3a;
    --warm-sun: #fffbeb;
    --text-main: #1a3a1a;
}

body {
    font-family: 'Noto Serif SC', serif;
    color: var(--text-main);
    margin: 0;
    overflow-x: hidden;
    background-color: #fdfcf0;
    font-size: 19px;
}

/* 背景图层 */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url('https://img.kooflips.com/Image/0/2026/01/06/1695ddf0d45a17-0.webp');
    background-size: cover;
    background-position: center;
    opacity: 1;
}

.sunlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 253, 245, 0.65) 100%);
}

.gold-text {
    background: linear-gradient(to right,
            #78350f 0%,
            #d4af37 20%,
            #fde68a 40%,
            #ffffff 50%,
            #fde68a 60%,
            #d4af37 80%,
            #78350f 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
    display: inline-block;
    animation: shineGold 4s linear infinite;
}

@keyframes shineGold {
    to {
        background-position: 200% center;
    }
}

.logo-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 4px 15px rgba(45, 90, 39, 0.2));
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 基于背景色的玻璃卡片 */
.festive-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(45, 90, 39, 0.15);
    border-radius: 28px;
    box-shadow: 0 15px 45px rgba(45, 90, 39, 0.08);
}

.card-header-line {
    height: 4px;
    background: linear-gradient(to right, var(--spring-green), var(--spring-gold), var(--spring-green));
    border-radius: 4px 4px 0 0;
}

/* 文字缩进 */
.indent-2 {
    text-indent: 2em !important;
    text-align: justify !important;
    text-justify: inter-ideograph;
    /* 中文两端对齐优化 */
}

/* 文字动态重点 */
.pulse-text {
    animation: textPulse 2s infinite ease-in-out;
    display: inline-block;
}

@keyframes textPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
        color: var(--spring-gold);
    }
}

.float-info {
    animation: infoFloat 3s infinite ease-in-out;
}

@keyframes infoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
        text-shadow: 0 5px 15px rgba(180, 83, 9, 0.3);
    }
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--spring-green) 0%, #1e3d1a 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(45, 90, 39, 0.3);
    text-decoration: none;
}

/* 语言切换按钮 */
.lang-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    background: white;
    border: 2px solid var(--spring-green);
    border-radius: 30px;
    padding: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--spring-green);
}

.lang-btn.active {
    background: var(--spring-green);
    color: white;
}

/* 语言显示控制 */
[lang="en"] {
    display: none !important;
}

body.lang-en [lang="zh-CN"] {
    display: none !important;
}

body.lang-en [lang="en"] {
    display: block !important;
}

/* 英文模式排版调整 */
body.lang-en .indent-2 {
    text-indent: 0;
}

body.lang-en .festive-card p {
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    body {
        font-size: 18px;
    }

    .festive-card {
        padding: 1.5rem !important;
    }

    h1 {
        font-size: 2.25rem !important;
    }

    .lang-switch {
        top: 15px;
        right: 15px;
    }

    .lang-btn {
        padding: 4px 12px;
        font-size: 12px;
    }
}