/*
 * ============================================================
 * 国家成果申报网站 - 主样式表
 * National Achievement Declaration Website - Main Stylesheet
 * ============================================================
 *
 * 配色方案：绿茶色系 (Green Tea Color Palette)
 *   主色 (Primary)       : #72C268  中调主色 - 品牌核心色
 *   主色深 (PrimaryDark) : #4A9940  深调主色 - 导航/页脚
 *   主色浅 (PrimaryLight): #A5E99D  浅绿高亮 - 悬停/选中
 *   页面背景 (BgPage)    : #F8FBF7  极浅绿白
 *   卡片背景 (BgCard)    : #FFFFFF  白色卡片
 *   侧栏背景 (BgSidebar) : #F8FBF7  与页面统一
 *
 *   标题色H1 (TextH1)    : #1A2E18  深墨绿色
 *   标题色H2 (TextH2)    : #2D4B2A  次深绿
 *   正文色 (TextBody)    : #3D4F3B  中深灰绿
 *   辅助色 (TextMuted)   : #7A8A78  低饱和灰绿
 *   导航文字 (TextNav)   : #FFFFFF  白色
 *
 *   链接色 (LinkDefault) : #3B8A31  品牌链接色
 *   链接悬停 (LinkHover) : #72C268  主色高亮
 *
 *   边框 (BorderLight)   : #E1EDE0  极浅灰绿边框
 *   阴影 (ShadowSoft)    : rgba(74,153,64,0.08) 淡绿阴影
 *
 * 对照来源: 《国家成果建设网站模块级配色清单》
 *
 * 如需修改配色，只需替换 :root 中的变量即可全局生效
 * ============================================================
 */

/* ================================================================
   1. CSS 变量 & 全局重置 (CSS Variables & Global Reset)
   ================================================================ */
:root {
    /* ---- 核心主色 (取自配色清单"全局基础模块" + "导航与头部") ---- */
    --primary:          #72C268;   /* 中调主色 - 品牌核心，按钮/强调 */
    --primary-light:    #A5E99D;   /* 浅绿高亮 - 导航悬停/选中、标签 */
    --primary-dark:     #4A9940;   /* 深调主色 - 导航栏/页脚/标题栏 */

    /* ---- 背景色 (取自配色清单"全局基础模块") ---- */
    --bg-page:          #F8FBF7;   /* 全站页面底色，极浅绿白 */
    --bg-card:          #FFFFFF;   /* 白色卡片容器背景 */
    --bg-sidebar:       #F8FBF7;   /* 侧边栏背景，与页面统一 */
    --bg-table-header:  #F0F7EF;   /* 表格表头浅绿背景 */
    --bg-table-alt:     #F8FBF7;   /* 表格隔行变色背景 */
    --bg-toast-success: #E8F5E6;   /* 成功提示背景 */
    --bg-toast-warning: #FFF8E1;   /* 警告提示背景 */
    --bg-toast-error:   #FFEBEE;   /* 错误提示背景 */

    /* ---- 文字色 (取自配色清单"文字与链接") ---- */
    --text-h1:          #1A2E18;   /* 一级标题 - 深墨绿色 */
    --text-h2:          #2D4B2A;   /* 二三级标题 - 次深绿 */
    --text-body:        #3D4F3B;   /* 正文文字 - 中深灰绿 */
    --text-muted:       #7A8A78;   /* 辅助文字/备注/日期 */
    --text-nav:         #FFFFFF;   /* 导航文字 - 白色 */
    --text-toast-success: #2E7D32; /* 成功提示文字 */
    --text-toast-warning: #F57C00; /* 警告提示文字 */
    --text-toast-error: #C62828;   /* 错误提示文字 */

    /* ---- 链接色 (取自配色清单"文字与链接") ---- */
    --link-default:     #3B8A31;   /* 正文链接默认色 */
    --link-hover:       #72C268;   /* 链接悬停高亮色 */

    /* ---- 按钮色 (取自配色清单"按钮与交互") ---- */
    --btn-primary-bg:       #72C268;   /* 主按钮背景 */
    --btn-primary-hover:    #4A9940;   /* 主按钮悬停 */
    --btn-primary-text:     #FFFFFF;   /* 主按钮文字 */
    --btn-secondary-bg:     #E1EDE0;   /* 次按钮背景 */
    --btn-secondary-text:   #4A9940;   /* 次按钮文字 */
    --btn-disabled-bg:      #D8E8D7;   /* 禁用按钮背景 */
    --btn-disabled-text:    #A5B5A4;   /* 禁用按钮文字 */

    /* ---- 边框与阴影 (取自配色清单) ---- */
    --border-light:     #E1EDE0;   /* 通用边框/分隔线 */
    --shadow-soft:      rgba(74, 153, 64, 0.08); /* 淡绿柔和阴影 */

    /* ---- 排版 ---- */
    --font-body:        "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    --font-heading:     "SimHei", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-serif:       "SimSun", "Noto Serif SC", Georgia, serif;

    /* ---- 间距与尺寸 ---- */
    --header-height:    100px;
    --nav-height:       52px;
    --sidebar-width:    280px;
    --max-width:        1280px;

    /* ---- 圆角 ---- */
    --radius-sm:        4px;
    --radius-md:        8px;
    --radius-lg:        12px;

    /* ---- 阴影扩展 ---- */
    --shadow-sm:        0 1px 3px var(--shadow-soft);
    --shadow-md:        0 4px 12px var(--shadow-soft);
    --shadow-lg:        0 8px 24px var(--shadow-soft);
}

/* ---- 全局重置 ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.75;
    min-height: 100vh;
    /* 背景纹理：淡绿茶园的柔和渐变感 */
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(114, 194, 104, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(165, 233, 157, 0.04) 0%, transparent 50%);
}

a {
    color: var(--link-default);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================================================================
   2. 顶部区域 (Header Area)
   2.1 顶部头部 (Top Header) - LOGO + 网站名称
   背景白色，正式大气，突出站点名称
   ================================================================ */
.header {
    background: #FFFFFF;
    color: var(--text-h1);
    position: relative;
    border-bottom: 3px solid var(--primary-dark);
}

.header::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-light), var(--primary), var(--primary-dark));
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* 左侧：Logo 和标题 */
.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo {
    width: 70px;
    height: 70px;
    background: var(--bg-table-header);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    flex-shrink: 0;
    /* 此处可替换为实际Logo图片 */
    /* background-image: url("../images/logo.png"); */
    /* background-size: contain; */
    /* background-repeat: no-repeat; */
    /* background-position: center; */
}

/* Logo占位文字 - 替换logo图片后删除 */
.header-logo-text {
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    line-height: 1.3;
    color: var(--primary-dark);
}

.header-title-group {
    display: flex;
    flex-direction: column;
}

/* 主标题 - 成果名称 */
.header-main-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-h1);
}

/* 副标题 - 单位信息 */
.header-sub-title {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 1px;
}

/* 右侧：获奖徽章 */
.header-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-nav);
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 2px;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(74, 153, 64, 0.3);
    border: 2px solid var(--primary-light);
    flex-shrink: 0;
}

/* ================================================================
   2.2 主导航栏 (Main Navigation Bar)
   深绿通栏，全站核心视觉标识
   ================================================================ */
.nav-bar {
    background: var(--primary-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.nav-item {
    flex: 1;
    min-width: 100px;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 12px;
    color: var(--text-nav);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
    transition: all 0.25s ease;
    position: relative;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-item:last-child .nav-link {
    border-right: none;
}

/* 导航图标 */
.nav-icon {
    font-size: 17px;
    flex-shrink: 0;
}

/* 导航悬停效果 */
.nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--primary-light);
}

/* 当前活跃导航项 */
.nav-link.active {
    background: rgba(0, 0, 0, 0.2);
    color: var(--primary-light);
    box-shadow: inset 0 -3px 0 var(--primary);
}

/* ================================================================
   2.3 面包屑导航 (Breadcrumb)
   ================================================================ */
.breadcrumb-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
}

.breadcrumb-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb-sep {
    color: var(--primary);
    font-weight: bold;
}

/* ================================================================
   3. 主内容区域 (Main Content Area)
   采用侧边栏 + 内容区两栏布局
   ================================================================ */
.main-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 28px 24px 40px;
    display: flex;
    gap: 28px;
}

/* ---- 3.1 侧边栏 (Sidebar) ---- */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

/* 侧边栏卡片通用样式 */
.sidebar-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.sidebar-card-title {
    background: var(--primary-dark);
    color: var(--text-nav);
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card-title .icon {
    font-size: 18px;
}

.sidebar-card-body {
    padding: 16px 18px;
}

/* 侧边栏导航 - 快速链接 */
.sidebar-nav-list li {
    border-bottom: 1px dotted var(--border-light);
}

.sidebar-nav-list li:last-child {
    border-bottom: none;
}

.sidebar-nav-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: var(--text-body);
    font-size: 14px;
    transition: all 0.2s ease;
    border-radius: var(--radius-sm);
}

.sidebar-nav-list a:hover {
    background: #E8F5E6;
    color: var(--primary-dark);
    padding-left: 16px;
}

.sidebar-nav-list a::before {
    content: "▸";
    color: var(--primary);
    font-size: 10px;
    flex-shrink: 0;
}

/* 侧边栏 - 完成人信息 */
.personnel-list li {
    padding: 8px 0;
    border-bottom: 1px dotted var(--border-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.personnel-list li:last-child {
    border-bottom: none;
}

.personnel-list .rank {
    background: var(--primary);
    color: var(--btn-primary-text);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* 侧边栏 - 下载/链接按钮 */
.sidebar-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    margin-bottom: 8px;
    text-align: center;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.sidebar-btn:last-child {
    margin-bottom: 0;
}

.sidebar-btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.sidebar-btn-primary:hover {
    background: var(--btn-primary-hover);
    color: var(--btn-primary-text);
}

.sidebar-btn-outline {
    background: var(--bg-card);
    color: var(--btn-secondary-text);
    border: 1px solid var(--primary);
}

.sidebar-btn-outline:hover {
    background: var(--bg-table-header);
}

/* ---- 3.2 内容区 (Content Area) ---- */
.content-area {
    flex: 1;
    min-width: 0;
}

/* 内容区卡片 */
.content-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 32px 36px;
    margin-bottom: 24px;
}

.content-card:last-child {
    margin-bottom: 0;
}

/* 内容区标题（带绿色左侧竖条装饰） */
.content-card-title {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--text-h2);
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-card-title .title-bar {
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
}

/* 子标题 */
.content-sub-title {
    font-size: 18px;
    color: var(--text-h2);
    margin: 24px 0 12px;
    padding-left: 14px;
    border-left: 3px solid var(--primary);
}

.content-sub-title:first-child {
    margin-top: 0;
}

/* 正文段落 */
.content-card p {
    text-indent: 2em;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-body);
}

.content-card p.no-indent {
    text-indent: 0;
}

/* ================================================================
   4. 首页特色板块 (Homepage Components)
   ================================================================ */

/* ---- 4.1 轮播图区 (Carousel / Banner) ---- */
.carousel-section {
    margin-bottom: 28px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--primary-dark);
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFF;
}

.carousel-slide.active {
    opacity: 1;
}

/* 轮播图片背景 */
.carousel-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 替换为实际图片: 在HTML中用 <img> 标签替代 */
}

/* 轮播蒙版层 */
.carousel-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(26, 46, 24, 0.45);
    z-index: 1;
}

/* 轮播文字内容 */
.carousel-slide-content {
    position: relative;
    z-index: 2;
    padding: 0 48px;
}

.carousel-slide-content h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    color: #FFF;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.carousel-slide-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    text-indent: 0;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* 轮播箭头 */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: #FFF;
    font-size: 20px;
    cursor: pointer;
    z-index: 3;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: rgba(255,255,255,0.4);
}

.carousel-arrow-prev {
    left: 16px;
}

.carousel-arrow-next {
    right: 16px;
}

/* ---- 4.2 成果名片卡片 (Achievement Card) ---- */
.achievement-namecard {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 28px 32px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.namecard-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-table-header);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    flex-shrink: 0;
    border: 2px solid var(--primary);
}

.namecard-info h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--text-h1);
    margin-bottom: 8px;
}

.namecard-info p {
    font-size: 15px;
    color: var(--text-muted);
    text-indent: 0;
    margin-bottom: 4px;
}

.namecard-info .namecard-unit {
    color: var(--primary-dark);
    font-weight: 600;
}

/* ---- 4.3 成果概览卡片网格 ---- */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.overview-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 28px 18px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
    color: inherit;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    color: inherit;
}

.overview-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    background: var(--bg-table-header);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
}

.overview-card h3 {
    font-size: 17px;
    color: var(--text-h2);
    margin-bottom: 8px;
}

.overview-card p {
    font-size: 13px;
    color: var(--text-muted);
    text-indent: 0;
}

/* ---- 4.4 三大创新点速览 ---- */
.innovation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.innovation-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.innovation-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-light));
}

.innovation-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.innovation-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    background: var(--bg-table-header);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.innovation-card h3 {
    font-size: 18px;
    color: var(--text-h2);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.innovation-card p {
    font-size: 14px;
    color: var(--text-body);
    text-indent: 0;
    line-height: 1.6;
}

/* ---- 4.5 新闻/通知列表 ---- */
.news-list li {
    padding: 13px 0;
    border-bottom: 1px dotted var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list a {
    flex: 1;
    color: var(--text-body);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.news-list a:hover {
    color: var(--link-hover);
}

.news-list a .dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.news-list .date {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ---- 4.6 标签徽章 ---- */
.tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tag-new {
    background: #E74C3C;
    color: #FFF;
}

.tag-hot {
    background: #E67E22;
    color: #FFF;
}

.tag-status {
    background: var(--primary-light);
    color: var(--text-h2);
}

/* ================================================================
   5. 通用展示组件 (Common Display Components)
   ================================================================ */

/* ---- 5.1 成果亮点列表 (带图标的要点) ---- */
.highlight-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.highlight-item {
    background: var(--bg-table-header);
    padding: 18px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-left: 3px solid var(--primary);
}

.highlight-num {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: var(--btn-primary-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.highlight-text h4 {
    font-size: 16px;
    color: var(--text-h2);
    margin-bottom: 4px;
}

.highlight-text p {
    font-size: 13px;
    color: var(--text-body);
    text-indent: 0;
}

/* ---- 5.2 时间线 (Timeline) ---- */
.timeline {
    position: relative;
    padding-left: 30px;
    margin: 20px 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-light);
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
    padding-bottom: 4px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -24px;
    top: 6px;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-date {
    font-size: 14px;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-content h4 {
    font-size: 16px;
    color: var(--text-h2);
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-body);
    text-indent: 0;
}

/* ---- 5.3 图片展示网格 ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.gallery-item .img-placeholder {
    width: 100%;
    height: 180px;
    background: var(--bg-table-header);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 40px;
    /* 替换为实际图片: <img src="..." alt="..."> 替代此div */
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.gallery-item .caption {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

/* ---- 5.4 文件下载列表 ---- */
.file-list li {
    padding: 10px 0;
    border-bottom: 1px dotted var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-list li:last-child {
    border-bottom: none;
}

.file-list .file-icon {
    width: 32px;
    height: 32px;
    background: var(--bg-table-header);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.file-list .file-info {
    flex: 1;
    min-width: 0;
}

.file-list .file-name {
    font-size: 14px;
    color: var(--text-h2);
}

.file-list .file-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.file-list .file-download {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.file-list .file-download:hover {
    background: var(--btn-primary-hover);
    color: var(--btn-primary-text);
}

/* ---- 5.5 案例卡片 (Case Cards) ---- */
.case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.case-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 24px;
    transition: all 0.3s ease;
}

.case-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.case-card-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-table-header);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
}

.case-card h3 {
    font-size: 18px;
    color: var(--text-h2);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.case-card p {
    font-size: 14px;
    color: var(--text-body);
    text-indent: 0;
    line-height: 1.7;
}

.case-card .case-tag {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--text-h2);
    border-radius: 50px;
    font-size: 12px;
}

/* ---- 5.6 统计数字卡片 ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 20px 16px;
    text-align: center;
}

.stat-card .stat-num {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-dark);
    font-family: var(--font-heading);
}

.stat-card .stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ================================================================
   6. PDF在线预览区 (PDF Viewer Area)
   用于成果活页、申报书、总结报告等PDF文档的在线预览
   参考: https://gzjwc.whvcse.edu.cn/jxcgztw/zjbg.htm
   ================================================================ */
.pdf-viewer-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-bottom: 24px;
}

/* PDF提示栏 */
.pdf-viewer-toolbar {
    background: var(--primary-dark);
    color: var(--text-nav);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.pdf-viewer-toolbar .pdf-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
}

.pdf-viewer-toolbar .pdf-tip-icon {
    font-size: 18px;
}

/* PDF iframe容器 */
.pdf-viewer-container {
    width: 100%;
    height: 800px;
    background: #525659;
    position: relative;
}

.pdf-viewer-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* PDF占位提示（当PDF加载失败时显示） */
.pdf-viewer-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-page);
    color: var(--text-muted);
    text-align: center;
    padding: 40px;
}

.pdf-viewer-fallback .fallback-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.pdf-viewer-fallback p {
    font-size: 16px;
    margin-bottom: 8px;
    text-indent: 0;
}

/* ================================================================
   7. 视频展示区 (Video Display Area)
   参考: https://www.gzbjzy.edu.cn/cgzsw/index.htm
   支持主视频和补充视频的展示
   ================================================================ */

/* 视频容器 - 16:9 */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #000;
    margin: 20px 0;
}

/* 视频占位符 */
.video-container .video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-nav);
    background: linear-gradient(135deg, #2A3D28, var(--primary-dark));
    font-size: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-container .video-placeholder:hover {
    background: linear-gradient(135deg, #3A4D38, #5A9940);
}

.video-placeholder span {
    font-size: 16px;
    margin-top: 8px;
}

/* 视频信息栏 */
.video-info-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-table-header);
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-top: 16px;
}

.video-info-bar strong {
    color: var(--text-h2);
}

/* ================================================================
   8. 表格样式 (Table Styles)
   取自配色清单"表格与数据展示模块"
   ================================================================ */
.content-card table,
.content-area table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.content-card table thead tr,
.content-area table thead tr {
    background: var(--bg-table-header);
}

.content-card table th,
.content-area table th {
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    text-align: center;
    color: var(--text-h2);
    font-weight: 600;
}

.content-card table td,
.content-area table td {
    padding: 8px 12px;
    border: 1px solid var(--border-light);
}

.content-card table tbody tr:nth-child(even),
.content-area table tbody tr:nth-child(even) {
    background: var(--bg-table-alt);
}

.content-card table tbody tr:nth-child(odd),
.content-area table tbody tr:nth-child(odd) {
    background: var(--bg-card);
}

/* 表格响应式包装 */
.table-wrapper {
    overflow-x: auto;
    margin: 16px 0;
}

/* ---- 引用块 ---- */
.blockquote-card {
    background: var(--bg-table-header);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    margin: 16px 0;
}

.blockquote-card p {
    text-indent: 0;
    font-style: italic;
    color: var(--text-h2);
}

.blockquote-card .quote-author {
    text-align: right;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ================================================================
   9. 页脚 (Footer)
   深绿茶色，和顶部导航呼应，首尾统一
   ================================================================ */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 36px 0 24px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 16px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-links .sep {
    color: rgba(255, 255, 255, 0.3);
}

.footer-info {
    font-size: 13px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.7);
}

.footer-info strong {
    color: var(--primary-light);
}

/* ================================================================
   10. 回到顶部按钮 (Back to Top)
   ================================================================ */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-3px);
}

/* ================================================================
   11. 响应式设计 (Responsive Design)
   ================================================================ */

/* 平板端 (≤1024px) */
@media (max-width: 1024px) {
    .main-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        order: 2;
    }

    .content-area {
        order: 1;
    }

    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .innovation-grid {
        grid-template-columns: 1fr;
    }

    .highlight-list {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-main-title {
        font-size: 20px;
    }

    .nav-link {
        font-size: 13px;
        padding: 12px 8px;
    }

    .carousel-container {
        height: 280px;
    }

    .carousel-slide-content h2 {
        font-size: 26px;
    }

    .achievement-namecard {
        flex-direction: column;
        text-align: center;
    }
}

/* 手机端 (≤768px) */
@media (max-width: 768px) {
    :root {
        --header-height: auto;
    }

    .header-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 14px 16px;
    }

    .header-left {
        flex-direction: column;
    }

    .header-main-title {
        font-size: 18px;
    }

    .header-sub-title {
        font-size: 12px;
    }

    .header-badge {
        font-size: 13px;
        padding: 8px 16px;
    }

    .nav-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-list {
        flex-wrap: nowrap;
        min-width: max-content;
    }

    .nav-item {
        min-width: auto;
        flex: none;
    }

    .nav-link {
        font-size: 12px;
        padding: 12px 10px;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .innovation-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-card {
        padding: 20px 16px;
    }

    .breadcrumb-bar {
        display: none;
    }

    .carousel-container {
        height: 220px;
    }

    .carousel-slide-content h2 {
        font-size: 20px;
    }

    .carousel-slide-content p {
        font-size: 14px;
    }

    .pdf-viewer-container {
        height: 500px;
    }
}

/* ================================================================
   12. 打印样式 (Print Styles)
   ================================================================ */
@media print {
    .nav-bar,
    .sidebar,
    .back-to-top,
    .footer,
    .breadcrumb-bar,
    .carousel-container {
        display: none;
    }

    body {
        background: #FFF;
    }

    .content-card {
        box-shadow: none;
        border: 1px solid #CCC;
        break-inside: avoid;
    }
}
