/* ==========================================================================
   罗一鑫学术型个人主页 - 样式表 (style.css)
   设计风格：学术极客 (Academic-Premium) / 港校申请版
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 变量与全局配置
   -------------------------------------------------------------------------- */
:root {
    /* 核心色彩 */
    --bg-primary: #0a192f;
    --bg-secondary: #0f223a;
    --bg-card: rgba(17, 34, 64, 0.65);
    --bg-card-hover: rgba(23, 42, 69, 0.9);
    --color-primary: #64ffda;
    --color-primary-rgb: 100, 255, 218;
    --color-accent: #00b4d8;
    
    /* 文本色彩 */
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --text-muted: #606f8a;
    
    /* 装饰元素 */
    --border-color: rgba(100, 255, 218, 0.12);
    --border-color-hover: rgba(100, 255, 218, 0.35);
    --shadow-sm: 0 4px 12px rgba(2, 12, 27, 0.4);
    --shadow-md: 0 8px 30px rgba(2, 12, 27, 0.6);
    --shadow-glow: 0 0 20px rgba(100, 255, 218, 0.15);
    
    /* 字体族 */
    --font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "PingFang SC", sans-serif;
    
    /* 动画过渡 */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 多语言显示控制 */
body.lang-zh-cn :is(.lang-zh-hk, .lang-en) { display: none !important; }
body.lang-zh-hk :is(.lang-zh-cn, .lang-en) { display: none !important; }
body.lang-en :is(.lang-zh-cn, .lang-zh-hk) { display: none !important; }

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-primary);
}

/* 隐藏滚动条样式但保持滚动 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-secondary);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 255, 218, 0.3);
}

/* --------------------------------------------------------------------------
   2. 科技背景网格与光斑 (Glow Background)
   -------------------------------------------------------------------------- */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(100, 255, 218, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 255, 218, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -2;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.12;
}

.glow-1 {
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
}

.glow-2 {
    bottom: -10%;
    left: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
}

/* --------------------------------------------------------------------------
   3. 通用辅助类 (Typography & Buttons)
   -------------------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 3.5rem;
    text-align: center;
    position: relative;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin: 0.8rem auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--color-primary);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    box-shadow: 0 0 0 rgba(100, 255, 218, 0);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(23, 42, 69, 0.4);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    background-color: rgba(23, 42, 69, 0.8);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.icon-small {
    width: 16px;
    height: 16px;
}

/* --------------------------------------------------------------------------
   4. 导航栏 (Navbar)
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(10, 25, 47, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.logo-badge {
    font-size: 0.65rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: -2px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.3rem 0;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

/* 语言切换器 */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switcher {
    display: inline-flex;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px;
    background-color: rgba(2, 12, 27, 0.3);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    border-radius: 2px;
    transition: var(--transition-fast);
}

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

.lang-btn.active {
    background-color: var(--color-primary-hover);
    color: var(--color-primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* 移动端浮动菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    flex-direction: column;
    gap: 1.25rem;
    z-index: 99;
}

.mobile-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
}

.mobile-link:hover {
    color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   5. 首屏 (Hero Section)
   -------------------------------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.academic-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background-color: var(--color-primary-hover);
    border: 1px dashed var(--color-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-brief {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* 快速跳转平台卡片 */
.platform-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.platform-card {
    text-decoration: none;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background-color: var(--color-primary);
    transform: scaleY(0);
    transition: var(--transition-fast);
}

.platform-card:hover {
    border-color: var(--color-primary);
    background-color: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.platform-card:hover::before {
    transform: scaleY(1);
}

.card-inner {
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.platform-icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.platform-info {
    display: flex;
    flex-direction: column;
}

.platform-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.platform-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* 简历下拉菜单 */
.dropdown-cv {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    min-width: 260px;
    box-shadow: var(--shadow-md);
    z-index: 5;
    margin-top: 5px;
    overflow: hidden;
}

.dropdown-cv:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-content a {
    color: var(--text-secondary);
    padding: 0.85rem 1.25rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    transition: var(--transition-fast);
}

.dropdown-content a:hover {
    background-color: var(--color-primary-hover);
    color: var(--color-primary);
}

/* 交互 Canvas HUD 结构 */
.hero-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
}

.academic-radar-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    width: 100%;
    max-width: 380px;
    box-shadow: var(--shadow-md);
}

#radarCanvas {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}

.radar-hud {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.hud-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-family: var(--font-heading);
}

.hud-label {
    color: var(--text-muted);
}

.hud-value {
    color: var(--color-primary);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   6. 关于我 (About Section)
   -------------------------------------------------------------------------- */
.about-section {
    padding: 100px 0;
    position: relative;
    border-top: 1px solid var(--border-color);
}

.about-broad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: start;
}

/* 个人基础信息面板 */
.about-profile-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-primary-hover);
    border: 1px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.profile-meta-only h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.profile-title {
    font-size: 0.9rem;
    color: var(--color-primary);
    margin-top: 2px;
}

.profile-uni {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.academic-stats {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 故事线文字板块 */
.story-chapters {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.chapter {
    display: flex;
    gap: 1.5rem;
}

.chapter-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.6;
}

.chapter-body {
    display: flex;
    flex-direction: column;
}

.chapter-title {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.chapter-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: justify;
}

/* 专业技能板块 */
.skills-block {
    margin-top: 5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 3.5rem;
}

.skills-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background-color: rgba(17, 34, 64, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.75rem;
    transition: var(--transition-fast);
}

.skill-category:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}

.skill-cat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.skill-cat-icon {
    width: 20px;
    height: 20px;
}

.skill-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.skill-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.25rem;
}

.skill-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   7. 学术与项目时间轴 (Timeline)
   -------------------------------------------------------------------------- */
.timeline-section {
    padding: 100px 0;
    background-color: rgba(9, 21, 40, 0.5);
    border-top: 1px solid var(--border-color);
    position: relative;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* 中间发光垂直轴线 */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--color-primary) 10%, var(--color-primary) 90%, transparent);
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.2);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 2rem 3rem;
}

.timeline-item:nth-child(even) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(odd) {
    left: 50%;
}

/* 时间点徽章 */
.timeline-badge {
    position: absolute;
    top: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    z-index: 2;
    box-shadow: 0 0 12px rgba(100, 255, 218, 0.3);
    transition: var(--transition-fast);
}

.timeline-item:nth-child(even) .timeline-badge {
    right: -22px;
}

.timeline-item:nth-child(odd) .timeline-badge {
    left: -22px;
}

.timeline-item:hover .timeline-badge {
    background-color: var(--color-primary);
    color: var(--bg-primary);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.6);
}

/* 卡片内容面板 */
.timeline-panel {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.timeline-panel:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    background-color: var(--bg-card-hover);
}

.timeline-date {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.timeline-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.timeline-link-text {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition-fast);
}

.timeline-item:hover .timeline-link-text {
    text-shadow: 0 0 8px rgba(100, 255, 218, 0.4);
}

/* --------------------------------------------------------------------------
   8. 科研与项目案例研究 (Project Case Studies)
   -------------------------------------------------------------------------- */
.projects-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.project-case {
    background-color: rgba(17, 34, 64, 0.35);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    position: relative;
    scroll-margin-top: 100px;
    transition: var(--transition-smooth);
}

.project-case:hover {
    border-color: rgba(100, 255, 218, 0.25);
    box-shadow: 0 10px 40px rgba(2, 12, 27, 0.5);
}

/* 头部大标题 */
.project-header-main {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.75rem;
    margin-bottom: 2.5rem;
}

.project-meta-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.project-date {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
}

.project-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--color-primary);
    border-radius: 3px;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 500;
}

.project-title-large {
    font-size: 1.85rem;
    color: var(--text-primary);
}

/* 双栏布局 */
.case-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: start;
}

.case-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 学术区块结构 */
.case-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.case-block-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.case-block-title svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
}

.case-block-content {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding-left: 1.75rem;
    text-align: justify;
}

/* 媒体展示与下载栏 */
.case-media {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 100px;
}

.media-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.media-box-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.media-box-title svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

.download-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* 下载大按钮 */
.download-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background-color: rgba(17, 34, 64, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.download-link svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.dl-text {
    display: flex;
    flex-direction: column;
}

.dl-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.dl-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.download-link:hover {
    border-color: var(--color-primary);
    background-color: var(--color-primary-hover);
    transform: translateX(4px);
}

/* 视频窗口 */
.video-container {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: #020c1b;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.block-btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem;
}

.media-preview-box {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}

.preview-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.5rem;
}

.preview-stack-list {
    list-style: none;
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.preview-stack-list li::before {
    content: '▪ ';
    color: var(--color-primary);
}

/* 教材卡片 */
.textbook-card {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.tb-cover-placeholder {
    width: 90px;
    height: 120px;
    background-color: rgba(17, 34, 64, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.cover-icon {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.cover-publisher {
    font-size: 0.5rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.tb-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tb-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.tb-chapter {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.tb-status {
    font-size: 0.65rem;
    align-self: flex-start;
    padding: 0.15rem 0.4rem;
    border-radius: 2px;
}

.badge-success {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--color-primary);
    border: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   9. 获奖荣誉证书 (Honors Gallery)
   -------------------------------------------------------------------------- */
.honors-section {
    padding: 100px 0;
    background-color: rgba(9, 21, 40, 0.5);
    border-top: 1px solid var(--border-color);
}

/* 切换标签 */
.honors-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.tab-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    border-radius: 20px;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background-color: var(--color-primary-hover);
}

.tab-btn.active {
    color: var(--bg-primary);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

/* 滑动轮播结构 */
.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.carousel-wrapper {
    width: 100%;
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem 0.5rem;
}

/* 隐藏滚动条但保留功能 */
.carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.carousel-nav {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--color-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition-fast);
    z-index: 2;
}

.carousel-nav:hover {
    background-color: var(--color-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

/* 证书小卡片 */
.honor-card {
    min-width: calc(33.333% - 1rem);
    scroll-snap-align: start;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.honor-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.honor-img-box {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #020c1b;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.honor-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.honor-card:hover .honor-img-box img {
    transform: scale(1.05);
}

.honor-info-box {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.honor-level {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
}

.honor-card-title {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   10. 社会实践与科普照片墙 (Outreach Section)
   -------------------------------------------------------------------------- */
.outreach-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.outreach-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.outreach-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-fast);
}

.outreach-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(2, 12, 27, 0.4);
}

.outreach-video-box,
.photo-slider,
.photo-grid-small {
    width: 100%;
    height: 260px;
    position: relative;
    overflow: hidden;
    background-color: #020c1b;
}

.outreach-video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.outreach-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.outreach-tag {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.outreach-card-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.outreach-card-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: justify;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

/* 科普多图 Slider 容器 */
.photo-slider {
    width: 100%;
    height: 260px;
    background-color: #020c1b;
    position: relative;
    overflow: hidden;
}

.slider-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider-img.active {
    opacity: 1;
}

/* 车站三图网格 */
.photo-grid-small {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px;
}

.photo-grid-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-grid-small img:first-child {
    grid-row: span 2;
}

/* --------------------------------------------------------------------------
   11. 页脚联系信息 (Contact & Footer)
   -------------------------------------------------------------------------- */
.contact-section {
    padding: 100px 0 0;
    border-top: 1px solid var(--border-color);
}

.contact-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3.5rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    margin-bottom: 5rem;
    box-shadow: var(--shadow-md);
}

.contact-left {
    display: flex;
    flex-direction: column;
}

.contact-title {
    font-size: 1.85rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.contact-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.contact-right {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.resume-download-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.resume-dl-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.footer-dl-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-dl-buttons .btn {
    width: 100%;
}

/* 页脚版权 */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* --------------------------------------------------------------------------
   12. 证书 Lightbox Modal 弹窗
   -------------------------------------------------------------------------- */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 12, 27, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.close-lightbox {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-lightbox:hover {
    color: var(--color-primary);
}

.lightbox-content-box {
    display: flex;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.lightbox-img {
    max-width: 60%;
    object-fit: contain;
    background-color: #020c1b;
}

.lightbox-caption {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    width: 40%;
}

.lightbox-caption h4 {
    font-size: 1.35rem;
    color: var(--text-primary);
}

.lightbox-caption p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   13. 动效与自适应响应式 (Keyframes & Media Queries)
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 滚动淡入 Reveal CSS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 自适应屏幕适配 */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-brief {
        margin: 0 auto 2rem;
    }
    
    .hero-graphic {
        order: -1;
    }
    
    .about-broad-grid,
    .outreach-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .case-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .case-media {
        position: static;
    }
    
    .contact-card {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2.5rem;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding: 1.5rem 1.5rem 1.5rem 50px;
        text-align: left !important;
    }
    
    .timeline-badge {
        left: 2px !important;
    }
    
    .honor-card {
        min-width: calc(50% - 0.75rem);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .video-card-full {
        grid-column: span 1;
    }
    
    .platform-cards {
        grid-template-columns: 1fr;
    }
    
    .honor-card {
        min-width: 100%;
    }
    
    .lightbox-content-box {
        flex-direction: column;
        max-height: 90vh;
    }
    
    .lightbox-img {
        max-width: 100%;
        max-height: 50vh;
    }
    
    .lightbox-caption {
        width: 100%;
        padding: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

.hero-graphic .about-profile-card {
    max-width: 420px;
    width: 100%;
    border-color: rgba(100, 255, 218, 0.2);
    background-color: rgba(17, 34, 64, 0.8);
    box-shadow: 0 8px 32px rgba(2, 12, 27, 0.5), 0 0 15px rgba(100, 255, 218, 0.08);
}

.disabled-link {
    opacity: 0.55;
    cursor: not-allowed !important;
}

/* 防止英文状态下 justify 拉开单词的间隙 */
.lang-en .chapter-desc,
.lang-en .case-block-content,
.lang-en .outreach-card-text,
.lang-en .hero-brief {
    text-align: left !important;
}

/* PDF 证书卡片占位样式 */
.cert-pdf-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(239, 83, 80, 0.1), rgba(229, 57, 53, 0.2));
    border-bottom: 1px solid rgba(229, 57, 53, 0.15);
    color: #ef5350;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.cert-pdf-placeholder .pdf-icon {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 4px 10px rgba(239, 83, 80, 0.35));
}

.cert-pdf-placeholder .pdf-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Outfit', sans-serif;
}

.honor-card:hover .cert-pdf-placeholder {
    background: linear-gradient(135deg, rgba(239, 83, 80, 0.15), rgba(229, 57, 53, 0.3));
}

/* Lightbox PDF 占位样式 */
#lightbox-pdf-placeholder {
    width: 100%;
    max-width: 420px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: rgba(17, 34, 64, 0.55);
    border-radius: 12px;
    border: 1px dashed rgba(100, 255, 218, 0.25);
    margin: 0 auto 1.5rem;
}

.lightbox-pdf-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
