/* PSPService.cn — 设计系统 / 全局样式
   主视觉：Dell 蓝 (#007DB8) + 深海军蓝 + 银灰，企业级、清爽、响应式 */

:root {
  --brand: #007DB8;
  --brand-dark: #005C8A;
  --brand-darker: #003A57;
  --navy: #0B1F33;
  --ink: #1B2733;
  --muted: #5B6B7B;
  --line: #E2E8EE;
  --bg: #F5F8FB;
  --bg-soft: #EEF4F9;
  --white: #FFFFFF;
  --ok: #1E9E5A;
  --warn: #C9701A;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11,31,51,.08);
  --shadow-lg: 0 14px 40px rgba(11,31,51,.14);
  --maxw: 1180px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.card-img { width: 100%; height: auto; border-radius: 12px; margin-top: 14px; border: 1px solid #e8edf3; cursor: zoom-in; }

/* 图片点击放大（lightbox，零依赖，移动端友好） */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.86); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 18px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: calc(100vw - 36px); max-height: 90vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 12px 48px rgba(0,0,0,.55); cursor: default; }
.lightbox .lb-hint { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: rgba(255,255,255,.72); font-size: 13px; letter-spacing: .5px; }
@media (max-width: 640px) { .lightbox { padding: 10px; } .lightbox img { max-width: calc(100vw - 20px); max-height: 86vh; } }

/* ---------- 布局容器 ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); letter-spacing: .3px; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-darker));
  color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 15px;
}
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; letter-spacing: 2px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 9px; color: var(--ink); font-weight: 600; font-size: 15px;
}
.nav-links a:hover { background: var(--bg-soft); text-decoration: none; }
.nav-links a.active { color: var(--brand); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-weight: 700; cursor: pointer;
  border: 1px solid transparent; font-size: 15px; transition: .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--bg-soft); text-decoration: none; }
/* 首页 Hero 两按钮（浏览服务 / 常用入口）缩小版 */
.btn.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 9px; }
.btn-staff {
  background: var(--navy); color: #fff; border: 1px solid var(--navy);
  padding: 9px 16px; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer;
  text-decoration: none; display: inline-block;
}
.btn-staff:hover { background: #122c47; text-decoration: none; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(0,125,184,.18), transparent 60%),
    linear-gradient(180deg, #fff, var(--bg-soft));
  padding: 78px 0 64px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--brand); font-weight: 800; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; }
.hero h1 { font-size: 40px; line-height: 1.2; margin: 12px 0 14px; color: var(--navy); }
.hero p.lead { font-size: 18px; color: var(--muted); margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
/* 主页品牌徽标（白底版，融入浅色 Hero，不加描边阴影） */
.hero-logo {
  display: block;
  width: min(400px, 100%);
  height: auto;
  margin: 0 auto;
}
/* Hero 左图右文两栏 */
.hero-split {
  display: grid;
  grid-template-columns: minmax(200px, 0.8fr) 1.2fr;
  gap: 48px;
  align-items: center;
}
.hero-media { display: flex; justify-content: center; }
.hero-copy { text-align: left; }
.hero-copy p.lead { max-width: 560px; }
/* 按钮回到底部居中（老位置） */
.hero-cta-row { justify-content: center; margin-top: 30px; }
/* 顶部语言切换 */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; margin: 0 2px; font-size: 14px; }
.lang-switch a { padding: 6px 10px; border-radius: 8px; color: var(--muted); font-weight: 600; }
.lang-switch a:hover { background: var(--bg-soft); text-decoration: none; }
.lang-switch a.active { color: var(--brand); background: var(--bg-soft); }
.lang-switch i { color: var(--line); font-style: normal; }
/* 卡片副标题 */
.card h3 small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .5px; margin-top: 2px; }
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px;
}
.hero-card h3 { margin: 0 0 14px; color: var(--navy); font-size: 17px; }
.hero-card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.hero-card li { margin: 8px 0; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid.cols-1 { grid-template-columns: 1fr; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--brand); font-size: 22px; margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; color: var(--navy); font-size: 18px; }
.card p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.card .more { font-weight: 700; font-size: 14px; }
/* 卡片内双链接（中/英）横向排列、自动换行 */
.linkrow { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
/* 区块底部居中链接（如"其他服务合同"总入口） */
.section-more { text-align: center; margin: 18px 0 0; }

/* ---------- 区块标题 ---------- */
.section-head { max-width: 720px; margin: 0 auto 38px; text-align: center; }
.section-head h2 { font-size: 30px; color: var(--navy); margin: 8px 0 10px; }
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }
.col-item-title { margin: 30px 0 16px; padding-left: 12px; border-left: 4px solid #007DB8; color: var(--navy); font-size: 20px; font-weight: 700; }

/* ---------- 步骤 / 流程 ---------- */
.steps { counter-reset: s; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step .num {
  counter-increment: s; flex: 0 0 38px; height: 38px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800;
}
.step .num::before { content: counter(s); }
.step h4 { margin: 6px 0 4px; color: var(--navy); }
.step p { margin: 0; color: var(--muted); }

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.table th { background: var(--bg-soft); color: var(--navy); font-weight: 700; }
.table tr:last-child td { border-bottom: none; }
.table.gc td .en { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .3px; }
.muted { color: var(--muted); }

/* ---------- 全球联系方式汇总页 ---------- */
.gc-search-wrap { margin-top: 22px; }
.gc-search-label { display: block; font-size: 14px; font-weight: 700; color: var(--brand-dark); margin-bottom: 8px; }
.gc-search-box {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 2px solid var(--brand);
  border-radius: 12px; padding: 4px 14px;
  max-width: 520px; box-shadow: 0 3px 12px rgba(0,125,184,.14);
}
.gc-search-box:focus-within { border-color: var(--brand-dark); box-shadow: 0 3px 14px rgba(0,125,184,.24); }
.gc-search-ico { width: 20px; height: 20px; flex: 0 0 auto; fill: var(--brand); }
.gc-search { flex: 1 1 auto; min-width: 0; border: none; outline: none; background: transparent; font-size: 16px; padding: 12px 2px; font-family: var(--font); color: var(--ink); -webkit-appearance: none; appearance: none; box-shadow: none; }
.gc-search:focus, .gc-search:focus-visible { outline: none; border: none; box-shadow: none; }
.gc-search::placeholder { color: var(--muted); }
.gc-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.gc-tabs a { font-size: 14px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); text-decoration: none; background: #fff; }
.gc-tabs a:hover { background: var(--bg-soft); }
.region-h { display: flex; align-items: baseline; gap: 10px; margin: 30px 0 12px; }
.region-h h3 { margin: 0; color: var(--navy); font-size: 22px; }
/* 呼叫中心汇总页：语言标签 + 呼叫中心内容列 */
.table.gc td .lang-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand-dark); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; white-space: nowrap; }
.table.gc td.cc { color: var(--ink); font-size: 14px; line-height: 1.75; vertical-align: top; word-break: break-word; }
.table.gc td:first-child { white-space: nowrap; }

/* ---------- 资源链接列表 ---------- */
.reslist { display: grid; gap: 12px; }
.reslist a {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff;
  border: 1px solid var(--line); border-radius: 11px; color: var(--ink); font-weight: 600;
}
.reslist a:hover { border-color: var(--brand); text-decoration: none; background: var(--bg-soft); }
.reslist a .tag { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); font-size: 14px; }
.field input, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font: inherit;
  background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.note { font-size: 13px; color: var(--muted); }
.callout {
  border-left: 4px solid var(--brand); background: #fff; padding: 16px 18px; border-radius: 0 10px 10px 0;
  box-shadow: var(--shadow); color: var(--muted);
}

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy); color: #C7D4E0; padding: 40px 0 26px; }
.site-footer a { color: #9FD0EC; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 17px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 7px 0; font-size: 14px; }
.site-footer .btn-staff { color: #9FD0EC; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 16px; font-size: 13px; color: #8FA6BA; }
.foot-icp { margin-top: 8px; font-size: 13px; color: #8FA6BA; text-align: center; }
.foot-icp a { color: #9FD0EC; text-decoration: none; }
.foot-icp a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 640px) { .foot-icp { font-size: 12px; line-height: 1.6; } }

/* ---------- 员工登录弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(11,31,51,.55); display: none;
  align-items: center; justify-content: center; z-index: 10000; padding: 18px;
}
.modal-mask.open { display: flex; }
.modal {
  width: 100%; max-width: 400px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-head { background: linear-gradient(135deg, var(--navy), var(--brand-darker)); color: #fff; padding: 20px 22px; }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-head p { margin: 4px 0 0; font-size: 13px; opacity: .85; }
.modal-body { padding: 22px; }
.modal-body .field input { border-color: var(--line); }
.modal-msg { font-size: 13px; min-height: 18px; margin: 4px 0 0; }
.modal-msg.err { color: #C0392B; }
.modal-msg.ok { color: var(--ok); }
.modal-foot { display: flex; gap: 10px; padding: 0 22px 22px; }
.modal-foot .btn { flex: 1; justify-content: center; }
.pw-rule { font-size: 12px; line-height: 1.5; color: #5B6B7B; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 2px 0 6px; }
.pw-rule b { color: var(--navy); }
.modal-x { float: right; background: transparent; border: none; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }

/* 员工区页内渲染层（登录成功后展示，避免原生二次弹窗） */
.staff-portal { position: fixed; inset: 0; z-index: 9999; background: var(--bg-soft); overflow: auto; }
.staff-portal[hidden] { display: none; }
.staff-portal .portal-bar { position: sticky; top: 0; z-index: 1; background: rgba(11,31,51,.94); padding: 10px 22px; box-shadow: 0 2px 12px rgba(11,31,51,.18); }
.staff-portal .portal-bar .btn-staff { padding: 7px 14px; font-size: 13px; }

/* ---------- 联系电话突出显示 ---------- */
.phone-big { font-size: 30px; font-weight: 800; color: var(--brand); letter-spacing: .5px; margin: 4px 0 10px; font-family: var(--font); }
.mail-big { font-size: 22px; font-weight: 800; color: var(--brand); letter-spacing: .3px; margin: 4px 0 12px; font-family: var(--font); word-break: break-all; }
.mail-big a { color: var(--brand); }
.mail-big a:hover { text-decoration: underline; }
.card p.note { font-size: 13px; color: #7a8aa0; margin-top: 2px; }

/* ---------- 体验与美观优化 ---------- */
/* 锚点跳转不被吸顶导航遮挡 */
[id] { scroll-margin-top: 84px; }
/* 文本选中色与品牌一致 */
::selection { background: rgba(0,125,184,.22); }
/* 键盘可达性：清晰的品牌色焦点框 */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px;
}
/* 常用链接列表：右侧标签改为小圆角徽章，层次更清晰 */
.reslist a .tag {
  margin-left: auto; font-size: 12px; font-weight: 700; color: var(--brand-dark);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 11px; white-space: nowrap;
}
.reslist a:hover .tag { border-color: var(--brand); background: #fff; }
/* 小屏：表格横向滚动，避免撑破布局（服务对照表 / 全球呼叫中心大表） */
@media (max-width: 720px) {
  .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .section { padding: 52px 0; }
  /* 全球呼叫中心汇总：手机端将每行三国信息改为竖排卡片，避免横向滑动（桌面端布局保持不变） */
  .table.gc { display: block; overflow-x: visible; width: 100%; }
  .table.gc thead { display: none; }
  .table.gc tbody { display: block; }
  .table.gc tr.gc-row { display: block; margin-bottom: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
  .table.gc td { display: block; width: 100%; box-sizing: border-box; border-bottom: 1px solid var(--line); padding: 10px 14px; text-align: left; white-space: normal; word-break: break-word; }
  .table.gc td:last-child { border-bottom: none; }
  .table.gc td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--brand-dark); margin-bottom: 3px; letter-spacing: .3px; }
  .table.gc td:first-child { white-space: normal; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-grid, .contact-grid, .foot-grid { grid-template-columns: 1fr; }
  .hero-split { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero-split .hero-copy { text-align: center; }
  .hero-split .hero-copy p.lead { margin-left: auto; margin-right: auto; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; position: absolute; top: 66px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-grid; place-items: center; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 18px; }
}
@media (max-width: 560px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
}

/* ---------- Hero 快捷按钮（三按钮胶囊风格，2026-10-25 重设计） ---------- */
.hero-cta-row { gap: 14px; }
.hero-cta-row .btn {
  border-radius: 999px; padding: 12px 28px; font-weight: 800; font-size: 15.5px;
  letter-spacing: .3px; border: 1px solid transparent; transition: transform .18s, box-shadow .18s, background .18s, border-color .18s, color .18s;
}
.hero-cta-row .btn:hover { transform: translateY(-2px); text-decoration: none; }
.hero-cta-row .btn:focus-visible { outline-offset: 3px; }
.hero-cta-row .btn-svc {
  background: linear-gradient(135deg, #0E9BD8 0%, #005C8A 100%);
  color: #fff; box-shadow: 0 6px 16px rgba(0, 92, 138, .28);
}
.hero-cta-row .btn-svc:hover { box-shadow: 0 12px 26px rgba(0, 92, 138, .38); }
.hero-cta-row .btn-mkt {
  background: linear-gradient(135deg, #14B8AB 0%, #0A7E8C 100%);
  color: #fff; box-shadow: 0 6px 16px rgba(10, 126, 140, .28);
}
.hero-cta-row .btn-mkt:hover { box-shadow: 0 12px 26px rgba(10, 126, 140, .38); }
.hero-cta-row .btn-lnk {
  background: linear-gradient(135deg, #22C55E 0%, #15803D 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 6px 16px rgba(21, 128, 61, .30);
}
.hero-cta-row .btn-lnk:hover {
  background: linear-gradient(135deg, #34D399 0%, #166534 100%);
  color: #fff; box-shadow: 0 12px 26px rgba(21, 128, 61, .40);
}
@media (max-width: 560px) {
  .hero-cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta-row .btn { justify-content: center; }
}

/* ---------- 市场与资讯板块（主页） ---------- */
.mn-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; align-items: stretch; }
.mn-card { background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 22px 24px; display: flex; flex-direction: column; }
.mn-card h3 { margin: 0 0 4px; font-size: 18px; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.mn-card .mn-sub { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.mn-body { flex: 1; }
/* 迷你行情条 */
.tickers { display: grid; gap: 10px; }
.ticker { display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.ticker .tname { font-weight: 800; color: var(--ink); }
.ticker .tcode { font-size: 12px; color: var(--muted); }
.ticker .tright { margin-left: auto; text-align: right; }
.ticker .tprice { font-weight: 900; font-size: 17px; }
.ticker .tpct { font-size: 12.5px; font-weight: 800; padding: 1px 8px; border-radius: 999px; margin-left: 8px; }
.up { color: #E03131; } .down { color: #0CA678; }
.tpct.up { background: rgba(224, 49, 49, .10); }
.tpct.down { background: rgba(12, 166, 120, .12); }
/* 迷你要闻 */
.news-mini { display: grid; gap: 8px; }
.news-mini a { display: flex; gap: 10px; align-items: baseline; padding: 9px 12px;
  border-radius: 10px; color: var(--ink); font-size: 14.5px; }
.news-mini a:hover { background: var(--bg-soft); text-decoration: none; color: var(--brand-dark); }
.news-mini .ntime { margin-left: auto; white-space: nowrap; font-size: 12px; color: var(--muted); }
.mn-more { margin-top: 16px; font-weight: 700; font-size: 14.5px; }
.mn-empty { color: var(--muted); font-size: 14px; padding: 10px 2px; }
@media (max-width: 900px) {
  .mn-grid { grid-template-columns: 1fr; }
}

/* ---------- Unix 时间戳转换小工具（主页） ---------- */
.ts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.ts-card { display: flex; flex-direction: column; }
.ts-card h3 { margin: 0 0 16px; color: var(--navy); font-size: 18px; display: flex; align-items: center; gap: 8px; }
.ts-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ts-actions .btn { padding: 9px 16px; font-size: 14px; }
.ts-out {
  margin-top: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; min-height: 44px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: 14px;
}
.ts-line { display: flex; gap: 10px; align-items: baseline; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.ts-line:last-child { border-bottom: none; }
.ts-line span { color: var(--muted); min-width: 86px; flex: 0 0 auto; }
.ts-line b { color: var(--ink); font-weight: 600; word-break: break-all; text-align: right; margin-left: auto; }
.ts-err { color: #C0392B; font-size: 14px; }
.ts-live { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14px; }
.ts-live b { color: var(--brand); font-family: "SFMono-Regular", Consolas, Menlo, monospace; font-weight: 700; }
.ts-tip { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
@media (max-width: 720px) {
  .ts-grid { grid-template-columns: 1fr; }
}

/* ---------- 免费 AI 助手（主页） ---------- */
.ai-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ai-card {
  display: flex; flex-direction: column; align-items: stretch;
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; background: #fff;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ai-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,125,184,.12); border-color: var(--brand); }
.ai-top { display: flex; align-items: center; gap: 10px; width: 100%; }
.ai-logo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 18px; background: var(--bg-soft); flex: 0 0 auto; }
.ai-card h3 { margin: 0; color: var(--navy); font-size: 16px; line-height: 1.2; }
.ai-badge { margin-left: auto; font-size: 11px; font-weight: 700; color: #1a7f37; background: #e7f6ec; border: 1px solid #bfe6cb; border-radius: 999px; padding: 2px 9px; flex: 0 0 auto; }
.ai-desc { margin: 12px 0 14px; color: var(--muted); font-size: 13px; line-height: 1.55; flex: 1; }
.ai-go { width: 100%; text-align: center; box-sizing: border-box; }
.ai-note { margin: 20px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .ai-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ai-grid { grid-template-columns: 1fr; } }

/* ---------- AI 提示词生成器（主页） ---------- */
.pg-card { display: block; }
.pg-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; flex-wrap: wrap; }
.pg-label { flex: 0 0 64px; font-weight: 600; color: var(--navy); font-size: 14px; padding-top: 8px; }
.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.pg-chip { position: relative; cursor: pointer; }
.pg-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pg-chip span {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; color: var(--navy); background: #fff; transition: all .15s ease; user-select: none; white-space: nowrap;
}
.pg-chip:hover span { border-color: var(--brand); }
.pg-chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pg-chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.pg-out {
  margin-top: 14px; width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px; line-height: 1.6; color: var(--ink); background: var(--bg); resize: vertical;
}
.pg-toast {
  margin-top: 10px; text-align: center; font-size: 13px; font-weight: 600; color: #1a7f37;
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; pointer-events: none; height: 0;
}
.pg-toast.show { opacity: 1; transform: translateY(0); height: auto; }
@media (max-width: 520px) {
  .pg-row { flex-direction: column; gap: 6px; }
  .pg-label { padding-top: 0; }
}
