/* ============================================
   云南省生物大数据重点实验室 — 样板样式
   风格：学术稳重 / 学院派
   ============================================ */

:root {
    --color-primary: #1B3B5F;       /* 深蓝 学院蓝 */
    --color-primary-light: #2C5378; /* 浅蓝 */
    --color-primary-dark: #122844;  /* 深蓝 */
    --color-accent: #5B8E7D;        /* 青绿 */
    --color-accent-light: #7DA99A;  /* 浅青绿 */
    --color-gold: #C9A961;          /* 古铜金 */
    --color-bg: #F8F5EF;            /* 米白 */
    --color-bg-alt: #FFFFFF;        /* 白底 */
    --color-text: #2C2C2C;          /* 主文字 */
    --color-text-light: #5A5A5A;    /* 次文字 */
    --color-text-muted: #8A8A8A;    /* 弱文字 */
    --color-border: #E5E0D5;        /* 描边 */
    --color-border-light: #F0EBE0;
    --color-notice-bg: #FFF8E7;     /* 通知底色 */
    --color-notice-border: #C9A961;
    --shadow-sm: 0 1px 3px rgba(27, 59, 95, 0.06);
    --shadow-md: 0 4px 12px rgba(27, 59, 95, 0.08);
    --shadow-lg: 0 8px 24px rgba(27, 59, 95, 0.10);
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --font-sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
    --container-width: 1240px;
    --header-height: 76px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--color-primary-dark);
    font-weight: 600;
    line-height: 1.4;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   顶部条 - 挂靠信息
   ============================================ */
.topbar {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    padding: 8px 0;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar a {
    color: rgba(255, 255, 255, 0.85);
    margin-left: 20px;
}

.topbar a:hover {
    color: var(--color-gold);
}

/* ============================================
   顶部导航
   ============================================ */
.header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.logo-text {
    line-height: 1.3;
}

.logo-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary-dark);
    letter-spacing: 0.5px;
}

.logo-sub {
    font-size: 12px;
    color: var(--color-text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav a {
    color: var(--color-text);
    font-size: 15px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    position: relative;
}

.nav a:hover {
    color: var(--color-primary);
    background: rgba(27, 59, 95, 0.04);
}

.nav a.active {
    color: var(--color-primary);
    font-weight: 600;
}

.nav a.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--color-gold);
    border-radius: 2px;
}

.nav-cta {
    background: var(--color-primary);
    color: white !important;
    margin-left: 12px;
    padding: 10px 22px !important;
}

.nav-cta:hover {
    background: var(--color-primary-light) !important;
    color: white !important;
}

.lang-switch {
    font-size: 13px;
    color: var(--color-text-light);
    padding: 0 12px;
    border-left: 1px solid var(--color-border);
    margin-left: 8px;
}

.lang-switch a {
    color: var(--color-text-light);
    padding: 4px 8px;
    font-size: 13px;
}

.lang-switch a.active {
    color: var(--color-primary);
    font-weight: 600;
}

/* ============================================
   Hero 区
   ============================================ */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1B3B5F 0%, #2C5378 50%, #5B8E7D 100%);
    color: white;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(201, 169, 97, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(91, 142, 125, 0.25) 0%, transparent 50%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image:
        linear-gradient(rgba(255,255,255,0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.3) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 80px 0;
    max-width: 760px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--color-gold);
    font-weight: 500;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-gold);
}

.hero h1 {
    color: white;
    font-size: 46px;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-sub {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 36px;
    max-width: 640px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--color-gold);
    color: var(--color-primary-dark);
}

.btn-primary:hover {
    background: #D9B97A;
    color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

.btn-ghost {
    background: var(--color-primary);
    color: white;
}

.btn-ghost:hover {
    background: var(--color-primary-light);
    color: white;
}

/* ============================================
   通知条
   ============================================ */
.notice-bar {
    background: var(--color-notice-bg);
    border-bottom: 1px solid var(--color-notice-border);
    padding: 14px 0;
}

.notice-bar .container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notice-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-gold);
    color: var(--color-primary-dark);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.notice-content {
    flex: 1;
    color: var(--color-text);
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.notice-content strong {
    color: var(--color-primary-dark);
    margin-right: 8px;
}

.notice-bar a.more {
    color: var(--color-primary);
    font-size: 13px;
    flex-shrink: 0;
    font-weight: 500;
}

/* ============================================
   区段标题
   ============================================ */
.section {
    padding: 72px 0;
}

.section-alt {
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 4px;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 500;
}

.section-title {
    font-size: 34px;
    color: var(--color-primary-dark);
    margin-bottom: 14px;
    position: relative;
    display: inline-block;
}

.section-title::before,
.section-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--color-gold);
}

.section-title::before {
    right: calc(100% + 20px);
}

.section-title::after {
    left: calc(100% + 20px);
}

.section-sub {
    color: var(--color-text-light);
    font-size: 15px;
    max-width: 640px;
    margin: 0 auto;
}

.section-header.left {
    text-align: left;
}

.section-header.left .section-sub {
    margin: 0;
}

.section-header.left .section-title::before,
.section-header.left .section-title::after {
    display: none;
}

/* ============================================
   网格
   ============================================ */
.grid {
    display: grid;
    gap: 24px;
}

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

@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================
   卡片
   ============================================ */
.card {
    background: white;
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid var(--color-border-light);
    transition: all 0.25s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-border);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 18px;
}

.card h3 {
    font-size: 19px;
    margin-bottom: 10px;
    color: var(--color-primary-dark);
}

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

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--color-accent);
    font-weight: 500;
}

.card-link::after {
    content: "→";
    transition: transform 0.2s ease;
}

.card:hover .card-link::after {
    transform: translateX(4px);
}

/* ============================================
   简介块
   ============================================ */
.intro-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 900px) {
    .intro-block { grid-template-columns: 1fr; }
}

.intro-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
    background: var(--color-border);
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-content h2 {
    font-size: 32px;
    margin-bottom: 18px;
}

.intro-content p {
    color: var(--color-text-light);
    margin-bottom: 16px;
    line-height: 1.85;
}

.intro-meta {
    display: flex;
    gap: 32px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.intro-meta-item {
    flex: 1;
}

.intro-meta-num {
    font-family: var(--font-serif);
    font-size: 32px;
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1;
}

.intro-meta-label {
    font-size: 13px;
    color: var(--color-text-light);
    margin-top: 4px;
}

/* ============================================
   新闻列表
   ============================================ */
.news-list {
    display: flex;
    flex-direction: column;
}

.news-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px dashed var(--color-border);
    align-items: start;
    transition: background 0.2s ease;
}

.news-item:hover {
    background: rgba(91, 142, 125, 0.04);
}

.news-item:first-child { padding-top: 0; }
.news-item:last-child { border-bottom: none; }

.news-date {
    text-align: center;
    color: var(--color-primary);
}

.news-date .day {
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
}

.news-date .ym {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 4px;
    letter-spacing: 1px;
}

.news-body h4 {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
    line-height: 1.5;
}

.news-body h4 a {
    color: var(--color-text);
}

.news-body h4 a:hover {
    color: var(--color-primary);
}

.news-meta {
    font-size: 12px;
    color: var(--color-text-muted);
    display: flex;
    gap: 14px;
    align-items: center;
}

.news-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(91, 142, 125, 0.12);
    color: var(--color-accent);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
}

.news-tag.paper { background: rgba(27, 59, 95, 0.08); color: var(--color-primary); }
.news-tag.event { background: rgba(201, 169, 97, 0.18); color: #8B6F2A; }
.news-tag.notice { background: rgba(220, 53, 69, 0.10); color: #C13040; }

.news-arrow {
    color: var(--color-text-muted);
    font-size: 18px;
    align-self: center;
}

/* ============================================
   研究方向卡片
   ============================================ */
.direction-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.direction-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.direction-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-border);
    position: relative;
}

.direction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.direction-card:hover .direction-image img {
    transform: scale(1.05);
}

.direction-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(27, 59, 95, 0.6) 100%);
}

.direction-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.direction-body h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

.direction-body p {
    color: var(--color-text-light);
    font-size: 14px;
    line-height: 1.7;
    flex: 1;
}

.direction-meta {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border-light);
    font-size: 13px;
    color: var(--color-text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.direction-meta .pi {
    color: var(--color-primary);
    font-weight: 500;
}

/* ============================================
   团队成员
   ============================================ */
.team-leader {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 50px;
    align-items: center;
    background: white;
    padding: 44px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 50px;
}

@media (max-width: 900px) {
    .team-leader { grid-template-columns: 1fr; padding: 28px; }
}

.team-leader-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-border);
}

.team-leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-leader-info .role {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--color-accent);
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 10px;
}

.team-leader-info h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.team-leader-info .title {
    color: var(--color-text-light);
    font-size: 15px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--color-border);
}

.team-leader-info p {
    color: var(--color-text-light);
    line-height: 1.85;
    margin-bottom: 14px;
}

.team-leader-info .stats {
    display: flex;
    gap: 32px;
    margin-top: 20px;
}

.team-leader-info .stat-num {
    font-family: var(--font-serif);
    font-size: 26px;
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1;
}

.team-leader-info .stat-label {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 4px;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1100px) { .member-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .member-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .member-grid { grid-template-columns: 1fr; } }

.member-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    transition: all 0.25s ease;
    text-align: center;
}

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

.member-photo {
    aspect-ratio: 1;
    background: var(--color-border);
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.member-card:hover .member-photo img {
    filter: grayscale(0%);
}

.member-info {
    padding: 18px 16px;
}

.member-name {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 4px;
}

.member-title {
    font-size: 12px;
    color: var(--color-text-light);
}

.member-research {
    font-size: 12px;
    color: var(--color-accent);
    margin-top: 6px;
}

/* ============================================
   工具和数据库
   ============================================ */
.tools-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    color: var(--color-text);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
}

.filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.filter-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.tool-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--color-border-light);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.tool-head {
    display: flex;
    align-items: start;
    gap: 14px;
    margin-bottom: 14px;
}

.tool-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.tool-info h3 {
    font-size: 17px;
    margin-bottom: 2px;
    font-family: var(--font-sans);
    font-weight: 600;
}

.tool-info .tool-cat {
    font-size: 12px;
    color: var(--color-text-muted);
    letter-spacing: 1px;
}

.tool-card p {
    color: var(--color-text-light);
    font-size: 13px;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 16px;
}

.tool-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border-light);
}

.tool-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tool-actions {
    display: flex;
    gap: 8px;
}

.tool-actions a {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    transition: all 0.2s ease;
}

.tool-actions a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(27, 59, 95, 0.04);
}

.tool-actions a.primary {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.tool-actions a.primary:hover {
    background: var(--color-primary-light);
    color: white;
}

/* ============================================
   联系我们
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: start;
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: rgba(27, 59, 95, 0.08);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.contact-item-body h4 {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.contact-item-body p {
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.6;
}

.contact-form {
    background: white;
    padding: 36px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-size: 22px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 6px;
}

.form-group label .req {
    color: #C13040;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    background: white;
}

textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

.form-submit {
    width: 100%;
    padding: 13px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: var(--font-sans);
}

.form-submit:hover {
    background: var(--color-primary-light);
}

.map-box {
    aspect-ratio: 16 / 9;
    background: var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 30px;
}

.map-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   页脚
   ============================================ */
.footer {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 56px 0 24px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

@media (max-width: 800px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .logo-title {
    color: white;
}

.footer-brand .logo-sub {
    color: rgba(255, 255, 255, 0.5);
}

.footer-brand p {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

.footer-col h4 {
    color: white;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
    margin-left: 16px;
}

.footer-bottom a:hover {
    color: var(--color-gold);
}

/* ============================================
   面包屑 + 页面头
   ============================================ */
.page-header {
    background: linear-gradient(135deg, #1B3B5F 0%, #2C5378 100%);
    color: white;
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 90% 50%, rgba(201, 169, 97, 0.12) 0%, transparent 50%);
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 14px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: var(--color-gold);
}

.breadcrumb .sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.4);
}

.page-header h1 {
    color: white;
    font-size: 38px;
    margin-bottom: 12px;
}

.page-header .sub {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    max-width: 720px;
}

/* ============================================
   进度筛选条
   ============================================ */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 36px;
    padding: 18px 22px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    align-items: center;
}

.filter-label {
    font-size: 13px;
    color: var(--color-text-light);
    margin-right: 4px;
    font-weight: 500;
}

.filter-pill {
    padding: 5px 14px;
    background: var(--color-bg);
    border: 1px solid transparent;
    border-radius: 100px;
    color: var(--color-text-light);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.filter-pill.active {
    background: var(--color-accent);
    color: white;
}

/* ============================================
   工具提示/标签
   ============================================ */
.pill {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(27, 59, 95, 0.08);
    color: var(--color-primary);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
}

/* ============================================
   滚动渐入
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        animation: fadeInUp 0.6s ease backwards;
    }
    .fade-in:nth-child(2) { animation-delay: 0.05s; }
    .fade-in:nth-child(3) { animation-delay: 0.10s; }
    .fade-in:nth-child(4) { animation-delay: 0.15s; }
    .fade-in:nth-child(5) { animation-delay: 0.20s; }
    .fade-in:nth-child(6) { animation-delay: 0.25s; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 768px) {
    :root { --header-height: 60px; }
    .nav { display: none; }
    .hero h1 { font-size: 32px; }
    .hero-sub { font-size: 16px; }
    .section { padding: 50px 0; }
    .section-title { font-size: 26px; }
    .section-title::before, .section-title::after { display: none; }
    .page-header h1 { font-size: 28px; }
    .news-item { grid-template-columns: 70px 1fr; gap: 16px; }
    .news-arrow { display: none; }
    .topbar { font-size: 11px; }
    .topbar a { margin-left: 12px; }
}

/* ============================================
   下拉导航
   ============================================ */
.nav .has-dropdown {
    position: relative;
}

.nav .has-dropdown > a::after {
    content: "▾";
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.6;
    display: inline-block;
    transition: transform 0.2s ease;
}

.nav .has-dropdown:hover > a::after {
    transform: translateY(2px);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 200px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border-light);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 200;
}

.nav-dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.nav .has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
    display: block;
    padding: 10px 14px;
    color: var(--color-text);
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    font-weight: 400;
}

.nav-dropdown a:hover {
    background: rgba(27, 59, 95, 0.06);
    color: var(--color-primary);
    padding-left: 18px;
}

.nav-dropdown a.active {
    color: var(--color-primary);
    background: rgba(91, 142, 125, 0.08);
    font-weight: 600;
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--color-border-light);
    margin: 6px 0;
}

.nav-dropdown-desc {
    display: block;
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 2px;
    font-weight: 400;
}

/* ============================================
   招生招聘
   ============================================ */
.admission-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 36px;
}

.admission-tab {
    padding: 14px 28px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-light);
    cursor: pointer;
    position: relative;
    font-family: var(--font-sans);
    transition: color 0.2s ease;
}

.admission-tab:hover {
    color: var(--color-primary);
}

.admission-tab.active {
    color: var(--color-primary-dark);
    font-weight: 600;
}

.admission-tab.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: var(--color-gold);
    border-radius: 2px;
}

.admission-tab .count {
    display: inline-block;
    background: var(--color-border);
    color: var(--color-text-light);
    padding: 1px 8px;
    border-radius: 100px;
    font-size: 12px;
    margin-left: 6px;
}

.admission-tab.active .count {
    background: var(--color-primary);
    color: white;
}

.position-card {
    background: white;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 20px;
    transition: all 0.25s ease;
    position: relative;
}

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

.position-card.urgent {
    border-left: 4px solid var(--color-gold);
}

.position-card.urgent::before {
    content: "急聘";
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--color-gold);
    color: var(--color-primary-dark);
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    letter-spacing: 1px;
}

.position-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
    padding-right: 70px;
}

.position-title {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--color-primary-dark);
    margin-bottom: 6px;
    font-weight: 600;
}

.position-meta {
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: var(--color-text-light);
    flex-wrap: wrap;
}

.position-meta span::before {
    content: "·";
    margin-right: 14px;
    color: var(--color-border);
}

.position-meta span:first-child::before { display: none; }

.position-body {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 14px;
}

.position-requirements {
    background: var(--color-bg);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.position-requirements h4 {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.position-requirements ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.position-requirements li {
    font-size: 13px;
    color: var(--color-text-light);
    padding: 3px 0 3px 18px;
    position: relative;
    line-height: 1.7;
}

.position-requirements li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.position-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px dashed var(--color-border-light);
}

.position-deadline {
    font-size: 13px;
    color: var(--color-text-muted);
}

.position-deadline strong {
    color: var(--color-primary);
    margin-right: 4px;
}

.position-actions {
    display: flex;
    gap: 8px;
}

.position-actions a {
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    transition: all 0.2s ease;
}

.position-actions a.primary {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.position-actions a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.position-actions a.primary:hover {
    background: var(--color-primary-light);
    color: white;
    border-color: var(--color-primary-light);
}

/* 招生流程 */
.admission-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 40px;
    position: relative;
}

@media (max-width: 768px) {
    .admission-process { grid-template-columns: repeat(2, 1fr); }
}

.process-step {
    text-align: center;
    padding: 20px;
    position: relative;
}

.process-step-num {
    width: 50px;
    height: 50px;
    margin: 0 auto 14px;
    background: white;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.process-step h4 {
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--color-primary-dark);
    margin-bottom: 6px;
    font-weight: 600;
}

.process-step p {
    font-size: 12px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.admission-process::before {
    content: "";
    position: absolute;
    top: 45px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
}

/* ============================================
   开放课题
   ============================================ */
.grant-timeline {
    position: relative;
    margin: 30px 0;
}

.grant-timeline::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.grant-tl-item {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 24px;
    margin-bottom: 30px;
    align-items: start;
}

.grant-tl-marker {
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    z-index: 1;
    position: relative;
}

.grant-tl-item.done .grant-tl-marker {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.grant-tl-item.active .grant-tl-marker {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: white;
    box-shadow: 0 0 0 6px rgba(201, 169, 97, 0.2);
}

.grant-tl-body {
    background: white;
    border-radius: var(--radius-md);
    padding: 22px;
    border: 1px solid var(--color-border-light);
}

.grant-tl-body h4 {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--color-primary-dark);
    margin-bottom: 6px;
}

.grant-tl-date {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.grant-tl-body p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.7;
}

.grant-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    font-size: 14px;
}

.grant-table thead {
    background: var(--color-primary);
    color: white;
}

.grant-table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.grant-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text);
}

.grant-table tbody tr:hover {
    background: var(--color-bg);
}

.grant-table tbody tr:last-child td {
    border-bottom: none;
}

.grant-table .pi-name {
    color: var(--color-primary);
    font-weight: 500;
}

.grant-table .amount {
    font-family: var(--font-serif);
    color: var(--color-gold);
    font-weight: 600;
}

.grant-table .status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
}

.grant-table .status.ongoing { background: rgba(91, 142, 125, 0.15); color: var(--color-accent); }
.grant-table .status.completed { background: rgba(27, 59, 95, 0.08); color: var(--color-primary); }

.download-card {
    background: white;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.download-card:hover {
    border-color: var(--color-accent);
    background: var(--color-bg);
}

.download-icon {
    width: 44px;
    height: 44px;
    background: rgba(27, 59, 95, 0.08);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.download-info {
    flex: 1;
}

.download-info h4 {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--color-text);
}

.download-info p {
    font-size: 12px;
    color: var(--color-text-muted);
}

.download-btn {
    padding: 7px 16px;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
}

.download-btn:hover {
    background: var(--color-primary-light);
    color: white;
}

/* ============================================
   学术报告
   ============================================ */
.seminar-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    padding: 28px;
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 28px;
    margin-bottom: 20px;
    transition: all 0.25s ease;
}

@media (max-width: 768px) {
    .seminar-card { grid-template-columns: 1fr; gap: 20px; }
}

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

.seminar-card.upcoming {
    border-left: 4px solid var(--color-gold);
}

.seminar-card.live {
    border-left: 4px solid #C13040;
    background: linear-gradient(90deg, rgba(193, 48, 64, 0.02), transparent 30%);
}

.seminar-date {
    text-align: center;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    padding: 16px 10px;
    align-self: start;
}

.seminar-date .day {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1;
}

.seminar-date .month {
    font-size: 12px;
    color: var(--color-text-light);
    letter-spacing: 1px;
    margin-top: 4px;
    text-transform: uppercase;
}

.seminar-date .time {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
    font-size: 12px;
    color: var(--color-text-light);
}

.seminar-body h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.seminar-speaker {
    color: var(--color-accent);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.seminar-aff {
    color: var(--color-text-light);
    font-size: 13px;
    margin-bottom: 12px;
}

.seminar-abs {
    color: var(--color-text-light);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.seminar-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.seminar-tag {
    background: var(--color-bg);
    color: var(--color-text-light);
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 11px;
}

.seminar-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    min-width: 110px;
}

.seminar-actions a {
    text-align: center;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    transition: all 0.2s ease;
}

.seminar-actions a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.seminar-actions a.primary {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.seminar-actions a.primary:hover {
    background: var(--color-primary-light);
    color: white;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #C13040;
    color: white;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.live-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ============================================
   出版物
   ============================================ */
.pub-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
    padding: 36px;
    border-radius: var(--radius-md);
    margin-bottom: 40px;
}

@media (max-width: 768px) { .pub-stats { grid-template-columns: repeat(2, 1fr); } }

.pub-stat-num {
    font-family: var(--font-serif);
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
}

.pub-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 4px;
}

.pub-item {
    background: white;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 14px;
    transition: all 0.2s ease;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
    align-items: center;
}

@media (max-width: 768px) { .pub-item { grid-template-columns: 1fr; } }

.pub-item:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-sm);
}

.pub-year {
    text-align: center;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    padding: 10px;
}

.pub-year-num {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1;
}

.pub-year-label {
    font-size: 11px;
    color: var(--color-text-light);
    letter-spacing: 1px;
    margin-top: 2px;
}

.pub-content h4 {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.5;
    margin-bottom: 8px;
}

.pub-content h4 a {
    color: var(--color-text);
}

.pub-content h4 a:hover {
    color: var(--color-primary);
}

.pub-authors {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 6px;
}

.pub-authors strong {
    color: var(--color-primary);
}

.pub-journal {
    font-size: 12px;
    color: var(--color-text-light);
    font-style: italic;
}

.pub-journal .if {
    color: var(--color-gold);
    font-style: normal;
    font-weight: 600;
    margin-left: 8px;
}

.pub-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}

.pub-actions a {
    text-align: center;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    transition: all 0.2s ease;
}

.pub-actions a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.pub-actions a.primary {
    background: rgba(27, 59, 95, 0.06);
    color: var(--color-primary);
    border-color: transparent;
}

.pub-patent {
    display: inline-block;
    padding: 1px 8px;
    background: rgba(201, 169, 97, 0.15);
    color: #8B6F2A;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    margin-left: 6px;
}

/* ============================================
   管理后台 Mockup
   ============================================ */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
    background: #F4F6F9;
    font-size: 14px;
}

.admin-sidebar {
    background: #1B3B5F;
    color: rgba(255, 255, 255, 0.8);
    padding: 20px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-brand {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #5B8E7D 0%, #C9A961 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
}

.admin-brand-text {
    line-height: 1.3;
}

.admin-brand-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.admin-brand-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.admin-nav-section {
    margin-bottom: 20px;
}

.admin-nav-section-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    padding: 0 24px 8px;
    font-weight: 500;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: white;
    border-left-color: rgba(255, 255, 255, 0.2);
}

.admin-nav a.active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-left-color: var(--color-gold);
}

.admin-nav-icon {
    width: 18px;
    text-align: center;
    font-size: 15px;
    opacity: 0.7;
}

.admin-nav-badge {
    margin-left: auto;
    background: var(--color-gold);
    color: var(--color-primary-dark);
    font-size: 10px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 100px;
}

.admin-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-topbar {
    background: white;
    border-bottom: 1px solid #E5E0D5;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-page-title {
    font-size: 18px;
    color: var(--color-primary-dark);
    font-family: var(--font-serif);
    font-weight: 600;
}

.admin-breadcrumb {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 2px;
}

.admin-topbar-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.admin-icon-btn {
    width: 36px;
    height: 36px;
    background: #F4F6F9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    cursor: pointer;
    transition: background 0.2s ease;
}

.admin-icon-btn:hover { background: #E8ECF1; }

.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 16px;
    border-left: 1px solid #E5E0D5;
}

.admin-user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 13px;
}

.admin-user-info {
    line-height: 1.3;
}

.admin-user-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
}

.admin-user-role {
    font-size: 11px;
    color: var(--color-text-muted);
}

.admin-content {
    padding: 28px 32px;
    flex: 1;
}

.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

@media (max-width: 1100px) { .admin-stats-row { grid-template-columns: repeat(2, 1fr); } }

.admin-stat-card {
    background: white;
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #EBEEF3;
}

.admin-stat-label {
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.admin-stat-num {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1;
}

.admin-stat-trend {
    font-size: 12px;
    color: var(--color-accent);
    margin-top: 8px;
}

.admin-stat-trend.down { color: #C13040; }

.admin-grid-2 {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 1100px) { .admin-grid-2 { grid-template-columns: 1fr; } }

.admin-panel {
    background: white;
    border-radius: 8px;
    border: 1px solid #EBEEF3;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
}

.admin-panel-head {
    padding: 18px 22px;
    border-bottom: 1px solid #EBEEF3;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-panel-title {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.admin-panel-link {
    font-size: 12px;
    color: var(--color-accent);
    font-weight: 500;
}

.admin-panel-body { padding: 4px 0; }

.admin-row {
    padding: 14px 22px;
    border-bottom: 1px solid #F4F6F9;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 14px;
    align-items: center;
    font-size: 13px;
}

.admin-row:last-child { border-bottom: none; }

.admin-row-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(91, 142, 125, 0.12);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.admin-row-icon.pending { background: rgba(201, 169, 97, 0.18); color: #8B6F2A; }
.admin-row-icon.danger { background: rgba(193, 48, 64, 0.12); color: #C13040; }

.admin-row-content h5 {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 2px;
}

.admin-row-content p {
    font-size: 12px;
    color: var(--color-text-muted);
}

.admin-row-time {
    font-size: 11px;
    color: var(--color-text-muted);
}

.admin-row-action {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--color-bg);
    color: var(--color-text);
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
}

.admin-row-action:hover {
    background: var(--color-primary);
    color: white;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: #F8F9FB;
}

.admin-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.admin-table td {
    padding: 14px 16px;
    border-top: 1px solid #F4F6F9;
    font-size: 13px;
    color: var(--color-text);
}

.admin-table tbody tr:hover {
    background: #FAFBFC;
}

.admin-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
}

.admin-status.published { background: rgba(91, 142, 125, 0.15); color: var(--color-accent); }
.admin-status.draft { background: rgba(150, 150, 150, 0.15); color: #6B7280; }
.admin-status.review { background: rgba(201, 169, 97, 0.18); color: #8B6F2A; }

.admin-action-link {
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 500;
    margin-right: 12px;
}

.admin-action-link.danger { color: #C13040; }

.admin-quick-action {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

@media (max-width: 800px) { .admin-quick-action { grid-template-columns: repeat(2, 1fr); } }

.admin-quick-btn {
    background: white;
    border: 1px solid #EBEEF3;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.admin-quick-btn:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.admin-quick-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.admin-quick-btn h5 {
    font-size: 13px;
    color: var(--color-text);
    font-weight: 600;
    margin-bottom: 2px;
}

.admin-quick-btn p {
    font-size: 11px;
    color: var(--color-text-muted);
}

.admin-publish-btn {
    padding: 9px 20px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
}

.admin-publish-btn:hover {
    background: var(--color-primary-light);
}

.admin-info-banner {
    background: linear-gradient(135deg, rgba(91, 142, 125, 0.08), rgba(27, 59, 95, 0.04));
    border-left: 4px solid var(--color-accent);
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-info-banner strong {
    color: var(--color-primary-dark);
}

@media (max-width: 768px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .admin-stats-row { grid-template-columns: 1fr 1fr; }
}

/* ========================
   CSP-friendly replacements
   ======================== */

/* skip-link: 替代 inline JS onfocus/onblur */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 10px 20px;
  background: var(--color-primary-dark);
  color: white;
  text-decoration: none;
}
.skip-link:focus,
.skip-link:focus-within {
  left: 0;
  outline: 2px solid var(--color-gold);
}

/* resource-card hover: 替代 inline JS onmouseover/onmouseout */
.card.resource-card {
  text-decoration: none;
  color: inherit;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid var(--color-primary-dark);
}
.card.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(27, 59, 95, 0.15);
}

/* 分享按钮 disabled 态 */
button[data-share-link]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
