/* 首页专属样式 */
/* =====index.html 页面专属变量===== */
:root {
    /* Hero标题倒影间距 */
    --reflection-gap: 100px;
    /* 倒影模糊程度（越小越清晰）*/
    --reflection-blur: 3px;
    /* 倒影透明度（0-1，越大越明显）*/
    --reflection-opacity: 0.9;
    /* 卡片逐个浮出间隔时间 */
    --card-reveal-delay: 0.3s;
}

/* Snap container 样式 - 移除滚动，让 body 统一滚动 */
#snap-container { /* 不设置 overflow，让内容自然流动 */}

/* 每个节 - 改为普通高度 */
.snap-page {
    min-height: auto;
    display: block;
    position: relative;
}

/* 内容从下向上浮出动画 */
@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 默认隐藏需要动画的元素 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* 当元素进入视口时显示 */
.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* 卡片逐个浮出效果 - 使用变量统一控制间隔 */
.qa-grid .qa-card:nth-child(1),
.second-grid .qa-card:nth-child(1),
.region-subsection .qa-grid .qa-card:nth-child(1) { transition-delay: 0s !important; }

.qa-grid .qa-card:nth-child(2),
.second-grid .qa-card:nth-child(2),
.region-subsection .qa-grid .qa-card:nth-child(2) { transition-delay: var(--card-reveal-delay) !important; }

.qa-grid .qa-card:nth-child(3),
.second-grid .qa-card:nth-child(3),
.region-subsection .qa-grid .qa-card:nth-child(3) { transition-delay: calc(var(--card-reveal-delay) * 2) !important; }

.qa-grid .qa-card:nth-child(4),
.second-grid .qa-card:nth-child(4) { transition-delay: calc(var(--card-reveal-delay) * 3) !important; }

.qa-grid .qa-card:nth-child(5) { transition-delay: calc(var(--card-reveal-delay) * 4) !important; }
.qa-grid .qa-card:nth-child(6) { transition-delay: calc(var(--card-reveal-delay) * 5) !important; }

/* snap-content-wrapper 样式（如果使用了包装器） */
.snap-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-height: 100%;
}

/* Hero标题上滑淡入动画 */
@keyframes heroSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(18px);
    }
}

/* 第一节的特殊处理：hero-banner 不需要等待 in-view */
#section-1 .hero-banner,
#section-1 .banner-bg {
    opacity: 1 !important;
    transition: none !important;
}

/* 为 section 添加顶部间距，避免被固定头部遮挡 */
.snap-page { /* 默认不设置 padding-top */}

/* 只有非第一节的 section 需要顶部间距 */
#section-2,
#section-3,
#section-4 {
    padding-top: var(--header-height);
}

/* =====index.html 页面专属样式===== */
/* 横幅区 */
.hero-banner {
    width: 100%;
    height: calc(100vh - var(--header-height));
    min-height: calc(100vh - var(--header-height));
    position: relative;
    overflow: hidden;
    z-index: 0;
}

/* Banner 背景 */
.banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-title {
    color: var(--text-on-dark);
    font-size: calc(var(--hero-banner-title-size) * 2);
    font-weight: 800;
    text-align: center;
    /* 去掉文字阴影，保持清爽 */
    text-shadow: none;
    position: absolute;
    /* 放置在图片的地平线（视觉上约为中下部），根据需要调整百分比 */
    bottom: 38%;
    left: 50%;
    transform: translateX(-50%) translateY(18px); /* 使用显式的 translateX/Y 便于同步伪元素 */
    opacity: 0;
    animation: heroSlideUp 1200ms cubic-bezier(.0,.6,.2,1) 1s forwards;
    z-index: 2;
    /* 动画结束后添加水面阴影效果 */
    filter: drop-shadow(0 8px 12px #0000004D);
    white-space: nowrap; /* 防止文字换行 */
    max-width: 90vw; /* 移动端安全边界 */
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(20px, 6vw, calc(var(--hero-banner-title-size) * 2));
        bottom: 42%;
    }
}
@media (max-width: 420px) {
    .hero-title {
        font-size: clamp(18px, 7.5vw, calc(var(--hero-banner-title-size) * 2));
        bottom: 44%;
    }
}
.hero-title::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + var(--reflection-gap, 6px)); /* 从文字底部开始，向下偏移间距 */
    transform: scaleY(-1); /* 垂直翻转 */
    transform-origin: center top; /* 以顶部为翻转中心 */
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: #FFFFFF73;
    filter: blur(var(--reflection-blur, 1px)) saturate(0.9); /* 使用CSS变量控制模糊 */
    opacity: var(--reflection-opacity, 0.7); /* 使用CSS变量控制透明度 */
    pointer-events: none;
    z-index: 1;
    -webkit-mask-image: linear-gradient(to bottom, #00000099, #00000000);
    mask-image: linear-gradient(to bottom, #00000099, #00000000);
}
.banner-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/*站点标注：右下角定位*/
.banner-label {
    position: absolute;
    /* Hero banner 的基础布局与 banner-img 已移入 part.css。
        本文件保留页面特定的 hero-title / hero-inner 等微调规则。 */
    right: 40px;
    bottom: calc(var(--function-bar-height) + 30px);
    color: var(--text-on-dark);
    font-size: 14px;
    background: #0000004D;
    padding: 6px 12px;
    border-radius: 4px;
}

/* =====index.html 页面section样式调整===== */
/* 移除原有的 margin-bottom，因为现在使用 snap scroll */
#first-screen.snap-page,
#second-screen.snap-page {
    margin-bottom: 0;
}

/* =====数据展示面板样式===== */
.stats-panel {
    width: 100%;
    background: #ffffff;
    padding: 60px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    flex-shrink: 0;
}
.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}
.stat-item {
    text-align: center;
    min-width: 180px;
}
.stat-icon {
    font-size: 32px;
    margin-bottom: 12px;
}
.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1;
}
.stat-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}
/* 响应式：小屏幕堆叠排列 */
@media (max-width: 768px) {
    .stats-container {
        gap: 30px;
    }
    .stat-item {
        min-width: 140px;
    }
    .stat-number {
        font-size: 36px;
    }
}

/* =====快速查看区域样式===== */
.quick-access-section {
    width: 100%;
    background: #f5f5f5;
    padding: 60px 20px;
    flex-shrink: 0;
}
.qa-header {
    text-align: center;
    margin-bottom: 40px;
}
.qa-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1976d2;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.qa-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
}
.qa-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.region-section {
    margin-bottom: 50px;
}
/* 子区域：主营区域和其他地区 */
.region-subsection {
    margin-bottom: 30px;
    text-align: center;
}
.region-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    display: inline-block;
    position: relative;
}
.region-subtitle-en {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.qa-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}
.qa-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--card-color, #333);
}
.qa-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease !important; /* hover效果单独设置transition */
}
.qa-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--card-color, #333);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.qa-icon {
    font-size: 24px;
}
.qa-text h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}
.qa-text p {
    font-size: 13px;
    color: #888;
    margin: 0;
}
.qa-footer {
    max-width: 1100px;
    margin: 36px auto 0;
    text-align: center;
}
.qa-btn-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
}
.qa-btn-all:hover {
    background: #333;
}

/* 响应式 */
@media (max-width: 900px) {
    .qa-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .qa-grid {
        grid-template-columns: 1fr;
    }
}

/* =====第二节卡片样式（直接套用 qa-card）===== */
.second-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 20px;
    align-items: stretch;
}
#second-screen .qa-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
#second-screen .card-meta {
    font-size: 13px;
    color: #888;
    margin: 0;
}
#second-screen .page-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #1976d2;
    text-decoration: none;
    margin-top: auto;
    transition: color 0.2s;
}
#second-screen .page-link:hover {
    color: #1565c0;
    text-decoration: underline;
}

/* 响应式：第二节卡片 */
@media (max-width: 900px) {
    .second-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .second-grid {
        grid-template-columns: 1fr;
    }
}
/* 或者给第二节添加上边距（二选一）*/
/*#second-screen.snap-page {argin-top: 80px;}*/