/* ============================================================
   Apple 质感英雄栏 · 品牌深紫色统一规范（2026-09）
   背景渐变 #4A3A6B → #3A2A5B → #2A1A4B
   金色点缀 #f0c040 + 毛玻璃数据卡片
   类名前缀：hero-apple
   ============================================================ */
.hero-apple {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 56px 40px 48px;
    background: linear-gradient(145deg, #4A3A6B 0%, #3A2A5B 55%, #2A1A4B 100%);
    color: #ffffff;
    box-shadow: 0 24px 64px rgba(74, 58, 107, 0.28);
}

/* 右上角柔和光晕 */
.hero-apple::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -140px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(240, 192, 64, 0.22) 0%, rgba(240, 192, 64, 0) 68%);
    pointer-events: none;
}

/* 网格纹理 */
.hero-apple-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 34px 34px;
    pointer-events: none;
}

/* 右下角半透明主题图标 */
.hero-apple-icon {
    position: absolute;
    right: 20px;
    bottom: 4px;
    font-size: 150px;
    line-height: 1;
    opacity: 0.12;
    transform: rotate(-10deg);
    pointer-events: none;
    user-select: none;
}

.hero-apple-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

/* 顶部标签（金色） */
.hero-apple-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 16px;
    margin-bottom: 18px;
    border: 1px solid rgba(240, 192, 64, 0.12);
    border-radius: 100px;
    background: rgba(240, 192, 64, 0.10);
    color: #f0c040;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* 主标题（覆盖全局 h1 紫色 !important 规则） */
body .site-shell .hero-apple h1,
body .site-shell .hero-apple .hero-apple-title,
.hero-apple h1,
.hero-apple .hero-apple-title {
    margin: 0 0 12px;
    color: #ffffff !important;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

/* 描述文字 */
.hero-apple-desc {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 18px;
    line-height: 1.7;
    max-width: 720px;
}

/* 数据卡片区（毛玻璃） */
.hero-apple-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero-apple-stat {
    min-width: 130px;
    padding: 12px 24px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.hero-apple-stat:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(240, 192, 64, 0.35);
}

.hero-apple-stat .number {
    display: block;
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-apple-stat .label {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
}

/* 纯文本型数据（无 数字/标签 两段式，如“编审支持”“DOI 注册”） */
.hero-apple-stat .txt {
    display: block;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

/* 金色渐变主按钮 */
.hero-apple-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    padding: 12px 40px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(145deg, #f0c040 0%, #d4a020 100%);
    color: #2A1A4B !important;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(240, 192, 64, 0.30);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.hero-apple-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 14px 34px rgba(240, 192, 64, 0.40);
}

/* 次要描边按钮 */
.hero-apple-btn-ghost {
    margin-top: 32px;
    background: transparent;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: none;
}

.hero-apple-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: #f0c040;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .hero-apple {
        padding: 40px 22px 36px;
        border-radius: 16px;
    }
    .hero-apple-icon {
        font-size: 110px;
        right: 12px;
        bottom: 2px;
    }
    .hero-apple-title,
    .hero-apple h1 {
        font-size: 28px;
    }
    .hero-apple-desc {
        font-size: 16px;
    }
    .hero-apple-stats {
        gap: 10px;
    }
    .hero-apple-stat {
        min-width: 0;
        flex: 1 1 40%;
        padding: 12px 16px;
    }
    .hero-apple-btn {
        width: 100%;
    }
}

/* ============================================================
   6 相关页面统一顶部二级导航栏（页面内页签导航）
   风格与 hero-apple 一致：深紫底 + 金色高亮
   ============================================================ */
.page-subnav {
    display: flex;
    gap: 8px;
    padding: 10px;
    margin: 0 0 24px;
    overflow-x: auto;
    border-radius: 16px;
    background: linear-gradient(145deg, #4A3A6B 0%, #3A2A5B 55%, #2A1A4B 100%);
    box-shadow: 0 8px 24px rgba(74, 58, 107, 0.18);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.page-subnav::-webkit-scrollbar {
    display: none;
}

.page-subnav-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.page-subnav-link:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
}

.page-subnav-link.is-active {
    background: linear-gradient(145deg, #f0c040 0%, #d4a020 100%);
    color: #2A1A4B !important;
    box-shadow: 0 4px 14px rgba(240, 192, 64, 0.35);
}

@media (max-width: 768px) {
    .page-subnav {
        margin: 0 -4px 20px;
        border-radius: 14px;
    }
    .page-subnav-link {
        padding: 9px 18px;
        font-size: 13px;
    }
}

/* ============================================================
   6 相关页面统一底部导航栏（页面内容底部 · 页脚上方）
   风格与 hero-apple / page-subnav 一致：深紫底 + 金色高亮
   ============================================================ */
.page-footnav {
    margin: 40px auto 0;
    padding: 28px 24px 24px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(74, 58, 107, 0.06) 0%, rgba(42, 26, 75, 0.08) 100%);
    border: 1px solid rgba(74, 58, 107, 0.10);
    box-shadow: 0 10px 30px rgba(74, 58, 107, 0.06);
}

.page-footnav-head {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.page-footnav-title {
    color: #2A1A4B;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.page-footnav-desc {
    color: rgba(74, 58, 107, 0.55);
    font-size: 13px;
}

.page-footnav .page-subnav {
    margin: 0;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(74, 58, 107, 0.14);
}

@media (max-width: 768px) {
    .page-footnav {
        margin: 28px -4px 0;
        padding: 22px 12px 16px;
    }
    .page-footnav .page-subnav {
        justify-content: flex-start;
    }
    .page-footnav-desc {
        display: none;
    }
}
