/* =============================================================================
 * EQExpert 动设备工程平台 · public/css/style.css
 * -----------------------------------------------------------------------------
 * 全站唯一设计系统 —— 浅色「工程知识产品」主题
 * 结构：设计变量 → 基础 → 布局 → 导航 → 按钮/表单 → 通用组件 → 搜索 →
 *       首页 → 工作台(610/617) → 条款组件 → 工具箱 → AI 专家 → 关于/联系 →
 *       账户/会员 → 管理后台 → 页脚 → Toast/加载 → 响应式
 * ========================================================================== */

/* ========================= 一、设计变量 ========================= */
:root {
  /* 浅背景灰（品牌 V1.0：白 / 浅灰蓝） */
  --bg-primary: #F4F7FB;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #EDF1F7;
  --bg-elevated: #FFFFFF;

  /* 边框 */
  --border: #C9D2E0;
  --border-hover: #B7C2D4;

  /* 文字：标题品牌深藏蓝 / 正文深灰蓝 */
  --text-title: #0F2A44;
  --text-primary: #33455C;
  --text-secondary: #6B7C93;
  --text-muted: #93A1B3;

  /* 品牌橙（V1.0：只做视觉焦点 5-10%，不兼任成功/警告/错误） */
  --accent: #FF7A00;
  --accent-hover: #E66F00;
  --accent-soft: #FFF3E6;
  --accent-on-dark: #FFB066;

  /* 品牌深藏蓝（导航、页脚、标识） */
  --navy: #0F2A44;
  --navy-light: #2C4A6B;
  --navy-dark: #0A1E33;

  /* 语义色（功能色独立，与品牌橙分离） */
  --success: #2F9E6E;  --success-soft: #E7F4EC;
  --warning: #B7791F;  --warning-soft: #FAF3E3;
  --danger: #C0392B;   --danger-soft: #FAECEA;
  --info: #2C4A6B;     --info-soft: #EBF1F8;

  /* 旧变量别名（兼容既有引用） */
  --api-blue: var(--navy);
  --api-blue-light: var(--navy-light);
  --api-blue-dark: var(--navy-dark);
  --api-red: var(--accent);
  --api-red-light: var(--accent-hover);

  /* 阴影 */
  --shadow-sm: 0 4px 14px rgba(35, 48, 57, .07);
  --shadow: 0 14px 36px rgba(35, 48, 57, .10);
  --shadow-1: var(--shadow-sm);

  /* Hero / 横幅渐变（基于品牌深藏蓝） */
  --overlay: linear-gradient(125deg, #0F2A44 0%, #1B3E63 72%, #245073 100%);

  /* 字号阶梯 */
  --fs-xs: 13px;  --fs-sm: 14px;  --fs-md: 15px;  --fs-base: 16px;
  --fs-lg: 17px;  --fs-xl: 18px;  --fs-2xl: 20px; --fs-3xl: 24px;
  --fs-4xl: 28px; --fs-5xl: 34px; --fs-hero: 44px;

  /* 圆角 / 布局 / 动效 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --content-max: 1180px;
  --reading-max: 820px;
  --nav-height: 68px;
  --sidebar-width: 300px;
  --status-height: 52px;
  --transition: .18s ease;
}

/* ========================= 二、基础重置 ========================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--fs-base);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4, h5 { color: var(--text-title); line-height: 1.3; }

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy-light); }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
code, pre, .mono { font-family: 'SF Mono', Consolas, 'Courier New', monospace; }
mark { background: rgba(255, 122, 0, .28); color: inherit; border-radius: 2px; padding: 0 1px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

:focus-visible { outline: 2px solid var(--navy-light); outline-offset: 2px; }

/* ========================= 三、布局容器 ========================= */
.container { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 24px; }
.container-sm { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-lg { padding: 88px 0; }
.section-alt { background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { margin-bottom: 32px; }
.section-head.center { text-align: center; }
.section-kicker {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 2px;
  color: var(--accent); text-transform: uppercase; margin-bottom: 10px;
}
.section-title { font-size: var(--fs-4xl); font-weight: 800; letter-spacing: -0.5px; line-height: 1.25; margin-bottom: 12px; }
.section-desc { color: var(--text-secondary); font-size: var(--fs-base); line-height: 1.8; max-width: 720px; }
.section-head.center .section-desc { margin: 0 auto; }

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

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-red { color: var(--accent); }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

/* ========================= 四、导航栏 ========================= */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
  height: var(--nav-height); display: flex; align-items: center; gap: 16px;
}

/* Logo：正式品牌图片资产（见 public/brand/README_项目使用说明.txt） */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo:hover { color: inherit; }
.logo-img { display: block; height: 25px; width: auto; }
.logo-img-footer { height: 30px; }

/* 主菜单 */
.nav-menu { display: flex; align-items: center; gap: 2px; margin-left: 12px; flex: 1; }
.nav-menu a {
  padding: 9px 14px; border-radius: var(--radius-sm);
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-secondary); white-space: nowrap;
}
.nav-menu a:hover { color: var(--text-title); background: var(--bg-tertiary); }
.nav-menu a.active { color: var(--accent); background: var(--accent-soft); font-weight: 700; }

.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* 主题切换按钮（保留类定义，当前主题按钮已下线） */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg-tertiary);
  color: var(--text-secondary); cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--navy-light); color: var(--navy-light); }

/* 汉堡按钮（平板/小桌面） */
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-tertiary);
  cursor: pointer; padding: 0; flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; margin: 3px auto;
  background: var(--text-title); border-radius: 2px; transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 移动抽屉（768–1080px 区间使用） */
.nav-drawer {
  display: none;
  position: fixed; top: var(--nav-height); left: 0; right: 0; z-index: 199;
  background: var(--bg-secondary); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow); padding: 8px 0 14px;
  max-height: calc(100vh - var(--nav-height)); overflow-y: auto;
}
.nav-drawer.open { display: block; }
.nav-drawer a {
  display: block; padding: 13px 24px; font-size: var(--fs-md);
  color: var(--text-primary); border-bottom: 1px solid var(--border);
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a.active { color: var(--accent); font-weight: 700; }
.nav-drawer .drawer-actions { padding: 14px 24px 4px; display: flex; gap: 10px; }

/* ========================= 五、按钮 ========================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 1px solid transparent;
  border-radius: 10px; font-size: var(--fs-sm); font-weight: 700;
  font-family: inherit; cursor: pointer; white-space: nowrap;
  background: transparent; color: var(--text-title); transition: all var(--transition);
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255, 122, 0, .24); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #D24A3B; color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(192, 57, 43, .24); }
.btn-outline { border-color: var(--border-hover); color: var(--text-title); background: var(--bg-secondary); }
.btn-outline:hover { border-color: var(--navy-light); background: var(--info-soft); color: var(--text-title); }
.btn-ghost { color: var(--text-secondary); min-height: 38px; padding: 0 12px; }
.btn-ghost:hover { background: var(--bg-tertiary); color: var(--text-title); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: var(--fs-xs); }
.btn-lg { min-height: 52px; padding: 0 30px; font-size: var(--fs-lg); }
.btn-block { width: 100%; }
.btn .diamond { font-size: 12px; }

/* 用户态 mini 标签（顶栏登录后显示） */
.user-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 12px; height: 36px; border: 1px solid var(--border);
  border-radius: var(--radius-pill); color: var(--text-title);
  font-size: var(--fs-xs); max-width: 180px; background: var(--bg-secondary);
}
.user-chip:hover { border-color: var(--border-hover); color: var(--text-title); }
.user-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-mini {
  display: inline-flex; align-items: center; padding: 1px 8px;
  font-size: 11px; background: var(--navy); color: #fff;
  border-radius: 10px; flex-shrink: 0;
}

/* 顶部导航内的按钮组（登录态） */
[data-auth-slot] { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }

.link-arrow { color: var(--accent); font-weight: 600; font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 6px; }
.link-arrow:hover { gap: 10px; }

/* ========================= 六、表单 ========================= */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--text-title); margin-bottom: 8px; }
.form-label .optional { font-weight: 400; color: var(--text-muted); margin-left: 6px; font-size: var(--fs-xs); }

.input {
  width: 100%; min-height: 48px; padding: 0 14px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-title);
  font-size: var(--fs-base); font-family: inherit; outline: none; transition: all var(--transition);
}
.input::placeholder { color: var(--text-muted); }
.input:hover { border-color: var(--border-hover); }
.input:focus { border-color: var(--navy-light); box-shadow: 0 0 0 4px rgba(44, 74, 107, .13); }
.input.code-input { letter-spacing: 2px; text-transform: uppercase; font-family: 'SF Mono', Consolas, monospace; }
select.input {
  cursor: pointer; appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%2393A1B3' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
select.input option { background: var(--bg-secondary); color: var(--text-title); }
textarea.input { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.75; }
.input-group { display: flex; gap: 10px; }
.input-group .input { flex: 1; }

.textarea {
  width: 100%; min-height: 100px; padding: 12px 14px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-title);
  font-size: var(--fs-sm); font-family: inherit; outline: none; resize: vertical;
}
.textarea:focus { border-color: var(--navy-light); box-shadow: 0 0 0 4px rgba(44, 74, 107, .13); }

.tag-input { display: flex; flex-wrap: wrap; gap: 6px; min-height: 48px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-secondary); align-items: center; }
.tag-input input { flex: 1; min-width: 120px; height: 30px; padding: 0 6px; border: 0; background: transparent; color: var(--text-title); outline: none; font-size: var(--fs-sm); font-family: inherit; }
.tag-input .tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--navy); color: #fff; font-size: var(--fs-xs); }
.tag-input .tag .x { cursor: pointer; opacity: .8; }
.tag-input .tag .x:hover { opacity: 1; }

/* ========================= 七、通用组件 ========================= */
.card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.card-hover:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md); margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: var(--navy); color: #fff;
}
.card-title { font-size: var(--fs-xl); font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.card-desc { color: var(--text-secondary); font-size: var(--fs-md); line-height: 1.75; }

.panel { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.panel-head {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  font-size: var(--fs-md); font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.panel-body { padding: 20px; }

/* 徽章：胶囊样式 */
.badge {
  display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 2px 10px;
  border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 600;
  background: var(--bg-tertiary); color: var(--text-secondary); border: 1px solid var(--border); white-space: nowrap;
}
.badge-blue { background: var(--info-soft); border-color: rgba(44, 74, 107, .3); color: var(--navy-light); }
.badge-red { background: var(--accent-soft); border-color: rgba(255, 122, 0, .35); color: var(--accent); }
.badge-green { background: var(--success-soft); border-color: rgba(47, 158, 110, .32); color: var(--success); }
.badge-gray { background: var(--bg-tertiary); color: var(--text-muted); }
.badge-amber { background: var(--warning-soft); border-color: rgba(183, 121, 31, .35); color: var(--warning); }

.divider { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: var(--fs-xs); margin: 20px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* 空状态 */
.empty-state {
  min-height: 180px; padding: 46px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px dashed var(--border); border-radius: var(--radius-lg);
  background: var(--bg-secondary); color: var(--text-muted);
}
.empty-state .icon { font-size: 38px; margin-bottom: 12px; opacity: .55; }

/* 建设中卡片 */
.wip-card {
  padding: 40px 32px; text-align: center;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.wip-icon {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  background: var(--accent-soft); border: 1px solid var(--border);
}
.wip-title { font-size: var(--fs-xl); font-weight: 700; margin-bottom: 10px; color: var(--text-title); }
.wip-desc { max-width: 480px; margin: 0 auto 22px; font-size: var(--fs-sm); line-height: 1.9; color: var(--text-secondary); }
.wip-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* 提示条 */
.notice {
  padding: 14px 16px; border-radius: var(--radius-md); font-size: var(--fs-sm);
  background: var(--accent-soft); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  color: var(--text-secondary);
}

/* ========================= 八、搜索框组件 ========================= */
/* 目录侧搜索 */
.sidebar-search { padding: 14px; border-bottom: 1px solid var(--border); }
.sidebar-search .input { height: 44px; font-size: var(--fs-sm); }

/* 正文顶部搜索（全站通用，610/617 共用） */
.content-search { position: relative; flex: 1; max-width: 420px; }
.content-search input {
  width: 100%; height: 40px; padding: 0 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--bg-tertiary); color: var(--text-title);
  font-size: var(--fs-sm); outline: none; transition: all var(--transition);
}
.content-search input::placeholder { color: var(--text-muted); }
.content-search input:focus { border-color: var(--accent); background: var(--bg-secondary); box-shadow: 0 0 0 3px rgba(255, 122, 0, .14); }
.searchDrop {
  display: none; position: absolute; top: 46px; left: 0; right: 0;
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow); max-height: 380px; overflow-y: auto; z-index: 60;
}
.searchDrop.show { display: block; }
.searchItem { padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.searchItem:last-child { border-bottom: none; }
.searchItem:hover { background: var(--bg-tertiary); }
.searchItem .sId { font-family: Consolas, monospace; font-size: 11.5px; color: var(--accent); font-weight: 700; margin-right: 8px; }
.searchItem .sPreview { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 4px; line-height: 1.6; }
.noResult { padding: 16px; text-align: center; color: var(--text-muted); font-size: var(--fs-sm); }

/* ========================= 九、首页 Hero ========================= */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--overlay);
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  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: 48px 48px;
}
.hero-bg::after {
  content: ''; position: absolute; right: -120px; top: -80px;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 0, .22), transparent 62%);
}
.hero-inner { position: relative; max-width: 1320px; margin: 0 auto; padding: 72px 24px 58px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px;
  border-radius: var(--radius-pill); background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25); color: #fff;
  font-size: var(--fs-xs); margin-bottom: 24px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; line-height: 1.18; letter-spacing: -1px; margin-bottom: 18px; max-width: 860px; color: #fff; }
.hero h1 .accent { color: var(--accent-on-dark); }
.hero p.lead { font-size: var(--fs-lg); line-height: 1.85; max-width: 720px; color: rgba(255, 255, 255, .82); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .07); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.hero .btn-ghost { color: #fff; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 46px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero-stats .num { font-size: var(--fs-3xl); font-weight: 800; color: var(--accent-on-dark); line-height: 1.2; }
.hero-stats .label { font-size: var(--fs-xs); color: rgba(255, 255, 255, .7); }

/* ========================= 十、首页：三大功能入口卡 ========================= */
.feature-tile {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--bg-secondary); min-height: 280px;
  padding: 30px; box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.feature-tile::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(23, 58, 94, .10), transparent 62%);
  transition: opacity var(--transition); opacity: .9;
}
.feature-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--border-hover); }
.feature-tile .ft-index {
  position: relative; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 3px;
  color: var(--accent); margin-bottom: 14px;
}
.feature-tile h3 { position: relative; font-size: var(--fs-3xl); font-weight: 800; margin-bottom: 12px; }
.feature-tile p { position: relative; color: var(--text-secondary); font-size: var(--fs-sm); line-height: 1.75; margin-bottom: 20px; min-height: 48px; }
.feature-tile .ft-meta { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.feature-tile .ft-go { position: relative; }

/* ========================= 十一、首页：标准卡片 ========================= */
.std-card {
  display: flex; flex-direction: column; padding: 30px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.std-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow); }
.std-card .std-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.std-card .std-code { font-size: 30px; font-weight: 800; letter-spacing: -.5px; color: var(--navy); }
.std-card .std-code span { color: var(--accent); font-size: var(--fs-lg); margin-left: 6px; }
.std-card .std-title { font-size: var(--fs-xl); font-weight: 600; line-height: 1.5; margin-bottom: 6px; }
.std-card .std-sub { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.std-card .std-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.std-card .std-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ========================= 十二、首页：能力条 / CTA 条 ========================= */
.ability-item { padding: 26px 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-secondary); box-shadow: var(--shadow-sm); }
.ability-item .n { font-size: var(--fs-xs); font-weight: 800; color: var(--navy-light); letter-spacing: 2px; margin-bottom: 10px; }
.ability-item h4 { font-size: var(--fs-xl); font-weight: 700; margin-bottom: 8px; }
.ability-item p { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.75; }

.cta-band {
  background: var(--overlay); color: #fff; border-radius: var(--radius-lg);
  padding: 48px 40px; display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.cta-band h3 { font-size: 26px; font-weight: 800; margin-bottom: 8px; color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .82); }
.cta-band .btn-outline { border-color: rgba(255, 255, 255, .5); color: #fff; }
.cta-band .btn-outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ========================= 十三、工作台（610 / 617） ========================= */
.workbench { display: flex; height: calc(100vh - var(--nav-height)); overflow: hidden; background: var(--bg-primary); }
.sidebar {
  width: var(--sidebar-width); min-width: var(--sidebar-width);
  background: #F1EDE5; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
}
.sidebar-head { padding: 16px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sidebar-head .title { font-size: var(--fs-sm); font-weight: 700; color: var(--text-title); }
.chapter-tree { flex: 1; overflow-y: auto; padding: 10px; }
.chapter-item { border-radius: var(--radius-sm); margin-bottom: 2px; }
.chapter-row {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; min-height: 44px;
  border-radius: var(--radius-sm); cursor: pointer; font-size: var(--fs-sm);
  color: var(--text-secondary); transition: all var(--transition); user-select: none;
}
.chapter-row:hover { background: var(--bg-tertiary); color: var(--text-title); }
.chapter-row.active { background: var(--navy); color: #fff; font-weight: 600; }
.chapter-row .arrow { width: 14px; font-size: 10px; color: var(--text-muted); transition: transform var(--transition); flex-shrink: 0; }
.chapter-row.active .arrow { color: #fff; }
.chapter-item.open > .chapter-row .arrow { transform: rotate(90deg); }
.chapter-row .txt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chapter-row .lock { font-size: var(--fs-xs); flex-shrink: 0; }
.tree-calc { font-size: 11px; margin-left: 6px; }
.chapter-children { display: none; padding-left: 18px; }
.chapter-item.open > .chapter-children { display: block; }

.main-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.content-area { flex: 1; overflow-y: auto; }
.content-toolbar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; border-bottom: 1px solid var(--border);
  background: var(--bg-secondary); flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(20, 40, 58, .04);
}
.sidebar-toggle { display: none; }
.resize-handle { width: 5px; cursor: col-resize; background: var(--border); flex-shrink: 0; transition: background .15s; }
.resize-handle:hover, .resize-handle.on { background: var(--navy-light); }

.content-inner { max-width: var(--reading-max); margin: 0 auto; padding: 40px 34px 72px; }
.content-title { font-size: 30px; font-weight: 800; line-height: 1.35; color: var(--text-title); margin-bottom: 8px; letter-spacing: -.4px; }
.content-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 30px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.content-text { font-size: var(--fs-lg); line-height: 1.85; color: var(--text-primary); white-space: pre-wrap; }

.welcome { max-width: 760px; margin: 0 auto; padding: 72px 40px; text-align: center; }
.welcome h2 { font-size: 30px; font-weight: 800; margin-bottom: 14px; }
.welcome p { color: var(--text-secondary); margin-bottom: 30px; }
.welcome-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* 会员锁定承接区 */
.locked {
  max-width: 580px; margin: 32px auto 0; padding: 44px 40px; text-align: center;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.locked-icon { font-size: 54px; margin-bottom: 18px; }
.locked h3 { font-size: var(--fs-2xl); font-weight: 700; margin-bottom: 12px; }
.locked p { color: var(--text-secondary); margin-bottom: 26px; }
.locked-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.locked-preview {
  margin-top: 30px; padding: 18px 20px; background: var(--bg-primary);
  border: 1px dashed var(--border-hover); border-radius: var(--radius-md);
  color: var(--text-muted); font-size: var(--fs-sm); text-align: left; line-height: 1.9;
}
.inline-activate {
  max-width: 520px; margin: 26px auto 0; padding: 18px 20px;
  background: var(--accent-soft); border: 1px dashed var(--accent);
  border-radius: var(--radius-md); text-align: left;
}
.inline-activate h4 { font-size: var(--fs-sm); font-weight: 700; color: var(--accent); }

.status-bar {
  height: var(--status-height); background: var(--bg-secondary);
  border-top: 1px solid var(--border); display: flex; align-items: center;
  padding: 0 20px; gap: 18px; font-size: var(--fs-sm); flex-shrink: 0; overflow-x: auto;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s infinite; flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 122, 0, .7); }
  70% { box-shadow: 0 0 0 8px rgba(255, 122, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0); }
}
.status-item { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); white-space: nowrap; }
.status-item strong { color: var(--text-title); font-weight: 600; }
.status-spacer { flex: 1; }

/* 字号切换按钮组 */
.fs-group { display: flex; gap: 6px; flex-shrink: 0; }
.fs-btn { border: 1px solid var(--border); background: var(--bg-tertiary); color: var(--text-muted); width: 32px; height: 32px; border-radius: var(--radius-sm); cursor: pointer; font-size: var(--fs-xs); font-family: inherit; transition: all var(--transition); }
.fs-btn:hover { color: var(--text-title); border-color: var(--border-hover); }
.fs-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.content-area.fs-lg .clauseBody, .content-area.fs-lg .spikeBody { font-size: 18px; }
.content-area.fs-lg .clauseBody p, .content-area.fs-lg .spikeBody p { line-height: 2; }
.content-area.fs-sm .clauseBody, .content-area.fs-sm .spikeBody { font-size: var(--fs-sm); }

/* 水印 */
.wm {
  position: fixed; bottom: 40px; right: 14px; z-index: 40; pointer-events: none;
  font-size: 11px; font-weight: 700; color: rgba(147, 161, 179, .4);
  border: 1px solid rgba(147, 161, 179, .22); padding: 3px 8px; border-radius: 4px;
  transform: rotate(-12deg); white-space: nowrap;
}

/* ========================= 十四、条款组件（610/617 收编） ========================= */
.clauseCard {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-sm); margin: 18px 0; overflow: hidden;
}
.clauseHeader {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px;
  background: var(--bg-tertiary); border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.clauseNum {
  font-family: Consolas, monospace; font-size: var(--fs-xs); font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  padding: 4px 10px; border-radius: var(--radius-sm); white-space: nowrap;
}
.clauseTitle { font-size: var(--fs-xl); font-weight: 700; color: var(--text-title); flex: 1; min-width: 200px; }
.clauseBody { padding: 20px 22px 26px; font-size: var(--fs-base); line-height: 1.85; color: var(--text-primary); }
.clauseBody > p { margin-bottom: 14px; }
.label-en { font-weight: 700; color: var(--navy-light); }
.label-cn { font-weight: 700; color: var(--success); }
.en-text { font-family: Arial, Helvetica, sans-serif; color: var(--text-secondary); }
.cn-text { color: var(--text-title); }

/* 上一条 / 下一条 */
.clauseNav { display: flex; justify-content: space-between; gap: 10px; padding: 0 18px 18px; }
.clauseNav button { flex: 1; max-width: 48%; }

/* 折叠分区：语义色体系 */
.spikeWrap {
  border: 1px solid var(--border); border-left: 3px solid var(--border-hover);
  border-radius: var(--radius-md); margin-bottom: 14px; overflow: hidden;
  background: var(--bg-tertiary);
}
.spikeHead {
  padding: 12px 16px; font-weight: 700; font-size: var(--fs-sm); cursor: pointer; user-select: none;
  display: flex; justify-content: space-between; align-items: center; color: var(--text-title);
  transition: background var(--transition);
}
.spikeHead:hover { background: var(--border); }
.spikeIcon { opacity: .55; transition: transform .2s; }
.spikeWrap.open .spikeIcon { transform: rotate(90deg); }
.spikeBody { display: none; padding: 4px 18px 16px; font-size: var(--fs-md); line-height: 1.85; color: var(--text-primary); border-top: 1px solid var(--border); }
.spikeWrap.open .spikeBody { display: block; }
.spikeBody blockquote {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  margin: 10px 0; padding: 10px 14px; border-radius: 0 8px 8px 0;
}

.spike-interpret { border-left-color: var(--info); }      .spike-interpret > .spikeHead { color: var(--info); }
.spike-mech { border-left-color: #6D28D9; }               .spike-mech > .spikeHead { color: #6D28D9; }
.spike-risk { border-left-color: var(--danger); }         .spike-risk > .spikeHead { color: var(--danger); }
.spike-dev { border-left-color: var(--warning); }         .spike-dev > .spikeHead { color: var(--warning); }
.spike-check { border-left-color: var(--success); }       .spike-check > .spikeHead { color: var(--success); }
.spike-calc { border-left-color: #0369A1; }               .spike-calc > .spikeHead { color: #0369A1; }
.spike-verify { border-left-color: #0F766E; }             .spike-verify > .spikeHead { color: #0F766E; }
.spike-asset { border-left-color: #BE185D; }              .spike-asset > .spikeHead { color: #BE185D; }

/* 小标签 */
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 10px; margin-left: 6px; vertical-align: 1px; }
.tagCalc { background: var(--success-soft); color: var(--success); }
.tagDev { background: var(--danger-soft); color: var(--danger); }
.tagCheck { background: var(--info-soft); color: var(--navy-light); }

/* 引用链接 */
.assetRef { color: var(--accent); font-weight: 600; text-decoration: none; border-bottom: 1px dashed var(--accent); cursor: pointer; }
.clauseRef { color: var(--navy-light); font-weight: 600; text-decoration: none; cursor: pointer; }
.assetRef:hover, .clauseRef:hover { opacity: .75; }

/* 公式 */
.mathBlock {
  display: block; font-family: Consolas, monospace; background: var(--bg-tertiary);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; margin: 10px 0; font-size: var(--fs-sm); color: var(--text-title); overflow-x: auto;
}
.math { font-family: Consolas, monospace; background: var(--bg-tertiary); border-radius: 4px; padding: 1px 6px; font-size: 13.5px; color: var(--text-title); }

/* 偏差案例卡片 */
.devCard { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 12px 16px; margin: 12px 0; background: var(--bg-secondary); }
.devCard-header { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.devCard-no { font-size: var(--fs-xs); font-weight: 700; color: var(--accent); }
.devCard-clause { font-size: 11.5px; color: var(--text-muted); }
.devCard-row { font-size: 13.5px; line-height: 1.8; color: var(--text-primary); }
.devCard-label { font-weight: 600; color: var(--text-muted); }
.devCard-action { color: var(--success); }

/* 审查清单卡片 */
.checkCard { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; margin: 10px 0; background: var(--bg-secondary); }
.checkCard-num { display: inline-block; width: 24px; height: 24px; line-height: 24px; text-align: center; background: var(--info-soft); color: var(--navy-light); border-radius: 50%; font-size: var(--fs-xs); font-weight: 700; margin-right: 8px; }
.checkCard-item { font-weight: 700; color: var(--text-title); }
.checkCard-check { margin-top: 6px; font-size: 13.5px; line-height: 1.8; color: var(--text-primary); }
.checkCard-ref { margin-top: 6px; font-size: var(--fs-xs); color: var(--text-muted); }

/* 计算器 */
.calc-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.calc-field { display: flex; flex-direction: column; gap: 4px; }
.calc-field label { font-size: var(--fs-xs); color: var(--text-muted); }
.calc-field input { width: 130px; }
.calc-result { font-size: var(--fs-md); font-weight: 700; color: var(--accent); }

/* 附图/附表画廊 */
.assetGallery { display: flex; flex-direction: column; gap: 10px; }
.assetItem { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--bg-secondary); }
.assetItem-head { padding: 10px 14px; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; user-select: none; display: flex; justify-content: space-between; align-items: center; color: var(--text-title); transition: background var(--transition); }
.assetItem-head:hover { background: var(--bg-tertiary); }
.assetItem-icon { opacity: .55; transition: transform .2s; }
.assetItem.open .assetItem-icon { transform: rotate(90deg); }
.assetItem-body { display: none; }
.assetItem.open .assetItem-body { display: block; }
.assetItem-body img { width: 100%; display: block; background: #fff; }
.assetItem-cap { padding: 8px 14px; font-size: 12.5px; color: var(--text-muted); border-top: 1px solid var(--border); }
.assetItem.flash { animation: flashBg .9s ease; }
@keyframes flashBg { 0%, 60% { box-shadow: 0 0 0 3px var(--accent-hover); } 100% { box-shadow: none; } }

/* 计算卡片（610 条款内嵌计算器） */
.calc-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; margin: 12px 0; background: var(--bg-secondary); }

/* ========================= 十五、工程工具 ========================= */
.chip-row {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px;
  position: sticky; top: var(--nav-height); z-index: 30;
  padding: 14px 0; background: var(--bg-primary);
}
.chip {
  min-height: 42px; padding: 0 16px; border-radius: var(--radius-pill); cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-secondary);
  color: var(--text-secondary); font-size: var(--fs-sm); font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px; transition: all var(--transition);
  font-family: inherit;
}
.chip:hover { border-color: var(--border-hover); color: var(--text-title); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .cnt { font-size: var(--fs-xs); opacity: .8; }
.chip.disabled { opacity: .55; cursor: not-allowed; }

.tool-list { display: grid; gap: 14px; }
.tool-card {
  display: flex; gap: 16px; padding: 22px; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg-secondary); box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.tool-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow); }
.tool-no {
  min-width: 62px; min-height: 46px; padding: 4px 12px; border-radius: var(--radius-md);
  flex-shrink: 0; background: var(--navy); color: #fff;
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 3px;
  line-height: 1.3;
}
.tool-no .n { font-size: var(--fs-md); font-weight: 800; }
.tool-no .t { font-size: 11px; opacity: .85; }
.tool-main { flex: 1; min-width: 0; }
.tool-main h4 { font-size: var(--fs-xl); font-weight: 700; line-height: 1.45; color: var(--text-title); margin-bottom: 4px; }
.tool-main .summary { font-size: var(--fs-md); line-height: 1.65; color: var(--text-secondary); margin-bottom: 6px; }
.tool-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: var(--fs-xs); color: var(--text-muted); }
.tool-action { flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }

/* ========================= 十六、AI 工程问答 ========================= */
.expert-card {
  padding: 24px; background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: all var(--transition);
}
.expert-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow); }
.expert-card.selected { border-color: var(--navy); box-shadow: 0 0 0 1px rgba(23, 58, 94, .35); }
.expert-avatar {
  width: 48px; height: 48px; border-radius: var(--radius-md); margin-bottom: 14px;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  color: #fff; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.expert-card h4 { font-size: var(--fs-xl); font-weight: 700; margin-bottom: 8px; }
.expert-card p { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.75; margin-bottom: 16px; flex: 1; }
.expert-samples { margin-bottom: 16px; }
.expert-samples li {
  font-size: var(--fs-xs); color: var(--text-muted); padding: 6px 0 6px 14px;
  position: relative; border-top: 1px dashed var(--border);
}
.expert-samples li::before { content: '◆'; position: absolute; left: 0; color: var(--accent); font-size: 8px; top: 10px; }

/* 示例问题胶囊 */
.sample-questions { max-width: 620px; margin: 0 auto 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.sample-questions > span { width: 100%; color: var(--text-muted); font-size: var(--fs-xs); }
.sample-questions button {
  padding: 9px 14px; border: 1px solid var(--border); border-radius: var(--radius-pill);
  color: var(--text-secondary); background: var(--bg-secondary); font: inherit; font-size: var(--fs-xs);
  cursor: pointer; transition: all var(--transition);
}
.sample-questions button:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* 对话气泡（问答服务恢复后使用） */
.chat-box { display: flex; flex-direction: column; gap: 16px; }
.chat-msg { display: flex; gap: 12px; }
.chat-msg .who {
  width: 34px; height: 34px; border-radius: var(--radius-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: var(--fs-xs); font-weight: 700;
  background: var(--bg-tertiary); color: var(--text-secondary);
}
.chat-msg.ai .who { background: linear-gradient(135deg, var(--navy), var(--accent)); color: #fff; }
.chat-bubble {
  padding: 14px 16px; border-radius: var(--radius-md); font-size: var(--fs-sm);
  background: var(--bg-tertiary); white-space: pre-wrap; line-height: 1.8; max-width: 720px; color: var(--text-primary);
}
.chat-msg.me .chat-bubble { background: var(--navy); color: #fff; }

/* ========================= 十七、关于 / 联系 ========================= */
.about-hero {
  background: var(--overlay); color: #fff; padding: 52px 24px 48px;
  border-bottom: 1px solid var(--border);
}
.about-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.8px; margin-bottom: 12px; color: #fff; }
.about-hero p { color: rgba(255, 255, 255, .82); max-width: 760px; font-size: var(--fs-base); line-height: 1.8; }

.timeline { border-left: 2px solid var(--border); padding-left: 26px; margin-left: 8px; }
.timeline li { position: relative; padding-bottom: 26px; }
.timeline li::before {
  content: ''; position: absolute; left: -33px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
  border: 2px solid var(--bg-primary);
}
.timeline .y { font-size: var(--fs-xs); font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.timeline .c { font-size: var(--fs-sm); color: var(--text-secondary); }

.contact-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: none; }
.contact-item .ci-icon {
  width: 40px; height: 40px; border-radius: var(--radius-md); flex-shrink: 0;
  background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.contact-item .ci-label { font-size: var(--fs-xs); color: var(--text-muted); }
.contact-item .ci-value { font-size: var(--fs-md); font-weight: 600; color: var(--text-title); }

/* ========================= 十八、激活 / 登录注册 / 账户 ========================= */
.auth-wrap { min-height: calc(100vh - var(--nav-height)); display: flex; align-items: center; justify-content: center; padding: 44px 24px; }
.auth-card {
  width: 100%; max-width: 480px; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.auth-head { padding: 28px 32px 16px; text-align: center; }
.auth-head h2 { font-size: var(--fs-2xl); font-weight: 800; margin-bottom: 6px; }
.auth-head p { font-size: var(--fs-xs); color: var(--text-muted); }
.auth-body { padding: 8px 32px 28px; }
.auth-tip { margin-top: 16px; padding: 12px 14px; background: var(--info-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: var(--fs-xs); color: var(--text-secondary); line-height: 1.7; }
.auth-footer { padding: 16px 24px 20px; border-top: 1px solid var(--border); font-size: var(--fs-xs); color: var(--text-muted); text-align: center; line-height: 1.8; background: var(--bg-tertiary); }
.auth-footer a { color: var(--accent); }

.tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--bg-tertiary); }
.tab { flex: 1; height: 52px; border: none; background: transparent; color: var(--text-muted); font-size: var(--fs-sm); font-weight: 600; font-family: inherit; cursor: pointer; transition: all var(--transition); border-bottom: 2px solid transparent; }
.tab:hover { color: var(--text-secondary); }
.tab.active { color: var(--text-title); border-bottom-color: var(--accent); background: var(--bg-secondary); }
.tab-panel { display: none; padding: 26px 24px; }
.tab-panel.active { display: block; }

.swap-link { text-align: center; font-size: var(--fs-xs); color: var(--text-muted); padding: 12px 32px 24px; }
.swap-link a { color: var(--navy-light); font-weight: 600; }
.swap-link a:hover { text-decoration: underline; }

/* 个人中心 */
.profile-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.profile-avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px; color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; font-weight: 700;
  border: 4px solid var(--bg-primary); box-shadow: var(--shadow-sm);
  background-size: cover; background-position: center;
}
.profile-layout { display: grid; grid-template-columns: 320px 1fr; gap: 28px; }
.profile-side { padding: 26px 22px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); text-align: center; }
.profile-side h3 { font-size: var(--fs-xl); margin-bottom: 4px; }
.profile-side .role { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: 14px; }
.profile-side ul { text-align: left; font-size: var(--fs-xs); color: var(--text-secondary); line-height: 1.9; }
.profile-form { padding: 28px 30px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.profile-form h3 { font-size: var(--fs-xl); margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { margin-bottom: 16px; }

.license-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: var(--radius-md); margin-bottom: 12px; transition: all var(--transition);
}
.license-item:hover { border-color: var(--border-hover); }
.license-item .li-name { font-size: var(--fs-md); font-weight: 600; color: var(--text-title); display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.license-item .li-meta { font-size: var(--fs-xs); color: var(--text-muted); }
.license-item .li-days { text-align: right; flex-shrink: 0; }
.license-item .li-days .num { font-size: var(--fs-3xl); font-weight: 800; color: var(--accent); line-height: 1.2; }
.license-item .li-days .unit { font-size: var(--fs-xs); color: var(--text-muted); }

/* 账户统计卡 */
.admin-wrap { min-height: calc(100vh - var(--nav-height)); padding: 36px 24px 60px; }
.stat-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); transition: all var(--transition); }
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-card .label { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: 6px; }
.stat-card .value { font-size: 32px; font-weight: 800; line-height: 1.2; color: var(--navy); }
.stat-card.accent .value { color: var(--accent); }

/* 通用表格 */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
table.table { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); min-width: 680px; }
table.table thead th { background: var(--bg-tertiary); color: var(--text-secondary); font-weight: 600; text-align: left; padding: 12px 14px; white-space: nowrap; border-bottom: 1px solid var(--border); }
table.table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text-secondary); vertical-align: middle; }
table.table tbody tr:last-child td { border-bottom: none; }
table.table tbody tr:hover td { background: var(--bg-tertiary); }
table.table td.code-cell { font-family: 'SF Mono', Consolas, monospace; color: var(--text-title); white-space: nowrap; }
.copy-btn { border: none; background: var(--bg-tertiary); color: var(--text-secondary); border-radius: var(--radius-sm); padding: 3px 8px; font-size: var(--fs-xs); cursor: pointer; font-family: inherit; margin-left: 8px; transition: all var(--transition); }
.copy-btn:hover { background: var(--navy); color: #fff; }
.code-result { margin-top: 18px; padding: 16px; background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius-md); max-height: 240px; overflow-y: auto; }
.code-result .line { font-family: 'SF Mono', Consolas, monospace; font-size: var(--fs-xs); color: var(--navy-light); padding: 4px 0; letter-spacing: 1px; }

/* 会员档位卡 */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 36px; }
.plan-card {
  position: relative; padding: 32px 28px; border-radius: var(--radius-lg);
  background: var(--bg-secondary); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 18px; transition: all var(--transition);
}
.plan-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.plan-card.popular { border-color: var(--accent); box-shadow: 0 8px 28px rgba(255, 122, 0, .15); }
.plan-card.popular::before {
  content: '推荐'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: var(--fs-xs); font-weight: 700;
  padding: 4px 14px; border-radius: var(--radius-pill); letter-spacing: 1px;
}
.plan-name { font-size: var(--fs-2xl); font-weight: 800; color: var(--text-title); }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price .num { font-size: 38px; font-weight: 800; color: var(--navy); }
.plan-price .unit { font-size: var(--fs-sm); color: var(--text-muted); }
.plan-price .orig { font-size: var(--fs-sm); color: var(--text-muted); text-decoration: line-through; margin-left: auto; }
.plan-points { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); font-size: var(--fs-xs); font-weight: 600; width: fit-content; }
.plan-desc { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.7; min-height: 60px; }
.plan-feats { font-size: var(--fs-xs); color: var(--text-secondary); display: flex; flex-direction: column; gap: 6px; }
.plan-feats li { display: flex; align-items: flex-start; gap: 6px; }
.plan-feats li::before { content: '✓'; color: var(--navy-light); font-weight: 800; flex-shrink: 0; }
.plan-cta { margin-top: auto; }
.plan-mine { padding: 6px 14px; border-radius: var(--radius-sm); background: var(--info-soft); color: var(--navy-light); font-size: var(--fs-xs); font-weight: 600; display: inline-block; }
.plan-card.popular .plan-mine { background: var(--accent-soft); color: var(--accent); }

/* 会员制度文档块 */
.pricing-block { padding: 24px 28px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.pricing-block h3 { font-size: var(--fs-xl); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.pricing-block h3 .num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: var(--fs-xs); font-weight: 700; }
.pricing-block ul { padding-left: 20px; line-height: 1.9; color: var(--text-secondary); font-size: var(--fs-sm); list-style: disc; }
.pricing-block ul li::marker { color: var(--navy-light); }
.pricing-note { padding: 16px 20px; border-radius: var(--radius-md); background: var(--info-soft); border-left: 3px solid var(--navy); font-size: var(--fs-xs); color: var(--text-secondary); margin-top: 18px; }

/* 积分卡 */
.point-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px;
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.point-card .num { font-size: var(--fs-3xl); font-weight: 800; color: var(--accent); }

/* ========================= 十九、管理控制台（收编自 admin.html） ========================= */
.adm { display: flex; min-height: calc(100vh - var(--nav-height)); }
.adm-side { width: 216px; flex-shrink: 0; background: var(--bg-secondary); border-right: 1px solid var(--border); padding: 20px 12px; position: sticky; top: var(--nav-height); height: calc(100vh - var(--nav-height)); overflow-y: auto; }
.adm-side .brand { font-size: var(--fs-md); font-weight: 700; color: var(--text-title); padding: 4px 12px 16px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.adm-side .brand small { display: block; font-size: 11px; font-weight: 400; color: var(--text-muted); margin-top: 3px; }
.adm-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13.5px; color: var(--text-muted); cursor: pointer; border: none; background: transparent; width: 100%; text-align: left; font-family: inherit; margin-bottom: 2px; transition: all var(--transition); }
.adm-nav-item:hover { color: var(--text-title); background: var(--bg-tertiary); }
.adm-nav-item.active { color: #fff; background: var(--navy); font-weight: 600; }
.adm-nav-item .ico { width: 18px; text-align: center; }
.adm-side .side-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }

.adm-main { flex: 1; padding: 24px 28px 60px; min-width: 0; }
.adm-page { display: none; }
.adm-page.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.adm-title { font-size: var(--fs-2xl); font-weight: 700; color: var(--text-title); margin-bottom: 4px; }
.adm-sub { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: 22px; }
.adm-section { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 20px; margin-bottom: 20px; }
.adm-section h3 { font-size: var(--fs-md); font-weight: 700; color: var(--text-title); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-section h3 .right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 16px 18px; position: relative; overflow: hidden; }
.kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--border-hover); }
.kpi.k-red::before { background: var(--accent); }
.kpi.k-green::before { background: var(--success); }
.kpi.k-blue::before { background: var(--info); }
.kpi.k-amber::before { background: var(--warning); }
.kpi .k-label { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: 6px; }
.kpi .k-value { font-size: 26px; font-weight: 800; line-height: 1.2; color: var(--text-title); }
.kpi .k-delta { font-size: 11.5px; margin-top: 5px; color: var(--text-muted); }
.kpi .k-delta b.up { color: var(--success); }
.kpi .k-delta b.down { color: var(--accent); }

.chart-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; }
.chart-box { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 18px 20px; }
.chart-box h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 14px; color: var(--text-title); }
.chart-box svg { width: 100%; height: 180px; display: block; }
.chart-tip { font-size: 11px; color: var(--text-muted); margin-top: 8px; }

.adm-table-wrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); }
.adm-table th, .adm-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.adm-table th { color: var(--text-muted); font-weight: 600; font-size: var(--fs-xs); background: var(--bg-tertiary); }
.adm-table tr:hover td { background: var(--bg-tertiary); }
.adm-table .wrap { white-space: normal; min-width: 220px; line-height: 1.6; }

.mini-btn { border: 1px solid var(--border-hover); background: transparent; color: var(--text-title); font-size: var(--fs-xs); padding: 4px 10px; border-radius: 6px; cursor: pointer; font-family: inherit; transition: all var(--transition); }
.mini-btn:hover { border-color: var(--accent); color: var(--accent); }
.mini-btn.danger:hover { border-color: var(--accent); background: var(--accent-soft); }
.mini-btn:disabled { opacity: .4; cursor: not-allowed; }

.gen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 16px; }
.gen-result { background: var(--bg-tertiary); border: 1px dashed var(--border-hover); border-radius: var(--radius-md); padding: 14px 16px; font-family: Consolas, monospace; font-size: var(--fs-xs); line-height: 2; max-height: 260px; overflow-y: auto; }

.toolbar-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar-row .input { height: 38px; font-size: var(--fs-xs); }
.filter-chip { border: 1px solid var(--border); background: transparent; color: var(--text-muted); border-radius: var(--radius-pill); padding: 5px 14px; font-size: 12.5px; cursor: pointer; font-family: inherit; transition: all var(--transition); }
.filter-chip:hover { border-color: var(--border-hover); color: var(--text-secondary); }
.filter-chip.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 600; }

.empty-line { text-align: center; color: var(--text-muted); padding: 26px; font-size: var(--fs-xs); }

/* ========================= 二十、页脚 ========================= */
.footer { border-top: none; background: var(--navy-dark); color: #fff; padding: 52px 24px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; max-width: var(--content-max); margin: 0 auto; }
.footer h5 { font-size: var(--fs-sm); font-weight: 700; margin-bottom: 14px; color: #fff; }
.footer ul li { margin-bottom: 9px; }
.footer ul li a { font-size: var(--fs-sm); color: rgba(255, 255, 255, .66); }
.footer ul li a:hover { color: var(--accent-on-dark); }
.footer .f-about { font-size: var(--fs-sm); color: rgba(255, 255, 255, .66); line-height: 1.9; margin-top: 14px; max-width: 320px; }
.footer-bottom {
  max-width: var(--content-max); margin: 36px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .14); text-align: center;
  font-size: var(--fs-xs); color: rgba(255, 255, 255, .5); line-height: 1.9;
}

/* ========================= 二十一、Toast / 加载 ========================= */
.toast-box { position: fixed; top: 76px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  min-width: 220px; max-width: 340px; padding: 12px 16px; border-radius: var(--radius-md);
  background: var(--bg-elevated); border: 1px solid var(--border); border-left: 3px solid var(--navy-light);
  box-shadow: var(--shadow); font-size: var(--fs-sm); color: var(--text-title);
  opacity: 0; transform: translateX(20px); transition: all .26s ease;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }

.loading { display: inline-block; width: 20px; height: 20px; border: 3px solid var(--border); border-top-color: var(--navy-light); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ========================= 二十二、响应式 ========================= */
/* 移动端底部 TabBar（默认隐藏，≤768px 启用） */
.mobile-tabbar { display: none; }

/* ---------- ≤1080px：抽屉导航 ---------- */
@media (max-width: 1080px) {
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .nav-right .btn { display: none; }
  .hero h1 { font-size: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .plan-grid { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
}

/* ---------- ≤1024px：管理后台侧栏换行 ---------- */
@media (max-width: 1024px) {
  .adm { flex-direction: column; }
  .adm-side { width: 100%; height: auto; position: static; display: flex; flex-wrap: wrap; gap: 4px; padding: 12px; }
  .adm-side .brand { width: 100%; border-bottom: none; margin-bottom: 6px; padding-bottom: 6px; }
  .adm-nav-item { width: auto; }
  .adm-side .side-foot { width: 100%; margin-top: 8px; padding-top: 8px; }
  .adm-main { padding: 16px; }
}

/* ---------- ≤768px：移动端（TabBar + 大字阅读） ---------- */
@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  body { font-size: var(--fs-lg); line-height: 1.8; padding-bottom: 70px; }

  .container { padding: 0 16px; }
  .navbar-inner { padding: 0 16px; gap: 10px; height: 60px; }
  .logo-img { height: 18px; }
  .logo-text .sub { display: none; }
  .logo-text .brand { font-size: var(--fs-sm); letter-spacing: 1px; }
  /* 768 以下走底部 TabBar，汉堡与顶栏登录态隐藏 */
  .nav-toggle { display: none; }
  .nav-right [data-auth-slot] { display: none; }
  .nav-drawer { display: none !important; }

  .section { padding: 42px 0; }
  .section-lg { padding: 56px 0; }
  .section-head { margin-bottom: 24px; }
  .section-title { font-size: var(--fs-3xl); }
  .section-desc { font-size: var(--fs-base); }

  /* Hero：首屏不过满 */
  .hero-inner { padding: 44px 18px 38px; }
  .hero-tag { margin-bottom: 18px; }
  .hero h1 { font-size: 30px; line-height: 1.25; letter-spacing: -.5px; }
  .hero p.lead { font-size: var(--fs-lg); line-height: 1.75; margin-bottom: 24px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { min-width: 0; width: 100%; }
  .hero-actions .btn:last-child { grid-column: 1 / -1; }
  .hero-stats { display: none; }

  .feature-tile { min-height: 0; padding: 24px; }
  .feature-tile h3 { font-size: var(--fs-3xl); }
  .feature-tile p { min-height: 0; font-size: var(--fs-md); }
  .card-desc { font-size: var(--fs-md); }
  .cta-band { padding: 32px 22px; }
  .cta-band h3 { font-size: var(--fs-2xl); }
  .cta-band .btn { width: 100%; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .std-card { padding: 22px; }
  .std-card .std-code { font-size: 26px; }
  .std-card .std-foot { align-items: flex-start; flex-direction: column; }

  /* 底部导航 */
  .mobile-tabbar {
    position: fixed; display: grid; grid-template-columns: repeat(5, 1fr);
    left: 0; right: 0; bottom: 0; z-index: 500; height: 70px;
    padding: 7px max(6px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--border);
    box-shadow: 0 -6px 22px rgba(25, 38, 47, .08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .mobile-tabbar a {
    min-width: 0; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; border-radius: 10px; color: var(--text-muted); font-size: 11px; font-weight: 600;
  }
  .mobile-tabbar a.active { color: var(--accent); background: var(--accent-soft); }
  .mobile-tab-icon { font-size: 20px; line-height: 1; }

  /* 工作台：侧栏变抽屉 */
  .workbench { flex-direction: column; height: calc(100vh - 60px - 70px); position: relative; }
  .sidebar {
    position: absolute; z-index: 60; top: 0; bottom: 0; left: 0;
    width: 84%; min-width: 0; max-width: 320px;
    transform: translateX(-102%); transition: transform .25s ease;
    box-shadow: var(--shadow);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle {
    display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-secondary); color: var(--text-title);
    font-size: var(--fs-xs); font-family: inherit; cursor: pointer; flex-shrink: 0;
  }
  .resize-handle { display: none; }
  .content-toolbar { padding: 10px 12px; gap: 8px; }
  .content-search { min-width: 0; flex: 1; max-width: none; }
  .content-search input { width: 100%; height: 42px; font-size: var(--fs-base); }
  .searchDrop { top: 48px; }
  .content-inner { padding: 28px 18px 80px; }
  .content-title { font-size: var(--fs-3xl); }
  .content-text { font-size: var(--fs-lg); line-height: 1.82; }
  .clauseCard { margin: 14px 0; }
  .clauseHeader { padding: 14px 16px; }
  .clauseTitle { font-size: var(--fs-lg); }
  .clauseBody, .spikeBody { font-size: var(--fs-lg) !important; line-height: 1.82 !important; }
  .clauseNav { padding: 0 14px 14px; }
  .welcome { padding: 40px 20px; text-align: left; }
  .welcome-actions { justify-content: flex-start; }
  .locked { padding: 36px 20px; }
  .status-bar { display: none; }
  .fs-group { display: none; }

  /* 工具库 */
  .tool-card { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
  .tool-no { width: 56px; min-width: 56px; }
  .tool-main h4 { font-size: var(--fs-xl); }
  .tool-main .summary { font-size: var(--fs-base); }
  .tool-meta { line-height: 1.6; }
  .tool-action { width: 100%; flex-direction: row; }
  .tool-action .btn { flex: 1; min-height: 48px; }
  .chip-row { top: 60px; flex-wrap: nowrap; overflow-x: auto; margin: -8px -16px 20px; padding: 12px 16px; scrollbar-width: none; }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip { min-height: 44px; flex-shrink: 0; }

  /* AI 问答 */
  .sample-questions { align-items: stretch; flex-direction: column; }
  .sample-questions button { text-align: left; border-radius: var(--radius-md); min-height: 48px; font-size: var(--fs-sm); }

  /* 页脚让位给 TabBar */
  .footer { display: none; }

  .toast-box { top: 70px; right: 12px; left: 12px; }
  .toast { max-width: none; }
  .about-hero { padding: 36px 18px 34px; }
  .about-hero h1 { font-size: var(--fs-4xl); }
  .about-hero p { font-size: var(--fs-base); line-height: 1.75; }
  .admin-wrap { padding: 24px 16px 48px; }
  .panel-body { padding: 16px; }
  .input-group { flex-direction: column; }
  .input-group .btn { width: 100%; }
  .auth-wrap { min-height: calc(100vh - 60px - 70px); padding: 24px 16px; }
  .auth-head, .auth-body { padding-left: 22px; padding-right: 22px; }
}

/* ---------- ≤480px：小屏微调 ---------- */
@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-actions .btn:last-child { grid-column: auto; }
  .section-title { font-size: var(--fs-2xl); }
  .license-item { flex-direction: column; align-items: flex-start; }
  .license-item .li-days { text-align: left; }
}

/* =============================================================================
 * 十二、技术反馈（浮动入口 + 反馈弹窗，全站由 app.js 注入）
 * ========================================================================== */

/* ---------- 右下角浮动反馈按钮 ---------- */
.fb-fab {
  position: fixed; right: 20px; bottom: 24px; z-index: 900;
  display: flex; align-items: center; gap: 7px;
  height: 46px; padding: 0 18px 0 14px; border: none; cursor: pointer;
  border-radius: var(--radius-pill);
  background: var(--navy); color: #fff;
  font-size: var(--fs-sm); font-weight: 600; font-family: inherit;
  box-shadow: var(--shadow);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.fb-fab:hover { background: var(--navy-light); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(35, 48, 57, .18); }
.fb-fab:active { transform: translateY(0); }
.fb-fab-ico { font-size: 16px; line-height: 1; }

/* ---------- 反馈弹窗 ---------- */
.fb-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(16, 30, 44, .46);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.fb-overlay.show { opacity: 1; pointer-events: auto; }
.fb-dialog {
  width: 100%; max-width: 480px; max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  transform: translateY(10px); transition: transform var(--transition);
}
.fb-overlay.show .fb-dialog { transform: translateY(0); }
.fb-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px; border-bottom: 1px solid var(--border);
}
.fb-title { font-size: var(--fs-xl); font-weight: 700; color: var(--text-title); }
.fb-close {
  border: none; background: none; cursor: pointer;
  font-size: var(--fs-lg); color: var(--text-muted); line-height: 1;
  padding: 4px 6px; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.fb-close:hover { color: var(--text-title); background: var(--bg-tertiary); }
.fb-form { padding: 16px 20px 20px; }
.fb-context {
  margin: 0 0 14px; padding: 10px 12px;
  background: var(--bg-tertiary); border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs); color: var(--text-secondary);
  word-break: break-all;
}
.fb-ctx-line + .fb-ctx-line { margin-top: 2px; }
.fb-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }

/* ---------- 章节级反馈入口（610 / 617 正文区） ---------- */
.clause-fb-btn {
  margin-left: auto; flex-shrink: 0;
  border: 1px solid var(--border); background: var(--bg-secondary);
  color: var(--text-secondary); cursor: pointer;
  font-size: var(--fs-xs); font-family: inherit; line-height: 1;
  padding: 6px 12px; border-radius: var(--radius-pill);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.clause-fb-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* ---------- 移动端：浮动按钮避让底部 TabBar ---------- */
@media (max-width: 768px) {
  .fb-fab { right: 14px; bottom: calc(70px + env(safe-area-inset-bottom, 0px) + 14px); height: 42px; padding: 0 14px; }
  .fb-fab-text { display: none; }
  .fb-overlay { padding: 12px; align-items: flex-end; }
  .fb-dialog { max-height: calc(100vh - 24px); }
}

/* =============================================================================
 * 共建计划（Roadmap）—— 按模块大类分列的公开计划看板
 * ========================================================================== */

/* 桌面：列数按内容自适应（1280px 下 6 列可并排）；移动端纵向堆叠 */
.rm-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  align-items: start;
}

.rm-col {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
}

.rm-col-head {
  padding-bottom: 8px; margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.rm-col-title {
  display: block;
  font-size: var(--fs-md); font-weight: 700; color: var(--text-title); line-height: 1.3;
}
.rm-col-en {
  display: block;
  margin-top: 2px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  color: var(--text-muted);
}

.rm-col-body { display: flex; flex-direction: column; gap: 8px; }
.rm-empty {
  padding: 12px 4px; text-align: center;
  color: var(--text-muted); font-size: var(--fs-xs);
  border: 1px dashed var(--border); border-radius: var(--radius-sm);
}

/* 紧凑条目行：标题 + 状态徽章 + 简介 + 期待操作 */
.rm-row {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 9px 10px;
  display: flex; flex-direction: column; gap: 5px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.rm-row:hover { border-color: var(--border-hover); box-shadow: var(--shadow-sm); }

.rm-row-line { display: flex; align-items: flex-start; gap: 6px; }
.rm-row-title {
  flex: 1;
  font-size: var(--fs-sm); font-weight: 700; color: var(--text-title); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* 行内状态徽章：比默认 badge 更紧凑 */
.rm-row-line .badge { min-height: 20px; padding: 1px 8px; font-size: 12px; flex-shrink: 0; }

.rm-row-summary {
  font-size: var(--fs-xs); color: var(--text-secondary); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.rm-row-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rm-row-count { font-size: var(--fs-xs); color: var(--text-muted); }

/* 行内「期待」小按钮（复用主按钮配色逻辑，独立紧凑尺寸） */
.rm-vote-btn {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--bg-secondary); color: var(--text-primary);
  font-family: inherit; font-size: var(--fs-xs); font-weight: 600;
  padding: 4px 10px; cursor: pointer; line-height: 1; white-space: nowrap;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.rm-vote-btn:hover {
  color: var(--accent); border-color: var(--accent); background: var(--accent-soft);
}
.rm-vote-btn:disabled { cursor: default; }
.rm-vote-btn.voted {
  color: var(--accent); border-color: rgba(255, 122, 0, .4);
  background: var(--accent-soft); cursor: default;
}
.rm-vote-ico { font-size: 11px; }

.rm-note {
  margin-top: 18px; text-align: center;
  color: var(--text-muted); font-size: var(--fs-sm);
}

/* 移动端：每个大类一个纵向小节 */
@media (max-width: 768px) {
  .rm-board { grid-template-columns: 1fr; }
}

/* =============================================================================
 * Content 内容中心（content.html）
 * ========================================================================== */

/* 渠道卡片：图标 + 内容，底部操作对齐 */
.content-channel { display: flex; flex-direction: column; }
.content-channel .card-desc { flex: 1; margin-bottom: 14px; }
.content-channel .btn { align-self: flex-start; }

/* 渠道图标（中性底圆形，克制装饰） */
.content-channel-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 14px;
  border-radius: 50%;
  background: var(--bg-tertiary); border: 1px solid var(--border);
  font-size: var(--fs-2xl); line-height: 1;
}
.content-ico-douyin    { background: var(--accent-soft); border-color: rgba(255, 122, 0, .3); }
.content-ico-shipinhao { background: var(--info-soft);   border-color: rgba(44, 74, 107, .28); }
.content-ico-gongzhonghao { background: var(--success-soft); border-color: rgba(47, 158, 110, .3); }
.content-ico-sm { width: 38px; height: 38px; margin-bottom: 10px; font-size: var(--fs-lg); }

/* 二维码占位框：虚线框 + 居中占位文案 */
.content-qr {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 132px; height: 132px; margin: 2px 0 10px;
  border: 1.5px dashed var(--border-hover); border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  color: var(--text-muted); text-align: center;
}
.content-qr-icon { font-size: var(--fs-3xl); line-height: 1; opacity: .7; }
.content-qr-text { font-size: var(--fs-xs); line-height: 1.6; color: var(--text-secondary); }
.content-qr-tip { font-size: var(--fs-xs); color: var(--text-muted); }

/* 激活码渠道：紧凑横向入口卡片 */
.content-mini { display: block; text-decoration: none; }
.content-mini-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.content-mini-head .content-ico-sm { margin-bottom: 0; }
.content-mini-head .card-title { margin-bottom: 0; flex: 1; }
.content-mini .card-desc { margin-bottom: 0; }

/* 核心能力路径卡片 */
.content-path { display: flex; flex-direction: column; text-decoration: none; }
.content-path .card-desc { flex: 1; margin-bottom: 12px; }
.content-path-go {
  font-size: var(--fs-sm); font-weight: 600; color: var(--accent);
}
a.content-path:hover .content-path-go { color: var(--accent-hover); }

/* 底部说明行（AI 助手建设中提示） */
.content-note {
  margin-top: 22px; text-align: center;
  color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.8;
}
.content-note a { color: var(--navy-light); }

/* 移动端：渠道卡内二维码占位框收窄居中 */
@media (max-width: 768px) {
  .content-channel .btn { width: 100%; text-align: center; justify-content: center; }
}

/* =============================================================================
 * 建设中页面引导区（expert.html / selection.html）
 * ========================================================================== */

/* 引导路径卡片：卡片整体可点，底部行动语句 */
.guide-card { display: flex; flex-direction: column; }
.guide-card .card-desc { flex: 1; margin-bottom: 12px; }
.guide-card-go { font-size: var(--fs-sm); font-weight: 600; color: var(--accent); }
a.guide-card { text-decoration: none; color: inherit; }
a.guide-card:hover .guide-card-go { color: var(--accent-hover); }

/* 示例计算书（纯样式演示，明确标注非真实结果） */
.demo-sheet {
  max-width: 760px; margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
}
.demo-sheet-badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px; margin-bottom: 14px;
  border-radius: var(--radius-pill);
  background: var(--warning-soft); border: 1px solid rgba(183, 121, 31, .35);
  color: var(--warning); font-size: var(--fs-xs); font-weight: 700;
}
.demo-sheet-head { margin-bottom: 14px; }
.demo-sheet-title { font-size: var(--fs-xl); font-weight: 800; color: var(--text-title); }
.demo-sheet-sub { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 4px; }

.demo-sheet-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.demo-sheet-table th, .demo-sheet-table td {
  border: 1px solid var(--border); padding: 9px 12px; text-align: left;
}
.demo-sheet-table th {
  width: 120px; background: var(--bg-tertiary);
  color: var(--text-secondary); font-weight: 600; white-space: nowrap;
}
.demo-sheet-table td { color: var(--text-primary); }

.demo-sheet-foot {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.7;
}

/* 移动端：示例计算书字段名收窄 */
@media (max-width: 768px) {
  .demo-sheet { padding: 16px; }
  .demo-sheet-table th { width: 88px; }
}

/* =============================================================================
 * 账户下拉菜单（导航用户 chip，任务 5）
 * ========================================================================== */
.user-menu-wrap { position: relative; display: inline-flex; }

/* chip 改为按钮态，保持原视觉 */
button.user-chip {
  border: 1px solid var(--border); background: var(--bg-elevated);
  cursor: pointer; font-family: inherit;
  transition: border-color var(--transition);
}
button.user-chip:hover { border-color: var(--border-hover); }
.user-menu-caret { margin-left: 2px; font-size: 11px; color: var(--text-muted); }

/* 下拉面板 */
.user-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 1200;
  min-width: 150px;
  display: none; flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 6px; overflow: hidden;
}
.user-menu.open { display: flex; }
.user-menu a, .user-menu button {
  display: block; width: 100%;
  padding: 9px 12px; border: none; background: none;
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: var(--fs-sm); text-align: left;
  color: var(--text-primary); text-decoration: none; cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.user-menu a:hover, .user-menu button:hover { background: var(--bg-tertiary); color: var(--text-title); }
.user-menu button[data-user-logout] { color: var(--danger); }
.user-menu button[data-user-logout]:hover { background: var(--danger-soft); color: var(--danger); }

/* 抽屉内下拉改为左对齐，避免溢出 */
.nav-drawer .user-menu { right: auto; left: 0; }

/* =============================================================================
 * 品牌迁移（任务 6）：页脚 ORANGE 背书 + Logo 适配
 * ========================================================================== */

/* 页脚底部：版权左、ORANGE 背书右（极小尺寸、低存在感） */
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.by-orange { display: block; height: 14px; width: auto; opacity: .85; }

/* 关于我们页：品牌关系小尺寸展示 */
.about-brand-lockup { max-width: 160px; width: 100%; height: auto; display: block; }

/* 移动端：页脚背书换行居左 */
@media (max-width: 768px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
