/* ==========================================================================
   青澜AI科创孵化平台 · 全站样式
   北京青澜云启科技有限公司
   ========================================================================== */

:root {
  --brand-900: #062a38;
  --brand-800: #083a4d;
  --brand-700: #0b5169;
  --brand-600: #0e7490;
  --brand-500: #169ab8;
  --brand-400: #2bb3cd;
  --brand-300: #7fd4e6;
  --brand-100: #e3f5fa;
  --brand-50: #f2fafc;

  --accent: #17c3b2;
  --accent-dark: #0fa192;
  --accent-soft: #e6faf7;

  --warn: #f59e0b;
  --danger: #e11d48;

  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2edf2;
  --line-2: #eff6f9;
  --bg: #f6fafc;
  --white: #ffffff;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(6, 42, 56, .06), 0 1px 3px rgba(6, 42, 56, .04);
  --shadow: 0 4px 12px rgba(6, 42, 56, .07), 0 2px 4px rgba(6, 42, 56, .04);
  --shadow-lg: 0 18px 40px rgba(6, 42, 56, .12), 0 4px 10px rgba(6, 42, 56, .05);
  --grad: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-500) 55%, var(--accent) 100%);
  --grad-deep: linear-gradient(150deg, #05232f 0%, #0b4f66 48%, #0e7490 100%);
  --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC",
    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.35; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 2.35rem; letter-spacing: -.5px; }
h2 { font-size: 1.72rem; letter-spacing: -.3px; }
h3 { font-size: 1.16rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
a { color: var(--brand-600); text-decoration: none; transition: color .18s; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding-left: 1.15em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 860px; }

.section { padding: 66px 0; }
.section-sm { padding: 44px 0; }
.section-alt { background: var(--white); }
.section-deep { background: var(--grad-deep); color: #d8eef5; }
.section-deep h1, .section-deep h2, .section-deep h3 { color: #fff; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--brand-600); background: var(--brand-100);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.section-head h2 { margin-bottom: 6px; }
.section-head .desc { color: var(--muted); font-size: .94rem; max-width: 660px; margin: 0; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center .desc { margin: 0 auto; }

.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 16px; height: 68px; flex-wrap: nowrap; }

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(14, 116, 144, .3); }
.logo-text { line-height: 1.15; min-width: 0; }
.logo-text b { display: block; font-size: 1.02rem; color: var(--ink); letter-spacing: .3px; white-space: nowrap; }
.logo-text span { display: block; font-size: .64rem; color: var(--muted-2); letter-spacing: .7px; text-transform: uppercase; white-space: nowrap; }

/* 导航恒为单行：不换行，靠下方断点逐级收紧字号与内边距 */
.nav { display: flex; align-items: center; justify-content: flex-end; gap: 1px; margin-left: auto; flex-wrap: nowrap; }
.nav a {
  padding: 8px 9px; border-radius: 9px; font-size: .92rem; color: var(--ink-2); font-weight: 500;
  white-space: nowrap; transition: all .18s;
}
.nav a:hover { background: var(--brand-50); color: var(--brand-600); }
.nav a.active { color: var(--brand-600); background: var(--brand-100); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.nav-toggle { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: .92rem; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: all .18s; white-space: nowrap; text-decoration: none; line-height: 1.4;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(14, 116, 144, .28); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(14, 116, 144, .36); }
.btn-ghost { background: var(--white); color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { color: var(--brand-600); border-color: var(--brand-300); background: var(--brand-50); }
.btn-light { background: rgba(255, 255, 255, .13); color: #fff; border-color: rgba(255, 255, 255, .34); }
.btn-light:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn-accent { background: var(--accent); color: #04322c; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: 13px 28px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .76rem; padding: 3px 9px; border-radius: 6px;
  background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--line);
  white-space: nowrap;
}
.tag-accent { background: var(--accent-soft); color: var(--accent-dark); border-color: #c4f0e9; }
.tag-warn { background: #fff7e6; color: #b45309; border-color: #fde3b0; }
.tag-muted { background: #f1f5f9; color: var(--muted); border-color: #e2e8f0; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 15px; border-radius: 999px; font-size: .87rem; font-weight: 500;
  background: var(--white); color: var(--ink-2); border: 1px solid var(--line); cursor: pointer;
  transition: all .16s; font-family: inherit;
}
.chip:hover { border-color: var(--brand-300); color: var(--brand-600); }
.chip.active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: all .2s; position: relative; overflow: hidden;
}
.card:hover { border-color: var(--brand-300); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-flat { transition: none; }
.card-flat:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--line); }

.feature-card { padding: 26px 24px; }
.feature-card .fc-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-100); font-size: 1.35rem; margin-bottom: 15px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .91rem; margin-bottom: 12px; }
.feature-card ul { font-size: .86rem; color: var(--muted); }
.feature-card li { margin-bottom: 4px; }

/* 解决方案卡片 */
.sol-card { display: flex; flex-direction: column; min-height: 100%; }
.sol-card .sol-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sol-card .sol-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.sol-card h3 { margin: 0; font-size: 1.06rem; }
.sol-card .sol-sum { color: var(--muted); font-size: .89rem; flex: 1; margin-bottom: 14px; }
.sol-card .sol-meta { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 14px; border-top: 1px dashed var(--line); }

/* 智能体卡片 */
.agent-card { display: flex; flex-direction: column; }
.agent-card .ac-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.agent-card .ac-logo {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(140deg, var(--brand-100), #f0fbfd); border: 1px solid var(--line);
}
.agent-card .ac-title { font-size: 1.04rem; font-weight: 700; color: var(--ink); margin-bottom: 3px; line-height: 1.4; }
.agent-card .ac-dev { font-size: .79rem; color: var(--muted-2); }
.agent-card .ac-sum { font-size: .89rem; color: var(--muted); flex: 1; margin-bottom: 13px; }
.agent-card .ac-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 13px; border-top: 1px dashed var(--line); }
.agent-card .ac-stats { display: flex; gap: 12px; font-size: .8rem; color: var(--muted-2); }
.agent-card .ac-stats b { color: var(--brand-600); font-weight: 700; }

/* 资讯卡片 */
.news-card { display: flex; flex-direction: column; }
.news-card .nc-cat { font-size: .76rem; font-weight: 700; color: var(--brand-600); letter-spacing: .5px; margin-bottom: 9px; }
.news-card h3 { font-size: 1.05rem; margin-bottom: 9px; line-height: 1.5; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--brand-600); }
.news-card .nc-sum { font-size: .89rem; color: var(--muted); flex: 1; margin-bottom: 14px; }
.news-card .nc-foot { display: flex; align-items: center; justify-content: space-between; font-size: .79rem; color: var(--muted-2); padding-top: 12px; border-top: 1px dashed var(--line); }
.news-list-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.news-list-item .nli-date {
  flex-shrink: 0; width: 74px; text-align: center; border-right: 1px solid var(--line); padding-right: 18px;
}
.news-list-item .nli-date b { display: block; font-size: 1.5rem; color: var(--brand-600); line-height: 1.2; }
.news-list-item .nli-date span { font-size: .76rem; color: var(--muted-2); }
.news-list-item h3 { font-size: 1.06rem; margin-bottom: 6px; }
.news-list-item p { font-size: .89rem; color: var(--muted); margin-bottom: 8px; }

/* 活动卡片 */
.event-card { display: flex; gap: 18px; align-items: stretch; }
.event-card .ec-date {
  flex-shrink: 0; width: 82px; border-radius: 12px; background: var(--brand-50);
  border: 1px solid var(--line); display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 12px 6px;
}
.event-card .ec-date b { font-size: 1.55rem; color: var(--brand-600); line-height: 1.1; }
.event-card .ec-date span { font-size: .74rem; color: var(--muted); }
.event-card .ec-body { flex: 1; min-width: 0; }
.event-card h3 { font-size: 1.04rem; margin-bottom: 7px; }
.event-card .ec-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.event-card .ec-sum { font-size: .88rem; color: var(--muted); margin-bottom: 12px; }

/* ---------- 首页 Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--grad-deep); color: #cfe9f2; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 46px 46px;
}
.hero::after {
  content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -220px;
  background: radial-gradient(circle, rgba(23, 195, 178, .34), transparent 68%);
  filter: blur(6px); pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; padding: 78px 0 70px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  color: #b8e6f2; padding: 6px 15px; border-radius: 999px; margin-bottom: 22px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(23, 195, 178, .25); }
.hero h1 { color: #fff; font-size: 3rem; line-height: 1.2; margin-bottom: 18px; max-width: 900px; letter-spacing: -1px; }
.hero h1 .hl { background: linear-gradient(120deg, #6fe3ff, #17c3b2); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .hero-sub { font-size: 1.06rem; line-height: 1.85; color: #a9d4e2; max-width: 760px; margin-bottom: 16px; }
.hero-pillars { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 32px; }
.hero-pillars span {
  font-size: .88rem; font-weight: 600; color: #d7f0f8; padding: 7px 16px;
  border-radius: 999px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .17);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 46px; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); overflow: hidden; }
.hero-stats .hs { background: rgba(4, 34, 46, .5); padding: 20px 22px; backdrop-filter: blur(3px); }
/* 数字放大、单位（亿 / +）缩小：以数字为视觉主体 */
.hero-stats .hs b { display: block; font-size: 1.02rem; color: #fff; line-height: 1.15; font-weight: 600; }
.hero-stats .hs b em { font-size: 2.4rem; font-style: normal; color: var(--accent); font-weight: 700; margin-right: 3px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.hero-stats .hs span { font-size: .84rem; color: #96c4d4; }

/* ---------- 页面头（内页） ---------- */
.page-hero { background: var(--grad-deep); color: #cfe9f2; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 46px 46px;
}
.page-hero .container { position: relative; z-index: 2; padding: 54px 22px 50px; }
.page-hero h1 { color: #fff; font-size: 2.3rem; margin-bottom: 12px; }
.page-hero p { color: #a9d4e2; max-width: 780px; font-size: 1rem; margin: 0; }
.crumb { font-size: .82rem; color: #8bb8c9; margin-bottom: 16px; }
.crumb a { color: #8bb8c9; }
.crumb a:hover { color: #fff; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--danger); margin-left: 3px; }
.field .hint { font-size: .78rem; color: var(--muted-2); }
input[type="text"], input[type="password"], input[type="email"], input[type="tel"],
input[type="date"], input[type="datetime-local"], input[type="number"], select, textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-size: .92rem; font-family: inherit; color: var(--ink); background: var(--white);
  transition: border-color .16s, box-shadow .16s; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(22, 154, 184, .13); }
textarea { resize: vertical; min-height: 96px; line-height: 1.7; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-row label { display: inline-flex; align-items: center; gap: 6px; font-size: .87rem; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.checkbox-row input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--brand-600); }

.form-note { font-size: .8rem; color: var(--muted-2); margin-top: 4px; }

/* ---------- 面板 / 侧栏 ---------- */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; }

.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 26px; align-items: start; }
.aside-sticky { position: sticky; top: 88px; }

.kv { display: flex; flex-direction: column; gap: 12px; }
.kv-row { display: flex; gap: 12px; font-size: .89rem; }
.kv-row dt { color: var(--muted); flex-shrink: 0; width: 76px; margin: 0; }
.kv-row dd { margin: 0; color: var(--ink-2); font-weight: 500; }

.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--brand-300), var(--accent)); border-radius: 2px; }
.timeline-item { position: relative; padding-bottom: 26px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -26px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--white); border: 3px solid var(--brand-500);
}
.timeline-item h4 { margin-bottom: 4px; }
.timeline-item p { font-size: .89rem; color: var(--muted); margin: 0; }
.timeline-item .step-no { font-size: .75rem; font-weight: 700; color: var(--accent-dark); letter-spacing: .8px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 640px; }
th { text-align: left; padding: 13px 16px; background: var(--brand-50); color: var(--ink); font-weight: 700; font-size: .84rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--brand-50); }
td .tag { margin-right: 4px; }

/* ---------- 分页 ---------- */
.pagination { display: flex; gap: 7px; justify-content: center; align-items: center; margin-top: 30px; flex-wrap: wrap; }
.pagination button {
  min-width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--white); color: var(--ink-2); font-size: .88rem; font-family: inherit;
  cursor: pointer; transition: all .16s; padding: 0 10px;
}
.pagination button:hover:not(:disabled) { border-color: var(--brand-300); color: var(--brand-600); }
.pagination button.active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; font-weight: 600; }
.pagination button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- 空态 / 加载 ---------- */
.empty { text-align: center; padding: 54px 20px; color: var(--muted-2); }
.empty .empty-icon { font-size: 2.4rem; margin-bottom: 12px; opacity: .6; }
.skeleton { background: linear-gradient(90deg, #eef4f7 25%, #f7fbfd 50%, #eef4f7 75%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-line { height: 13px; margin-bottom: 9px; }
.skeleton-card { height: 190px; }

/* ---------- 弹层 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(6, 34, 46, .55);
  display: flex; align-items: center; justify-content: center; padding: 22px;
  backdrop-filter: blur(3px); animation: fadeIn .18s;
}
.modal {
  background: var(--white); border-radius: var(--radius-lg); width: 100%; max-width: 640px;
  max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: popIn .2s;
}
.modal.modal-lg { max-width: 820px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 26px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--white); z-index: 2; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.modal-head h3 { margin: 0; }
.modal-head .modal-sub { font-size: .84rem; color: var(--muted); margin: 4px 0 0; }
.modal-close { border: none; background: transparent; font-size: 1.5rem; line-height: 1; color: var(--muted-2); cursor: pointer; padding: 0 4px; }
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 22px 26px; }
.modal-foot { padding: 16px 26px 22px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- 提示条 ---------- */
#toast-box { position: fixed; top: 84px; right: 22px; z-index: 400; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 240px; max-width: 380px; padding: 13px 17px; border-radius: 11px;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  font-size: .89rem; display: flex; gap: 10px; align-items: flex-start;
  animation: slideIn .22s; border-left: 4px solid var(--brand-500);
}
.toast.success { border-left-color: var(--accent); }
.toast.error { border-left-color: var(--danger); }
.toast b { display: block; color: var(--ink); margin-bottom: 2px; }
.toast .toast-close { margin-left: auto; border: none; background: none; color: var(--muted-2); cursor: pointer; font-size: 1.1rem; line-height: 1; }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ---------- 页脚 ---------- */
.site-footer { background: #05202b; color: #8fb4c2; padding: 56px 0 26px; font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer a { color: #8fb4c2; display: block; margin-bottom: 9px; font-size: .86rem; }
.site-footer a:hover { color: var(--brand-300); }
.site-footer .f-brand .logo-text b { color: #fff; }
.site-footer .f-brand .logo-text span { color: #6d94a3; }
.site-footer .f-desc { margin: 16px 0 0; font-size: .85rem; line-height: 1.8; color: #7ba2b1; max-width: 330px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .9); border-top-color: rgba(255, 255, 255, .09); padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: #6d94a3; }
.footer-bottom .f-links a { display: inline; margin-right: 14px; }

/* ---------- 登录/注册 ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-left { background: var(--grad-deep); color: #cfe9f2; padding: 62px 56px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.auth-left::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.auth-left > * { position: relative; z-index: 2; }
.auth-left h2 { color: #fff; font-size: 1.9rem; margin-bottom: 14px; }
.auth-left p { color: #a9d4e2; max-width: 420px; }
.auth-left ul { margin-top: 24px; }
.auth-left li { margin-bottom: 11px; color: #bcdce7; font-size: .92rem; }
.auth-right { display: flex; align-items: center; justify-content: center; padding: 44px 22px; background: var(--white); }
.auth-card { width: 100%; max-width: 400px; }
.auth-tabs { display: flex; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 11px; padding: 4px; margin-bottom: 24px; }
.auth-tabs button { flex: 1; padding: 9px; border: none; background: transparent; border-radius: 8px; font-family: inherit; font-size: .9rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .16s; }
.auth-tabs button.active { background: var(--white); color: var(--brand-600); box-shadow: var(--shadow-sm); }

/* ---------- 会员中心 ---------- */
.console-tabs { display: flex; gap: 5px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; }
.console-tabs button {
  padding: 11px 18px; border: none; background: none; font-family: inherit; font-size: .92rem;
  font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent;
  white-space: nowrap; transition: all .16s; margin-bottom: -1px;
}
.console-tabs button:hover { color: var(--brand-600); }
.console-tabs button.active { color: var(--brand-600); border-bottom-color: var(--brand-600); }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.stat-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat-card b { display: block; font-size: 1.75rem; color: var(--brand-600); line-height: 1.2; }
.stat-card span { font-size: .84rem; color: var(--muted); }

/* ---------- 富文本内容 ---------- */
.article-body { font-size: 1rem; line-height: 1.95; color: var(--ink-2); }
.article-body h3 { margin: 30px 0 12px; font-size: 1.2rem; padding-left: 12px; border-left: 4px solid var(--brand-500); }
.article-body p { margin-bottom: 16px; }
.article-body strong { color: var(--ink); }
.article-body em { color: var(--muted); font-style: normal; font-size: .89rem; }

/* ---------- 通用工具类 ---------- */
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.flex-center { display: flex; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.text-c { text-align: center; } .text-r { text-align: right; }
.muted { color: var(--muted); } .muted-sm { color: var(--muted); font-size: .86rem; }
.small { font-size: .84rem; }
.strong { font-weight: 700; color: var(--ink); }
.hidden { display: none !important; }

.search-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.search-bar input { flex: 1; min-width: 200px; }
.search-box { position: relative; }
.search-box input { padding-left: 38px; }
.search-box .sb-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: .95rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s cubic-bezier(.2, .7, .3, 1), transform .55s cubic-bezier(.2, .7, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

.notice-bar { background: var(--brand-50); border: 1px solid var(--line); border-left: 4px solid var(--brand-500); border-radius: 10px; padding: 13px 18px; font-size: .88rem; color: var(--ink-2); }

/* ---------- 响应式 ---------- */

/* 顶部导航：中等屏幕切紧凑模式 —— 隐藏 logo 英文副标题、收紧字号与内边距，仍保持单行 */
@media (max-width: 1200px) {
  .site-header .container { gap: 12px; }
  .logo-text span { display: none; }
  .nav a { padding: 8px 7px; font-size: .86rem; }
  .header-actions { gap: 7px; }
  .header-actions .btn { padding-left: 14px; padding-right: 14px; }
}

@media (max-width: 1080px) {
  .layout-aside { grid-template-columns: 1fr; }
  .aside-sticky { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero h1 { font-size: 2.1rem; }
  .hero-inner { padding: 52px 0 48px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .hs { padding: 16px 18px; }
  .hero-stats .hs b em { font-size: 2rem; }
  .page-hero h1 { font-size: 1.75rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; min-height: auto; }
  .auth-left { display: none; }
  .section { padding: 46px 0; }
  .event-card { flex-direction: column; }
  .event-card .ec-date { width: 100%; flex-direction: row; gap: 8px; }
  .news-list-item .nli-date { width: 58px; padding-right: 12px; }
  #toast-box { left: 16px; right: 16px; top: 78px; }
  .toast { max-width: none; }
}
/* 顶部导航：窄屏改汉堡抽屉，避免导航被压成两行（阈值留足余量，防止字体渲染差异导致换行） */
@media (max-width: 1100px) {
  .site-header .container { gap: 10px; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 10px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); gap: 2px; }
  .nav.open { display: flex; }
  .nav a { padding: 11px 14px; font-size: .95rem; }
  .nav-toggle { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; font-size: 1.1rem; color: var(--ink-2); }
  .header-actions .btn-hide-sm { display: none; }
  #toast-box { top: 78px; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.8rem; }
  .container { padding: 0 16px; }
}

@media print { .site-header, .site-footer, .hero-cta, .btn { display: none !important; } }
