/* ============================================================
 * 优特明前台主题 · 单色系深浅配
 *
 * 设计铁律（产品定）：
 *   1. 每个主题单一主色相，只允许深浅变化（深底 / 浅同色字 / 中主色点缀），
 *      多个深浅背景可以丰富，但统统在一个色相内，绝不跨色系、绝不用纯白/纯黑。
 *   2. 深底为主，浅色只做小字与点缀，不允许大面积浅色刺眼。
 *   3. 颜色 100% 来自数据库模板（theme_*）的 CSS 变量；本文件只写通用规则与
 *      变量引用，不写死任何主题色值 —— 新增色系只需在后台/模板库加一组常量。
 *
 * 零外部依赖：无 CDN、无 Web 字体、无构建步骤。
 * ============================================================ */

:root {
  /* 默认回退：暗蓝单色（深蓝底 / 浅蓝白字 / 中蓝点缀） */
  --brand: #4F8FD6;
  --brand-dark: #2C5F9E;
  --brand-light: #16263F;
  --bg: #0F1A2C;
  --bg-subtle: #14223A;
  --bg-alt: #182A47;
  --text: #E6EEF8;
  --text-sub: #A9BBD4;
  --text-mute: #6E8099;
  --line: #23344F;
  --line-soft: #1B2B45;
  --on-brand: #EAF2FB;                 /* 主色块（按钮/首屏/标记）上的同色系浅字，绝非纯白 */
  --header-bg: rgba(15, 26, 44, .94);  /* 头部：深同色半透明 */
  --radius: 10px;
  /* 阴影：基于当前主题的深主色（--bg）生成透明色，绝不混入黑色 —— 严守「单一色系」铁律 */
  --shadow: 0 1px 3px color-mix(in srgb, var(--bg) 55%, transparent);
  --shadow-lg: 0 8px 28px color-mix(in srgb, var(--bg) 62%, transparent);
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}

.brand { display: flex; align-items: center; gap: 9px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  /* "Ytm" 是三个拉丁字母，比单字宽：加宽方块并收字号，避免撑破或折行 */
  min-width: 46px; height: 32px; padding: 0 8px; border-radius: 8px;
  background: var(--brand); color: var(--on-brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; letter-spacing: .01em;
  white-space: nowrap; flex: none;
}
/* 后台设置了 Logo 图片路径时，用它替代文字标识 */
.brand-logo {
  height: 34px; width: auto; max-width: 168px; object-fit: contain;
  flex: none; border-radius: 6px; display: block;
}
.brand-name { font-weight: 600; font-size: 16px; letter-spacing: .02em; }

.site-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.site-nav > ul > li { position: relative; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 8px;
  /* 导航文字用中主色（同色系中深档），深底上清晰不费眼；绝不用浅副文/白字 */
  color: var(--brand); font-size: 14px; font-weight: 500;
}
.site-nav a:hover {
  background: var(--brand-light); color: var(--on-brand); text-decoration: none;
}

.has-drop > a::after {
  content: ""; display: inline-block; margin-left: 6px;
  border: 4px solid transparent; border-top-color: currentColor;
  vertical-align: middle;
}

.drop {
  position: absolute; top: 100%; left: 0; min-width: 168px; z-index: 60;
  background: var(--bg); border: 1px solid var(--line-soft);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 6px; display: flex; flex-direction: column; gap: 2px;
  /* 平时隐藏：透明 + 不可见 + 不可交互；仅悬停/聚焦时平滑淡入下落，离开平滑收起 */
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.has-drop:hover .drop, .has-drop:focus-within .drop {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s;
}

.nav-btn { display: none; }

/* 主题切换按钮 / 风格选择下拉（模板库里追加主题即自动出现） */
.theme-toggle {
  flex: none; margin-left: 10px;
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg-subtle);
  color: var(--text-sub); font-size: 13px; font-weight: 600;
  cursor: pointer; line-height: 1;
  transition: background .15s, color .15s, border-color .15s;
}
.theme-toggle:hover {
  background: var(--brand-light); color: var(--brand); border-color: var(--brand);
}
.theme-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.theme-picker { position: relative; flex: none; margin-left: 10px; }
.theme-list {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  min-width: 148px; list-style: none; padding: 6px;
  background: var(--bg); border: 1px solid var(--line-soft);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: none;
}
.theme-list.is-open { display: block; }
.theme-item {
  display: block; width: 100%; text-align: left;
  padding: 8px 12px; border: 0; border-radius: 6px; cursor: pointer;
  background: none; color: var(--text-sub); font-size: 14px;
  font-family: inherit;
}
.theme-item:hover { background: var(--bg-subtle); color: var(--brand); }
.theme-item.is-on { color: var(--brand); font-weight: 600; background: var(--brand-light); }

/* ---------- 首屏 ---------- */
/* 深主色 → 最深底 的暗色渐变；字用同色系浅字 on-brand（绝不纯白） */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--bg) 100%);
  color: var(--on-brand); padding: 88px 0 76px; text-align: left;
}
.hero.center { text-align: center; }

/* 轮播背景层：多张 slide 绝对叠放，由 JS 切换 .is-active 实现淡入淡出。
   蒙版 .hero-tint 用当前主题 --bg（深主色）半透明压住图片，
   使任何用户图片都统一为「同一色相的深浅」，字与底同系不同深，绝不杂白。 */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; animation: heroKenBurns 9s ease-out both; }
.hero-tint { position: absolute; inset: 0; background: var(--bg); opacity: .40; }

/* 文字层浮于背景与蒙版之上，使用同色系浅字，与深主色蒙版形成深浅对比 */
.hero-inner { position: relative; z-index: 2; }

/* 轮播指示点：同色系浅字色（--on-brand）的半透明圆点 */
.hero-dots {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 9px;
}
.hero-dot {
  width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%;
  background: var(--on-brand); opacity: .38; cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.hero-dot.is-active { opacity: 1; transform: scale(1.3); }

/* 栏目轮播带：纯图、无文字叠加，高度收窄，避免与首页首屏等高 */
.hero.hero-band { padding: 0; height: clamp(200px, 30vw, 380px); }
.hero.hero-band .hero-inner { display: none; }
.hero.hero-band .hero-dots { bottom: 14px; }
/* 整张可点击：覆盖在 slide 之上，不挡指示点（dots z-index 更高） */
.hero-slide-link { position: absolute; inset: 0; z-index: 1; display: block; }
.hero.hero-band .hero-slide-link:focus-visible { outline: 3px solid var(--on-brand); outline-offset: -3px; }

@keyframes heroKenBurns {
  from { transform: scale(1.05); }
  to   { transform: scale(1.15); }
}
.hero .eyebrow {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  opacity: .72; margin-bottom: 14px;
}
.hero h1 { font-size: 38px; line-height: 1.25; font-weight: 700; margin-bottom: 16px; }
.hero .lead { font-size: 17px; opacity: .92; max-width: 640px; margin-bottom: 28px; }
.hero.center .lead { margin-left: auto; margin-right: auto; }

/* 按钮：主色填充块，字用同色系浅色；描边按钮透明底 + 同色边字 */
.btn {
  display: inline-block; padding: 11px 26px; border-radius: 8px;
  background: var(--brand); color: var(--on-brand); font-size: 15px; font-weight: 500;
  border: none; cursor: pointer; transition: opacity .15s;
}
.btn:hover { opacity: .88; text-decoration: none; }
.btn-light { background: transparent; color: var(--brand); border: 1px solid var(--brand); }

/* ---------- 统计 ---------- */
.stats { background: var(--bg); padding: 40px 0; border-bottom: 1px solid var(--line-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-num { font-size: 30px; font-weight: 700; color: var(--brand); line-height: 1.2; }
.stat-suffix { font-size: 18px; margin-left: 2px; }
.stat-unit { font-size: 13px; color: var(--text-mute); margin-left: 3px; }
.stat-label { font-size: 13px; color: var(--text-sub); margin-top: 4px; }

/* ---------- 通用区块 ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-subtle); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head h2 { font-size: 27px; font-weight: 700; }
.section-sub { color: var(--text-sub); margin-top: 10px; }

.prose { color: var(--text-sub); margin: 16px 0; white-space: pre-wrap; }

.grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card-service, .card-value, .card-news {
  background: var(--bg); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s;
}
.card-service:hover, .card-news:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.svc-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--brand-light); color: var(--brand);
  /* 与右侧小标题同排一行：改为行内弹性盒，去掉下方外边距 */
  display: inline-flex; align-items: center; justify-content: center;
  vertical-align: middle;
  font-size: 18px; font-weight: 700;
  margin: 0 12px 0 0;
  /* 图标文字不换行、不收缩、行高固定 */
  flex: 0 0 auto;
  white-space: nowrap;
  line-height: 1;
  overflow: hidden;
}
.card-service h3, .card-value h3, .card-news h3 { font-size: 17px; margin-bottom: 8px; }
/* 服务卡片：图标与小标题同排一行，描述另起一行 */
.card-service h3 { display: inline; vertical-align: middle; }
.card-service p, .card-value p, .card-news p { color: var(--text-sub); font-size: 14px; }

.card-news time { font-size: 13px; color: var(--text-mute); }

/* ---------- 资讯列表 / 详情 ---------- */
/* 列表卡片改为可点击的整卡链接：深底卡片 + 同色系浅字，悬浮轻微上浮（与现有动效一致） */
a.card-news { display: block; color: inherit; text-decoration: none; }
a.card-news:hover { text-decoration: none; }
.news-cat-tag { display: inline-block; font-size: 12px; color: var(--brand); margin-bottom: 8px; letter-spacing: .02em; }

/* 分类筛选条：浅色仅作小字与描边，绝不刺眼 */
.news-cats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 4px 0 36px; }
.news-cat {
  display: inline-block; padding: 6px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text-sub); font-size: 13px;
  transition: background .15s, color .15s, border-color .15s;
}
.news-cat:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.news-cat.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.news-empty { text-align: center; color: var(--text-mute); padding: 34px 0; }

/* 文章详情：深底 + 同色系浅字，正文留白舒适 */
.article { max-width: 840px; }
.article-crumb { font-size: 13px; color: var(--text-mute); margin-bottom: 18px; }
.article-crumb a { color: var(--text-sub); }
.article-crumb a:hover { color: var(--brand); }
.article-title { font-size: 30px; line-height: 1.32; margin-bottom: 14px; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text-mute);
  border-bottom: 1px solid var(--line-soft); padding-bottom: 16px; margin-bottom: 26px;
}
.article-body { color: var(--text-sub); font-size: 16px; line-height: 1.92; white-space: pre-wrap; }
.news-back { margin-top: 32px; }


/* ---------- 关于 ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: center;
}
.check-list { list-style: none; }
.check-list li {
  padding: 12px 0 12px 32px; position: relative;
  border-bottom: 1px solid var(--line-soft); color: var(--text-sub);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 12px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand); color: var(--on-brand);
  font-size: 12px; display: flex; align-items: center; justify-content: center;
}

/* ---------- 时间线 ---------- */
.timeline { list-style: none; max-width: 760px; margin: 0 auto; }
.timeline li {
  display: flex; gap: 22px; padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}
.timeline li:last-child { border-bottom: none; }
.tl-year {
  flex: none; width: 92px; font-weight: 700; color: var(--brand);
  font-size: 15px; padding-top: 2px;
}
.tl-body h3 { font-size: 16px; margin-bottom: 4px; }
.tl-body p { color: var(--text-sub); font-size: 14px; }

/* ---------- CTA ---------- */
/* 与首屏同构：深主色 → 最深底，字用同色系浅字 */
.cta {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--bg) 100%);
  color: var(--on-brand); padding: 62px 0; text-align: center;
}
.cta h2 { font-size: 27px; margin-bottom: 24px; }

/* ---------- 横幅 ---------- */
.banner { padding: 0; }
.banner img { width: 100%; max-height: 420px; object-fit: cover; }

/* ---------- 地图区块（联系页，参照原站 shytm.top：Leaflet + 高德瓦片） ---------- */
/* 联系方式信息条：四列网格，窄屏两列 */
.map-info {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 22px;
}
.map-info li {
  background: var(--bg-subtle); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 14px 16px;
}
.map-info-k { display: block; font-size: 12px; color: var(--text-sub); margin-bottom: 4px; }
.map-info-v { font-size: 14px; color: var(--text); font-weight: 500; word-break: break-all; }
a.map-info-v { color: var(--brand); }
/* 地图卡片：容器承接地画布与按钮行，圆角一体（原站 .map-container 结构） */
.map-container {
  position: relative; border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden; background: var(--bg-subtle);
}
/* Leaflet 画布：必须固定高度，否则地图不渲染；加载中/兜底文案居中 */
.map-leaflet {
  width: 100%; height: 400px; background: var(--bg-subtle);
  display: flex; align-items: center; justify-content: center;
}
.map-leaflet .map-inner { width: 100%; height: 100%; }
.map-ph { color: var(--text-sub); font-size: 14px; padding: 0 20px; text-align: center; }
/* Leaflet 内部字体跟随站点，气泡文字不跳字体 */
.map-leaflet .leaflet-container { font-family: inherit; }
/* 红色水滴标记（原站样式：水滴形 + 光影，内芯 emoji 转回正） */
.yt-map-marker { background: transparent; border: 0; }
.yt-map-pin {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; background: #d4380d; color: #fff;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.yt-map-pin > span { transform: rotate(45deg); font-size: 14px; line-height: 1; }
/* 跳转按钮行（原站品牌色胶囊：高德蓝 / 百度橙 / 腾讯青） */
.map-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap; padding: 14px 20px;
  border-top: 1px solid var(--line-soft);
}
.map-actions-label { font-size: 13px; color: var(--text-sub); white-space: nowrap; }
.map-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 500;
  text-decoration: none; white-space: nowrap; border: 1px solid transparent;
  transition: background .25s, color .25s, border-color .25s;
}
.map-btn-amap { background: #e6f4ff; color: #1677ff; border-color: #91caff; }
.map-btn-amap:hover { background: #1677ff; color: #fff; border-color: #1677ff; }
.map-btn-baidu { background: #fff7e6; color: #d48806; border-color: #ffd591; }
.map-btn-baidu:hover { background: #d48806; color: #fff; border-color: #d48806; }
.map-btn-qq { background: #e6fffb; color: #08979c; border-color: #87e8de; }
.map-btn-qq:hover { background: #08979c; color: #fff; border-color: #08979c; }
/* 地址提示语（原站 .map-hint） */
.map-hint { margin-top: 10px; font-size: 13px; color: var(--text-sub); }
@media (max-width: 900px) {
  .map-info { grid-template-columns: 1fr 1fr; }
  .map-leaflet { height: 250px; }
}

/* ---------- 页脚 ---------- */
.site-footer { background: var(--bg-subtle); border-top: 1px solid var(--line-soft); padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 36px; }
.site-footer h3 { font-size: 17px; margin-bottom: 8px; }
.site-footer h4 { font-size: 14px; margin-bottom: 12px; color: var(--text); }
.footer-slogan { color: var(--text-sub); font-size: 14px; }
.site-footer p { color: var(--text-sub); font-size: 14px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 7px; }
.footer-links a { color: var(--text-sub); font-size: 14px; }
/* 版权与备案信息：整体居中 */
.footer-bar {
  border-top: 1px solid var(--line-soft); padding: 18px 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 8px;
}
.footer-bar p { font-size: 13px; color: var(--text-mute); }
.footer-beian { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.footer-beian a { color: var(--text-mute); text-decoration: none; }
.footer-beian a:hover { color: var(--brand); text-decoration: underline; }
.beian-sep { color: var(--text-mute); opacity: .45; }

/* ---------- 自适应 ---------- */
@media (max-width: 900px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 720px) {
  .hero { padding: 60px 0 52px; }
  .hero h1 { font-size: 28px; }
  .hero .lead { font-size: 15px; }
  .section { padding: 44px 0; }
  .section-head h2 { font-size: 23px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .cols-3, .cols-2 { grid-template-columns: 1fr; }

  /* 移动端：抽屉式导航 */
  .nav-btn {
    display: flex; flex-direction: column; gap: 5px;
    padding: 8px; cursor: pointer; background: none; border: none;
  }
  .nav-btn span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

  .site-nav {
    position: absolute; top: 62px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s;
  }
  .nav-toggle:checked ~ .site-nav { max-height: 70vh; overflow-y: auto; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 18px; gap: 2px; }
  .site-nav a { padding: 12px 8px; }

  /* 子菜单默认收起：触屏无 hover，改由 JS 点击父项切换 .is-open 展开 */
  .drop {
    position: static; box-shadow: none; border: none;
    border-left: 2px solid var(--line); margin: 2px 0 6px 10px;
    padding: 0 0 0 10px; min-width: 0;
    display: none; flex-direction: column;
  }
  .has-drop.is-open > .drop { display: flex; opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease, visibility 0s; }
  .has-drop.is-open > a::after {
    border-top-color: transparent; border-bottom-color: currentColor;
  }
  .has-drop > a:focus-visible ~ .drop { display: flex; opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease, visibility 0s; }

  .footer-bar { flex-direction: column; }
}

/* 浮动 / 入场动效（克制：仅轻微位移与淡入，不喧宾夺主） */
@keyframes ytFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.btn { transition: opacity .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.card-service:hover, .card-news:hover { transform: translateY(-4px); }
.svc-icon { transition: transform .2s ease; }
.card-service:hover .svc-icon { transform: scale(1.07); }
.site-nav a { transition: background .15s, color .15s, transform .15s; }
.site-nav a:hover { transform: translateY(-1px); }
.hero .eyebrow, .hero h1, .hero .lead, .hero .btn {
  animation: ytFadeUp .7s cubic-bezier(.21, .6, .35, 1) both;
}
.hero .eyebrow { animation-delay: .04s; }
.hero h1 { animation-delay: .12s; }
.hero .lead { animation-delay: .2s; }
.hero .btn { animation-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ============================================================
 * 客户认证与下载中心（v1.15.0 新增）
 *
 * 沿用主题铁律：全部颜色取自 CSS 变量（--brand/--bg/--text-sub/--line 等），
 * 不写死任何主题色值；卡片用深底 + 同色系描边，与全站深浅配一致。
 * ============================================================ */

/* ---------- 页头客户入口 ---------- */
.header-auth { display: flex; align-items: center; gap: 8px; flex: none; margin-left: 10px; }
.header-user {
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 14px; color: var(--text-sub);
}
.header-logout { display: inline; margin: 0; }
.header-logout-btn {
  padding: 5px 12px; border-radius: 8px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-subtle); color: var(--text-sub);
  font-family: inherit; transition: background .15s, color .15s, border-color .15s;
}
.header-logout-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.header-auth-link {
  padding: 6px 12px; border-radius: 8px; font-size: 14px; color: var(--text-sub);
  transition: background .15s, color .15s;
}
.header-auth-link:hover { background: var(--brand-light); color: var(--brand); text-decoration: none; }
.header-auth-reg {
  padding: 6px 14px; border-radius: 8px; font-size: 14px;
  background: var(--brand); color: var(--on-brand);
  transition: opacity .15s;
}
.header-auth-reg:hover { opacity: .88; text-decoration: none; }

/* 窄屏：客户入口收进抽屉末尾，避免与导航挤在一行 */
@media (max-width: 900px) {
  .header-auth { margin-left: auto; }
  .header-user { max-width: 88px; }
}

/* ---------- 登录 / 注册 / 门禁卡 ---------- */
.auth-card {
  max-width: 460px; margin: 8px auto 0;
  background: var(--bg-subtle); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 34px 32px 30px;
  box-shadow: var(--shadow-lg);
}
.auth-title { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.auth-sub { color: var(--text-sub); font-size: 14px; margin-bottom: 20px; }
.auth-msg {
  padding: 9px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 14px;
  background: var(--brand-light); color: var(--brand);
}
.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; font-size: 13px; color: var(--text-sub); margin-bottom: 5px; }
.auth-field input {
  width: 100%; padding: 10px 12px; font-size: 14px; font-family: inherit;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; color: var(--text);
}
.auth-field input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.auth-alt { margin-top: 16px; font-size: 14px; color: var(--text-sub); }
.auth-note { margin-top: 12px; font-size: 13px; color: var(--text-mute); line-height: 1.6; }
.auth-actions { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }

/* 注册必签合约区 */
.auth-legal {
  margin: 4px 0 16px; padding: 14px 16px;
  background: var(--bg-soft, #f7f8fa); border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.auth-legal-title { font-size: 13px; color: var(--text-sub); margin-bottom: 10px; }
.auth-legal-item { border: 1px solid var(--line-soft); border-radius: 8px; background: var(--bg); margin-bottom: 8px; }
.auth-legal-item > summary {
  cursor: pointer; padding: 9px 12px; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  list-style: none;
}
.auth-legal-item > summary::-webkit-details-marker { display: none; }
.auth-legal-item > summary::after { content: '展开'; font-size: 12px; font-weight: 400; color: var(--text-mute); }
.auth-legal-item[open] > summary::after { content: '收起'; }
.auth-legal-ver { font-size: 11px; font-weight: 400; color: var(--text-mute); }
.auth-legal-body {
  max-height: 220px; overflow-y: auto; padding: 0 12px 12px;
  font-size: 12px; line-height: 1.75; color: var(--text-sub);
  white-space: normal; word-break: break-word;
  border-top: 1px dashed var(--line-soft);
}
.auth-legal-body br { content: ''; }
.auth-agree { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: 13px; }
.auth-agree input { width: 16px; height: 16px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--brand); }
.auth-agree label { margin: 0; font-size: 13px; color: var(--text); line-height: 1.5; }
.auth-agree strong { color: var(--brand); }

/* ---------- App 下载列表 ---------- */
.app-list { display: flex; flex-direction: column; gap: 14px; max-width: 860px; margin: 0 auto; }
.app-card {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--bg-subtle); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 18px 20px;
  transition: border-color .15s, transform .15s;
}
.app-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.app-info { min-width: 0; flex: 1; }
.app-name { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-ver { font-size: 13px; font-weight: 400; color: var(--text-mute); }
.app-tag {
  font-size: 12px; padding: 1px 8px; border-radius: 6px;
  background: var(--brand); color: var(--on-brand);
}
.app-summary { font-size: 14px; color: var(--text-sub); margin-top: 5px; }
.app-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--text-mute); margin-top: 8px; }
.app-act { flex: none; }
.app-vip { font-size: 13px; color: var(--text-mute); }
.app-empty {
  max-width: 860px; margin: 0 auto; text-align: center;
  padding: 36px 20px; border: 1px dashed var(--line); border-radius: var(--radius);
  color: var(--text-mute); font-size: 14px;
}

/* ============ 发展历程（老站效果：竖向中轴 + 左右交替卡片） ============ */
.timeline-wrapper { position:relative; max-width:900px; margin:0 auto; }
.timeline-wrapper::before {
  content:''; position:absolute; left:50%; top:0; bottom:0;
  width:2px; background:var(--line); transform:translateX(-50%);
}
.timeline-item { display:flex; align-items:flex-start; margin-bottom:42px; position:relative; }
.timeline-item:nth-child(odd) { flex-direction:row; }
.timeline-item:nth-child(even) { flex-direction:row-reverse; }
.timeline-dot {
  position:absolute; left:50%; top:4px;
  width:14px; height:14px; border-radius:50%;
  background:var(--brand); transform:translateX(-50%);
  z-index:2; border:3px solid var(--bg);
  box-shadow:0 0 0 4px color-mix(in srgb, var(--brand) 35%, transparent);
}
.timeline-content {
  width:45%; background:var(--bg-alt); padding:22px 24px;
  border-radius:var(--radius); border:1px solid var(--line-soft);
}
.timeline-content .year { font-size:22px; font-weight:800; color:var(--brand); letter-spacing:.5px; }
.timeline-content h3 { font-size:17px; color:var(--text); margin:8px 0; }
.timeline-content p { font-size:14px; color:var(--text-sub); line-height:1.7; }
@media (max-width:720px) {
  .timeline-wrapper::before { left:14px; }
  .timeline-item, .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { flex-direction:row; }
  .timeline-dot { left:14px; }
  .timeline-content { width:calc(100% - 44px); margin-left:44px; }
}

/* ============ 栏目子导航（内页常驻，不再依赖顶部悬停下拉） ============ */
.subnav {
  background: var(--bg-alt, #fff);
  border-bottom: 1px solid var(--line, #eceff3);
  position: sticky;
  top: 0;
  z-index: 20;
}
.subnav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 20px;
}
.subnav-item {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-sub, #4a5568);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.subnav-item:hover {
  background: color-mix(in srgb, var(--brand, #1a6cff) 10%, transparent);
  color: var(--brand, #1a6cff);
}
.subnav-item.active {
  background: var(--brand, #1a6cff);
  color: #fff;
  font-weight: 600;
}
@media (max-width:720px) {
  .subnav-inner { padding: 8px 14px; gap: 4px; }
  .subnav-item { padding: 6px 11px; font-size: 13px; }
}
