/* ===== 基础样式 ===== */
:root {
    --primary: #00ff41;      /* 矩阵绿主色调 */
    --dark-bg: #0a0a0a;     /* 深黑色背景 */
    --card-bg: #1a1a1a;     /* 卡片背景 */
    --text-light: #f0f0f0;  /* 浅色文字 */
    --text-gray: #a0a0a0;   /* 灰色文字 */
    --divider: rgba(0, 255, 65, 0.2); /* 分割线颜色 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(0, 255, 65, 0.05) 0%, transparent 80%);
    position: relative;
}

/* ===== 网格背景 ===== */
.matrix-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    opacity: 0.5;
}

/* ===== 头部导航 ===== */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 5% 1rem;
    position: relative;
    max-width: 1200px; /* 添加最大宽度限制 */
    margin: 0 auto; /* 居中显示 */
    width: 100%; /* 确保宽度占满 */
}

.site-title {
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', sans-serif;
    font-size: 2.2rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.7);
    font-weight: 600;
    text-align: center;
    width: 100%; /* 确保标题宽度占满 */
    position: relative; /* 添加定位上下文 */
}

.site-subtitle {
    display: fiex;
    color: var(--text-gray);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.divider {
    width: 85%;
    height: 1px;
    background: var(--divider);
    margin-bottom: 1rem;
}

.divider-section {
    margin: 2rem auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

@keyframes glitch {
    0%, 85%, 100% {
        text-shadow: 0 0 10px rgba(0, 255, 65, 0.55);
        transform: none;
    }
    87% {
        text-shadow: -3px 0 #ff0044, 3px 0 #00ccff, 0 0 10px rgba(0, 255, 65, 0.55);
        transform: skewX(-2deg) translateX(-2px);
    }
    89% {
        text-shadow: 3px 0 #ff0044, -3px 0 #00ccff, 0 0 10px rgba(0, 255, 65, 0.55);
        transform: skewX(2deg) translateX(2px);
    }
    91% {
        text-shadow: -2px 0 #ff0044, 2px 0 #00ccff, 0 0 10px rgba(0, 255, 65, 0.55);
        transform: translateX(0);
    }
    93% {
        text-shadow: 0 0 10px rgba(0, 255, 65, 0.55);
        transform: none;
    }
}

/* glitch 动效曾在这里，撤掉了 —— 招新场景下被读作"标题频闪 bug"，
   而不是装饰。如需保留品牌酷感，可以未来改成更慢、更轻微的脉冲。 */

.typewriter-cursor {
    border-right: 2px solid var(--primary);
    animation: blink-cursor 0.7s step-end infinite;
}

@keyframes blink-cursor {
    0%, 100% { border-color: var(--primary); }
    50%       { border-color: transparent; }
}

/* ===== 主体内容 ===== */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 60vh;
}

.main-title {
    width: 100%;
    margin-bottom: 2rem;
}

.new-projects-title {
    width: 100%;
    margin: 1.5rem 0;
}

.section-title {
    width: 100%;
    color: var(--text-light);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--primary);
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

/* ===== 关于我们卡片 ===== */
.about-section {
    width: 100%;
}

.about-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 200, 255, 0.1);
}

.admin-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 20, 40, 0.5);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid var(--divider);
}

.admin-info {
    text-align: center;
}

.admin-title {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.admin-detail {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--text-gray);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
    text-align: justify;
    text-indent: 2em;
}

/* ===== 新闻区域 ===== */
.news-section {
    width: 100%;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 200, 255, 0.1);
}

.news-title {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--divider);
}

.news-title h2 {
    color: var(--primary);
    font-size: 1.8rem;
}

.news-list {
    list-style: none;
}

.news-item {
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
}

.news-date {
    color: var(--primary);
    min-width: 120px;
    font-weight: 500;
}

.news-content {
    flex: 1;
}

.past-news {
    margin-top: 1.5rem;
    text-align: right;
}

.past-news a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.past-news a:hover {
    opacity: 0.8;
}

/* ===== 内容容器 ===== */
.content-container {
    width: 100%;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 200, 255, 0.1);
}

/* ===== 页脚 ===== */
footer {
    text-align: center;
    padding: 2rem 5%;
    color: var(--text-gray);
    font-size: 0.9rem;
    border-top: 1px solid var(--divider);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.copyright {
    order: 2;
}

.site-url {
    color: var(--text-light);
    font-size: 1.1rem;
    letter-spacing: 1px;
    order: 1;
}

/* ===== 响应式设计 ===== */
@media (max-width: 900px) {
    .about-card {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        gap: 1.8rem;
    }
    
    .main-content {
        padding: 2rem 5%;
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 1.8rem;
    }
    
    .nav-links {
        gap: 1.2rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .admin-card {
        padding: 1rem;
    }
    
    .about-card,
    .content-container,
    .news-section {
        padding: 1.8rem;
    }
    
    .news-item {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.5rem;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .about-card,
    .content-container,
    .news-section {
        padding: 1.2rem;
    }
    
    footer {
        padding: 1.5rem 5%;
    }
}
    /* ===== 项目卡片样式 ===== */
.project {
    width: 100%;
    background: var(--card-bg); /* 使用卡片背景色 */
    border-radius: 12px; /* 圆角效果 */
    padding: 2rem; /* 内边距 */
    margin-bottom: 2rem; /* 卡片间距 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* 阴影效果 */
    border: 1px solid rgba(0, 200, 255, 0.1); /* 霓虹绿边框 */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 平滑过渡效果 */
}

.project:hover {
    transform: translateY(-5px); /* 悬停时轻微上浮 */
    box-shadow: 0 15px 35px rgba(0, 255, 100, 0.3); /* 增强悬停阴影效果 */
    border-color: rgba(0, 255, 100, 0.3); /* 悬停时边框变亮 */
}

.project h3 {
    color: var(--primary); /* 主色调标题 */
    font-size: 1.5rem; /* 标题大小 */
    margin-bottom: 1rem; /* 标题下边距 */
    border-bottom: 1px solid var(--divider); /* 标题下划线 */
    padding-bottom: 0.5rem; /* 标题与下划线间距 */
}

.project p {
    font-size: 1.1rem; /* 正文字号 */
    line-height: 1.6; /* 行高 */
    margin-bottom: 1rem; /* 段落间距 */
    color: var(--text-light); /* 文字颜色 */
}

.project a {
    display: inline-flex; /* 内联弹性布局 */
    align-items: center; /* 垂直居中 */
    color: var(--primary); /* 链接颜色 */
    text-decoration: none; /* 无下划线 */
    font-weight: 500; /* 字体粗细 */
    padding: 0.5rem 1rem; /* 内边距 */
    background: rgba(0, 180, 100, 0.15); /* 背景色 */
    border-radius: 5px; /* 圆角 */
    transition: all 0.3s; /* 过渡效果 */
    border: 1px solid rgba(0, 255, 100, 0.3); /* 边框 */
}

.project a:hover {
    background: rgba(0, 220, 150, 0.25); /* 悬停背景 */
    box-shadow: 0 0 10px rgba(0, 255, 150, 0.3); /* 悬停发光效果 */
}

.project a::before {
    content: "→"; /* 箭头图标 */
    margin-right: 8px; /* 图标与文字间距 */
    display: inline-block; /* 行内块元素 */
    transition: transform 0.3s; /* 过渡效果 */
}

.project a:hover::before {
    transform: translateX(3px); /* 悬停时箭头移动 */
}

/* ===== 响应式调整 ===== */
@media (max-width: 768px) {
    .project {
        padding: 1.5rem; /* 移动端内边距调整 */
    }
    
    .project h3 {
        font-size: 1.3rem; /* 移动端标题大小 */
    }
    
    .project p {
        font-size: 1rem; /* 移动端正文字号 */
    }
}

@media (max-width: 480px) {
    .project {
        padding: 1.2rem;
    }

    .project h3 {
        font-size: 1.2rem;
    }
}

/* ===== Member Cards ===== */
.member-section {
    width: 100%;
    margin-bottom: 1rem;
}

.member-section-label {
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.member-grid {
    display: grid;
    gap: 1.2rem;
}

.member-grid-1 { grid-template-columns: repeat(1, minmax(0, 280px)); }
.member-grid-2 { grid-template-columns: repeat(2, 1fr); }
.member-grid-3 { grid-template-columns: repeat(3, 1fr); }

.member-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 200, 255, 0.1);
    border-radius: 10px;
    padding: 1.4rem 1.6rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
    border-color: rgba(0, 255, 65, 0.3);
    box-shadow: 0 8px 24px rgba(0, 255, 65, 0.1);
}

/* 指导老师卡片：环绕旋转的 RGB 流光描边 + 同色外发光（仅边框，不染卡面）。
   ::after = 卡面+conic 描边；::before = 模糊光晕（内侧被 ::after 遮住，只在卡片外缘发光）。*/
@property --advisor-ang {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@keyframes advisor-rgb-spin {
    to { --advisor-ang: 360deg; }
}
.member-card-advisor {
    position: relative;
    z-index: 0;
    background: transparent;
    border: none;
    transition: transform 0.3s ease;
}
.member-card-advisor::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 10px;
    border: 2px solid transparent;
    background:
        linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
        conic-gradient(from var(--advisor-ang), #ff0040, #ff8a00, #ffe600, #37ff00, #00e5ff, #3b5bff, #c800ff, #ff0040) border-box;
    animation: advisor-rgb-spin 5s linear infinite;
}
.member-card-advisor::before {
    content: '';
    position: absolute;
    inset: -5px;
    z-index: -2;
    border-radius: 14px;
    background: conic-gradient(from var(--advisor-ang), #ff0040, #ff8a00, #ffe600, #37ff00, #00e5ff, #3b5bff, #c800ff, #ff0040);
    filter: blur(11px);
    opacity: 0.65;
    animation: advisor-rgb-spin 5s linear infinite;
}
.member-card-advisor:hover {
    transform: translateY(-3px);
    box-shadow: none;
}
.member-card-advisor:hover::before { opacity: 0.9; }
/* 静态回退（不支持 @property 时 conic 不旋转，仍是彩虹描边+光晕）；并尊重减少动态偏好 */
@media (prefers-reduced-motion: reduce) {
    .member-card-advisor::after,
    .member-card-advisor::before { animation: none; }
}

.member-card-thanks {
    border-color: rgba(200, 200, 200, 0.1);
}

.member-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}

/* 「正在开发」转动齿轮：标记参与在研项目（路愈者）的成员 */
@keyframes gear-spin { to { transform: rotate(360deg); } }
.dev-gear {
    display: inline-block;
    width: 0.82em;
    height: 0.82em;
    margin-left: 0.35rem;
    vertical-align: -0.08em;
    background-color: var(--primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill='%23fff'%20d='M19.14%2012.94a7.49%207.49%200%200%200%20.05-.94%207.49%207.49%200%200%200-.05-.94l2.03-1.58a.5.5%200%200%200%20.12-.64l-1.92-3.32a.5.5%200%200%200-.61-.22l-2.39.96a7%207%200%200%200-1.62-.94l-.36-2.54a.5.5%200%200%200-.5-.42h-3.84a.5.5%200%200%200-.5.42l-.36%202.54a7%207%200%200%200-1.62.94l-2.39-.96a.5.5%200%200%200-.61.22L2.74%208.84a.5.5%200%200%200%20.12.64l2.03%201.58a7.49%207.49%200%200%200%200%201.88l-2.03%201.58a.5.5%200%200%200-.12.64l1.92%203.32a.5.5%200%200%200%20.61.22l2.39-.96a7%207%200%200%200%201.62.94l.36%202.54a.5.5%200%200%200%20.5.42h3.84a.5.5%200%200%200%20.5-.42l.36-2.54a7%207%200%200%200%201.62-.94l2.39.96a.5.5%200%200%200%20.61-.22l1.92-3.32a.5.5%200%200%200-.12-.64zM12%2015.5A3.5%203.5%200%201%201%2012%208.5a3.5%203.5%200%200%201%200%207z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill='%23fff'%20d='M19.14%2012.94a7.49%207.49%200%200%200%20.05-.94%207.49%207.49%200%200%200-.05-.94l2.03-1.58a.5.5%200%200%200%20.12-.64l-1.92-3.32a.5.5%200%200%200-.61-.22l-2.39.96a7%207%200%200%200-1.62-.94l-.36-2.54a.5.5%200%200%200-.5-.42h-3.84a.5.5%200%200%200-.5.42l-.36%202.54a7%207%200%200%200-1.62.94l-2.39-.96a.5.5%200%200%200-.61.22L2.74%208.84a.5.5%200%200%200%20.12.64l2.03%201.58a7.49%207.49%200%200%200%200%201.88l-2.03%201.58a.5.5%200%200%200-.12.64l1.92%203.32a.5.5%200%200%200%20.61.22l2.39-.96a7%207%200%200%200%201.62.94l.36%202.54a.5.5%200%200%200%20.5.42h3.84a.5.5%200%200%200%20.5-.42l.36-2.54a7%207%200%200%200%201.62-.94l2.39.96a.5.5%200%200%200%20.61-.22l1.92-3.32a.5.5%200%200%200-.12-.64zM12%2015.5A3.5%203.5%200%201%201%2012%208.5a3.5%203.5%200%200%201%200%207z'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: gear-spin 4s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .dev-gear { animation: none; } }

/* 竞赛获奖徽章：名字后的「数字 + 发光流光下划线」，颜色对应奖项级别。
   组织/县区=白 校级=蓝 省市=紫 国家/SCI二区=荧光黄 国家二等=红 SCI四区=绿 一等/一区=RGB */
@keyframes award-underline {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
/* 有获奖的卡片：左侧信息 + 右侧单开一列放徽章 */
.member-card:has(.member-awards) {
    display: flex;
    align-items: flex-start;      /* 徽章列顶端与人名对齐 */
    gap: 0.7rem;
}
.member-card:has(.member-awards) > .member-main {
    flex: 1 1 auto;
    min-width: 0;
}
.member-card:has(.member-awards) > .member-awards {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;          /* 多枚徽章水平居中、下划线等宽对齐 */
    gap: 0.55rem;
    margin: 0;
}
.member-award {
    --aw: #b026ff;                  /* 默认紫（省市级）*/
    position: relative;
    display: inline-block;
    min-width: 1.4rem;              /* 统一宽度 → 下划线等宽 */
    padding: 0 0.25rem 0.28rem;     /* 底部留白给下划线 */
    font-family: 'Orbitron', 'Consolas', monospace;
    font-size: 1.2rem;              /* 与人名接近 */
    font-weight: 800;
    line-height: 1;
    color: var(--aw);
    text-align: center;
    vertical-align: baseline;
    text-shadow: 0 0 6px color-mix(in srgb, var(--aw) 55%, transparent);
}
/* 发光 + 流光下划线（数字落在下划线上方）*/
.member-award::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--aw) 28%, #fff 50%, var(--aw) 72%, transparent);
    background-size: 220% 100%;
    box-shadow: 0 0 7px var(--aw), 0 0 2px var(--aw);
    animation: award-underline 2.6s linear infinite;
}
.member-award[data-tier="org"],
.member-award[data-tier="county"]          { --aw: #e8e8e8; }
.member-award[data-tier="school"]          { --aw: #2f54b0; }
.member-award[data-tier="provincial"],
.member-award[data-tier="sci-q3"]          { --aw: #b026ff; }
.member-award[data-tier="national"],
.member-award[data-tier="sci-q2"]          { --aw: #eaff00; }
.member-award[data-tier="national-second"] { --aw: #ff1744; }
.member-award[data-tier="sci-q4"]          { --aw: #3ddc84; }
/* RGB 级别：数字彩虹裁切 + 下划线彩虹流光 */
.member-award[data-tier="national-first"],
.member-award[data-tier="sci-q1"],
.member-award[data-tier="sci-q1-first"] {
    --aw: #c46bff;
    color: transparent;
    background: linear-gradient(90deg, #ff0040, #ff8a00, #ffe600, #37ff00, #00e5ff, #3b5bff, #c800ff, #ff0040);
    background-size: 300% 100%;
    -webkit-background-clip: text;
            background-clip: text;
    animation: award-rgb-x 6s linear infinite;
}
.member-award[data-tier="national-first"]::after,
.member-award[data-tier="sci-q1"]::after,
.member-award[data-tier="sci-q1-first"]::after {
    background: linear-gradient(90deg, #ff0040, #ff8a00, #ffe600, #37ff00, #00e5ff, #3b5bff, #c800ff, #ff0040);
    background-size: 300% 100%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    animation: award-rgb-x 6s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
    .member-award::after,
    .member-award[data-tier="national-first"],
    .member-award[data-tier="sci-q1"],
    .member-award[data-tier="sci-q1-first"] { animation: none; }
}

.member-role {
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.member-dept {
    font-size: 0.85rem;
    color: var(--text-gray);
    letter-spacing: 1px;
}

.role-owner {
    color: #ff4444;
    font-weight: 700;
}

.role-leader {
    color: #4488ff;
    font-weight: 700;
}

.member-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.member-card-link:hover {
    border-color: rgba(0, 255, 65, 0.5);
    box-shadow: 0 8px 24px rgba(0, 255, 65, 0.15);
}

.member-github {
    font-size: 0.78rem;
    color: var(--primary);
    margin-top: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.member-card-link:hover .member-github {
    opacity: 1;
}

.role-advisor::before {
    content: '★ ';
    color: #ffd700;
}

@media (max-width: 768px) {
    .member-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .member-grid-2,
    .member-grid-3 { grid-template-columns: 1fr; }
}

/* ===== D20 旋转装饰 ===== */
.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
}

.hero-text {
    flex: 1;
}

.d20-container {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
}

.d20 {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 600px) {
    .hero-wrapper { flex-direction: column; align-items: flex-start; }
    .d20-container { width: 110px; height: 110px; align-self: center; }
}

/* ===== 部门卡片 ===== */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    width: 100%;
    margin-top: 1rem;
}

.dept-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 200, 255, 0.1);
    border-radius: 12px;
    padding: 2rem 1.8rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.dept-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 255, 100, 0.2);
    border-color: rgba(0, 255, 65, 0.35);
}

.dept-tag {
    font-size: 2.8rem;
    font-weight: 700;
    color: rgba(0, 255, 65, 0.12);
    line-height: 1;
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
}

.dept-name-en {
    font-size: 1rem;
    color: var(--primary);
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.dept-name-zh {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.8rem;
}

.dept-divider {
    width: 40px;
    height: 2px;
    background: var(--primary);
    margin-bottom: 1rem;
    opacity: 0.6;
}

.dept-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .dept-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .dept-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 招新导航高亮 ===== */
.nav-links a.nav-join {
    color: var(--primary);
    border: 1px solid rgba(0, 255, 65, 0.35);
    border-radius: 4px;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 255, 65, 0.06);
    transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}

.nav-links a.nav-join:hover {
    background: rgba(0, 255, 65, 0.15);
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.35);
    transform: translateY(-1px);
}

.nav-links a.nav-join.active::after {
    display: none;
}

/* ===== Hero 招新文案 ===== */
.hero-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--primary);
    border: 1px solid rgba(0, 255, 65, 0.35);
    background: rgba(0, 255, 65, 0.06);
    padding: 0.25rem 0.7rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.hero-text p {
    color: var(--text-gray);
    margin-bottom: 0.4rem;
}

.hero-tags {
    color: var(--primary) !important;
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-bottom: 1.4rem !important;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* ===== 通用按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    font-size: 0.98rem;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.25s, box-shadow 0.25s, transform 0.25s, border-color 0.25s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #0a0a0a;
    font-weight: 600;
    border-color: var(--primary);
}

.btn-primary:hover {
    box-shadow: 0 0 18px rgba(0, 255, 65, 0.55);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: rgba(0, 255, 65, 0.45);
}

.btn-secondary:hover {
    background: rgba(0, 255, 65, 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ===== 特色卡片网格 ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
    width: 100%;
    margin: 1.5rem 0;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 200, 255, 0.1);
    border-radius: 12px;
    padding: 1.6rem 1.4rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 255, 100, 0.18);
    border-color: rgba(0, 255, 65, 0.3);
}

.feature-tag {
    font-size: 0.8rem;
    color: var(--primary);
    letter-spacing: 3px;
    margin-bottom: 0.6rem;
    opacity: 0.7;
}

.feature-card h3 {
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 0.7rem;
    border-bottom: 1px solid var(--divider);
    padding-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 0.92rem;
    line-height: 1.65;
}

@media (max-width: 900px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .feature-grid { grid-template-columns: 1fr; }
}

/* ===== 招新引导条 ===== */
.recruit-banner {
    width: 100%;
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.08), rgba(0, 255, 65, 0.02));
    border: 1px solid rgba(0, 255, 65, 0.25);
    border-radius: 12px;
    padding: 1.5rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.recruit-banner-title {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.recruit-banner-sub {
    color: var(--text-gray);
    font-size: 0.92rem;
}

/* ===== 旧项目 Archive ===== */
.archive-section {
    width: 100%;
    opacity: 0.85;
}

.archive-title {
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed var(--divider);
}

.archive-title h2 {
    color: var(--text-gray);
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    letter-spacing: 2px;
}

.archive-title p {
    color: var(--text-gray);
    font-size: 0.88rem;
}

.archive-title a {
    color: var(--primary);
    text-decoration: none;
}

.archive-project {
    background: rgba(26, 26, 26, 0.6);
    border-color: rgba(255, 255, 255, 0.06);
    padding: 1.4rem 1.6rem;
}

.archive-project h3 {
    color: var(--text-gray);
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.archive-project p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.archive-project .project-meta {
    font-size: 0.82rem;
    opacity: 0.65;
    margin-bottom: 0.8rem;
}

/* ===== 项目卡：分层信息块 ===== */
.project-summary {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 1rem !important;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.6rem 0 1.2rem;
}

.stack-chip {
    font-size: 0.78rem;
    color: var(--primary);
    background: rgba(0, 255, 65, 0.06);
    border: 1px solid rgba(0, 255, 65, 0.25);
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
    letter-spacing: 1px;
    line-height: 1.6;
}

.project-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin: 0.4rem 0 1.2rem;
}

.metric {
    background: rgba(0, 255, 65, 0.04);
    border: 1px solid rgba(0, 255, 65, 0.15);
    border-radius: 8px;
    padding: 0.9rem 0.6rem;
    text-align: center;
}

.metric-num {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.35);
}

.metric-label {
    font-size: 0.78rem;
    color: var(--text-gray);
    letter-spacing: 1px;
}

.project-note {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid rgba(0, 255, 65, 0.4);
    padding: 0.8rem 1rem;
    margin: 0.6rem 0 1rem !important;
    font-size: 0.92rem !important;
    color: var(--text-gray) !important;
    line-height: 1.75 !important;
}

@media (max-width: 700px) {
    .project-metrics { grid-template-columns: repeat(2, 1fr); }
    .metric-num { font-size: 1.4rem; }
}

/* ===== Projects in Progress 进行中的项目 ===== */
.wip-card {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid rgba(0, 255, 65, 0.15);
    border-radius: 12px;
    padding: 1.8rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.wip-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.35rem;
}
.wip-name {
    font-size: 1.5rem;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}
.wip-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.74rem;
    letter-spacing: 1px;
    color: #ffb000;
    background: rgba(255, 176, 0, 0.1);
    border: 1px solid rgba(255, 176, 0, 0.4);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
}
.wip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffb000;
    box-shadow: 0 0 6px #ffb000;
    animation: wip-pulse 1.4s ease-in-out infinite;
}
@keyframes wip-pulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.7); }
}
.wip-sub {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}
.wip-summary {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.1rem;
}
.wip-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.3rem;
}
.wip-progress { margin-bottom: 1.3rem; }
.wip-progress-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}
.wip-progress-pct {
    margin-left: auto;
    font-family: 'Orbitron', 'Consolas', monospace;
    font-weight: 700;
    color: #ff1744;
}
.wip-progress-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.wip-progress-bar {
    width: var(--p, 0%);
    height: 100%;
    border-radius: 999px;
    /* 国家级项目：红色流光进度条 */
    background: linear-gradient(90deg, #ff1744, #ff6b8a, #ff1744);
    background-size: 200% 100%;
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.55);
    animation: award-rgb-x 3s linear infinite;
}
.wip-stage-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.45rem;
    margin: 0 0 1.2rem;
    padding: 0;
}
.wip-stage-list li {
    position: relative;
    font-size: 0.82rem;
    color: var(--text-gray);
    padding: 0.25rem 0.7rem 0.25rem 1.55rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}
.wip-stage-list li::before {
    content: '○';
    position: absolute;
    left: 0.6rem;
    color: var(--text-gray);
}
.wip-stage-list li.done {
    color: var(--text-light);
    border-color: rgba(0, 255, 65, 0.25);
}
.wip-stage-list li.done::before { content: '✓'; color: var(--primary); }
.wip-stage-list li.partial {
    color: var(--text-light);
    border-color: rgba(0, 255, 65, 0.18);
}
.wip-stage-list li.partial::before { content: '◐'; color: #6cff9b; }
.wip-stage-list li.current {
    color: #ffb000;
    border-color: rgba(255, 176, 0, 0.45);
    background: rgba(255, 176, 0, 0.06);
}
.wip-stage-list li.current::before { content: '◉'; color: #ffb000; }
/* 项目分工 · 各小组 */
.wip-groups {
    margin-top: 1.3rem;
    padding-top: 1.1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}
.wip-groups-title {
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-bottom: 0.85rem;
}
.wip-group-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0.6rem;
}
.wip-group-list li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.6rem 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 65, 0.12);
    border-left: 3px solid rgba(0, 255, 65, 0.45);
    border-radius: 8px;
}
.wip-group-name {
    font-size: 0.76rem;
    letter-spacing: 0.5px;
    color: var(--text-gray);
}
.wip-group-members {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
}

.wip-foot {
    margin-top: 1.2rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    padding-top: 0.8rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}
@media (max-width: 700px) {
    .wip-card { padding: 1.4rem 1.3rem; }
    .wip-name { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    .wip-dot, .wip-progress-bar { animation: none; }
}

/* ===== Competition Awards 竞赛奖项 ===== */
.award-stats { margin-bottom: 1.6rem; }

/* —— 颜色图例（条带颜色 ↔ 奖项级别）—— */
.award-legend {
    width: 100%;
    margin: 0 0 1.6rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--divider);
    border-radius: 10px;
}
.award-legend-head {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
}
.award-legend-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.4rem;
}
.award-legend-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}
/* 图例小 bar：全部动态 —— 流光扫过 + 辉光呼吸（颜色随级别）*/
@keyframes lg-glow {
    0%, 100% { box-shadow: 0 0 4px var(--lb); }
    50%      { box-shadow: 0 0 11px var(--lb); }
}
.lg-bar {
    --lb: #e8e8e8;
    flex: 0 0 auto;
    width: 32px;
    height: 6px;
    border-radius: 3px;
    /* 底色为主，仅一道窄高光扫过（避免白光盖住颜色）*/
    background: linear-gradient(90deg, var(--lb) 0%, var(--lb) 42%, #fff 50%, var(--lb) 58%, var(--lb) 100%);
    background-size: 240% 100%;
    animation: award-underline 2.4s linear infinite, lg-glow 2.4s ease-in-out infinite;
}
.lg-bar[data-tier="org"],
.lg-bar[data-tier="county"]          { --lb: #e8e8e8; }
.lg-bar[data-tier="school"]          { --lb: #2f54b0; }
.lg-bar[data-tier="provincial"]      { --lb: #b026ff; }
.lg-bar[data-tier="national"]        { --lb: #eaff00; }
.lg-bar[data-tier="national-second"] { --lb: #ff1744; }
.lg-bar[data-tier="sci-q4"]          { --lb: #3ddc84; }
.lg-bar[data-tier="national-first"] {
    --lb: #c800ff;
    background: linear-gradient(90deg, #ff0040, #ff8a00, #ffe600, #37ff00, #00e5ff, #3b5bff, #c800ff, #ff0040);
    background-size: 300% 100%;
    animation: award-rgb-x 6s linear infinite, lg-glow 2.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    .lg-bar { animation: none; }
}
.award-legend-note {
    margin: 0.85rem 0 0;
    padding-top: 0.7rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-gray);
}
.award-legend-note strong { color: var(--text-light); font-weight: 600; }

.award-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
}

.award-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid rgba(0, 255, 65, 0.12);
    border-radius: 12px;
    padding: 1.4rem 1.5rem 1.3rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.award-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 255, 100, 0.16);
    border-color: rgba(0, 255, 100, 0.3);
}

/* —— 分级配色体系（--tier 同时驱动色条 / 徽章 / 年份 / 项目符号）——
   组织级 / 县区级：白    校级：蓝    省市级 / SCI三区：紫
   国家级 / SCI二区：荧光黄    国家级二等：红    SCI四区：绿
   国家级一等 / SCI一区 / 一区一作：RGB 流光（一区一作加皇冠）        */
.award-card { --tier: #b026ff; }                 /* 默认紫（省市级）*/
.award-card[data-tier="org"],
.award-card[data-tier="county"]          { --tier: #e8e8e8; }   /* 白 */
.award-card[data-tier="school"]          { --tier: #2f54b0; }   /* 藏青蓝 */
.award-card[data-tier="provincial"],
.award-card[data-tier="sci-q3"]          { --tier: #b026ff; }   /* 紫 */
.award-card[data-tier="national"],
.award-card[data-tier="sci-q2"]          { --tier: #eaff00; }   /* 荧光黄 */
.award-card[data-tier="national-second"] { --tier: #ff1744; }   /* 红 */
.award-card[data-tier="sci-q4"]          { --tier: #3ddc84; }   /* 绿 */
.award-card[data-tier="national-first"],
.award-card[data-tier="sci-q1"],
.award-card[data-tier="sci-q1-first"]    { --tier: #c46bff; }   /* RGB 卡的年份/符号取色 */

/* 左侧色条：纯色发光条（颜色随 --tier，向卡片内侧辉光）*/
.award-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--tier);
    box-shadow: 0 0 8px var(--tier), 0 0 16px color-mix(in srgb, var(--tier) 55%, transparent);
}

/* 光柱上叠加的烟雾特效：沿左侧光柱极速翻涌的浓彩烟雾（颜色随 --tier，screen 叠加发光）*/
@keyframes award-smoke {
    from { background-position: 0 0,     0 0,      0 0,     0 0;      }
    to   { background-position: 0 -90px, 0 -120px, 0 -70px, 0 -150px; }
}
.award-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 100%;
    pointer-events: none;
    background:
        radial-gradient(14px 26px at 8px 15%,  color-mix(in srgb, var(--tier) 78%, transparent), transparent 68%),
        radial-gradient(12px 20px at 14px 50%, color-mix(in srgb, var(--tier) 64%, transparent), transparent 70%),
        radial-gradient(10px 17px at 5px 80%,  color-mix(in srgb, var(--tier) 56%, transparent), transparent 72%),
        radial-gradient(9px 15px at 16px 35%,  color-mix(in srgb, var(--tier) 48%, transparent), transparent 72%);
    background-size: 100% 90px, 100% 120px, 100% 70px, 100% 150px;
    background-repeat: repeat-y;
    filter: blur(4px);
    mix-blend-mode: screen;
    opacity: 1;
    animation: award-smoke 2.2s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
    .award-card::after { animation: none; }
}

.award-tier {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 1px;
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
    margin-bottom: 0.7rem;
    color: var(--tier);
    background: color-mix(in srgb, var(--tier) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--tier) 45%, transparent);
}

/* —— RGB 流光（国家级一等 / SCI 一区 / 一区一作）—— */
@keyframes award-rgb-y { 0% { background-position: 0 0; }   100% { background-position: 0 -300%; } }
@keyframes award-rgb-x { 0% { background-position: 0 0; }   100% { background-position: 300% 0; } }
.award-card[data-tier="national-first"]::before,
.award-card[data-tier="sci-q1"]::before,
.award-card[data-tier="sci-q1-first"]::before {
    background: linear-gradient(180deg, #ff0040, #ff8a00, #ffe600, #37ff00, #00e5ff, #3b5bff, #c800ff, #ff0040);
    background-size: 100% 300%;
    animation: award-rgb-y 6s linear infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}
.award-card[data-tier="national-first"] .award-tier,
.award-card[data-tier="sci-q1"] .award-tier,
.award-card[data-tier="sci-q1-first"] .award-tier {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(90deg, #ff0040, #ff8a00, #ffe600, #37ff00, #00e5ff, #3b5bff, #c800ff, #ff0040);
    background-size: 300% 100%;
    animation: award-rgb-x 6s linear infinite;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
/* 一区一作：皇冠图标 */
.award-card[data-tier="sci-q1-first"] .award-tier::before { content: '👑 '; }

.award-name {
    font-size: 1.12rem;
    color: var(--text-light);
    line-height: 1.45;
    margin-bottom: 0.5rem;
}

/* 奖项等级 + 级别徽章 同行（级别跟在奖项等级后面，避免顶格被误解为赛事级别）*/
.award-gradeline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.7rem;
}
.award-gradeline .award-grade,
.award-gradeline .award-tier { margin-bottom: 0; }

/* 奖项等级：荧光黄高亮（不随级别变色，强制炸眼睛）*/
.award-grade {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #eaff00;
    text-shadow: 0 0 5px rgba(234, 255, 0, 0.85), 0 0 14px rgba(234, 255, 0, 0.45);
    margin-bottom: 0.7rem;
}

.award-meta {
    font-size: 0.85rem;
    color: var(--text-gray);
}
.award-meta .award-year {
    display: inline-block;
    font-family: 'Consolas', 'Courier New', monospace;
    color: var(--tier);
    letter-spacing: 1px;
    margin-bottom: 0.45rem;
}

/* 获奖人：一人一行 */
.award-team {
    list-style: none;
    margin: 0;
    padding: 0;
}
.award-team li {
    position: relative;
    padding-left: 0.9rem;
    line-height: 1.8;
}
.award-team li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--tier);
}

@media (max-width: 700px) {
    .award-grid { grid-template-columns: 1fr; }
    .award-card { padding: 1.2rem 1.3rem; }
    .award-name { font-size: 1.05rem; }
}

/* =============================================
   AK-style 视觉系统（参考鹰角官网，结构性元素）
   ============================================= */

/* —— 双斜杠双语章节标题 —— */
.ak-section-label {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    width: 100%;
    margin: 0.5rem 0 1.4rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--divider);
    position: relative;
}

.ak-section-label::before {
    content: '//';
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.5);
}

.ak-section-label::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 60px;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.7);
}

.ak-label-en {
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.ak-label-zh {
    color: var(--text-gray);
    font-size: 0.88rem;
    letter-spacing: 3px;
}

/* —— AK 卡片视觉强化（叠加在已有卡片类上）—— */
.feature-card,
.dept-card,
.join-card {
    position: relative;
    overflow: hidden;
    padding-left: 1.9rem;
}

/* 左侧竖条 accent */
.feature-card::before,
.dept-card::before,
.join-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary);
    opacity: 0.55;
    transition: opacity 0.3s ease, width 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover::before,
.dept-card:hover::before,
.join-card:hover::before {
    opacity: 1;
    width: 5px;
    box-shadow: 0 0 14px rgba(0, 255, 65, 0.6);
}

/* hover 扫描线扫过（使用 transform 触发 composite） */
.feature-card::after,
.dept-card::after,
.join-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 65, 0.10),
        rgba(0, 255, 65, 0.18),
        rgba(0, 255, 65, 0.10),
        transparent
    );
    transform: translateX(-130%) skewX(-20deg);
    will-change: transform;
    pointer-events: none;
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.feature-card:hover::after,
.dept-card:hover::after,
.join-card:hover::after {
    transform: translateX(160%) skewX(-20deg);
}

/* HUD 直角括号（左上 + 右下） */
.ak-bracket {
    position: absolute;
    width: 14px;
    height: 14px;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.ak-bracket-tl {
    top: 8px;
    left: 12px;
    border-top: 2px solid var(--primary);
    border-left: 2px solid var(--primary);
}

.ak-bracket-br {
    bottom: 8px;
    right: 8px;
    border-bottom: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
}

.feature-card:hover .ak-bracket,
.dept-card:hover .ak-bracket,
.join-card:hover .ak-bracket {
    opacity: 1;
}

/* feature-tag 改为右上角 AK 风格角标 */
.feature-card {
    padding-top: 1.4rem;
}

.feature-card .feature-tag {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    background: var(--primary);
    color: #060606;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 0.25rem 0.9rem 0.25rem 1.4rem;
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%);
    opacity: 1;
}

/* dept-card 的 dept-tag 数字背景调一下保持一致 */
.dept-card {
    padding-top: 1.6rem;
}

/* —— AK 主按钮：右上角斜切 + hover 扫光 —— */
.btn-primary {
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: translateX(-180%) skewX(-20deg);
    will-change: transform;
    transition: transform 0.55s ease;
    pointer-events: none;
}

.btn-primary:hover::before {
    transform: translateX(220%) skewX(-20deg);
}

.btn-secondary {
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

/* —— 数字 metric 计数动画支持类 —— */
.metric-num {
    transition: text-shadow 0.3s ease;
}

.metric:hover .metric-num {
    text-shadow: 0 0 18px rgba(0, 255, 65, 0.85);
}

/* —— hero eyebrow 上加上一个跑马灯式动效 —— */
.hero-eyebrow {
    position: relative;
    overflow: hidden;
}

.hero-eyebrow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 65, 0.5),
        transparent
    );
    transform: translateX(-100%);
    will-change: transform;
    animation: eyebrow-sweep 3.6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes eyebrow-sweep {
    0%   { transform: translateX(-100%); }
    55%  { transform: translateX(125%); }
    100% { transform: translateX(125%); }
}

/* =============================================
   翻页式 Snap-scroll 系统
   ============================================= */

html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* 隐藏整页滚动条（仍可正常滚动）——Firefox / 旧 Edge */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
/* 隐藏整页滚动条 —— Chrome / Safari / 新 Edge */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* ========= Header: 砍掉 .scrolled 双态机制 =========
   核心问题：toggle .scrolled 会改变 header 高度 → 主内容在 document 里
   位移 → snap-scroll(proximity) 重新对齐 → scrollY 被浏览器改回 → 哨兵
   反向触发 → 再 toggle …… 这是个 layout-driven 反馈环，哨兵和 lockout
   都只能缓解、不能根治。

   现在直接把双态砍掉：header 始终是紧凑高度，不存在状态切换，
   因此不可能产生因高度变化引起的反馈环。代价是失去"hero 满版头部"
   的视觉，但换来零抖动。 */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.6rem 5%;
    background: rgba(10, 10, 10, 0.55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

header .site-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.55);
    /* 品牌 glitch：每 7s 在 87~93% 区间做一次 0.4s 的色差错位
       现在 header 不再有 .scrolled 反馈环、底层有半透明遮罩压住 matrix rain，
       这个动效只是品牌点缀，不再会被读作"标题坏了" */
    animation: glitch 7s infinite 5s;
}

/* 减少动效偏好时关掉 glitch */
@media (prefers-reduced-motion: reduce) {
    header .site-title { animation: none; }
}

/* ===== 一次性全屏入场：terminal 风格 splash =====
   全黑 overlay 盖住整页（z-index:9999），中央打字机两行：
     > AI-LINK
     > THINK BUILD CONNECT
   打完后整块淡出，露出已经在背后预热好的主页。
   prefers-reduced-motion 时由 JS 直接移除 overlay，跳过整段。 */
.intro-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.intro-overlay.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.intro-active {
    overflow: hidden;
}

.intro-terminal {
    font-family: 'Consolas', 'Courier New', monospace;
    color: var(--primary);
    text-align: left;
    padding: 0 1.5rem;
    max-width: 90vw;
}

.intro-line {
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 0 14px rgba(0, 255, 65, 0.55);
    font-family: inherit;
    white-space: nowrap;
    overflow: hidden;
}

.intro-line-main {
    /* 品牌：微软雅黑，字距略收紧 */
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', sans-serif;
    font-size: clamp(1.35rem, 5.8vw, 2.9rem);
    letter-spacing: 0.12em;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.intro-line-sub {
    /* Slogan：Cascadia Code，词内字距收紧（词间停顿由打字逻辑加长）*/
    font-family: 'Cascadia Code', 'Cascadia Mono', 'Consolas', monospace;
    font-size: clamp(0.78rem, 2.2vw, 1.1rem);
    letter-spacing: 0.16em;
    opacity: 0.78;
}

.intro-line[hidden] { display: none; }

.intro-prompt {
    color: var(--primary);
    opacity: 0.55;
    margin-right: 0.5em;
}

.intro-caret {
    display: inline-block;
    color: var(--primary);
    animation: intro-caret-blink 0.85s step-end infinite;
}

.intro-line.line-done .intro-caret { display: none; }

@keyframes intro-caret-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

header .site-subtitle {
    display: none;
}

header > .divider {
    display: none;
}

header .nav-links {
    margin-top: 0;
}

/* Snap 区段 */
.snap-section {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    min-height: 100vh;
    min-height: 100svh;
    box-sizing: border-box;
    padding: 6rem 5% 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.snap-inner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Hero 第一屏特殊处理 */
.snap-hero {
    padding-top: 8rem;
    overflow: hidden;
}

/* Hero 粒子层 */
.hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

.snap-hero > .snap-inner,
.snap-hero > .scroll-hint {
    position: relative;
    z-index: 1;
}

.snap-hero .hero-wrapper {
    margin-bottom: 0;
}

/* 滚动提示 */
.scroll-hint {
    position: absolute;
    bottom: 1.8rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary);
    text-decoration: none;
    font-size: 0.72rem;
    letter-spacing: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.scroll-hint:hover {
    opacity: 1;
}

.scroll-hint .scroll-arrow {
    font-size: 1.2rem;
    animation: hint-bounce 1.8s ease-in-out infinite;
    line-height: 1;
}

@keyframes hint-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50%      { transform: translateY(6px); opacity: 1; }
}

/* 移动端：hero 内容竖向堆叠后已经顶到 section 底部，absolute 定位的
   scroll-hint 会跟 CTA 按钮重叠。改成 inline 流式排版，跟在内容之后，
   自动留出间距。 */
@media (max-width: 700px) {
    .scroll-hint {
        position: static;
        bottom: auto;
        left: auto;
        transform: none;
        margin: 1.4rem auto 0;
        align-self: center;
    }
}

/* Final CTA 大块 */
.final-cta {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.06), rgba(0, 255, 65, 0.02));
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 14px;
    padding: 3rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 255, 65, 0.12), transparent 60%);
    pointer-events: none;
}

.final-cta-eyebrow {
    color: var(--primary);
    font-size: 0.85rem;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.final-cta-title {
    color: var(--text-light);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    position: relative;
}

.final-cta-sub {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    position: relative;
}

.final-cta-actions {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

@media (max-width: 700px) {
    html { scroll-padding-top: 110px; }
    .snap-section { padding: 5rem 5% 2.5rem; }
    .snap-hero { padding-top: 6rem; }
    .final-cta { padding: 2rem 1.4rem; }
    .final-cta-title { font-size: 1.4rem; }
}

/* Hero 文字在 snap 模式下放大 */
.snap-hero .hero-text h1 {
    font-size: 2.6rem;
}

@media (max-width: 700px) {
    .snap-hero .hero-text h1 { font-size: 1.8rem; }
}

/* 区段引导小字 */
.section-intro {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin: -0.6rem 0 1.4rem;
    letter-spacing: 0.5px;
}

/* =============================================
   单页式：右侧 page-dots 导航
   ============================================= */
.page-dots {
    position: fixed;
    right: 1.6rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 0.6rem 0.5rem;
    background: rgba(10, 10, 10, 0.45);
    border: 1px solid rgba(0, 255, 65, 0.15);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.page-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 65, 0.5);
    background: transparent;
    position: relative;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.page-dot:hover {
    background: rgba(0, 255, 65, 0.5);
    transform: scale(1.3);
}

.page-dot.active {
    background: var(--primary);
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.75);
    transform: scale(1.4);
}

/* hover 时浮出 chip-style 标签 */
.page-dot::after {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: rgba(10, 10, 10, 0.92);
    border: 1px solid rgba(0, 255, 65, 0.35);
    color: var(--primary);
    padding: 0.22rem 0.7rem;
    border-radius: 4px;
    font-size: 0.78rem;
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    font-family: 'Microsoft YaHei', sans-serif;
}

.page-dot:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 900px) {
    .page-dots { display: none; }
}

/* Snap-CTA 段强调一下背景 */
.snap-cta {
    background: radial-gradient(circle at 50% 35%, rgba(0, 255, 65, 0.05), transparent 60%);
}

/* Special Thanks 行 */
.special-thanks-row {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--divider);
}

/* =============================================
   i18n：中英语言切换
   ============================================= */

/* 默认 ZH：英文 i18n 跨度隐藏 */
html[data-lang="zh"] .i18n-en { display: none; }
/* EN 模式：中文 i18n 跨度隐藏 */
html[data-lang="en"] .i18n-zh { display: none; }

/* 部门卡：EN 模式让英文名顶替成主标题 */
html[data-lang="en"] .dept-name-zh { display: none; }
html[data-lang="en"] .dept-name-en {
    font-size: 1.55rem;
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

/* AK 章节标题：EN 模式把中文小标签藏掉，英文已是主标题 */
html[data-lang="en"] .ak-label-zh { display: none; }

/* 导航：EN 模式只显英文；ZH 模式跟原来一致 */
html[data-lang="en"] .nav-zh { display: none; }
html[data-lang="en"] .nav-en { display: inline; }

/* 导师卡英文别名 (Errmaker) 之类不需要切换，原样保留 */

/* —— 语言切换按钮 —— */
.lang-toggle {
    position: absolute;
    top: 1.1rem;
    right: 1.4rem;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 999px;
    padding: 0.28rem 0.8rem;
    font-family: inherit;
    color: var(--text-gray);
    font-size: 0.82rem;
    letter-spacing: 1px;
    cursor: pointer;
    z-index: 110;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.lang-toggle:hover {
    background: rgba(0, 255, 65, 0.14);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.35);
    transform: translateY(-1px);
}

.lang-opt {
    transition: color 0.25s ease, text-shadow 0.25s ease;
    cursor: pointer;
}

.lang-sep {
    margin: 0 0.45rem;
    opacity: 0.35;
}

html[data-lang="zh"] .lang-opt[data-lang-set="zh"],
html[data-lang="en"] .lang-opt[data-lang-set="en"] {
    color: var(--primary);
    font-weight: 700;
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.55);
}

/* 移动端：toggle 缩到更小，避免和 nav 撞 */
@media (max-width: 700px) {
    .lang-toggle {
        top: 0.6rem;
        right: 0.8rem;
        padding: 0.22rem 0.6rem;
        font-size: 0.75rem;
    }
    .lang-sep { margin: 0 0.3rem; }
}

/* EN 模式下 fit-row 的中文部门名隐藏，让 fit-dept-en 单独显示 */
html[data-lang="en"] .fit-dept-en {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0;
    margin-left: 0;
}

/* =============================================
   移动端集中适配（≤700px / ≤480px）
   ============================================= */

/* 默认隐藏导航的中文跨度（桌面端 EN + 中文都显示） */
.nav-zh { margin-left: 0.15em; }

@media (max-width: 700px) {
    /* 头部直接进入 compact 状态，不等滚动 */
    header {
        padding: 0.6rem 5% 0.5rem;
    }
    header .site-subtitle,
    header > .divider {
        display: none;
    }
    header .site-title {
        font-size: 1.3rem;
        margin-bottom: 0.4rem;
        letter-spacing: 2px;
    }
    header .nav-links {
        margin-top: 0;
        gap: 1.2rem;
        font-size: 0.92rem;
    }
    /* 导航英文隐藏，只显中文 */
    .nav-en { display: none; }
    .nav-zh { margin-left: 0; }
    .nav-links a.nav-join {
        padding: 0.25rem 0.7rem;
    }

    /* scroll-padding-top 配合新 compact 头高度 */
    html { scroll-padding-top: 70px; }

    /* snap-section padding 收紧 */
    .snap-section {
        padding: 4.5rem 5% 2rem;
    }
    .snap-hero { padding-top: 5.5rem; }

    /* Hero CTA 竖排满宽，触摸目标够大 */
    .hero-cta {
        flex-direction: column;
        gap: 0.7rem;
        width: 100%;
    }
    .hero-cta .btn {
        width: 100%;
        padding: 0.85rem 1.2rem;
        font-size: 0.95rem;
    }
    .hero-tags {
        font-size: 0.78rem !important;
        letter-spacing: 0.5px;
        line-height: 1.75;
    }
    .snap-hero .hero-text h1 {
        font-size: 1.6rem;
        line-height: 1.35;
    }

    /* fit-guide 在窄屏每行变独立卡片 */
    .fit-row {
        background: rgba(0, 255, 65, 0.04);
        border: 1px solid rgba(0, 255, 65, 0.12);
        border-radius: 8px;
        padding: 0.75rem 0.9rem;
        gap: 0.45rem;
        grid-template-columns: 1fr;
    }
    .fit-row .fit-want {
        color: var(--text-light);
        font-size: 0.92rem;
        line-height: 1.55;
    }
    .fit-row .fit-arrow { display: none; }
    .fit-row .fit-dept {
        font-size: 0.95rem;
        padding-top: 0.45rem;
        border-top: 1px dashed rgba(0, 255, 65, 0.2);
        color: var(--primary);
    }
    .fit-guide {
        padding: 1.4rem 1.2rem;
    }
    .fit-guide-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    /* AK 标题缩一档 */
    .ak-label-en {
        font-size: 1.05rem;
        letter-spacing: 2px;
    }
    .ak-label-zh {
        font-size: 0.78rem;
        letter-spacing: 2px;
    }
    .ak-section-label {
        margin: 0.3rem 0 1.1rem;
    }

    /* 终端字号缩小 */
    .terminal-body {
        padding: 0.9rem 1rem;
        font-size: 0.78rem;
        line-height: 1.85;
        min-height: 180px;
    }
    .terminal-header {
        padding: 0.45rem 0.7rem;
    }

    /* Path Finder 内边距收紧 */
    .pf-section {
        padding: 1.4rem 1.2rem;
    }
    .pf-title { font-size: 1.3rem; }
    .pf-chip { font-size: 0.85rem; padding: 0.4rem 0.85rem; }

    /* 指标卡数字 */
    .metric { padding: 0.7rem 0.4rem; }
    .metric-num { font-size: 1.25rem; }
    .metric-label { font-size: 0.7rem; }
    .stack-chip { font-size: 0.7rem; padding: 0.15rem 0.55rem; }

    /* feature/dept/join 卡片内边距收紧 */
    .feature-card,
    .dept-card,
    .join-card {
        padding: 1.4rem 1.2rem 1.4rem 1.6rem;
    }
    .feature-card h3 { font-size: 1.05rem; }
    .feature-card p,
    .dept-desc { font-size: 0.88rem; line-height: 1.65; }
    .dept-name-zh { font-size: 1.35rem; }
    .dept-tag { font-size: 2.2rem; }

    /* 导师卡内边距 */
    .advisor-detail { padding: 1.3rem 1.3rem; }
    .advisor-note { font-size: 0.8rem; }
    .advisor-chip { font-size: 0.72rem; padding: 0.15rem 0.5rem; }

    /* page-dots 已经隐藏（≤900px），无需再设 */
}

/* 更小屏（≤480px）— 团队成员保持双列避免叠 16 行 */
@media (max-width: 480px) {
    .member-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .member-card {
        padding: 0.85rem 0.95rem;
    }
    .member-name { font-size: 1rem; }
    .member-role,
    .member-dept { font-size: 0.74rem; letter-spacing: 0.5px; }
    .role-owner { font-size: 0.78rem; }

    .pf-chip { font-size: 0.8rem; padding: 0.38rem 0.75rem; }
    .pf-actions { flex-direction: column; }
    .pf-actions .btn { width: 100%; }
}

/* ===== 部门 fit-guide ===== */
.fit-guide {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid rgba(0, 255, 65, 0.18);
    border-radius: 12px;
    padding: 1.8rem 2rem;
    margin-bottom: 1rem;
}

.fit-guide-title {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
}

.fit-guide-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.fit-row {
    display: grid;
    grid-template-columns: 1fr auto 220px;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(0, 255, 65, 0.08);
}

.fit-row:last-child {
    border-bottom: none;
}

.fit-want {
    color: var(--text-light);
    font-size: 0.98rem;
}

.fit-arrow {
    color: var(--primary);
    font-weight: 600;
    opacity: 0.7;
}

.fit-dept {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
}

.fit-dept-en {
    color: var(--text-gray);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-left: 0.4rem;
}

.fit-guide-cta {
    margin-top: 1.4rem;
    text-align: center;
}

@media (max-width: 700px) {
    .fit-row {
        grid-template-columns: 1fr;
        gap: 0.3rem;
        text-align: left;
    }
    .fit-arrow { display: none; }
    .fit-dept {
        padding-left: 0;
    }
}

/* ===== 部门负责人 ===== */
.dept-leader {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px dashed rgba(0, 255, 65, 0.15);
    font-size: 0.85rem;
    color: var(--text-gray);
    letter-spacing: 1px;
}

/* ===== About 导师详情 ===== */
.advisor-detail {
    padding: 1.6rem 1.8rem;
}

.advisor-alias {
    color: var(--text-gray);
    font-weight: 400;
    font-size: 0.85rem;
    margin-left: 0.4rem;
}

.advisor-meta {
    color: var(--text-gray);
    font-size: 0.88rem;
    margin-top: 0.3rem;
    line-height: 1.6;
}

.advisor-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.9rem 0 0.6rem;
}

.advisor-chip {
    font-size: 0.78rem;
    color: var(--primary);
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid rgba(0, 255, 65, 0.25);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 1px;
}

.advisor-note {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.65;
    margin-top: 0.5rem;
    padding-top: 0.6rem;
    border-top: 1px dashed rgba(255,255,255,0.08);
}

/* ===== Redirect 占位卡片 ===== */
.redirect-card {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid rgba(0, 200, 255, 0.1);
    border-radius: 12px;
    padding: 2.2rem;
    text-align: center;
    color: var(--text-gray);
}

.redirect-card p {
    margin-bottom: 0.7rem;
}

.redirect-cta {
    margin-top: 1.4rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Recruit 招新页 ===== */
.recruit-main {
    padding-top: 1.5rem;
}

.section-title-left {
    color: var(--text-light);
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--divider);
    width: 100%;
}

/* 终端 */
.terminal {
    width: 100%;
    background: #060606;
    border: 1px solid rgba(0, 255, 65, 0.35);
    border-radius: 10px;
    box-shadow: 0 0 22px rgba(0, 255, 65, 0.15);
    overflow: hidden;
    margin-bottom: 2rem;
}

.terminal-header {
    background: #111;
    padding: 0.55rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

.t-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.t-dot-r { background: #ff5f56; }
.t-dot-y { background: #ffbd2e; }
.t-dot-g { background: #27c93f; }

.t-title {
    margin-left: 0.6rem;
    color: var(--text-gray);
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.terminal-body {
    padding: 1.2rem 1.4rem;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.9;
    min-height: 220px;
}

.t-line {
    color: #7cffb0;
    white-space: pre-wrap;
    word-break: break-word;
}

.t-line-hi {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.7);
    font-weight: 700;
    margin-top: 0.4rem;
}

/* 错误行（Path Finder 没选方向时） */
.t-line-err {
    color: #ff6b6b;
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.45);
}

/* Path Finder 追加到 terminal 的结果行：跟启动行视觉一致，
   加一点点上分距让 boot 段和 result 段视觉分离 */
.t-line.t-result:first-of-type[class*="t-result"] {
    margin-top: 0.6rem;
}

/* Path Finder */
.pf-section {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid rgba(0, 200, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.pf-title {
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
    letter-spacing: 1px;
}

.pf-sub {
    color: var(--text-gray);
    margin-bottom: 1.4rem;
    font-size: 0.95rem;
}

.pf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
}

.pf-chip {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.92rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.22s;
}

.pf-chip:hover {
    border-color: rgba(0, 255, 65, 0.5);
    color: var(--primary);
}

.pf-chip.active {
    background: rgba(0, 255, 65, 0.18);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.pf-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.pf-result {
    margin-top: 1.5rem;
    background: #060606;
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 10px;
    padding: 1.4rem 1.6rem;
    font-family: 'Consolas', 'Courier New', monospace;
}

.pf-result-head {
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
    letter-spacing: 2px;
    opacity: 0.9;
}

.pf-line {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(0, 255, 65, 0.15);
    align-items: start;
}

.pf-line:last-child {
    border-bottom: none;
}

.pf-key {
    color: var(--primary);
    font-size: 0.88rem;
    letter-spacing: 1px;
}

.pf-val {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.7;
}

.pf-path {
    margin: 0;
    padding-left: 1.2rem;
}

.pf-path li {
    margin-bottom: 0.3rem;
}

.pf-res {
    margin: 0;
    padding-left: 1.2rem;
    list-style: none;
}

.pf-res li {
    position: relative;
    padding-left: 0.4rem;
    margin-bottom: 0.3rem;
}

.pf-res li::before {
    content: '▸';
    position: absolute;
    left: -0.9rem;
    color: var(--primary);
    opacity: 0.7;
}

.pf-empty {
    color: var(--text-gray);
    font-style: italic;
}

.pf-result-cta {
    margin-top: 1.4rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .pf-line {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

/* Join 三步 */
.join-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    width: 100%;
}

.join-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 200, 255, 0.1);
    border-radius: 12px;
    padding: 1.6rem 1.4rem;
}

.join-card-label {
    color: var(--primary);
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 0.4rem;
}

.join-card-title {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
    font-weight: 600;
}

.join-card p {
    color: var(--text-gray);
    font-size: 0.92rem;
    line-height: 1.65;
}

.join-card-note {
    margin-top: 0.8rem;
    font-size: 0.82rem;
    color: var(--primary);
    opacity: 0.7;
}

.qr-placeholder {
    margin-top: 1rem;
    background: rgba(0, 255, 65, 0.05);
    border: 1px dashed rgba(0, 255, 65, 0.3);
    border-radius: 6px;
    padding: 1.6rem 1rem;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .join-grid { grid-template-columns: 1fr; }
}

/* Why 列表 */
.why-list {
    list-style: none;
    width: 100%;
}

.why-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--divider);
    color: var(--text-light);
    line-height: 1.75;
}

.why-list li:last-child { border-bottom: none; }

.why-tag {
    display: inline-block;
    color: var(--primary);
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 4px;
    padding: 0.15rem 0.6rem;
    font-size: 0.78rem;
    letter-spacing: 2px;
    margin-right: 0.8rem;
}

.why-list em {
    color: var(--primary);
    font-style: normal;
    font-weight: 600;
}

.why-note {
    margin-top: 1.2rem;
    padding: 0.9rem 1.1rem;
    background: rgba(255, 200, 0, 0.05);
    border-left: 3px solid rgba(255, 200, 0, 0.5);
    border-radius: 4px;
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.7;
}

/* Recruit body 微调 */
.recruit-body {
    background-color: #050505;
}

/* =============================================
   数据成就带（#why 顶部，滚动计数）
   ============================================= */
.stat-band {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    width: 100%;
    margin-bottom: 2.4rem;
    padding: 1.5rem 1rem;
    border: 1px solid rgba(0, 255, 65, 0.18);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(0, 255, 65, 0.055), rgba(0, 255, 65, 0.012));
    box-shadow: inset 0 0 30px rgba(0, 255, 65, 0.04);
}

.stat-cell {
    position: relative;
    text-align: center;
}

.stat-cell + .stat-cell::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 58%;
    background: rgba(0, 255, 65, 0.16);
}

.stat-num {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.08em;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 2.15rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--primary);
    text-shadow: 0 0 12px rgba(0, 255, 65, 0.4);
}

.stat-num .metric-num {
    font-size: inherit;
    margin: 0;
    text-shadow: inherit;
}

.stat-unit {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.85;
}

.stat-label {
    margin-top: 0.45rem;
    font-size: 0.82rem;
    letter-spacing: 1px;
    color: var(--text-gray);
}

@media (max-width: 760px) {
    .stat-band {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.3rem 0.8rem;
        padding: 1.3rem 0.8rem;
    }
    .stat-cell + .stat-cell::before { display: none; }
    .stat-num { font-size: 1.75rem; }
    /* 第 5 项（现役成员）独占一行居中 */
    .stat-cell:last-child { grid-column: 1 / -1; }
}

/* =============================================
   团队部门筛选 + 分色
   ============================================= */
.team-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
}

.tf-chip {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.82rem;
    letter-spacing: 1px;
    color: var(--text-gray);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 65, 0.18);
    border-radius: 999px;
    padding: 0.32rem 0.95rem;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tf-chip:hover {
    color: var(--text-light);
    border-color: rgba(0, 255, 65, 0.45);
}

.tf-chip.active {
    color: #0a0a0a;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 14px rgba(0, 255, 65, 0.35);
    font-weight: 700;
}

/* 部门主题色（左侧描边 + 部门标签着色） */
.member-card[data-dept] { border-left-width: 3px; border-left-style: solid; }
.member-card[data-dept="tech"] { --dept: #00ff41; }
.member-card[data-dept="adm"]  { --dept: #4488ff; }
.member-card[data-dept="plan"] { --dept: #b06bff; }
.member-card[data-dept="fin"]  { --dept: #ffbd2e; }
.member-card[data-dept="pr"]   { --dept: #ff6b9d; }
.member-card[data-dept="art"]  { --dept: #2ee6c0; }
.member-card[data-dept] { border-left-color: var(--dept); }
.member-card[data-dept] .member-dept { color: var(--dept); opacity: 0.92; }

.member-grid .member-card {
    transition: border-color 0.3s ease, box-shadow 0.3s ease,
                opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

/* 筛选态：非匹配项淡出、收缩、去色 */
.team-grid--filtered .tf-dim {
    opacity: 0.12;
    filter: grayscale(1);
    transform: scale(0.97);
    pointer-events: none;
}

/* =============================================
   招新终端：可输入命令
   ============================================= */
.terminal-body {
    max-height: 60vh;
    overflow-y: auto;
}

.t-cmd-echo { color: var(--text-gray); margin-top: 0.2rem; }
.t-cmd-out  { color: #7cffb0; white-space: pre-wrap; }
.t-cmd-out.t-hint { color: var(--text-gray); opacity: 0.7; font-style: italic; }

.t-input-line {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.t-prompt {
    flex: none;
    color: var(--primary);
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}

.t-input {
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-light);
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.9;
    caret-color: var(--primary);
}

/* =============================================
   键盘导航提示（页脚小字）
   ============================================= */
.kbd-hint {
    margin-top: 0.4rem;
    font-size: 0.72rem;
    color: var(--text-gray);
    opacity: 0.55;
    letter-spacing: 0.5px;
}
.kbd-hint kbd {
    font-family: 'Consolas', 'Courier New', monospace;
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid rgba(0, 255, 65, 0.25);
    border-radius: 4px;
    padding: 0 0.35em;
    color: var(--primary);
}
@media (max-width: 760px) { .kbd-hint { display: none; } }
