/* ==========================================================================
   大连泰核网络工程有限公司 · 官网样式
   风格定位：简约大气 —— 深蓝主色、大留白、细线条、无冗余装饰
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  /* 主色：深海蓝，呼应网络与工程 */
  --brand-900: #0a1c33;
  --brand-800: #10294a;
  --brand-700: #163a63;
  --brand-600: #1d4e86;
  --brand-500: #2464ab;
  --brand-400: #4a8bd0;
  --brand-100: #e8f0f9;
  --brand-50:  #f4f8fc;

  /* 辅助色：科技青，用于点缀与状态 */
  --accent-500: #0fa3a3;
  --accent-100: #dcf5f4;

  /* 中性色 */
  --ink-900: #10161f;
  --ink-800: #1e2732;
  --ink-700: #3a4653;
  --ink-500: #64707e;
  --ink-400: #8b95a3;
  --ink-300: #c3cad3;
  --line:     #e4e9ef;
  --line-soft:#eef2f6;
  --surface:  #ffffff;
  --surface-alt: #f7f9fb;

  /* 语义色 */
  --ok-500:   #2a9d5c;
  --warn-500: #d98a12;
  --err-500:  #d64545;

  /* 排版 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
               "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* 尺度 */
  --shell: 1200px;
  --gutter: 24px;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;

  /* 阴影：克制，只用于卡片悬浮与浮层 */
  --shadow-s: 0 1px 2px rgba(16, 28, 51, .05);
  --shadow-m: 0 6px 20px rgba(16, 28, 51, .08);
  --shadow-l: 0 18px 48px rgba(16, 28, 51, .14);

  /* 动效 */
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-800);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-500); }

/* 键盘可达性：所有可聚焦元素都有清晰焦点环 */
:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- 布局骨架 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--alt { background: var(--surface-alt); }

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
}

/* ---------- 标题体系 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--brand-600);
  text-transform: uppercase;
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--brand-500);
  border-radius: 2px;
}

.h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.22; font-weight: 700; color: var(--ink-900); letter-spacing: -.01em; }
.h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.28; font-weight: 700; color: var(--ink-900); letter-spacing: -.01em; }
.h3 { font-size: 20px; line-height: 1.4; font-weight: 600; color: var(--ink-900); }
.h4 { font-size: 17px; line-height: 1.45; font-weight: 600; color: var(--ink-900); }

.lead { font-size: 17px; line-height: 1.85; color: var(--ink-500); margin: 18px 0 0; }
.muted { color: var(--ink-500); }
.tiny  { font-size: 13px; color: var(--ink-400); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.btn--primary { background: var(--brand-600); color: #fff; }
.btn--primary:hover:not([disabled]) { background: var(--brand-500); color: #fff; box-shadow: var(--shadow-m); }

.btn--ghost { background: transparent; color: var(--brand-700); border-color: var(--ink-300); }
.btn--ghost:hover:not([disabled]) { border-color: var(--brand-500); color: var(--brand-600); background: var(--brand-50); }

.btn--light { background: #fff; color: var(--brand-700); }
.btn--light:hover:not([disabled]) { background: var(--brand-50); color: var(--brand-800); box-shadow: var(--shadow-m); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--outline-light:hover:not([disabled]) { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }

.btn--block { width: 100%; }
.btn--sm { padding: 8px 16px; font-size: 14px; }

/* ---------- 顶部导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s var(--ease);
}
.header--scrolled { box-shadow: var(--shadow-m); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink-900); }
.brand:hover { color: var(--ink-900); }
.brand__mark {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.02em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name { font-size: 16px; font-weight: 700; letter-spacing: .01em; }
.brand__sub  { font-size: 11px; color: var(--ink-400); letter-spacing: .08em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  padding: 8px 14px;
  border-radius: var(--radius-s);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
}
.nav__link:hover { background: var(--brand-50); color: var(--brand-700); }
.nav__link--active { color: var(--brand-700); font-weight: 600; }

.header__actions { display: flex; align-items: center; gap: 10px; }

/* 用户菜单 */
.usermenu { position: relative; }
.usermenu__trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: inherit; font-size: 14px; font-weight: 500; color: var(--ink-700);
  cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.usermenu__trigger:hover { border-color: var(--brand-400); box-shadow: var(--shadow-s); }
.usermenu__avatar {
  width: 28px; height: 28px; flex: none;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600;
}
.usermenu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-l);
  z-index: 70;
}
.usermenu__panel[hidden] { display: none; }
.usermenu__head { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
.usermenu__name { font-size: 14px; font-weight: 600; color: var(--ink-900); word-break: break-all; }
.usermenu__item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 14px;
  border: 0; border-radius: var(--radius-s);
  background: transparent;
  font-family: inherit; font-size: 14px; color: var(--ink-700);
  text-align: left; cursor: pointer;
}
.usermenu__item:hover { background: var(--brand-50); color: var(--brand-700); }

/* 移动端菜单开关 */
.navtoggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.navtoggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink-800);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.navtoggle span + span { margin-top: 4.5px; }
.navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .navtoggle { display: grid; }
  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-m);
  }
  .nav[hidden] { display: none; }
  .nav__link { padding: 12px 14px; }
  .brand__sub { display: none; }
}

/* ---------- 页头横幅 ---------- */
.pagehead {
  background:
    radial-gradient(1000px 420px at 88% -10%, rgba(74, 139, 208, .3), transparent 60%),
    linear-gradient(135deg, var(--brand-900), var(--brand-700));
  color: #fff;
  padding: 84px 0;
  position: relative;
  overflow: hidden;
}
.pagehead::after {
  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: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent);
  pointer-events: none;
}
.pagehead > * { position: relative; z-index: 1; }
.pagehead .eyebrow { color: #9cc4ec; }
.pagehead .eyebrow::before { background: #9cc4ec; }
.pagehead__title { color: #fff; margin: 0; }
.pagehead__lead { color: rgba(255, 255, 255, .78); max-width: 640px; margin-top: 16px; }

.crumbs { display: flex; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .6); margin-bottom: 18px; }
.crumbs a { color: rgba(255, 255, 255, .75); }
.crumbs a:hover { color: #fff; }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: 28px; }
.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: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid { gap: 18px; }
}

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 110px;
  background:
    radial-gradient(900px 460px at 78% 8%, rgba(74, 139, 208, .32), transparent 62%),
    radial-gradient(700px 380px at 8% 92%, rgba(15, 163, 163, .2), transparent 60%),
    linear-gradient(140deg, var(--brand-900) 0%, var(--brand-800) 48%, var(--brand-700) 100%);
  color: #fff;
  overflow: hidden;
}
.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: 64px 64px;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 64px;
  align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-size: 13px; font-weight: 500; letter-spacing: .04em;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 26px;
}
.hero__title { color: #fff; margin: 0; }
.hero__title em { font-style: normal; color: #7fc4ff; }
.hero__lead {
  color: rgba(255, 255, 255, .8);
  font-size: 17px;
  line-height: 1.85;
  max-width: 540px;
  margin: 22px 0 0;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero__stat-num {
  font-size: 32px; font-weight: 700; line-height: 1.2;
  color: #fff; letter-spacing: -.01em;
}
.hero__stat-label { font-size: 13px; color: rgba(255, 255, 255, .62); margin-top: 2px; }

/* Hero 视觉：纯 CSS 构建的等距网络图，无需图片资源 */
.hero__visual { position: relative; }
.hero__panel {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-l);
  padding: 30px;
  backdrop-filter: blur(8px);
}
.hero__panel-title { font-size: 14px; color: rgba(255, 255, 255, .72); letter-spacing: .06em; margin-bottom: 22px; }
.hero__nodes { display: grid; gap: 14px; }
.hero__node {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-m);
}
.hero__node-icon {
  width: 36px; height: 36px; flex: none;
  border-radius: 9px;
  background: rgba(127, 196, 255, .16);
  color: #9ccdff;
  display: grid; place-items: center;
}
.hero__node-name { font-size: 14px; font-weight: 600; color: #fff; }
.hero__node-desc { font-size: 12px; color: rgba(255, 255, 255, .55); }
.hero__node-dot {
  width: 7px; height: 7px; flex: none; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, .2);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74, 222, 128, .2); }
  50%      { box-shadow: 0 0 0 7px rgba(74, 222, 128, .06); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__node-dot { animation: none; }
  * { transition-duration: .01ms !important; }
}

@media (max-width: 980px) {
  .hero { padding: 80px 0 70px; }
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__stats { gap: 28px; }
  .hero__stat-num { font-size: 26px; }
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 30px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.card--hover:hover { border-color: var(--brand-400); box-shadow: var(--shadow-m); transform: translateY(-3px); }
.card__icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  background: var(--brand-50);
  color: var(--brand-600);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.card__title { margin: 0 0 10px; font-size: 18px; font-weight: 600; color: var(--ink-900); }
.card__text { margin: 0; color: var(--ink-500); font-size: 15px; line-height: 1.8; }
.card__more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px;
  font-size: 14px; font-weight: 600; color: var(--brand-600);
}
.card__more svg { transition: transform .2s var(--ease); }
.card:hover .card__more svg { transform: translateX(3px); }

/* 服务卡片（数据来自云端数据库） */
.svc-card { display: flex; flex-direction: column; height: 100%; }
.svc-card__code {
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  color: var(--brand-400); text-transform: uppercase;
}
.svc-card__tagline { font-size: 13px; color: var(--ink-400); margin: 6px 0 0; }
.svc-card__features { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.svc-card__features li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--ink-700);
}
.svc-card__features li::before {
  content: "";
  position: absolute; left: 2px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-500);
}

/* 卡片骨架屏 */
.skeleton {
  border-radius: var(--radius-m);
  background: linear-gradient(90deg, var(--surface-alt) 25%, #eef3f8 50%, var(--surface-alt) 75%);
  background-size: 300% 100%;
  animation: shimmer 1.4s linear infinite;
  min-height: 220px;
}
@keyframes shimmer { to { background-position: -300% 0; } }

/* ---------- 特色 / 优势条 ---------- */
.feature {
  display: flex; gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
}
.feature:last-child { border-bottom: 0; }
.feature__num {
  font-size: 15px; font-weight: 700;
  color: var(--brand-400);
  letter-spacing: .06em;
  flex: none; width: 44px;
  padding-top: 3px;
}
.feature__title { margin: 0 0 6px; font-size: 17px; font-weight: 600; color: var(--ink-900); }
.feature__text { margin: 0; color: var(--ink-500); font-size: 15px; line-height: 1.8; }

@media (max-width: 620px) {
  .feature { flex-direction: column; gap: 8px; }
  .feature__num { width: auto; }
}

/* ---------- 流程步骤 ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 74px; padding-bottom: 34px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 700;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute; left: 25px; top: 58px; bottom: 12px;
  width: 1px; background: var(--line);
}
.step__title { margin: 6px 0 8px; font-size: 17px; font-weight: 600; color: var(--ink-900); }
.step__text { margin: 0; color: var(--ink-500); font-size: 15px; line-height: 1.8; }

/* ---------- CTA 区块 ---------- */
.cta {
  background:
    radial-gradient(700px 340px at 82% 10%, rgba(74, 139, 208, .28), transparent 62%),
    linear-gradient(135deg, var(--brand-800), var(--brand-900));
  color: #fff;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.cta__inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 36px; flex-wrap: wrap;
}
.cta__title { color: #fff; margin: 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; }
.cta__text { color: rgba(255, 255, 255, .74); margin: 10px 0 0; font-size: 15px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.table th { background: var(--surface-alt); font-weight: 600; color: var(--ink-900); font-size: 14px; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table td { color: var(--ink-700); }

/* ---------- 表单 ---------- */
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 8px; }
.field__label { font-size: 14px; font-weight: 600; color: var(--ink-800); }
.field__label .req { color: var(--err-500); margin-left: 3px; }
.field__hint { font-size: 12px; color: var(--ink-400); }

.input, .select, .textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-s);
  background: var(--surface);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink-900);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-400); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(36, 100, 171, .14);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--err-500); }
.textarea { min-height: 132px; resize: vertical; line-height: 1.7; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364707e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 38px;
}

.field__error { font-size: 13px; color: var(--err-500); min-height: 18px; }

/* 文件上传 */
.uploader {
  border: 1px dashed var(--ink-300);
  border-radius: var(--radius-m);
  padding: 24px;
  text-align: center;
  background: var(--surface-alt);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.uploader:hover { border-color: var(--brand-400); background: var(--brand-50); }
.uploader__icon { color: var(--ink-400); margin-bottom: 10px; }
.uploader__text { font-size: 14px; color: var(--ink-500); }
.uploader__text b { color: var(--brand-600); }

.filelist { margin-top: 14px; display: grid; gap: 10px; }
.fileitem {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface);
}
.fileitem__icon { color: var(--brand-500); flex: none; }
.fileitem__body { min-width: 0; flex: 1; }
.fileitem__name {
  font-size: 14px; font-weight: 500; color: var(--ink-900);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fileitem__meta { font-size: 12px; color: var(--ink-400); }
.fileitem__act {
  border: 0; background: transparent; cursor: pointer;
  color: var(--ink-400); padding: 4px; border-radius: 4px;
  display: grid; place-items: center;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.fileitem__act:hover { color: var(--err-500); background: #fdecec; }
.fileitem__badge {
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
  background: var(--ok-500); color: #fff;
  flex: none;
}

.progress {
  height: 3px; border-radius: 3px; overflow: hidden;
  background: var(--line-soft);
}
.progress__bar {
  height: 100%; width: 0;
  background: var(--brand-500);
  border-radius: 3px;
  transition: width .3s var(--ease);
}

/* ---------- 提示条 ---------- */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-m);
  border: 1px solid;
  font-size: 14px;
  line-height: 1.7;
}
.alert svg { flex: none; margin-top: 2px; }
.alert--ok    { background: #eefaf2; border-color: #bce6cd; color: #1f7a45; }
.alert--err   { background: #fdecec; border-color: #f5c6c6; color: #a83232; }
.alert--info  { background: var(--brand-50); border-color: #cfe0f1; color: var(--brand-700); }
.alert--warn  { background: #fdf6e8; border-color: #f2ddb4; color: #96650c; }
.alert[hidden] { display: none; }

/* ---------- 模态框 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(16, 28, 51, .5);
  backdrop-filter: blur(3px);
  animation: fadeIn .2s var(--ease);
}
.modal[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal__box {
  width: 100%;
  max-width: 430px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  animation: rise .25s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

.modal__head {
  padding: 26px 30px 0;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.modal__title { margin: 0; font-size: 21px; font-weight: 700; color: var(--ink-900); }
.modal__sub { margin: 6px 0 0; font-size: 14px; color: var(--ink-500); }
.modal__close {
  width: 32px; height: 32px; flex: none;
  border: 0; border-radius: var(--radius-s);
  background: var(--surface-alt); color: var(--ink-500);
  cursor: pointer; display: grid; place-items: center;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.modal__close:hover { background: var(--line-soft); color: var(--ink-900); }
.modal__body { padding: 22px 30px 30px; }

/* 登录选项卡 */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-alt); border-radius: var(--radius-s); margin-bottom: 22px; }
.tabs__btn {
  flex: 1;
  padding: 9px 12px;
  border: 0; border-radius: 4px;
  background: transparent;
  font-family: inherit; font-size: 14px; font-weight: 500; color: var(--ink-500);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.tabs__btn[aria-selected="true"] { background: var(--surface); color: var(--brand-700); font-weight: 600; box-shadow: var(--shadow-s); }

.code-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; }

.divider {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0;
  color: var(--ink-400); font-size: 13px;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.wx-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface);
  font-family: inherit; font-size: 15px; font-weight: 500; color: var(--ink-700);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.wx-btn:hover:not([disabled]) { border-color: #07c160; background: #f0fbf5; color: #06ad56; }
.wx-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- 用户中心 ---------- */
.portal { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
@media (max-width: 860px) { .portal { grid-template-columns: 1fr; gap: 24px; } }

.portal__side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px;
  position: sticky; top: 92px;
}
@media (max-width: 860px) { .portal__side { position: static; } }

.portal__avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
  color: #fff; display: grid; place-items: center;
  font-size: 20px; font-weight: 600; margin-bottom: 14px;
}
.portal__name { font-size: 16px; font-weight: 600; color: var(--ink-900); word-break: break-all; }
.portal__mail { font-size: 13px; color: var(--ink-400); word-break: break-all; margin-top: 2px; }
.portal__stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.portal__stat-num { font-size: 22px; font-weight: 700; color: var(--brand-700); }
.portal__stat-label { font-size: 12px; color: var(--ink-400); }

.portal__main { min-width: 0; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.panel + .panel { margin-top: 24px; }
.panel__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.panel__title { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink-900); }
.panel__body { padding: 24px; }
.panel__body--flush { padding: 0; }

.inquiry-item { padding: 20px 24px; border-bottom: 1px solid var(--line-soft); }
.inquiry-item:last-child { border-bottom: 0; }
.inquiry-item__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 8px;
}
.inquiry-item__title { font-size: 15px; font-weight: 600; color: var(--ink-900); }
.inquiry-item__time { font-size: 12px; color: var(--ink-400); }
.inquiry-item__text { font-size: 14px; color: var(--ink-700); line-height: 1.8; margin: 0; word-break: break-word; }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.tag--pending { background: #fdf6e8; color: #96650c; }
.tag--contacted{ background: var(--brand-50); color: var(--brand-700); }
.tag--done     { background: #eefaf2; color: #1f7a45; }

.empty { padding: 60px 24px; text-align: center; color: var(--ink-400); }
.empty__icon { color: var(--ink-300); margin-bottom: 14px; }
.empty__title { font-size: 15px; color: var(--ink-500); margin: 0 0 6px; }
.empty__text { font-size: 13px; margin: 0 0 18px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--brand-900); color: rgba(255, 255, 255, .62); padding: 68px 0 0; font-size: 14px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 48px;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 30px; } }

.footer__brand { color: #fff; margin-bottom: 16px; }
.footer__about { margin: 0; line-height: 1.85; max-width: 340px; }
.footer__title {
  color: #fff; font-size: 15px; font-weight: 600;
  margin: 0 0 18px; letter-spacing: .02em;
}
.footer__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.footer__list a { color: rgba(255, 255, 255, .62); font-size: 14px; }
.footer__list a:hover { color: #fff; }

.footer__contact { display: grid; gap: 14px; }
.footer__row { display: flex; gap: 11px; align-items: flex-start; }
.footer__row svg { flex: none; margin-top: 3px; color: var(--brand-400); }
.footer__row-text { line-height: 1.7; }
.footer__row-text b { color: #fff; font-weight: 600; display: block; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}
.footer__bottom a { color: rgba(255, 255, 255, .62); }
.footer__bottom a:hover { color: #fff; }

/* ---------- 工具类 ---------- */
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.flex-center { display: flex; align-items: center; gap: 10px; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.hide { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* 滚动入场动画：默认可见，无 JS 时内容不会消失 */
.reveal { opacity: 1; }
.js-anim .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js-anim .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
}

/* Toast */
.toast-host {
  position: fixed;
  top: 88px; right: 20px;
  z-index: 200;
  display: grid; gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-l);
  font-size: 14px;
  max-width: 360px;
  animation: toastIn .28s var(--ease);
}
.toast--ok  { background: #16a34a; }
.toast--err { background: #c93b3b; }
.toast.is-out { animation: toastOut .25s var(--ease) forwards; }
@keyframes toastIn  { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px); } }

@media print {
  .header, .footer, .cta, .toast-host, .modal { display: none !important; }
  body { color: #000; }
}