/* ============================================================
   知阅行 Readway 官网 - 共享样式
   设计稿还原 · 浅色版 · 2026-10
   ============================================================ */

:root {
  /* 色板（与设计稿一致） */
  --blue-primary: #1677FF;
  --blue-deep: #0958D9;
  --blue-mid: #3B82F6;
  --blue-light: #69A5FA;
  --blue-pale: #A8CDFB;
  --blue-bg: #E8F3FE;
  --ink-900: #0F172A;
  --ink-700: #1E293B;
  --ink-500: #475A70;
  --ink-400: #7C8DA6;
  --ink-300: #94A3B8;
  --ink-250: #8896A8;
  --ink-200: #B0B0B0;
  --line: #DFE9F0;
  --surface: #F5FAFC;
  --white: #FFFFFF;
  --amber: #F59E0B;
  --amber-text: #B45309;
  --amber-pale: #FEF3C7;
  --green: #21C484;
  --wechat: #07C160;
  --dark-card: #1B2A3D;

  /* 版式 */
  --page-max: 1440px;
  --content-pad: 80px;
  --radius-card: 16px;
  --radius-tile: 14px;
  --radius-btn: 10px;
  --shadow-card: 0 4px 18px rgba(23, 36, 33, 0.06);
}

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

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

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", -apple-system, "Segoe UI", sans-serif;
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
  font-size: 14px;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink-900); }

.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
}

/* ================= 顶部导航 ================= */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav .container {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-left { display: flex; align-items: center; gap: 48px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 28px; height: 28px;
  background: var(--blue-mid);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 14px; height: 14px; }
.brand-name { font-size: 18px; font-weight: 600; color: var(--ink-900); white-space: nowrap; }
.brand-name .en { font-weight: 500; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 14px; color: var(--ink-500); transition: color .15s; }
.nav-links a:hover { color: var(--blue-primary); }
.nav-links a.active { color: var(--ink-900); font-weight: 500; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.btn-login {
  padding: 8px 18px;
  font-size: 14px;
  color: var(--ink-700);
  border-radius: 8px;
  transition: background .15s;
}
.btn-login:hover { background: var(--surface); }
.btn-register {
  padding: 9px 20px;
  font-size: 14px;
  color: var(--white);
  background: var(--blue-primary);
  border-radius: 8px;
  transition: background .15s;
}
.btn-register:hover { background: var(--blue-deep); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.breadcrumb .crumb-root { color: var(--ink-300); }
.breadcrumb .crumb-sep { color: var(--ink-250); }
.breadcrumb .crumb-current { color: var(--ink-900); }
.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 100px;
}
.user-chip .avatar {
  width: 24px; height: 24px;
  background: var(--blue-mid);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 12px;
}
.user-chip .user-name { font-size: 13px; color: var(--ink-900); }

/* ================= 按钮 ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  transition: background .15s, transform .1s;
}
.btn-primary { background: var(--blue-primary); color: var(--white); padding: 14px 32px; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: var(--surface); color: var(--ink-700); padding: 14px 32px; border: 1px solid var(--line); }
.btn-ghost:hover { background: #EDF4F8; }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.link-more { font-size: 14px; color: var(--blue-deep); white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

/* ================= 首页 Hero ================= */
.hero {
  position: relative;
  background: linear-gradient(180deg, #F8F9FF 0%, #FFFFFF 55%, #FFFFFF 100%);
  overflow: hidden;
}
.hero-glow-1 {
  position: absolute; top: -60px; left: 270px;
  width: 900px; height: 500px; border-radius: 450px;
  background: radial-gradient(circle, rgba(22,119,255,.12) 0%, rgba(22,119,255,0) 70%);
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute; top: 300px; right: 40px;
  width: 500px; height: 300px; border-radius: 250px;
  background: radial-gradient(circle, rgba(59,130,246,.09) 0%, rgba(59,130,246,0) 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 620px 1fr;
  gap: 40px;
  padding-top: 130px;
}
.hero-badge {
  display: inline-flex;
  padding: 6px 16px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-pale);
  border-radius: 100px;
  font-size: 13px;
  color: var(--blue-deep);
  width: fit-content;
}
.hero-title {
  font-size: 56px;
  line-height: 68px;
  font-weight: 700;
  color: var(--ink-900);
}
.hero-sub {
  font-size: 18px;
  line-height: 30px;
  color: var(--ink-500);
  max-width: 560px;
}
.hero-actions { display: flex; gap: 16px; }
.hero-visual { position: relative; padding-top: 0; }
.hero-visual img { width: 620px; height: 480px; object-fit: contain; margin-top: -70px; }

/* 数据卡 */
.stat-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-tile);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 10px;
}
.stat-card .icon {
  width: 56px; height: 56px; border-radius: 28px; overflow: hidden;
}
.stat-card .icon img { width: 100%; height: 100%; object-fit: cover; }
.stat-value { font-size: 30px; font-weight: 700; color: var(--ink-900); line-height: 1.2; }
.stat-label { font-size: 14px; color: var(--ink-400); }

/* 产品速览 */
.product-strip { margin-top: 46px; padding-bottom: 56px; position: relative; }
.product-strip-title { font-size: 15px; font-weight: 500; color: var(--ink-900); }
.product-strip-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 24px; }
@media (max-width: 1024px) { .product-strip-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .product-strip-row { grid-template-columns: repeat(2, 1fr); } }
.mini-product {
  display: flex; align-items: center; gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  transition: box-shadow .15s, transform .15s;
}
.mini-product:hover { box-shadow: 0 6px 20px rgba(22,119,255,.10); transform: translateY(-2px); }
.mini-product .icon {
  width: 40px; height: 40px;
  background: var(--blue-bg);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mini-product .icon svg { width: 20px; height: 20px; }
.mini-product .name { font-size: 14px; font-weight: 500; color: var(--ink-900); }

/* ================= 通用区块标题 ================= */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.section-head .left h2 { font-size: 28px; font-weight: 700; color: var(--ink-900); }
.section-head .left p { font-size: 14px; color: var(--ink-400); margin-top: 6px; }
.section-head.align-center-item { align-items: center; }

/* ================= 分类导航 ================= */
.category-section { padding: 40px var(--content-pad); background: var(--white); max-width: var(--page-max); margin: 0 auto; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }
.category-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-tile);
  padding: 22px;
  transition: box-shadow .15s, border-color .15s;
}
.category-card:hover { box-shadow: 0 6px 20px rgba(22,119,255,.08); border-color: var(--blue-pale); }
.category-card .icon {
  width: 44px; height: 44px;
  background: var(--blue-bg);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.category-card .icon svg { width: 24px; height: 24px; }
.category-card .text { flex: 1; min-width: 0; }
.category-card .text h3 { font-size: 16px; font-weight: 600; color: var(--ink-900); }
.category-card .text p { font-size: 13px; color: var(--ink-400); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.category-card .arrow { color: var(--ink-300); font-size: 16px; }

/* ================= 热门产品 ================= */
.hot-section { background: var(--surface); padding: 64px var(--content-pad) 80px; }
.hot-section .section-head { max-width: calc(var(--page-max) - 160px); margin: 0 auto; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: calc(var(--page-max) - 160px);
  margin: 24px auto 0;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-tile);
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  transition: box-shadow .15s, transform .15s;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(22,119,255,.10); transform: translateY(-2px); }
.product-card .card-head { display: flex; gap: 14px; }
.product-card .p-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.product-card .p-icon svg { width: 28px; height: 28px; }
.product-card .p-icon.bg-blue { background: var(--blue-bg); }
.product-card .p-icon.bg-amber { background: var(--amber-pale); }
.product-card .p-icon.bg-sky { background: var(--blue-bg); }
.product-card .p-name h3 { font-size: 17px; font-weight: 600; color: var(--ink-900); }
.product-card .p-name .cat { font-size: 12px; color: var(--blue-deep); margin-top: 4px; }
.product-card .desc { font-size: 13px; color: var(--ink-500); }
.product-card .meta { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.product-card .meta .star { color: #FBBF24; font-size: 14px; }
.product-card .meta .score { color: var(--ink-900); font-weight: 500; }
.product-card .meta .downloads { color: var(--ink-300); font-size: 12px; }

/* ================= 效果展示 ================= */
.showcase-section { padding: 72px var(--content-pad) 88px; background: var(--white); }
.showcase-inner { max-width: calc(var(--page-max) - 160px); margin: 0 auto; }
.showcase-grid { display: grid; grid-template-columns: 700px 1fr; gap: 24px; margin-top: 24px; }
.showcase-big {
  position: relative;
  background: linear-gradient(135deg, #C7DDF5 0%, #E4EEF9 55%, #F3E9DC 100%);
  border-radius: var(--radius-card);
  min-height: 420px;
  padding: 32px;
  display: flex; align-items: center; gap: 24px;
  overflow: hidden;
}
.phone-mock {
  background: var(--white);
  width: 200px; height: 380px;
  border-radius: 28px;
  padding: 10px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 12px 32px rgba(15,23,42,.12);
  flex-shrink: 0;
}
.phone-mock .photo-area {
  flex: 1;
  border-radius: 18px;
  background: linear-gradient(160deg, #E8D5C4 0%, #D8BFA8 100%);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 16px;
  color: var(--white); font-size: 14px;
}
.phone-mock .line1 { font-size: 12px; color: #1A1A1A; }
.phone-mock .line2 { font-size: 10px; color: #8A8A8A; }
.style-tags { display: flex; flex-direction: column; gap: 10px; }
.style-tag {
  background: var(--white);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px; color: #1A1A1A;
  box-shadow: 0 2px 10px rgba(15,23,42,.06);
  width: fit-content;
}
.showcase-illu { position: absolute; right: 20px; bottom: 16px; width: 180px; height: 180px; opacity: .95; }
.showcase-side { display: flex; flex-direction: column; gap: 24px; }
.showcase-tile {
  position: relative;
  border-radius: var(--radius-card);
  min-height: 198px;
  padding: 24px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.showcase-tile.t-blue { background: linear-gradient(135deg, #BBD4F0 0%, #DCE9F8 100%); }
.showcase-tile.t-green { background: linear-gradient(135deg, #BFDCD4 0%, #DFF0EA 100%); }
.tool-window {
  background: var(--white);
  width: 100%; max-width: 520px; height: 146px;
  border-radius: 12px;
  padding: 18px;
  display: flex; gap: 16px;
  box-shadow: 0 8px 24px rgba(15,23,42,.10);
}
.tool-window .pane { border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.tool-window .pane.input { flex: 1.2; background: var(--surface); }
.tool-window .pane.output { flex: 1; background: var(--blue-bg); }
.tool-window .bar { height: 8px; border-radius: 4px; }
.tool-window .pane.input .bar { background: #C9DBEA; }
.tool-window .pane.output .bar { background: var(--blue-pale); }
.tool-window .gen-btn {
  background: var(--blue-mid);
  color: var(--white);
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 6px;
  width: fit-content;
}
.tile-caption { position: absolute; left: 20px; bottom: 14px; font-size: 12px; color: var(--white); text-shadow: 0 1px 4px rgba(15,23,42,.3); }
.tile-illu { position: absolute; right: 12px; bottom: 8px; width: 150px; height: 150px; }
.study-cards { display: flex; gap: 14px; }
.study-card {
  background: var(--white);
  width: 120px; height: 138px;
  border-radius: 12px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 8px 24px rgba(15,23,42,.10);
}
.study-card .big-char { font-size: 40px; font-weight: 700; line-height: 1.1; }
.study-card .label { font-size: 12px; color: #8A8A8A; }

/* 第二排效果示例 */
.example-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.example-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  min-height: 160px;
  padding: 24px 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.example-card h4 { font-size: 14px; color: var(--ink-900); font-weight: 600; }
.example-card .sub { font-size: 11px; color: var(--ink-250); }
.example-card.dark { background: var(--dark-card); border-color: var(--dark-card); }
.example-card.dark .pct { font-size: 22px; font-weight: 700; color: #EFF6FA; }
.example-card.dark .pct-label { font-size: 12px; color: var(--ink-250); }
.example-card.dark .name { color: var(--blue-light); font-size: 12px; margin-top: auto; }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 104px; }
.bar-chart .bar { width: 22px; border-radius: 4px; }
.chat-line { display: flex; }
.chat-line .bubble { height: 26px; border-radius: 13px; }
.ticket-line { display: flex; align-items: center; gap: 10px; height: 22px; }
.ticket-line .dot { width: 8px; height: 8px; border-radius: 4px; flex-shrink: 0; }
.ticket-line .sk { height: 8px; border-radius: 4px; background: var(--line); }

/* ================= 支持中心 ================= */
.support-section { padding: 56px var(--content-pad); background: var(--white); }
.support-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; max-width: calc(var(--page-max) - 160px); margin: 0 auto; }
.support-badge {
  display: inline-flex; padding: 5px 14px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-pale);
  border-radius: 100px;
  font-size: 13px; color: var(--blue-deep);
  width: fit-content; margin-bottom: 12px;
}
.support-copy h2 { font-size: 28px; font-weight: 700; color: var(--ink-900); }
.support-copy > p { font-size: 15px; color: var(--ink-400); margin-top: 12px; }
.support-actions { display: flex; gap: 14px; margin-top: 24px; }
.support-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.support-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-tile);
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.support-card .icon { width: 36px; height: 36px; color: var(--blue-pale); }
.support-card .icon svg { width: 36px; height: 36px; }
.support-card h3 { font-size: 15px; font-weight: 600; color: var(--ink-900); }
.support-card p { font-size: 13px; color: var(--ink-400); }

/* ================= 页脚 ================= */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 48px var(--content-pad) 32px;
}
.footer-inner { max-width: calc(var(--page-max) - 160px); margin: 0 auto; }
.footer-main { display: flex; gap: 80px; }
.footer-brand { flex: 1; }
.footer-brand .brand-row { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-mark { width: 24px; height: 24px; border-radius: 7px; }
.footer-brand .brand-name { font-size: 16px; }
.footer-brand .slogan { font-size: 13px; color: var(--ink-300); margin-top: 12px; }
.footer-cols { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--ink-900); margin-bottom: 4px; }
.footer-col a { font-size: 13px; color: var(--ink-400); transition: color .15s; }
.footer-col a:hover { color: var(--blue-primary); }
.footer-copy {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 36px; font-size: 12px; color: var(--ink-300);
}
.footer-copy .links { display: flex; gap: 24px; }

/* 列表页简化页脚 */
.footer-simple {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 28px var(--content-pad);
}
.footer-simple .inner {
  max-width: calc(var(--page-max) - 160px); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ink-300);
}
.footer-simple .links { display: flex; gap: 24px; }

/* ================= 页面页头 ================= */
.page-hero { padding: 56px var(--content-pad) 32px; background: var(--white); }
.page-hero .inner { max-width: calc(var(--page-max) - 160px); margin: 0 auto; }
.page-hero h1 { font-size: 44px; font-weight: 700; color: var(--ink-900); }
.page-hero .lede { font-size: 16px; color: var(--ink-400); margin-top: 12px; }

/* ================= 产品列表页 ================= */
.filter-row { display: flex; align-items: center; gap: 10px; padding: 16px 0 0; flex-wrap: wrap; }
.filter-pill {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  color: var(--ink-500);
  background: var(--white);
  border: 1px solid transparent;
  transition: all .15s;
}
.filter-pill:hover { color: var(--blue-primary); }
.filter-pill.active { background: var(--blue-primary); color: var(--white); }
.search-box {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  width: 240px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0 14px;
  color: var(--ink-250);
}
.search-box svg { width: 15px; height: 15px; flex-shrink: 0; }
.search-box input { border: none; outline: none; background: transparent; width: 100%; font-size: 13px; }

.listings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: calc(var(--page-max) - 160px);
  margin: 24px auto 0;
  padding-bottom: 64px;
}
.listing-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex; align-items: center;
  gap: 20px;
  padding: 24px 28px;
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.listing-card:hover { box-shadow: 0 8px 28px rgba(22,119,255,.12); transform: translateY(-2px); border-color: var(--blue-pale); }
.listing-body { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.listing-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.listing-title-row h3 { font-size: 19px; font-weight: 700; color: var(--ink-900); }
.type-badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--white);
  white-space: nowrap;
}
.type-badge.b-blue { background: var(--blue-deep); }
.type-badge.b-amber { background: var(--amber); color: #7C2D12; }
.type-badge.b-sky { background: var(--blue-mid); color: #FFFFFF; }
.type-badge.b-plain { background: var(--surface); color: var(--ink-500); }
.listing-body .desc { font-size: 14px; color: var(--ink-400); }
.listing-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; padding-top: 6px; flex-wrap: wrap; }
.listing-meta .status-tag { margin-left: 0; }
.listing-meta .rating { color: var(--amber-text); }
.listing-meta .used { color: var(--ink-300); font-size: 12px; }
.suggest-link { font-size: 13px; color: var(--blue-deep); padding-top: 6px; align-self: flex-start; }
.suggest-link:hover { text-decoration: underline; }

/* 产品图标 */
.app-icon {
  width: 72px; height: 72px; flex-shrink: 0;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  align-self: flex-start;
}
.app-icon svg { width: 36px; height: 36px; }
.ai-photo-icon { background: var(--blue-bg); color: var(--blue-deep); }
.wen-si-icon  { background: var(--amber-pale); color: var(--amber-text); }
.qimeng-icon  { background: #E6F7F0; color: #0E9F6E; }
.more-icon    { background: var(--surface); color: var(--ink-300); }

/* ================= 产品详情页 ================= */
.detail-main {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  max-width: calc(var(--page-max) - 160px);
  margin: 0 auto;
  padding: 32px var(--content-pad) 64px;
}
.detail-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.detail-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px;
}
.detail-head-row { display: flex; gap: 20px; }
.detail-icon {
  width: 72px; height: 72px;
  background: var(--blue-deep);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 28px; font-weight: 700;
  flex-shrink: 0;
}
.detail-title-col { flex: 1; min-width: 0; }
.detail-title-col h1 { font-size: 26px; font-weight: 700; color: var(--ink-900); }
.tag-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; padding: 4px 10px; border-radius: 6px; }
.tag.t-blue { background: var(--blue-deep); color: var(--white); }
.tag.t-amber { background: var(--amber); color: #7C2D12; }
.tag.t-plain { background: var(--surface); color: var(--ink-500); }
.detail-btn-col { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.detail-meta-row { display: flex; gap: 24px; font-size: 13px; padding-top: 8px; border-top: 1px dashed var(--line); margin-top: 20px; padding-top: 16px; }
.detail-meta-row .rating { color: var(--amber-text); }
.detail-meta-row .muted { color: var(--ink-300); }
.detail-card h2 { font-size: 18px; font-weight: 600; color: var(--ink-900); margin-bottom: 16px; }
.style-examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.style-example {
  border-radius: 12px;
  min-height: 180px;
  padding: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.style-example.s1 { background: linear-gradient(135deg, #D8C7B2 0%, #EAE0D5 100%); }
.style-example.s2 { background: linear-gradient(135deg, #A98F6E 0%, #D8C7B2 100%); }
.style-example.s3 { background: linear-gradient(135deg, #8FA5A0 0%, #C7D2CF 100%); }
.style-example .tag {
  background: rgba(255,255,255,.9);
  color: var(--ink-700);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  width: fit-content;
}
.mock-mini {
  background: var(--white);
  width: 96px; height: 132px;
  border-radius: 10px;
  padding: 10px;
  display: flex; flex-direction: column; gap: 8px;
}
.mock-mini .photo { flex: .6; border-radius: 6px; }
.mock-mini .bar { height: 7px; border-radius: 4px; background: #DCE7EF; }
.mock-mini .bar.short { width: 52px; }
.mock-mini .btn { height: 18px; border-radius: 9px; margin-top: auto; }
.intro-text { font-size: 14px; color: var(--ink-400); line-height: 1.8; }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.feature-tile { border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.feature-tile h4 { font-size: 14px; font-weight: 600; color: var(--ink-900); }
.feature-tile p { font-size: 12px; color: var(--ink-300); margin-top: 6px; }

/* 评论区 */
.comment-input-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.comment-input-card textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  resize: vertical;
  outline: none;
  font-size: 13px;
}
.comment-input-card textarea:focus { border-color: var(--blue-pale); }
.comment-input-foot { display: flex; justify-content: space-between; align-items: center; }
.comment-input-foot .hint { font-size: 12px; color: var(--ink-300); }
.comment-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--surface); }
.comment-item:last-child { border-bottom: none; }
.comment-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.comment-avatar.a-green { background: #E8F3EE; color: #2F7D5D; }
.comment-avatar.a-amber { background: #FBF3E4; color: var(--amber-text); }
.comment-avatar.a-official { background: var(--blue-bg); color: var(--blue-deep); width: 28px; height: 28px; font-size: 11px; }
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 10px; }
.comment-head .who { font-size: 13px; font-weight: 500; color: var(--ink-900); }
.comment-head .when { font-size: 12px; color: var(--ink-250); }
.comment-body .content { font-size: 13px; color: var(--ink-500); margin-top: 6px; line-height: 1.7; }
.comment-actions { display: flex; gap: 16px; margin-top: 8px; }
.comment-actions button { font-size: 12px; color: var(--ink-250); }
.comment-actions button:hover { color: var(--blue-primary); }
.official-reply {
  display: flex; gap: 10px;
  background: var(--surface);
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
}
.official-reply .reply-head { display: flex; align-items: center; gap: 8px; }
.official-reply .who { font-size: 12px; font-weight: 500; color: var(--blue-primary); }
.official-badge {
  background: var(--blue-bg);
  color: var(--blue-deep);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
}
.official-reply .content { font-size: 12px; color: var(--ink-500); margin-top: 4px; }

/* 详情右侧栏 */
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; }
.side-card h3 { font-size: 16px; font-weight: 600; color: var(--ink-900); margin-bottom: 14px; }
.entry-item { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.entry-item + .entry-item { margin-top: 10px; }
.entry-item .icon {
  width: 32px; height: 32px;
  background: var(--blue-deep);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.entry-item .icon svg { width: 18px; height: 18px; }
.entry-item h4 { font-size: 14px; font-weight: 500; color: var(--ink-900); }
.entry-item p { font-size: 12px; color: var(--ink-300); margin-top: 2px; }
.info-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; }
.info-row .k { color: var(--ink-300); }
.info-row .v { color: var(--ink-900); }
.info-row .v.blue { color: var(--blue-primary); }

/* ================= 提交工单页 ================= */
.ticket-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  max-width: calc(var(--page-max) - 160px);
  margin: 0 auto;
  padding: 16px var(--content-pad) 64px;
}
.ticket-form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 36px;
  display: flex; flex-direction: column; gap: 22px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label { font-size: 13px; font-weight: 500; color: var(--ink-900); }
.field .required::after { content: " *"; color: #E5484D; }
.option-row { display: flex; gap: 10px; flex-wrap: wrap; }
.option-pill {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-500);
  border: 1px solid var(--line);
  background: var(--white);
  transition: all .15s;
}
.option-pill.active { background: var(--blue-primary); border-color: var(--blue-primary); color: var(--white); }
.select-wrap { position: relative; }
.select-wrap select {
  width: 100%; height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  appearance: none;
  outline: none;
  background: var(--white);
}
.select-wrap select:focus { border-color: var(--blue-pale); }
.select-wrap::after {
  content: "";
  position: absolute; right: 16px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--ink-250);
  border-bottom: 1.5px solid var(--ink-250);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.text-input, .ticket-form-card textarea {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  outline: none;
  background: var(--white);
  width: 100%;
}
.ticket-form-card textarea { height: 130px; padding: 14px; resize: vertical; line-height: 1.7; }
.text-input:focus, .ticket-form-card textarea:focus { border-color: var(--blue-pale); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.upload-zone {
  border: 1.5px dashed var(--blue-pale);
  border-radius: 8px;
  height: 88px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--ink-300);
  font-size: 13px;
  background: var(--white);
  transition: background .15s;
}
.upload-zone:hover { background: var(--blue-bg); }
.upload-zone svg { width: 20px; height: 20px; }
.form-actions { display: flex; gap: 12px; padding-top: 8px; }
.tip-card {
  background: var(--blue-bg);
  border-radius: var(--radius-tile);
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.tip-card h3 { font-size: 15px; font-weight: 600; color: #1E5A9C; }
.tip-item { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-500); }
.tip-item .dot { width: 6px; height: 6px; background: var(--blue-deep); border-radius: 3px; margin-top: 7px; flex-shrink: 0; }
.my-tickets { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; }
.my-tickets .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.my-tickets h3 { font-size: 15px; font-weight: 600; color: var(--ink-900); }
.my-tickets .all-link { font-size: 12px; color: var(--blue-deep); }
.ticket-item { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.ticket-item + .ticket-item { margin-top: 10px; }
.ticket-item .row1 { display: flex; justify-content: space-between; align-items: center; }
.ticket-item .tid { font-size: 12px; color: var(--ink-250); }
.status-badge { font-size: 11px; padding: 3px 8px; border-radius: 100px; }
.status-badge.processing { background: #FEF3C7; color: #92610C; }
.status-badge.resolved { background: var(--blue-deep); color: var(--white); }
.ticket-item .title { font-size: 13px; color: var(--ink-900); margin-top: 6px; }
.ticket-item .time { font-size: 11px; color: var(--ink-250); margin-top: 4px; }

/* ================= 登录页 ================= */
.login-page { display: grid; grid-template-columns: 1fr 560px; min-height: 100vh; }
.login-brand {
  position: relative;
  background: linear-gradient(135deg, #EAF2FE 0%, #F6F8FF 100%);
  padding: 80px 64px;
  display: flex; flex-direction: column; gap: 24px;
  overflow: hidden;
}
.login-brand .glow {
  position: absolute; top: -100px; right: -100px;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(22,119,255,.08) 0%, rgba(22,119,255,0) 70%);
  pointer-events: none;
}
.login-brand .brand-row { display: flex; align-items: center; gap: 10px; position: relative; }
a.login-brand .brand-row, .login-brand a.brand-row { color: inherit; text-decoration: none; }
.login-brand .brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--white); box-shadow: 0 2px 10px rgba(9,88,217,.15); }
.login-brand .brand-mark svg { width: 16px; height: 16px; }
.login-brand .brand-name { font-size: 20px; }
.back-home { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--ink-500); text-decoration: none; transition: color .2s; }
.back-home:hover { color: var(--blue-primary); }
.login-brand h1 { font-size: 44px; font-weight: 700; color: var(--ink-900); line-height: 1.3; margin-top: 24px; position: relative; }
.login-brand .sub { font-size: 15px; color: var(--ink-500); position: relative; }
.quote-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 28px;
  max-width: 420px;
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 8px 30px rgba(15,23,42,.06);
  margin-top: 16px;
}
.quote-card blockquote { font-size: 15px; color: var(--ink-500); line-height: 1.8; }
.quote-author { display: flex; align-items: center; gap: 12px; }
.quote-author .q-avatar {
  width: 36px; height: 36px;
  background: var(--blue-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-deep); font-size: 14px;
}
.quote-author .who { font-size: 14px; color: var(--ink-900); font-weight: 500; }
.quote-author .role { font-size: 12px; color: var(--ink-250); }
.login-dots { display: flex; gap: 12px; margin-top: auto; position: relative; }
.login-dots .dot { width: 8px; height: 8px; background: var(--blue-primary); border-radius: 4px; }
.login-dots .dot.dim { opacity: .35; }
.login-form-panel {
  background: var(--white);
  border-left: 1px solid var(--line);
  padding: 0 100px;
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
}
.login-form-panel h2 { font-size: 28px; font-weight: 700; color: var(--ink-900); }
.login-form-panel .hint { font-size: 15px; color: var(--ink-400); margin-top: -18px; }
.login-form { display: flex; flex-direction: column; gap: 18px; }
.login-form label { font-size: 13px; font-weight: 500; color: var(--ink-900); }
.login-form .text-input { height: 46px; }
.pwd-row { display: flex; justify-content: space-between; align-items: center; }
.pwd-row .forgot { font-size: 12px; color: var(--blue-deep); }
.pwd-wrap { position: relative; }
.pwd-wrap .text-input { width: 100%; padding-right: 44px; }
.pwd-toggle {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--ink-300);
  display: flex;
}
.pwd-toggle svg { width: 18px; height: 18px; }
.remember-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-500); }
.remember-row input { width: 16px; height: 16px; accent-color: var(--blue-primary); }
.btn-submit {
  width: 100%; height: 46px;
  background: var(--blue-deep);
  color: var(--white);
  border-radius: 8px;
  font-size: 15px;
  transition: background .15s;
}
.btn-submit:hover { background: #084EC0; }
.divider-row { display: flex; align-items: center; gap: 12px; color: var(--ink-250); font-size: 12px; }
.divider-row::before, .divider-row::after { content: ""; flex: 1; height: 1px; background: var(--surface); }
.oauth-row { display: flex; gap: 12px; }
.oauth-btn {
  flex: 1; height: 42px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px; color: var(--ink-900);
  background: var(--white);
  transition: background .15s;
}
.oauth-btn:hover { background: var(--surface); }
.oauth-btn svg { width: 20px; height: 20px; }
.signup-hint { font-size: 13px; color: var(--ink-500); text-align: center; }
.signup-hint a { color: var(--blue-deep); }

/* ---- 注册 / 找回密码页扩展 ---- */
.code-row { display: flex; gap: 10px; }
.code-row .text-input { flex: 1; min-width: 0; }
.btn-code {
  height: 46px; padding: 0 16px; flex-shrink: 0;
  border: 1px solid var(--blue-pale);
  border-radius: 8px;
  color: var(--blue-deep); font-size: 13px;
  background: var(--white);
  white-space: nowrap;
  transition: background .15s;
}
.btn-code:hover:not(:disabled) { background: var(--blue-bg); }
.btn-code:disabled { color: var(--ink-250); border-color: var(--line); cursor: not-allowed; }
.agree-row { align-items: flex-start; line-height: 1.6; }
.agree-row input { margin-top: 2px; }
.agree-row a { color: var(--blue-deep); }

/* ---- 关于我们页 ---- */
.about-prose p { margin: 0 0 12px; line-height: 1.8; font-size: 14px; color: var(--ink-500); }
.about-prose p:last-child { margin-bottom: 0; }
.about-prose strong { color: var(--ink-900); font-weight: 600; }
.about-prose a { color: var(--blue-deep); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: var(--ink-900); background: var(--surface); padding: 2px 8px; border-radius: 6px; }

/* ---- 工单登录门槛 ---- */
.login-gate {
  display: flex; align-items: center; gap: 14px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-pale);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.login-gate[hidden] { display: none; }
.login-gate svg { width: 22px; height: 22px; flex-shrink: 0; }
.login-gate .txt { flex: 1; min-width: 0; }
.login-gate .txt strong { display: block; font-size: 14px; color: var(--ink-900); }
.login-gate .txt span { font-size: 12px; color: var(--ink-500); }
.login-gate .btn { flex-shrink: 0; }

/* ---- 登录拦截模态框 ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 23, 42, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; transition: opacity .2s;
}
.modal-overlay.show { opacity: 1; }
.modal-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 28px 24px;
  width: min(400px, 100%);
  text-align: center;
  transform: translateY(10px);
  transition: transform .2s;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .2);
}
.modal-overlay.show .modal-card { transform: none; }
.modal-icon { width: 56px; height: 56px; margin: 0 auto 16px; background: var(--blue-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.modal-icon svg { width: 28px; height: 28px; }
.modal-card h3 { font-size: 18px; font-weight: 600; color: var(--ink-900); }
.modal-card p { font-size: 13px; color: var(--ink-500); line-height: 1.7; margin-top: 10px; text-align: left; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; justify-content: center; }
.modal-sub {
  display: block; width: 100%;
  margin-top: 14px; padding: 0;
  border: 0; background: none;
  font-size: 12px; color: var(--ink-400);
  cursor: pointer;
}
.modal-sub:hover { color: var(--blue-deep); }

/* ---- 找回密码：步骤指示器 ---- */
.steps-row {
  display: flex; align-items: center; gap: 8px;
  list-style: none; padding: 0; margin: 0;
}
.steps-row .step {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--ink-250);
}
.steps-row .step-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--surface); color: var(--ink-400);
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.steps-row .step.active { color: var(--ink-900); font-weight: 500; }
.steps-row .step.active .step-num { background: var(--blue-primary); color: var(--white); }
.steps-row .step.done .step-num { background: var(--blue-bg); color: var(--blue-deep); }
.steps-row .step-sep { width: 24px; height: 1px; background: var(--line); }
.fp-panel { margin-top: 4px; }
.fp-panel[hidden] { display: none; }
.fp-done { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 24px 0; }
.fp-done .done-icon { width: 64px; height: 64px; }
.fp-done .done-icon svg { width: 100%; height: 100%; }
.fp-done h3 { font-size: 20px; font-weight: 600; color: var(--ink-900); }
.fp-done p { font-size: 14px; color: var(--ink-500); line-height: 1.7; }
.fp-login-link {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 240px;
  text-decoration: none;
}

/* ================= 503 服务降级页 ================= */
.degrade-page {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding: 40px 24px;
}
.degrade-glow {
  position: absolute;
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(22,119,255,.10) 0%, rgba(22,119,255,0) 70%);
  pointer-events: none;
}
.degrade-content { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: 560px; text-align: center; }
.degrade-content .illu { width: 180px; height: 172px; }
.degrade-icon {
  width: 88px; height: 88px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: center;
  margin-top: -120px;
  position: relative;
}
.degrade-icon svg { width: 40px; height: 40px; }
.degrade-content .code { font-size: 40px; font-weight: 700; color: var(--blue-primary); line-height: 1; }
.degrade-content h1 { font-size: 26px; font-weight: 700; color: var(--ink-900); }
.degrade-content .desc { font-size: 14px; color: var(--ink-500); line-height: 1.8; }
.degrade-actions { display: flex; gap: 16px; }
.degrade-actions .btn { min-width: 140px; height: 44px; padding: 0 24px; font-size: 14px; }
.service-status {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font-size: 12px; color: var(--ink-900);
  box-shadow: var(--shadow-card);
}
.service-status .dot { width: 8px; height: 8px; background: var(--amber); border-radius: 50%; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ================= 响应式（基础降级） ================= */
@media (max-width: 1200px) {
  :root { --content-pad: 40px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-title { font-size: 42px; line-height: 1.25; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; }
  .example-row { grid-template-columns: repeat(2, 1fr); }
  .support-inner { grid-template-columns: 1fr; }
  .detail-main, .ticket-layout { grid-template-columns: 1fr; }
  .listings-grid { grid-template-columns: 1fr; }
  .listing-card { padding: 20px; gap: 16px; }
  .app-icon { width: 56px; height: 56px; border-radius: 14px; }
  .app-icon svg { width: 28px; height: 28px; }
  .login-page { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-form-panel { padding: 0 40px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  :root { --content-pad: 20px; }
  .nav-links { display: none; }
  .category-grid, .product-grid, .example-row, .stat-row,
  .support-cards, .field-row, .style-examples, .feature-row { grid-template-columns: 1fr; }
  .footer-main { flex-direction: column; gap: 32px; }
  .footer-cols { flex-wrap: wrap; gap: 32px; }
  .showcase-big { padding: 20px; }
  .showcase-illu, .tile-illu { display: none; }
}


/* ---------- 演示 toast ---------- */
.demo-toast {
  position: fixed; left: 50%; bottom: 48px; transform: translateX(-50%) translateY(16px);
  background: rgba(15, 23, 42, .92); color: #fff; font-size: 14px;
  padding: 10px 20px; border-radius: 10px; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 9999; white-space: nowrap;
}
.demo-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.comment-actions .liked { color: var(--blue-primary); border-color: var(--blue-primary); }
.fav-btn.faved { color: var(--blue-primary); }
.mini-product .soon { display: none; }


/* ---------- 键盘焦点与按压反馈（可达性） ---------- */
:focus-visible { outline: 2px solid var(--blue-primary); outline-offset: 2px; border-radius: 4px; }
.btn:active { transform: translateY(1px) scale(.98); }
.search-box:focus-within { border-color: var(--blue-pale); box-shadow: 0 0 0 3px rgba(22,119,255,.08); }
.filter-pill:hover { border-color: var(--blue-pale); }
.option-pill:hover { border-color: var(--blue-pale); }

/* ---------- skip-link ---------- */
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  background: var(--blue-primary); color: var(--white);
  padding: 10px 18px; border-radius: 0 0 10px 10px; font-size: 14px;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---------- 字段错误态 ---------- */
.field-error { border-color: #E5484D !important; box-shadow: 0 0 0 3px rgba(229,72,77,.10); }

/* ---------- 工单提交成功卡 ---------- */
.submit-success {
  background: #EFF6EE; border: 1px solid #BFE3C0; border-radius: 12px;
  padding: 18px 22px; display: flex; flex-direction: column; gap: 4px;
}
.submit-success strong { color: #1F7A33; font-size: 15px; }
.submit-success span { font-size: 13px; color: var(--ink-500); }

/* ---------- 「即将上线」小标注 ---------- */
.soon {
  font-style: normal; font-size: 10px; color: var(--blue-deep);
  background: var(--blue-bg); border-radius: 4px; padding: 1px 5px;
  margin-left: 6px; white-space: nowrap;
}
.soon-badge {
  align-self: flex-start; font-size: 11px; color: var(--blue-deep);
  background: var(--blue-bg); border: 1px dashed var(--blue-pale);
  border-radius: 6px; padding: 3px 10px; margin-top: 4px;
}
.product-card-static, .listing-card-static { cursor: default; }
.listing-card-static:hover { box-shadow: var(--shadow-card); transform: none; }

/* ---------- 空状态 ---------- */
.empty-state[hidden] { display: none; }
.empty-state {
  grid-column: 1 / -1;
  background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius-card);
  padding: 64px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.empty-state .empty-icon svg { width: 48px; height: 48px; }
.empty-state h3 { font-size: 18px; color: var(--ink-900); }
.empty-state p { font-size: 14px; color: var(--ink-400); }
.empty-state .btn { margin-top: 8px; }

/* ---------- 详情页「如何使用」 ---------- */
.use-steps { display: flex; gap: 28px; margin-top: 18px; align-items: flex-start; }
.use-step { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; }
.qr-placeholder {
  width: 132px; height: 132px; background: var(--white);
  border: 1.5px dashed var(--blue-pale); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.qr-placeholder svg { width: 88px; height: 88px; }
.step-note { font-size: 11px; color: var(--ink-400); text-align: center; }
.step-list { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-500); padding-left: 20px; }
.step-list li::marker { color: var(--blue-primary); font-weight: 600; }
.step-list strong { color: var(--ink-900); }

/* ---------- 工单页登录引导 ---------- */
.tickets-login-hint {
  border: 1px dashed var(--line); border-radius: 10px;
  padding: 20px; text-align: center;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.tickets-login-hint p { font-size: 13px; color: var(--ink-400); }

/* ---------- ticket 页标题类（原内联样式迁移） ---------- */
.page-title-sm { font-size: 36px; }
.lede-sm { font-size: 15px; }

/* ---------- 上传回显 ---------- */
.upload-zone.has-file { border-style: solid; color: var(--ink-700); background: var(--blue-bg); }

/* ================= 移动端修复 ================= */
@media (max-width: 720px) {
  /* 导航：窄屏只留注册按钮 + 品牌名缩排 */
  .site-nav .container { height: 60px; gap: 8px; }
  .nav-left { gap: 12px; min-width: 0; }
  .brand-name { font-size: 15px; }
  .brand-name .en { display: none; }
  .nav-right { gap: 8px; flex-shrink: 0; }
  .btn-login { padding: 7px 10px; font-size: 13px; }
  .btn-register { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
  .breadcrumb { display: none; }
  .user-chip { display: none; }

  /* Hero 收缩 */
  .hero-inner { padding-top: 40px; }
  .hero-title { font-size: 30px; line-height: 1.3; }
  .hero-sub { font-size: 15px; }
  .hero-actions { flex-wrap: wrap; }
  .hero-actions .btn { flex: 1; min-width: 0; padding: 14px 16px; white-space: nowrap; font-size: 14px; }

  /* 数据卡 2 列内收 */
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 32px; }
  .stat-card { padding: 16px; }
  .stat-value { font-size: 22px; }

  /* 产品速览 */
  .product-strip-row { grid-template-columns: repeat(2, 1fr); }
  .mini-product .name { font-size: 12px; }
  .mini-product .soon { display: none; }

  /* section 标题 */
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-head .left h2 { font-size: 22px; }

  /* showcase 大卡：手机 mockup 缩小、标签换行 */
  .showcase-big { flex-wrap: wrap; min-height: 0; padding: 20px; }
  .phone-mock { width: 140px; height: 260px; }
  .style-tags { flex-direction: row; flex-wrap: wrap; }
  .tool-window { height: auto; flex-direction: column; }
  .study-cards { flex-wrap: wrap; }
  .study-card { width: calc(33% - 10px); min-width: 88px; height: auto; padding: 10px; }
  .study-card .big-char { font-size: 28px; }

  /* 详情页头卡：纵向堆叠，按钮铺满 */
  .detail-head-row { flex-wrap: wrap; }
  .detail-btn-col { flex-direction: row; width: 100%; }
  .detail-btn-col .btn { flex: 1; }

  /* 页脚简化版纵排 */
  .footer-simple .inner { flex-direction: column; gap: 12px; text-align: center; }
  .footer-simple .links { flex-wrap: wrap; justify-content: center; }
  .footer-copy { flex-direction: column; gap: 8px; text-align: center; }

  /* 页头与表单 */
  .page-hero h1 { font-size: 30px; }
  .page-title-sm { font-size: 28px; }
  .ticket-form-card { padding: 20px; }
  .detail-card { padding: 20px; }

  /* 登录页：去大留白 */
  .login-form-panel { padding: 40px 24px; justify-content: flex-start; min-height: auto; }
  .login-page { min-height: auto; }
  .oauth-row { flex-wrap: wrap; }
  .code-row { flex-wrap: wrap; }
  .btn-code { flex: 1; min-width: 110px; }
  .steps-row { flex-wrap: wrap; gap: 6px; }
  .steps-row .step-sep { width: 14px; }
  .steps-row .step { font-size: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .login-gate { flex-wrap: wrap; }
  .login-gate .btn { margin-left: 36px; }
  .modal-card { padding: 26px 20px 20px; }
  .modal-actions { flex-direction: column; }

  /* 详情右栏步骤纵排 */
  .use-steps { flex-direction: column; align-items: center; }
  .step-list { padding-left: 18px; }

  /* 列表页搜索框独立成行 */
  .search-box { margin-left: 0; width: 100%; }

  /* 503 状态卡文字 */
  .service-status { text-align: left; max-width: 100%; }
}


/* ---------- 404 页补充 ---------- */
.degrade-icon.code-icon { margin-top: 0; }
.degrade-icon.code-icon svg { width: 44px; height: 44px; }
.service-status .dot.ok { background: var(--green, #21C484); animation: none; }


/* ---------- FAQ / 法律文档页 ---------- */
.faq-layout, .legal-layout {
  display: grid; grid-template-columns: 1fr 340px; gap: 40px;
  max-width: calc(var(--page-max) - 160px);
  margin: 0 auto; padding: 16px var(--content-pad) 64px;
}
.faq-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; padding: 0; overflow: hidden; }
.faq-item + .faq-item { margin-top: 12px; }
.faq-item summary {
  cursor: pointer; padding: 16px 18px; font-size: 15px; font-weight: 500;
  color: var(--ink-900); list-style: none; position: relative; padding-right: 44px;
  transition: background .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 18px; color: var(--blue-primary); font-weight: 500; transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { background: var(--surface); }
.faq-body { padding: 0 18px 16px; font-size: 14px; color: var(--ink-500); line-height: 1.8; }
.faq-body a { color: var(--blue-deep); text-decoration: underline; }

.legal-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 40px; max-width: 820px;
}
.legal-card h1 { font-size: 28px; color: var(--ink-900); margin-bottom: 8px; }
.legal-meta { font-size: 13px; color: var(--ink-400); margin-bottom: 20px; }
.legal-note {
  background: var(--blue-bg); border-radius: 10px; padding: 14px 18px;
  font-size: 13px; color: var(--blue-deep); margin-bottom: 24px;
}
.legal-card h2 { font-size: 17px; color: var(--ink-900); margin: 24px 0 10px; }
.legal-card p { font-size: 14px; color: var(--ink-500); line-height: 1.9; margin-bottom: 8px; }
.legal-card a { color: var(--blue-deep); text-decoration: underline; }

@media (max-width: 720px) {
  .faq-layout, .legal-layout { grid-template-columns: 1fr; padding: 8px 20px 48px; }
  .legal-card { padding: 24px 20px; }
}

/* ===== 首页改版：状态标签 / 研发路线图 / 预览标注 ===== */

/* 产品卡状态标签（已上线 / 开发中 / 规划中） */
.status-tag {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  align-self: flex-start;
}
.status-tag.live { color: #0E8A5F; background: #E5F6EF; }
.status-tag.dev  { color: var(--ink-500); background: var(--surface); }

/* 已上线卡片 meta 行改为「立即使用」引导 */
.product-card .meta .go { color: var(--blue-primary); font-size: 14px; font-weight: 500; }
a.product-card:hover .meta .go { color: var(--blue-deep); }

/* 锚点定位：给导航栏留出空间 */
#hot-title, #roadmap, #showcase-title, #support-title { scroll-margin-top: 88px; }
html { scroll-behavior: smooth; }

/* 研发路线图 */
.roadmap {
  margin-top: 48px;
  background: #fff;
  border: 1px solid #E6EEF5;
  border-radius: 16px;
  padding: 28px 32px 20px;
}
.roadmap-title { font-size: 17px; font-weight: 600; color: var(--ink-900); margin: 0 0 20px; }
.roadmap-list { list-style: none; margin: 0; padding: 0 0 0 6px; border-left: 2px solid #DCE9F5; }
.roadmap-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0 11px 22px;
}
.roadmap-item + .roadmap-item { border-top: 1px dashed #EDF3F8; }
.roadmap-item .dot {
  position: absolute;
  left: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--blue-bg);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #DCE9F5;
}
.roadmap-item .dot.live { background: #35C08E; box-shadow: 0 0 0 1px #BFE8DA; }
.roadmap-item .dot.more { background: #fff; color: var(--ink-400); font-size: 10px; font-weight: 600; text-align: center; line-height: 14px; }
.roadmap-item .r-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.roadmap-item .r-name { font-size: 14px; font-weight: 600; color: var(--ink-900); }
.roadmap-item .r-desc { font-size: 13px; color: var(--ink-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roadmap-item .r-status { flex-shrink: 0; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.roadmap-item .r-status.live { color: #0E8A5F; background: #E5F6EF; }
.roadmap-item .r-status.dev  { color: var(--ink-500); background: var(--surface); }
.roadmap-item .r-link { flex-shrink: 0; font-size: 13px; color: var(--blue-primary); font-weight: 500; }
.roadmap-item .r-link:hover { color: var(--blue-deep); }
.roadmap-item.more .r-name { color: var(--ink-700); }

/* 预览瓦片角标 */
.tile-caption em { font-style: normal; font-size: 11px; color: var(--ink-400); margin-left: 6px; }

/* 移动端适配 */
@media (max-width: 720px) {
  .roadmap { padding: 20px 18px 12px; }
  .roadmap-list { border-left: 0; padding-left: 0; }
  .roadmap-item { padding-left: 0; gap: 10px; }
  .roadmap-item .dot { position: static; transform: none; width: 10px; height: 10px; flex-shrink: 0; }
  .roadmap-item .dot.more { width: auto; height: auto; padding: 0 4px; border-radius: 6px; border: 1px solid #DCE9F5; line-height: 16px; }
  .roadmap-item .r-desc { white-space: normal; }
  .roadmap-item { flex-wrap: wrap; }
  .roadmap-item .r-status, .roadmap-item .r-link { margin-left: 20px; }
  .status-tag { font-size: 11px; padding: 4px 8px; }
}

/* ===== 产品全景卡（首页产品预览区改版） ===== */
.pano-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pano-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #E6EEF5; border-radius: 16px;
  overflow: hidden; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
a.pano-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(22,119,255,.10); }
.pano-cover {
  height: 150px; display: flex; align-items: center; justify-content: center;
}
.pano-cover.cov-blue  { background: linear-gradient(135deg, #3B82F6, #1677FF); }
.pano-cover.cov-amber { background: linear-gradient(135deg, #F0B35B, #D97706); }
.pano-cover.cov-green { background: linear-gradient(135deg, #4FC79A, #0E8A5F); }
.pano-glyph { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.16); border-radius: 16px; }
.pano-glyph svg { width: 40px; height: 40px; }
.pano-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.pano-title-row { display: flex; align-items: center; gap: 10px; }
.pano-title-row h3 { font-size: 16px; font-weight: 600; color: var(--ink-900); margin: 0; }
.pano-body p { font-size: 13.5px; color: var(--ink-500); margin: 0; line-height: 1.6; }
@media (max-width: 900px) { .pano-grid { grid-template-columns: 1fr; } }
