/* =========================================
   1. 全局变量与基础重置 (Global & Reset)
   ========================================= */
:root {
    /* 主色：滕王红 */
    --color-primary: #C41E3A;
    --color-primary-dark: #96122b;
    
    /* 辅助色：秋水青 & 鎏金 */
    --color-secondary: #7FB8D3;
    --color-accent: #D4AF37;
    --color-accent-light: #F3E5AB;
    
    /* 文字与背景 */
    --color-text-main: #2A2A2A;
    --color-text-sub: #555555;
      --color-bg-card: #FFFCF5; /* 修改：极淡的暖黄色，比纯白更有质感 */
    --color-card-border: rgba(212, 175, 55, 0.4); /* 修改：更明显的金色边框 *
    
    /* 阴影与圆角 */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(196, 30, 58, 0.1);
    --shadow-hover: 0 15px 40px rgba(212, 175, 55, 0.25);
    
    --container-width: 1200px;
    --header-height: 70px; /* 稍微降低高度，更紧凑 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --color-bg-body: #FDFBF7; 
    --color-card-bg: #FFFFFF; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* 平滑滚动 */
}

body {
    font-family: "Source Han Sans CN", "Microsoft YaHei", sans-serif;
    background-color: var(--color-bg-body);
    /* 增加更明显的网格背景，增加空间感 */
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--color-text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    
    /* --- 新增：启用垂直滚动吸附 --- */
    overflow-y: scroll; /* 确保始终显示滚动条，避免布局抖动 */
    scroll-snap-type: y mandatory; /* Y轴强制吸附 */
    scroll-padding-top: var(--header-height); /* 吸附时留出导航栏高度，防止内容被遮挡 */
    
}

/* 标题字体 */
.title-font {
    font-family: "Ma Shan Zheng", "FZxingkai", "KaiTi", serif;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--color-primary);
}

.fun-font {
    font-family: "ZCOOL KuaiLe", "HYquyuan", "YouYuan", sans-serif;
    color: var(--color-secondary);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* =========================================
   2. 公共组件 (Common Components)
   ========================================= */

/* --- 导航栏：高对比度设计 --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 3px solid var(--color-primary); /* 粗红线 */
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    z-index: 999;
    height: var(--header-height);
}

.nav-container {
    width: var(--container-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    /* 渐变文字效果 */
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-main);
    padding: 8px 16px;
    border-radius: 4px;
    position: relative;
}

.nav-list a:hover {
    color: var(--color-primary);
    background: rgba(196, 30, 58, 0.05);
}

.nav-list a.active {
    background: var(--color-primary);
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(196, 30, 58, 0.3);
}

.nav-list a.active::after {
    display: none; /* 移除下划线，改用背景色块 */
}

/* --- 主容器 --- */
.container {
    width: var(--container-width);
    margin: 0 auto;
    padding-top: calc(var(--header-height) + 50px); /* 恢复顶部留白，避免内容被导航栏遮挡 */
    padding-bottom: 60px;
    flex: 1;
    
    /* --- 新增：在容器内部启用滚动吸附 --- */
    height: calc(100vh - var(--header-height)); /* 关键：限制高度，使其成为独立滚动区域 */
    overflow-x: visible; 
    overflow-y: visible;  /* 允许垂直滚动 */
    scroll-snap-type: y mandatory; /* Y轴强制吸附 */
    scroll-behavior: smooth; /* 平滑滚动 */
    
    /* 隐藏滚动条但保留功能 (可选，为了美观) */
    scrollbar-width: none; /* Firefox */
}
.container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* --- 标题通用：增加装饰线 --- */
.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--color-primary);
    margin: 60px auto 40px;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* 标题两侧的装饰线 */
.section-title::before,
.section-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 15%;
    height: 5px;
    background: linear-gradient(to right, transparent, var(--color-accent));
}
.section-title::before { left: 0; transform: rotate(180deg); }
.section-title::after { right: 0; }

.section-title span {
    position: relative;
    z-index: 2;
    background: var(--color-bg-body); /* 遮挡线条 */
    padding: 0 20px;
    display: inline-block;
}

/* --- 卡片通用：简化设计，去除角标 --- */
.card {
    /* 背景：使用暖玉色/浅宣纸色，避免死白 */
    background: linear-gradient(145deg, #FFFCF5 0%, #FFF8E7 100%);
    
    border-radius: var(--radius-md);
    padding: 25px;
    
    /* 阴影：增加扩散范围和深度，营造悬浮感 */
    box-shadow: 
        0 10px 25px -5px rgba(0, 0, 0, 0.08), /* 主阴影 */
        0 8px 10px -6px rgba(0, 0, 0, 0.04);  /* 辅阴影 */
        
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* 边框：双层边框效果，外层金色，内层透明 */
    border: 2px solid var(--color-card-border) !important;
    position: relative;
    overflow: hidden;
}

/* 增加一个微妙的顶部高光条，增强立体感 */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
    opacity: 0.8;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-8px); /* 悬停时上浮更多 */
    
    /* 悬停阴影：更深、更扩散 */
    box-shadow: 
        0 20px 40px -5px rgba(196, 30, 58, 0.15), /* 红色调阴影，呼应主题 */
        0 10px 15px -5px rgba(0, 0, 0, 0.05);
        
    border-color: var(--color-primary); /* 边框变红 */
}

.card:hover::before {
    transform: scaleX(1); /* 悬停时顶部彩条展开 */
}
.card::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom: 3px solid var(--color-primary);
    border-right: 3px solid var(--color-primary);
    opacity: 0.5;
}

/* --- 按钮通用 --- */
.btn-red, .btn-primary {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 4px; /* 更方正一点，更有力量感 */
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(196, 30, 58, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: bold;
    border: 5px solid transparent;
}

.btn-red:hover, .btn-primary:hover {
    background: #fff;
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-gold {
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    background: transparent;
    padding: 8px 25px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    font-family: "ZCOOL KuaiLe", sans-serif;
}

.btn-gold:hover {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* --- 页脚 --- */
footer {
    background: #2A2A2A;
    color: #999;
    text-align: center;
    padding: 40px 0;
    font-size: 14px;
    margin-top: auto;
    border-top: 4px solid var(--color-primary);
    background-image: linear-gradient(rgba(0,0,0,0.9), rgba(0,0,0,0.9)), url("data:image/svg+xml,..."); /* 可加纹理 */
}

/* =========================================
   3. 首页特有样式 (Home Page)
   ========================================= */

/* 轮播图 */
/* 轮播图：强制左右占满屏幕 */
.banner-carousel {
    position: relative;
    width: 100vw; /* 视口全宽 */
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    
    /* 关键：向上移动导航栏的高度，实现顶部贴边 */
    height: 90vh;
    overflow: hidden;
    background-color: #000;
    
    /* 底部保留正常的外边距 */
    margin-bottom: 80px; 
    
    border-radius: 0; 
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1; 
}

/* 保持内部内容居中或适配 */
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}


.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    align-items: center;
    padding-left: 10%;
    z-index: 3;
}

.slide-content {
    max-width: 600px;
    color: #fff;
}

.slide-tag {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    padding: 5px 15px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
    font-family: "ZCOOL KuaiLe", sans-serif;
    border: 5px solid rgba(255,255,255,0.3);
}

.slide-title {
    font-size: 56px;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    color: #fff;
}

.slide-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 35px;
    background: var(--color-accent);
    color: #1A1A1A;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.slide-btn:hover {
    background: #fff;
    transform: translateY(-3px);
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background-color: var(--color-accent);
    transform: scale(1.3);
    border-color: #fff;
}

/* 核心板块 */
/* 核心板块：交错式图文布局 - 增强边界感 */
.core-section {
    margin: 60px 0;
}

.core-item {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
    padding: 40px;
    border-radius: var(--radius-lg);
    
    /* 修改：纯白背景，与页面米色背景形成强烈对比 */
    background: #FFFFFF;
    
    /* 修改：增加双层边框效果，外层金，内层浅灰，极具层次感 */
    border: 5px solid rgba(212, 175, 55, 0.3);
    box-shadow: 
        0 0 0 4px #fff, /* 白色内描边，制造呼吸感 */
        0 15px 35px rgba(196, 30, 58, 0.08); /* 红色调投影 */
        
    transition: all 0.4s ease;
    position: relative;
}

/* 悬停时：边框变红，投影加深 */
.core-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 
        0 0 0 4px #fff,
        0 25px 50px rgba(196, 30, 58, 0.15);
}

/* 装饰角标：增加视觉锚点 */
.core-item::after {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 30px;
    height: 30px;
    border-top: 3px solid var(--color-primary);
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius-lg) 0 0 0;
    opacity: 0.8;
}
.core-item:nth-child(even)::after {
    left: auto;
    right: -1px;
    border-left: none;
    border-right: 3px solid var(--color-primary);
    border-radius: 0 var(--radius-lg) 0 0;
}

.core-item:nth-child(even) {
    flex-direction: row-reverse;
}

.item-img-wrap {
    flex: 1;
    height: 350px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    /* 增加图片本身的边框，使其更像照片 */
    border: 4px solid #F5F5F5;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.item-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.core-item:hover .item-img-wrap {
    transform: translateY(-5px);
    border-color: var(--color-accent); /* 悬停时图片边框变金 */
}

.core-item:hover .item-img-wrap img {
    transform: scale(1.05);
}

.item-content {
    flex: 1;
    padding: 10px 20px;
}
.core-item:hover .item-img-wrap img {
    transform: scale(1.1);
}

.content-tag {
    display: inline-block;
    font-size: 14px;
    color: var(--color-secondary);
    background: rgba(127, 184, 211, 0.1);
    padding: 6px 15px;
    border-radius: 20px;
    margin-bottom: 15px;
    font-weight: bold;
    font-family: "ZCOOL KuaiLe", sans-serif;
    border: 5px solid var(--color-secondary);
}

.item-title {
    font-size: 32px;
    color: var(--color-text-main);
    margin-bottom: 20px;
    font-family: "Ma Shan Zheng", serif;
}

.item-desc {
    font-size: 16px;
    color: var(--color-text-sub);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* 推荐网格 */
.recommend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.rec-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-top: 4px solid var(--color-primary); /* 顶部彩色条 */
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 5px solid rgba(0,0,0,0.05);
}

.rec-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.rec-icon {
    font-size: 48px;
    margin-bottom: 20px;
    background: var(--color-bg-body);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
    border: 2px solid var(--color-accent);
}

.rec-title {
    font-size: 20px;
    color: var(--color-text-main);
    margin-bottom: 15px;
    font-weight: bold;
}

.rec-desc {
    font-size: 14px;
    color: var(--color-text-sub);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* CTA 区域 */
.game-enter-section {
    position: relative;
    background: linear-gradient(135deg, #1A1A1A 0%, #2c2c2c 100%);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    text-align: center;
    overflow: hidden;
    margin: 60px 0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    border: 2px solid var(--color-accent);
}

.enter-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--color-primary) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    pointer-events: none;
}

.enter-content {
    position: relative;
    z-index: 2;
}

.enter-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.btn-enter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-family: "ZCOOL KuaiLe", sans-serif;
}

.btn-enter.primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-enter.primary:hover {
    background: #A01830;
    transform: scale(1.05);
}

.btn-enter.secondary {
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-enter.secondary:hover {
    background: var(--color-accent);
    color: #1A1A1A;
    transform: scale(1.05);
}

/* =========================================
   4. 风貌页特有样式 (Style Page)
   ========================================= */

.feature-showcase {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: stretch;
}

.model-stage {
    flex: 1.5;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    min-height: 500px;
    border: 2px solid var(--color-accent);
}

.feature-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--color-primary);
    border: 5px solid #eee;
}

.feature-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.feature-card .icon {
    font-size: 2.5rem;
    background: #FFF5F5;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-primary);
    border: 5px solid var(--color-accent);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    cursor: pointer;
    height: 250px;
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(196, 30, 58, 0.9), transparent);
    color: #fff;
    padding: 25px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.time-axis {
    position: relative;
    max-width: 1000px;
    margin: 60px auto;
    padding: 20px 0;
}

.time-axis::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, var(--color-bg-body), var(--color-accent), var(--color-primary), var(--color-bg-body));
    transform: translateX(-50%);
    border-radius: 2px;
}

.time-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.time-row.reverse {
    flex-direction: row-reverse;
}

.time-content-side, .time-image-side {
    width: 45%;
}

.time-dot {
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border: 4px solid #fff;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.2);
    transition: all 0.3s ease;
}

.time-row:hover .time-dot {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 8px rgba(196, 30, 58, 0.2);
}

.time-content {
    background: #fff;
    padding: 25px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    position: relative;
    border-left: 5px solid var(--color-accent);
    border: 5px solid #eee;
}

.time-content-side.left .time-content::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 20px;
    border-width: 10px 0 10px 10px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

.time-content-side.right .time-content::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    border-width: 10px 10px 10px 0;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
}

.time-date {
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 1rem;
    display: inline-block;
    background: rgba(196, 30, 58, 0.05);
    padding: 4px 12px;
    border-radius: 4px;
    font-family: "ZCOOL KuaiLe", sans-serif;
}

.time-img-wrapper {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 3px solid #fff;
}

.time-img-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.time-img-wrapper:hover img {
    transform: scale(1.05);
}

.img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26,26,26,0.7);
    color: #fff;
    font-size: 0.9rem;
    padding: 8px 15px;
    text-align: center;
    backdrop-filter: blur(4px);
}

/* =========================================
   5. 榫卯页特有样式 (Sunmao Page)
   ========================================= */

.sunmao-page {
    padding-bottom: 60px;
}

.intro-card {
    display: flex;
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 60px;
    border: 2px solid var(--color-accent);
}

.intro-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.intro-card:hover .intro-image img {
    transform: scale(1.05);
}

.intro-text {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.intro-text h3 {
    font-size: 1.8rem;
    color: var(--color-text-main);
    margin-bottom: 20px;
    font-family: "Ma Shan Zheng", serif;
}

.intro-text .highlight {
    color: var(--color-primary);
    font-weight: bold;
    margin-top: 15px;
    background: #FFF5F5;
    padding: 15px;
    border-left: 4px solid var(--color-primary);
    border-radius: 4px;
    font-size: 1.1rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.info-card {
    background-color: transparent;
    height: 300px;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-sm);
    border: 5px solid #eee;
}

.info-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    box-sizing: border-box;
}

.card-front {
    background-color: #fff;
    border: 5px solid #eee;
}

.card-front img {
    height: 80%;
    object-fit: contain;
    margin-bottom: 20px;
}

.card-back {
    background: linear-gradient(135deg, var(--color-primary), #A01830);
    color: white;
    transform: rotateY(180deg);
    border: 2px solid var(--color-accent);
}

.card-back h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    border-bottom: 5px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
    font-family: "Ma Shan Zheng", serif;
}

.trivia-grid .trivia-item {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius-sm);
    border-top: 5px solid var(--color-secondary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    border: 5px solid #eee;
}

.trivia-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.trivia-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.game-cta-section {
    margin-top: 60px;
}

.game-box {
    background: linear-gradient(to right, #fdfbfb, #ebedee);
    border: 3px dashed var(--color-accent);
    padding: 50px;
    text-align: center;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.game-box::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(196, 30, 58, 0.05);
    border-radius: 50%;
}

.game-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.reward-tip {
    font-size: 0.9rem;
    color: var(--color-text-sub);
    background: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    border: 5px solid #eee;
    font-family: "ZCOOL KuaiLe", sans-serif;
}

/* =========================================
   6. 故事汇页特有样式 (Story Page)
   ========================================= */

.story-page {
    padding-bottom: 60px;
}

.comic-box {
    margin: 60px 0;
    text-align: center;
}

.story-img img {
    height: auto !important;
    max-height: 450px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin: 0 auto;
    border: 5px solid #fff;
}

.story-item {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-bottom: 80px;
}

.story-text.card-inner {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-sm);
    position: relative;
    border: 3px solid var(--color-accent); 
    box-shadow: 
        0 0 0 5px var(--color-bg-body),
        0 0 0 8px var(--color-accent),
        var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease;
}

.story-text.card-inner:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 0 0 5px var(--color-bg-body),
        0 0 0 8px var(--color-primary),
        var(--shadow-hover);
}

.chapter-item {
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    display: flex;
    align-items: baseline;
    line-height: 1.6;
    background: #f9f9f9;
    border: 5px solid #eee;
    margin-bottom: 10px;
}

.chapter-icon {
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

.chapter-title {
    font-weight: bold;
    color: var(--color-text-main);
    font-size: 18px;
    margin-right: 10px;
    font-family: "Ma Shan Zheng", serif;
}

.chapter-desc {
    color: var(--color-text-sub);
    font-size: 14px;
}

.chapter-item:hover {
    background-color: #fff;
    border-left-color: var(--color-primary);
    transform: translateX(10px);
    box-shadow: var(--shadow-sm);
    border-color: var(--color-accent);
}

.chapter-item:hover .chapter-title {
    color: var(--color-primary);
}

.person-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 60px 0;
}

.poem-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 60px 0;
}

.qna-box {
    background: linear-gradient(135deg, #f8f3e9 0%, #fff 100%);
    padding: 60px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 2px solid var(--color-accent);
    margin: 60px 0;
    box-shadow: var(--shadow-sm);
}

.chapter-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.more-img {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    height: 220px;
    align-items: center;
}

.more-img img {
    width: 30%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.more-img img:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 15px rgba(127, 184, 211, 0.4);
    border-color: var(--color-secondary);
    z-index: 2;
}

/* =========================================
   7. 互动乐园页特有样式 (Game Page)
   ========================================= */

.page-header-deco {
    text-align: center;
    margin-bottom: 60px;
}

.page-subtitle {
    font-family: "ZCOOL KuaiLe", sans-serif;
    color: var(--color-secondary);
    font-size: 1.2rem;
    margin-top: 15px;
}

.section-block-title {
    font-size: 1.8rem;
    color: var(--color-text-main);
    margin: 60px 0 30px;
    padding-left: 20px;
    border-left: 6px solid var(--color-primary);
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: "Ma Shan Zheng", serif;
    background: #fff;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    box-shadow: var(--shadow-sm);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.game-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.game-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    border: 5px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary);
}

.game-card-img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.game-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.game-card:hover .game-card-img-wrap img {
    transform: scale(1.1);
}

.game-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
}

.game-info h4 {
    font-size: 1.2rem;
    color: var(--color-text-main);
    margin-bottom: 10px;
    font-weight: bold;
}

.game-info p {
    font-size: 0.95rem;
    color: var(--color-text-sub);
    line-height: 1.6;
    margin-bottom: 20px;
}

.play-tag {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--color-primary);
    background: rgba(196, 30, 58, 0.08);
    padding: 6px 15px;
    border-radius: 20px;
    align-self: flex-start;
    font-weight: 600;
    font-family: "ZCOOL KuaiLe", sans-serif;
}

.work-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.work-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 3px solid #fff;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.work-item:hover img {
    transform: scale(1.08);
}

.work-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(26,26,26,0.9) 0%, rgba(26,26,26,0.4) 60%, transparent 100%);
    color: #fff;
    padding: 30px 25px 25px;
    font-size: 1rem;
    transform: translateY(10px);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.work-item:hover .work-caption {
    transform: translateY(0);
    opacity: 1;
}

.work-caption strong {
    color: var(--color-accent);
    font-weight: bold;
    margin-right: 5px;
}

.topic-board {
    background: #FFF9EB;
    border-radius: var(--radius-lg);
    padding: 50px;
    border: 3px dashed var(--color-accent);
    max-width: 900px;
    margin: 0 auto 60px;
    position: relative;
}

.topic-board::before {
    content: '💬';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 28px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 2px solid var(--color-accent);
}

.topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-item {
    background: #fff;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 5px solid transparent;
    border: 5px solid #eee;
}

.topic-item:hover {
    background: #fffbf0;
    transform: translateX(5px);
    border-left-color: var(--color-primary);
    border-color: var(--color-accent);
}

.topic-icon {
    font-size: 32px;
    margin-right: 25px;
    background: #f0f0f0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.topic-content {
    flex: 1;
}

.topic-content h5 {
    margin: 0 0 10px 0;
    color: var(--color-text-main);
    font-size: 1.2rem;
}

.topic-content span {
    font-size: 0.9rem;
    color: var(--color-text-sub);
    display: block;
}

.join-btn {
    display: block;
    width: 240px;
    margin: 40px auto 0;
    padding: 15px;
    background: var(--color-primary);
    color: #fff;
    text-align: center;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
    font-family: "ZCOOL KuaiLe", sans-serif;
    font-size: 1.1rem;
}

.join-btn:hover {
    background: #A01830;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.board-footer-tip {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-sub);
    margin-top: 25px;
}

/* 关于我们 - 反馈表单 */
.feedback textarea {
    width: 100%;
    height: 150px;
    border: 2px solid #ddd;
    border-radius: var(--radius-sm);
    padding: 15px;
    margin: 20px 0;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.3s;
    font-size: 14px;
}

.feedback textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

/* =========================================
   8. 统一响应式适配 (Responsive)
   ========================================= */
@media screen and (max-width: 768px) {
    .container, .nav-container {
        width: 95%;
    }
    
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
    }
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-top: 10px;
    }
    .container {
        padding-top: 180px;
    }

    .banner-carousel {
        height: 40vh;
        min-height: 300px;
    }
    
    .slide-title {
        font-size: 32px;
    }
    
    .core-item, .core-item:nth-child(even) {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
        padding: 20px;
        max-height: 80vh;
    }
    .item-img-wrap {
        width: 100%;
        height: 250px;
    }
    .item-content {
        padding: 10px;
        text-align: center;
    }
    .recommend-grid {
        grid-template-columns: 1fr;
    }
    .enter-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .btn-enter {
        width: 100%;
        justify-content: center;
    }

    .feature-showcase {
        flex-direction: column;
    }
    .model-stage {
        min-height: 300px;
    }
    
    .intro-card {
        flex-direction: column;
    }
    .intro-image {
        min-height: 200px;
    }
    .intro-text {
        padding: 25px;
    }
    .info-card {
        height: 280px;
    }

    .story-item {
        flex-direction: column;
    }
    .story-text.card-inner {
        width: 100%;
        padding: 25px;
    }
    .person-card, .poem-card {
        grid-template-columns: 1fr;
    }

    .grid-container, 
    .cold-know, 
    .game-wrap, 
    .work-wrap, 
    .img-wrap,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .time-axis::before {
        left: 20px;
    }
    .time-row, .time-row.reverse {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 50px;
        margin-bottom: 50px;
    }
    .time-content-side, .time-image-side {
        width: 100%;
    }
    .time-dot {
        left: 20px;
        top: 20px;
        transform: translate(-50%, 0);
    }
    .time-row:hover .time-dot {
        transform: translate(-50%, 0) scale(1.2);
    }
    .time-content::after {
        display: none;
    }
    .time-image-side {
        margin-top: 20px;
    }
}
/* =========================================
   9. 滚动吸附适配 (Scroll Snap)
   ========================================= */

/* 首页轮播图：吸附起点 */
.banner-carousel {
    scroll-snap-align: start;
    /* 注意：因为 container 有了 padding-top，轮播图可能需要负 margin 来贴顶，
       或者我们让第一个 section 吸附到 container 顶部 */
    margin-top: calc(var(--header-height) * -1 - 40px); /* 抵消 container 的 padding，实现视觉贴顶 */
    margin-bottom: 80px;
}

/* 首页核心板块：吸附起点 */
.core-section {
    scroll-snap-align: start;
}

/* 首页推荐内容：吸附起点 */
.recommend-section {
    scroll-snap-align: start;
}

/* 首页 CTA 区域：吸附起点 */
.game-enter-section {
    scroll-snap-align: start;
}

/* 其他页面的主要 Section 也可以按需添加 */
.feature-showcase,
.intro-section,
.comic-box,
.page-header-deco,
.knowledge-section,
.trivia-section,
.game-cta-section {
    scroll-snap-align: start;
}

/* =========================================
   10. 滚动显现动画 (Scroll Reveal Animation) - 无模糊版
   ========================================= */

/* 1. 定义需要动画的元素初始状态 */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(80px); /* 保持较大的位移，确保动画明显 */
    /* 已移除 filter: blur(10px); */
    transition: 
        opacity 1s ease-out, 
        transform 1s cubic-bezier(0.22, 1, 0.36, 1); /* 保持优雅的缓动曲线 */
    will-change: opacity, transform;
}

/* 2. 定义激活后的状态 */
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
    /* 已移除 filter: blur(0); */
}

/* 3. 阶梯延迟效果 (可选) 
   如果你希望网格布局中的卡片依次出现，可以添加以下代码 
*/
.grid-container .reveal-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.grid-container .reveal-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.grid-container .reveal-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.grid-container .reveal-on-scroll:nth-child(4) { transition-delay: 0.4s; }

.recommend-grid .reveal-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.recommend-grid .reveal-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.recommend-grid .reveal-on-scroll:nth-child(3) { transition-delay: 0.3s; }