/* 内页专用视觉层（v6）：首页 index.html 不加载本文件，保持优化前样式 */
/* ============================================================
   v6 视觉优化层 · 蓝色科技感 / 教育培训气质
   约束：零内容改动，仅覆盖样式；不改任何 HTML / JS / 板块结构
   语言：深蓝数据底 + 细网格 + 微光描边 + 等宽数据 + 衬线标题
   ============================================================ */
:root {
  --tech-navy: #062a56;
  --tech-blue: #0b57b8;
  --tech-bright: #2b8ff0;
  --tech-cyan: #7ad4ff;
  --tech-grid: rgba(43, 143, 240, .07);
  --tech-line: #cfe0f5;
  --tech-radius: 6px;
  --tech-glow: 0 0 0 1px rgba(43, 143, 240, .16), 0 12px 30px rgba(8, 50, 110, .10);
  --tech-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --muted: #5c6a80;
}

body {
  background-color: var(--paper);
  background-image: linear-gradient(var(--tech-grid) 1px, transparent 1px), linear-gradient(90deg, var(--tech-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
}

/* ---------- 导航：细光带 + 清晰的选中态 ---------- */
.site-header { border-bottom: 1px solid var(--tech-line); }
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--tech-bright), transparent); opacity: .7;
}
.nav-links a { border-radius: var(--tech-radius); }
.nav-links a:hover { background: rgba(43, 143, 240, .08); }
.nav-links a.active::after { background: linear-gradient(90deg, var(--tech-bright), var(--tech-cyan)); }

/* ---------- 按钮：蓝阶渐变 + 统一焦点 ---------- */
.btn { border-radius: var(--tech-radius); }
.btn-primary { background: linear-gradient(135deg, #0a55bc, #0f6fd8 55%, #2b8ff0); }
.btn-primary:hover { background: linear-gradient(135deg, #0a55bc, #0f6fd8 55%, #2b8ff0); box-shadow: 0 10px 26px rgba(11, 98, 207, .32); }
.btn-dark { background: linear-gradient(135deg, #0a3168, #0d2b52); }
.btn-map { border-radius: var(--tech-radius); min-height: 42px; }

/* ---------- 首屏：深蓝数据底 + 网格 + 光晕 ---------- */
.tpl-hero {
  background: radial-gradient(ellipse 62% 70% at 50% 6%, rgba(122, 212, 255, .20), transparent 70%), linear-gradient(135deg, #062a56 0%, #0a4a9c 48%, #0b6bd3 100%);
}
.tpl-hero::before {
  background-image: linear-gradient(rgba(255, 255, 255, .065) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .065) 1px, transparent 1px), radial-gradient(circle at 12% 78%, rgba(122, 212, 255, .24), transparent 22%), radial-gradient(circle at 88% 24%, rgba(122, 212, 255, .18), transparent 20%);
  background-size: 52px 52px, 52px 52px, auto, auto;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .32));
}
.tpl-hero::after { height: 2px; background: linear-gradient(90deg, transparent, rgba(122, 212, 255, .85), transparent); }
.tpl-hero-logo { filter: drop-shadow(0 8px 22px rgba(0, 20, 60, .24)); }
.tpl-hero h1 { text-shadow: 0 2px 24px rgba(3, 25, 60, .28); }
.tpl-hero .tpl-rule { width: 88px; background: linear-gradient(90deg, transparent, #fff, transparent); }
.tpl-hero .hero-lead { color: rgba(255, 255, 255, .94); }
.tpl-hero .hero-sub { color: rgba(255, 255, 255, .92); }
.tpl-hero .btn-ghost { border-color: rgba(255, 255, 255, .82); backdrop-filter: blur(4px); }
.tpl-hero .btn-white { box-shadow: 0 8px 24px rgba(3, 28, 70, .22); }
.tpl-hero-meta { border-top-color: rgba(122, 212, 255, .28); }
.tpl-hero-meta div { border-right-color: rgba(255, 255, 255, .14); }
.tpl-hero-meta strong { font-family: var(--tech-mono); font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.tpl-hero-meta span { color: rgba(255, 255, 255, .84); }

/* ---------- tab 条：深蓝渐变 + 发光指示 ---------- */
.tpl-tabs { background: linear-gradient(90deg, #072c5c, #0a3f7d 50%, #072c5c); }
.tpl-tabs a { color: rgba(255, 255, 255, .84); min-height: 48px; display: flex; align-items: center; justify-content: center; }
.tpl-tabs a.on::after { height: 2px; background: linear-gradient(90deg, var(--tech-cyan), #fff); box-shadow: 0 0 12px rgba(122, 212, 255, .7); }

/* ---------- 标题系统：渐变短规则线 ---------- */
.tpl-head h2::after, .section-head.center h2::after, .page-head h1::after { width: 62px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--tech-blue), var(--tech-cyan)); }
.page-head h1::after, .tpl-history .tpl-head h2::after { background: linear-gradient(90deg, transparent, #fff, transparent); }
.eyebrow::before { width: 26px; background: linear-gradient(90deg, var(--tech-blue), var(--tech-cyan)); }

/* ---------- 卡片组件：统一圆角 / 描边 / 悬浮态 ---------- */
.card, .notice-item, .campus-card, .photo-item, .info-card, .panel, .form-card, .creed-item, .faq-list details, .upload-zone { border-radius: var(--tech-radius); border-color: var(--tech-line); }
.card:hover, .campus-card:hover, .photo-item:hover { box-shadow: var(--tech-glow); border-color: rgba(43, 143, 240, .45); }
.notice-item { position: relative; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.notice-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--tech-bright), var(--tech-cyan)); }
.notice-item:hover { border-color: rgba(43, 143, 240, .45); box-shadow: var(--tech-glow); }
.notice-item .n-index, .card-index, .stat strong, .process-item .num, .culture-item .tag, .hp-year { font-family: var(--tech-mono); font-variant-numeric: tabular-nums; }
.tag-list span, .status-pill, .course-card .badge { border-radius: var(--tech-radius); }
.process-item { position: relative; transition: background .25s; }
.process-item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--tech-bright), transparent); opacity: 0; transition: opacity .25s; }
.process-item:hover { background: #fbfdff; }
.process-item:hover::before { opacity: 1; }
.process-item .num { color: #a9cdf3; }
.culture-item { border-bottom-color: var(--tech-line); }
.culture-item .tag { letter-spacing: 1.6px; }
.creed-item::before { color: #b9d7f5; }

/* ---------- 发展历程：网格深蓝 + 玻璃数据面板 ---------- */
.tpl-history { background: linear-gradient(120deg, #062a56, #0a3f7d 60%, #062f63); }
.tpl-history::after {
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(180deg, rgba(6, 40, 90, .76), rgba(8, 52, 110, .66));
  background-size: 48px 48px, 48px 48px, auto;
}
.year-axis button.on::before { box-shadow: 0 0 0 6px rgba(122, 212, 255, .18), 0 0 18px rgba(122, 212, 255, .8); }
.history-panel { border-radius: var(--tech-radius); background: rgba(9, 44, 92, .55); border: 1px solid rgba(122, 212, 255, .28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); backdrop-filter: blur(6px); }

/* ---------- 内页页头 / CTA / 页脚：统一深蓝节奏 ---------- */
.page-head { background: linear-gradient(120deg, #062a56, #0a4a9c 55%, #1473cf); }
.page-head::before { background-size: 48px 48px; }
.account-head { background: linear-gradient(120deg, #062a56, #0a3f7d); }
.cta { position: relative; overflow: hidden; background: linear-gradient(120deg, #062a56, #0a4a9c 55%, #0b6bd3); }
.cta::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; mask-image: linear-gradient(90deg, transparent, #000); }
.cta-inner { position: relative; z-index: 1; }
.photo-band::after { background: linear-gradient(90deg, rgba(6, 42, 90, .94), rgba(10, 80, 160, .62)); }
.site-footer { position: relative; background: #051f42; }
.site-footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(122, 212, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(122, 212, 255, .045) 1px, transparent 1px); background-size: 48px 48px; }
.site-footer .container { position: relative; z-index: 1; }
.footer-bottom { color: rgba(255, 255, 255, .62); }

/* ---------- 表单焦点 ---------- */
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--tech-bright); box-shadow: 0 0 0 3px rgba(43, 143, 240, .18); }

/* ---------- 无障碍：键盘焦点 / 触摸目标 / 减弱动效 ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--tech-bright); outline-offset: 2px; }
@media (min-width: 761px) { .nav-links a { min-height: 44px; display: inline-flex; align-items: center; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---------- 窄屏：关闭网格与玻璃效果，保证性能与可读性 ---------- */
@media (max-width: 760px) {
  body { background-image: none; background-attachment: scroll; }
  .tpl-hero::before { background-image: radial-gradient(ellipse at 50% 16%, rgba(122, 212, 255, .22), transparent 72%); mask-image: none; }
  .tpl-history::after { background-image: linear-gradient(180deg, rgba(6, 40, 90, .88), rgba(8, 52, 110, .78)); }
  .cta::before, .site-footer::before, .page-head::before { display: none; }
  .history-panel { backdrop-filter: none; }
  .tpl-tabs a { min-height: 44px; display: flex; align-items: center; justify-content: center; }
}
