/* ==========================================================================
   小猫文档 · 站点样式（PC）
   设计来源：新版UI-小猫.pen
   与 layui 共存：layui.css 只负责 layer 弹层外壳，页面样式全部由本文件接管
   ========================================================================== */

/* ---------- 设计令牌 ---------- */
:root {
  --brand: #0B6E4F;
  --brand-dark: #08543C;
  --brand-tint: #E9F4EF;
  --brand-light: #4FD1A5;

  --bg: #FFFFFF;
  --bg-alt: #F6F8F7;
  --bg-dark: #0D1512;
  --panel-dark: #111C17;

  --text-primary: #12171A;
  --text-secondary: #5B6670;
  --text-muted: #667079;
  --text-invert: #FFFFFF;
  --text-invert-dim: #9DB2A9;

  --border: #E3E7E5;
  --border-strong: #CFD8D3;
  --dark-border: #1F2C26;
  --hairline-dark: #22312A;

  --warn-bg: #FDF6E7;
  --warn-border: #F0E2C0;
  --warn-text: #7A5A12;
  --danger: #C0392B;
  --danger-tint: #FDECEA;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-card: 0 1px 2px rgba(18, 23, 26, .04);
  --shadow-pop: 0 12px 32px rgba(18, 23, 26, .10);
  --shadow-mock: 0 24px 60px rgba(18, 23, 26, .08);

  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num: "Inter", ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

img { max-width: 100%; display: block; border: 0; }

input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

::selection { background: var(--brand-tint); color: var(--brand-dark); }

/* 唯一的横向留白来源：导航、各区首、页脚都用它，改这里等于全站一起改 */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 120px; width: 100%; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

.ic { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: -0.15em; }
.ic-12 { width: 12px; height: 12px; }
.ic-14 { width: 14px; height: 14px; }
.ic-15 { width: 15px; height: 15px; }
.ic-18 { width: 18px; height: 18px; }
.ic-20 { width: 20px; height: 20px; }
.ic-22 { width: 22px; height: 22px; }
.ic-32 { width: 32px; height: 32px; }


/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border: 1px solid transparent; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--text-invert); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: var(--bg); color: var(--text-primary); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost-invert { background: rgba(255, 255, 255, .08); color: var(--text-invert); border-color: rgba(255, 255, 255, .28); }
.btn-ghost-invert:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }
.btn-dark { background: var(--bg-dark); color: var(--text-invert); }
.btn-dark:hover { background: #1B2620; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-xs { padding: 7px 13px; font-size: 13px; font-weight: 500; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

.btn-icon {
  width: 30px; height: 30px; padding: 0; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--text-secondary); border: 0; cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}
.btn-icon:hover { background: var(--brand-tint); color: var(--brand); }
.btn-icon.is-danger { color: var(--danger); }
.btn-icon.is-danger:hover { background: var(--danger-tint); color: var(--danger); }
.btn-icon.is-on { background: var(--brand-tint); color: var(--brand); }

/* ---------- 通用小组件 ---------- */
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  background: var(--brand-tint); color: var(--brand); border-radius: 999px;
  font-size: 13px; font-weight: 600; line-height: 1;
  align-self: flex-start; width: fit-content;
}

.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
}
.chip .tag { font-size: 12px; font-weight: 700; }
.chip .chip-name { font-size: 14px; font-weight: 500; color: var(--text-primary); }

/* 支持格式：一排紧凑的扩展名胶囊（颜色点区分文件类型） */
.chip--fmt { gap: 7px; padding: 7px 12px; border-radius: 999px; }
.chip--fmt .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.chip--fmt .ext { font-family: var(--font-num); font-size: 13px; font-weight: 600; color: var(--text-primary); letter-spacing: .01em; }

/* 文件类型色标 */
.tag { font-family: var(--font-num); font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.tagbox {
  width: 32px; height: 32px; border-radius: var(--radius); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-tint); color: var(--brand);
}
.tagbox .tag { font-size: 10px; }
/* 文件类型色标（纯文字版） */
.tag--pdf { color: #C0392B; }
.tag--doc, .tag--docx, .tag--wps { color: #2B579A; }
.tag--xls, .tag--xlsx { color: #1D6F42; }
.tag--ppt, .tag--pptx { color: #D24726; }
.tag--txt { color: #5B6670; }
.tag--zip, .tag--rar, .tag--7z { color: #B7791F; }
.tag--jpg, .tag--jpeg, .tag--png { color: #7C4DBE; }

.tagbox--pdf { background: var(--danger-tint); color: #C0392B; }
.tagbox--doc, .tagbox--docx, .tagbox--wps { background: #EAF1FA; color: #2B579A; }
.tagbox--xls, .tagbox--xlsx { background: #E7F4EC; color: #1D6F42; }
.tagbox--ppt, .tagbox--pptx { background: #FCEDE8; color: #D24726; }
.tagbox--txt { background: #EEF1F0; color: #5B6670; }
.tagbox--zip, .tagbox--rar, .tagbox--7z { background: #FBF3E4; color: #B7791F; }
.tagbox--jpg, .tagbox--jpeg, .tagbox--png { background: #F2ECFB; color: #7C4DBE; }

.rule { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ==========================================================================
   顶部导航
   ========================================================================== */
.site-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-nav .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 30px; width: auto; }
.brand-mark {
  width: 30px; height: 30px; border-radius: var(--radius); background: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; color: var(--text-invert);
}
.brand-mark .ic { width: 17px; height: 17px; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 14px; border-radius: var(--radius); font-size: 14px; font-weight: 500;
  color: var(--text-secondary); transition: background-color .16s ease, color .16s ease;
}
.nav-link:hover { background: var(--bg-alt); color: var(--text-primary); }
.nav-link.is-active { background: var(--brand-tint); color: var(--brand); }

.nav-right { display: flex; align-items: center; gap: 14px; flex: none; }

.usermenu { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px;
  cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text-primary);
}
.user-btn:hover { border-color: var(--border-strong); }
.avatar {
  width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--text-invert);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
/* 没有上传头像时的默认头像：品牌浅绿底 + 猫头标 */
.avatar--default { background: var(--brand-tint); color: var(--brand); }
.vtag {
  font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand);
}
.vtag.personal { background: var(--bg-alt); color: var(--text-secondary); }
.usermenu .menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 6px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop); display: none;
}
.usermenu.open .menu { display: block; }
.menu-item {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text-secondary); cursor: pointer; width: 100%;
  background: none; border: 0; text-align: left;
}
.menu-item:hover { background: var(--bg-alt); color: var(--text-primary); }

/* ==========================================================================
   首页 · Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero .wrap { padding-top: 84px; padding-bottom: 88px; display: flex; align-items: center; justify-content: space-between; gap: 52px; }
.hero-glow {
  position: absolute; right: -120px; top: -220px; width: 760px; height: 760px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(11, 110, 79, .10) 0%, rgba(11, 110, 79, 0) 68%);
  pointer-events: none;
}
.hero-copy { position: relative; width: 552px; flex: none; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-size: 52px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.hero-sub { font-size: 17px; line-height: 1.75; color: var(--text-secondary); }
.hero-cta { display: flex; align-items: center; gap: 12px; }
.trust { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text-secondary); }
.trust-item .ic { color: var(--brand); }

/* Hero 右侧产品形态示意 */
.mock {
  position: relative; width: 596px; flex: none; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-mock);
  overflow: hidden;
}
.mock-bar {
  height: 44px; padding: 0 16px; background: var(--bg-alt); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: #E5E9E7; flex: none; }
.mock-tab {
  flex: 1; padding: 5px 12px; background: var(--bg); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
}
.mock-tab .ic { color: var(--text-muted); }
/* Hero 右侧：公众号文章形态（按微信图文样式还原） */
.wa { padding: 28px 30px 22px; display: flex; flex-direction: column; }
.wa-title { font-size: 20px; font-weight: 700; line-height: 1.5; color: #1A1A1A; letter-spacing: -.01em; }
.wa-meta { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12px; color: #9A9A9A; }
.wa-meta .wa-author { color: #576B95; }
.wa-text { margin-top: 18px; font-size: 13.5px; line-height: 1.9; color: #333333; }
.wa-atts { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.wa-att { display: flex; align-items: center; gap: 6px; font-size: 13.5px; line-height: 1.6; color: #576B95; }
.wa-att .wa-clip { width: 16px; height: 17px; flex: none; }
.wa-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 26px; font-size: 12px;
}
.wa-foot-left { display: inline-flex; align-items: center; gap: 16px; }
.wa-link { color: #576B95; }
.wa-read { color: #9A9A9A; }
.wa-foot-right { color: #B2B2B2; }
.skeleton { height: 9px; border-radius: 4px; background: #EBEFED; }

/* 支持格式条 */
.format-strip { background: var(--bg-alt); }
.format-strip .wrap { padding-top: 20px; padding-bottom: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.format-strip .label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.format-strip .sep { width: 1px; height: 20px; background: var(--border-strong); margin: 0 4px; }
.format-strip .chip { padding: 7px 12px; gap: 7px; }

/* ==========================================================================
   首页 · 通用区块
   ========================================================================== */
.section { padding: 104px 0; background: var(--bg); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); }

.sec-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; max-width: 680px; margin: 0 auto; }
.sec-title { font-size: 40px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.sec-sub { font-size: 17px; line-height: 1.7; color: var(--text-secondary); }
.section--dark .sec-title { color: var(--text-invert); }
.section--dark .sec-sub { color: var(--text-invert-dim); }
.section--dark .eyebrow { color: var(--brand-light); }

.sec-head--left { align-items: flex-start; text-align: left; max-width: none; margin: 0; }

/* 步骤 */
.steps { display: flex; gap: 40px; }
.step { flex: 1; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.step-head { display: flex; align-items: center; gap: 12px; }
.step-num {
  width: 34px; height: 34px; border-radius: var(--radius); background: var(--bg-dark); color: var(--text-invert);
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-num);
  font-size: 14px; font-weight: 700; flex: none;
}
.step-head .ic { color: var(--brand); }
.step h3 { font-size: 20px; font-weight: 600; }
.step p { font-size: 14px; line-height: 1.75; color: var(--text-secondary); }

/* 三种分享方式 */
.ways { display: flex; gap: 28px; }
.way { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.way-visual { height: 196px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; padding: 20px; }
.way-body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 10px; }
.way h3 { font-size: 18px; font-weight: 600; }
.way p { font-size: 14px; line-height: 1.7; color: var(--text-secondary); }
.way-qr { width: 132px; height: 132px; padding: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); }
.way-qr img { width: 100%; height: 100%; object-fit: contain; }
.way-linkcard { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px; display: flex; flex-direction: column; gap: 9px; }
.way-linkcard .skeleton { height: 8px; }
.way-linkcard .inline-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14px; font-weight: 600; color: #576B95; text-decoration: none;
}
.way-linkcard .inline-link .wa-clip { width: 15px; height: 16px; flex: none; }

/* 核心功能 */
.features { display: flex; gap: 24px; }
.feature {
  flex: 1; min-width: 0; padding: 28px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 16px;
}
.icon-box {
  width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--brand-tint);
  display: inline-flex; align-items: center; justify-content: center; color: var(--brand); flex: none;
}
.feature h3 { font-size: 18px; font-weight: 600; }
.feature p { font-size: 14px; line-height: 1.75; color: var(--text-secondary); }

.why-block { display: flex; gap: 72px; align-items: flex-start; }
.why-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.why-copy h3 { font-size: 32px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.why-copy p { font-size: 15px; line-height: 1.75; color: var(--text-secondary); }
.why-list { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.why-item { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--border); }
.why-item:first-child { border-top: 0; padding-top: 0; }
.why-item .ic { color: var(--brand); margin-top: 3px; }
.why-item h4 { font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.why-item p { font-size: 14px; line-height: 1.7; color: var(--text-secondary); }

/* 适用场景 */
.scenarios { display: flex; gap: 20px; }
.scenario {
  flex: 1; min-width: 0; padding: 24px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 12px;
}
.scenario .ic { color: var(--brand); width: 22px; height: 22px; }
.scenario h3 { font-size: 17px; font-weight: 600; }
.scenario p { font-size: 13px; color: var(--text-secondary); }

/* 浏览器插件（深色） */
.plugin-body { display: flex; gap: 64px; align-items: center; }
.plugin-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.plugin-quote {
  padding: 20px 22px; background: var(--panel-dark); border: 1px solid var(--hairline-dark);
  border-left: 3px solid var(--brand-light); border-radius: var(--radius-md);
  display: flex; flex-direction: column; gap: 6px;
}
.plugin-quote p { font-size: 14px; line-height: 1.7; color: var(--text-invert-dim); }
.plugin-quote strong { font-size: 15px; font-weight: 600; color: var(--text-invert); }
.plugin-copy h3 { font-size: 22px; font-weight: 700; color: var(--text-invert); line-height: 1.5; }
.plugin-features { display: flex; flex-direction: column; gap: 18px; }
.plugin-feature { display: flex; gap: 14px; }
.plugin-feature .icon-box { width: 38px; height: 38px; background: rgba(79, 209, 165, .12); color: var(--brand-light); border-radius: 10px; }
.plugin-feature h4 { font-size: 16px; font-weight: 600; color: var(--text-invert); margin-bottom: 2px; }
.plugin-feature p { font-size: 14px; line-height: 1.7; color: var(--text-invert-dim); }

.ext-mock {
  flex: none; width: 560px; background: var(--panel-dark); border: 1px solid var(--hairline-dark);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.ext-mock .mock-bar { background: #0A110E; border-bottom-color: var(--hairline-dark); }
.ext-mock .mock-dot { background: #26332C; }
.ext-mock .mock-tab { background: var(--panel-dark); color: var(--text-invert-dim); border: 1px solid var(--hairline-dark); }
.ext-mock .mock-tab .ic { color: var(--text-invert-dim); }
.ext-mock-body { padding: 22px; display: flex; gap: 16px; }
.ext-editor { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ext-editor h4 { font-size: 17px; font-weight: 700; color: var(--text-invert); }
.ext-editor .skeleton { background: #1B2620; }
.ext-panel { width: 232px; flex: none; background: var(--bg-dark); border: 1px solid var(--hairline-dark); border-radius: var(--radius-md); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.ext-panel-head { display: flex; align-items: center; gap: 8px; color: var(--text-invert); font-size: 13px; font-weight: 600; }
.ext-panel-head .ic { color: var(--brand-light); }
.ext-drop {
  padding: 18px 12px; border: 1px dashed var(--hairline-dark); border-radius: var(--radius);
  text-align: center; font-size: 12px; color: var(--text-invert-dim);
}
.ext-file { display: flex; align-items: center; gap: 10px; padding: 9px 10px; background: var(--panel-dark); border: 1px solid var(--hairline-dark); border-radius: var(--radius-sm); }
.ext-file .name { flex: 1; min-width: 0; font-size: 12px; color: var(--text-invert); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ext-copy { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px; border-radius: var(--radius-sm); background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; }

/* 插件安装 */
.install-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.install-tab {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--text-secondary); transition: .16s ease;
}
.install-tab img { width: 20px; height: 20px; object-fit: contain; }
.install-tab:hover { border-color: var(--border-strong); color: var(--text-primary); }
.install-tab.is-active { background: var(--brand-tint); border-color: var(--brand); color: var(--brand); }
.install-tab .tag { font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 4px; background: var(--brand); color: #fff; }
.install-tab.is-active .tag { background: var(--brand); }

.install-panel { padding: 36px; background: var(--bg-alt); border-radius: var(--radius-lg); }
.install-panel[hidden] { display: none; }
.panel-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.panel-head h3 { font-size: 20px; font-weight: 700; }
.panel-head .actions { display: flex; gap: 10px; margin-left: auto; }

.install-steps { display: flex; flex-direction: column; gap: 2px; }
.install-step { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--border); }
.install-step:first-child { border-top: 0; padding-top: 0; }
.install-step .step-num { width: 26px; height: 26px; font-size: 12px; }
.install-step p { font-size: 14px; line-height: 1.7; color: var(--text-secondary); padding-top: 2px; }
.install-step code, .code-inline {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px; padding: 2px 7px; border-radius: 5px; background: var(--bg);
  border: 1px solid var(--border); color: var(--text-primary); white-space: nowrap;
}
.install-tip {
  margin-top: 22px; padding: 13px 16px; background: var(--warn-bg); border: 1px solid var(--warn-border);
  border-radius: var(--radius); color: var(--warn-text); font-size: 13px; line-height: 1.7;
  display: flex; gap: 9px; align-items: flex-start;
}
.install-tip .ic { margin-top: 2px; }

.other-browsers { display: flex; flex-direction: column; gap: 18px; margin-top: 48px; }
.other-browsers .label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.other-cols { display: flex; gap: 14px; flex-wrap: wrap; }
.other-col {
  flex: 1; min-width: 180px; padding: 16px 18px; background: var(--bg-alt); border-radius: var(--radius-md);
  display: flex; flex-direction: column; gap: 6px;
}
.other-col b { font-size: 14px; font-weight: 500; }
.other-col span { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: var(--text-secondary); word-break: break-all; }

/* 版本 / 定价 */
.plans { display: flex; gap: 24px; align-items: stretch; }
.plan {
  flex: 1; min-width: 0; padding: 30px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 22px;
}
.plan--featured { border-color: var(--brand); box-shadow: 0 12px 32px rgba(11, 110, 79, .10); }
.plan-head { display: flex; flex-direction: column; gap: 12px; }
.plan-badges { display: flex; align-items: center; gap: 8px; }
.plan-badge { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--bg-alt); color: var(--text-secondary); }
.plan--featured .plan-badge { background: var(--brand-tint); color: var(--brand); }
.plan-recommend { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--brand); color: #fff; }
.plan h3 { font-size: 20px; font-weight: 700; }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price .cur { font-size: 20px; font-weight: 600; }
.plan-price .val { font-family: var(--font-num); font-size: 36px; font-weight: 700; letter-spacing: -.02em; }
.plan-price .free { font-size: 32px; font-weight: 700; }
.plan-price .note { font-size: 13px; color: var(--text-muted); }
.plan-audience { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.plan-features { display: flex; flex-direction: column; gap: 11px; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.plan-features .ic { color: var(--brand); margin-top: 3px; }
.plan .btn { margin-top: auto; }

/* 私有化部署 */
.deploy { padding: 0 0 104px; background: var(--bg); }
.deploy-card {
  padding: 44px 48px; background: var(--bg-dark); border-radius: var(--radius-lg);
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.deploy-card .ic-32 { color: var(--brand-light); }
.deploy-copy { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 12px; }
.deploy-copy h3 { font-size: 26px; font-weight: 700; color: var(--text-invert); }
.deploy-copy p { font-size: 14px; color: var(--text-invert-dim); }
.deploy-list { display: flex; gap: 18px; flex-wrap: wrap; }
.deploy-list span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-invert-dim); }
.deploy-list .ic { color: var(--brand-light); }

/* 文章 */
.posts-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.posts-head .sec-head--left { gap: 12px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--brand); }
.more-link:hover { color: var(--brand-dark); }

.post-row { display: flex; gap: 24px; }
.post-card {
  flex: 1; min-width: 0; min-height: 172px; padding: 26px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(18, 23, 26, .07); }
.post-card .tag { font-size: 12px; font-weight: 600; color: var(--brand); }
.post-card h3 {
  font-size: 16px; font-weight: 600; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.post-card .meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text-muted); }
.post-card--more { background: var(--brand-tint); border-color: transparent; justify-content: center; align-items: flex-start; }
.post-card--more h3 { font-size: 17px; font-weight: 700; color: var(--brand-dark); }
.post-card--more p { font-size: 14px; color: var(--brand); line-height: 1.7; }

/* FAQ */
.faq-wrap { display: flex; gap: 80px; align-items: flex-start; }
.faq-copy { flex: none; width: 400px; display: flex; flex-direction: column; gap: 14px; }
.faq-copy h2 { font-size: 32px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.faq-copy p { font-size: 15px; line-height: 1.75; color: var(--text-secondary); }
.faq-list { flex: 1; min-width: 0; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 24px; padding: 24px 4px; background: none;
  border: 0; text-align: left; cursor: pointer; font-size: 16px; font-weight: 500; color: var(--text-primary);
}
.faq-q .ic { margin-left: auto; color: var(--text-muted); transition: transform .2s ease, color .2s ease; }
.faq-item.open .faq-q { color: var(--brand); }
.faq-item.open .faq-q .ic { transform: rotate(180deg); color: var(--brand); }
.faq-a { display: none; padding: 0 4px 24px; font-size: 14px; line-height: 1.85; color: var(--text-secondary); max-width: 720px; }
.faq-item.open .faq-a { display: block; }

/* 底部 CTA */
.final-cta { padding: 96px 0; background: var(--brand); text-align: center; }
.final-cta .wrap { display: flex; flex-direction: column; align-items: center; gap: 34px; }
.final-cta h2 { font-size: 44px; font-weight: 700; color: var(--text-invert); letter-spacing: -.02em; }
.final-cta p { font-size: 17px; color: #CFE7DD; max-width: 620px; line-height: 1.7; }
.final-cta .actions { display: flex; gap: 12px; }
.final-cta .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.final-cta .btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }
.final-cta .trust-item { color: #CFE7DD; }
.final-cta .trust-item .ic { color: #fff; }

/* ==========================================================================
   站脚
   ========================================================================== */
.site-footer { background: var(--bg-dark); padding: 56px 0; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 28px; }
.footer-top { display: flex; gap: 56px; align-items: flex-start; }
.footer-brand { flex: none; width: 320px; display: flex; flex-direction: column; gap: 14px; }
.footer-brand .brand-name { color: var(--text-invert); }
.footer-brand p { font-size: 14px; line-height: 1.8; color: var(--text-invert-dim); }
.footer-links { flex: 1; display: flex; justify-content: space-between; gap: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col b { font-size: 13px; font-weight: 600; color: var(--text-invert); }
.footer-col a { font-size: 14px; color: var(--text-invert-dim); }
.footer-col a:hover { color: var(--text-invert); }

/* 站脚小程序码 */
.footer-qr { flex: none; display: flex; align-items: center; gap: 14px; }
.footer-qr-card {
  flex: none; width: 124px; height: 124px; padding: 8px; background: #fff;
  border-radius: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.footer-qr-card img { width: 100%; height: 100%; display: block; object-fit: contain; }
.footer-qr-copy { display: flex; flex-direction: column; gap: 6px; }
.footer-qr-copy b { font-size: 13px; font-weight: 600; color: var(--text-invert); }
.footer-qr-copy span { font-size: 12px; line-height: 1.7; color: var(--text-invert-dim); }
.footer-rule { height: 1px; background: var(--hairline-dark); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-bottom span, .footer-bottom a { font-size: 13px; color: #7E8F88; }
.footer-bottom a:hover { color: var(--text-invert); }
.footer-bottom .group { display: flex; align-items: center; gap: 20px; }

/* 站脚（简洁版，用于内页） */
.site-footer--slim { padding: 26px 0; }
.site-footer--slim .wrap { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }

/* 悬浮客服 / 回到顶部 */
.float-btn {
  position: fixed; right: 30px; z-index: 900; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg); color: var(--text-secondary);
  display: none; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 6px 18px rgba(18, 23, 26, .12); transition: .16s ease;
}
.float-btn:hover { color: var(--brand); border-color: var(--brand); }
.float-btn.is-visible { display: inline-flex; }
#btn-service { bottom: 94px; }
#back-top { bottom: 38px; }

/* ==========================================================================
   我的文档
   ========================================================================== */
.dash-page { background: var(--bg-alt); min-height: 100vh; display: flex; flex-direction: column; }
.dash-page .dash-main { flex: 1; padding: 36px 0 56px; }
.dash-main .wrap { display: flex; flex-direction: column; gap: 26px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.page-head .copy { display: flex; flex-direction: column; gap: 10px; }
.page-head h1 { font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.page-head p { font-size: 14px; color: var(--text-secondary); }
.page-head .actions { display: flex; gap: 12px; }

/* 运营版认证邀请通知栏 */
.notice-bar {
  width: 100%; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--brand-tint); border: 1px solid rgba(11, 110, 79, .18);
  border-radius: var(--radius-md); cursor: pointer; text-align: left; font-family: inherit;
  transition: background-color .16s ease, border-color .16s ease;
}
.notice-bar:hover { background: #DFF0E8; border-color: rgba(11, 110, 79, .34); }
.notice-tag {
  flex: none; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: var(--brand); color: var(--text-invert);
}
.notice-text { flex: 1; min-width: 200px; font-size: 14px; font-weight: 500; color: var(--brand-dark); }
.notice-action { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--brand); }
.notice-bar:hover .notice-action { color: var(--brand-dark); }

.stats { display: flex; gap: 16px; }
.stat { flex: 1; min-width: 0; padding: 22px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 8px; }
.stat .label { font-size: 13px; color: var(--text-muted); }
.stat .value { display: flex; align-items: baseline; gap: 4px; }
.stat .value b { font-family: var(--font-num); font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.stat .value span { font-size: 13px; color: var(--text-muted); }
.stat .delta { font-size: 13px; color: var(--text-muted); }

.upload-card {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px;
  background: var(--brand-tint); border: 1px dashed var(--brand); border-radius: var(--radius-md);
  cursor: pointer; transition: background-color .16s ease;
}
.upload-card:hover { background: #DFF0E8; }
.upload-card .icon-box { background: var(--bg); }
.upload-card .copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.upload-card .copy b { font-size: 15px; font-weight: 600; color: var(--brand-dark); }
.upload-card .copy span { font-size: 13px; color: var(--brand); opacity: .85; }
.upload-card .actions { display: flex; gap: 10px; }

.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.search-box {
  display: flex; align-items: center; gap: 9px; padding: 0 14px; width: 288px; height: 40px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
}
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 110, 79, .10); }
.search-box .ic { color: var(--text-muted); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 14px; }
.search-box input::placeholder { color: var(--text-muted); }
.search-btn { height: 40px; padding: 0 18px; font-size: 14px; }

.seg { display: inline-flex; gap: 6px; }
.seg a {
  padding: 9px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg);
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
}
.seg a:hover { border-color: var(--border-strong); color: var(--text-primary); }
.seg a.is-active { background: var(--brand-tint); border-color: var(--brand); color: var(--brand); font-weight: 600; }
.toolbar .spacer { flex: 1; }
.toolbar .count { font-size: 13px; color: var(--text-muted); }

.batch-bar {
  display: none; align-items: center; gap: 10px; padding: 12px 16px;
  background: var(--bg-dark); border-radius: var(--radius-md); color: var(--text-invert);
}
.batch-bar.is-visible { display: flex; }
.batch-bar .bcount { font-size: 14px; font-weight: 600; }
.batch-bar .bsep { width: 1px; height: 18px; background: var(--hairline-dark); }
.batch-bar .bbtn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .10); color: var(--text-invert); border: 0; cursor: pointer;
  font-size: 13px; font-weight: 500;
}
.batch-bar .bbtn:hover { background: rgba(255, 255, 255, .2); }
.batch-bar .bbtn.is-danger { color: #FF9C8F; }
.batch-bar .bbtn.is-danger:hover { background: rgba(192, 57, 43, .25); }
.batch-bar .spacer { flex: 1; }

.doc-table { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.doc-head, .doc-row { display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.doc-head { height: 40px; background: var(--bg-alt); border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.doc-head .c-check, .doc-row .c-check { width: 18px; flex: none; display: flex; }
.doc-head .c-name, .doc-row .c-name { flex: 1; min-width: 0; }
.doc-head .c-size, .doc-row .c-size { width: 84px; flex: none; }
.doc-head .c-dl, .doc-row .c-dl { width: 60px; flex: none; }
.doc-head .c-share, .doc-row .c-share { width: 148px; flex: none; }
.doc-head .c-pub, .doc-row .c-pub { width: 62px; flex: none; }
.doc-head .c-time, .doc-row .c-time { width: 122px; flex: none; }
.doc-head .c-act, .doc-row .c-act { width: 138px; flex: none; display: flex; justify-content: flex-end; gap: 6px; }

.doc-row { height: 52px; border-top: 1px solid var(--border); font-size: 14px; }
.doc-row:first-child { border-top: 0; }
.doc-row:hover { background: #FAFCFB; }
.doc-row.is-selected { background: #F2F8F5; }
.doc-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.doc-name .filename { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-row .size, .doc-row .time { font-size: 13px; color: var(--text-secondary); }
.doc-row .time { color: var(--text-muted); }
.doc-row .dl-count { font-weight: 600; }
.share-actions { display: flex; align-items: center; gap: 6px; }

.cb {
  appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0;
  border: 1px solid var(--border-strong); border-radius: 4px; background: var(--bg); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; position: relative;
}
.cb:checked { background: var(--brand); border-color: var(--brand); }
.cb:checked::after {
  content: ""; position: absolute; inset: 0;
  background: currentColor; color: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.55 17.6 4 12.05l1.4-1.4 4.15 4.15L18.6 5.75 20 7.15z'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.55 17.6 4 12.05l1.4-1.4 4.15 4.15L18.6 5.75 20 7.15z'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}

.switch { display: inline-flex; align-items: center; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span {
  width: 36px; height: 20px; border-radius: 999px; background: var(--border-strong);
  display: inline-flex; align-items: center; padding: 2px; cursor: pointer; transition: background-color .18s ease;
}
.switch span::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(18, 23, 26, .28); transition: transform .18s ease;
}
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(16px); }

.pager { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pager .summary { font-size: 13px; color: var(--text-muted); }
.pager .gap { width: 12px; }
.pager a, .pager span.pg {
  min-width: 34px; height: 33px; padding: 7px 13px; border-radius: var(--radius); background: var(--bg);
  border: 1px solid var(--border); font-family: var(--font-num); font-size: 13px; font-weight: 500;
  color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center;
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .is-disabled { opacity: .45; pointer-events: none; }

.empty-state {
  padding: 64px 24px; text-align: center; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.empty-state .ic { width: 34px; height: 34px; color: var(--border-strong); }
.empty-state h3 { font-size: 17px; font-weight: 600; }
.empty-state p { font-size: 14px; color: var(--text-secondary); }


/* 侧边浮窗（仅在宽屏留白足够时出现，避免遮挡内容） */
.side-float { display: none; }
@media (min-width: 1660px) {
  .side-float { display: block; }
}
.side-float {
  position: fixed; left: 16px; top: 30%; transform: translateY(-50%); width: 152px; padding: 26px 12px 12px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop); text-align: center; z-index: 800;
}
.side-float .close { position: absolute; top: 4px; right: 8px; background: none; border: 0; font-size: 16px; color: var(--text-muted); cursor: pointer; line-height: 1; }
.side-float .close:hover { color: var(--text-primary); }
.side-float img { width: 120px; height: 120px; border-radius: var(--radius-sm); margin: 0 auto 8px; }
.side-float p { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.side-float a {
  display: block; font-size: 12px; color: var(--brand); border: 1px solid var(--brand);
  border-radius: var(--radius-sm); padding: 5px 0;
}
.side-float a:hover { background: var(--brand); color: #fff; }

/* ==========================================================================
   文章资讯
   ========================================================================== */
.articles-page { background: var(--bg); }
.articles-hero { padding: 44px 0 0; }
.articles-hero .wrap { display: flex; flex-direction: column; gap: 14px; }
.articles-hero h1 { font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.articles-hero p { font-size: 15px; color: var(--text-secondary); }

.filter-bar { padding: 28px 0 0; }
.filter-bar .wrap { display: flex; align-items: center; gap: 24px; }
.filter-bar .count { font-size: 13px; color: var(--text-muted); margin-left: auto; }

.featured-wrap { padding: 24px 0 0; }
.featured-card {
  display: flex; gap: 0; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; min-height: 300px;
}
.featured-body { flex: 1; min-width: 0; padding: 34px; display: flex; flex-direction: column; gap: 16px; }
.featured-body .tags { display: flex; align-items: center; gap: 10px; }
.featured-pick { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--brand); color: #fff; }
.featured-body h2 { font-size: 26px; font-weight: 700; line-height: 1.45; letter-spacing: -.01em; }
.featured-body p { font-size: 14px; line-height: 1.8; color: var(--text-secondary); }
.featured-body .meta { display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--text-muted); margin-top: auto; }
.featured-visual {
  flex: none; width: 420px; background: var(--brand-tint); display: flex; align-items: center; justify-content: center;
  color: var(--brand); overflow: hidden;
}
.featured-visual img { width: 100%; height: 100%; object-fit: cover; }
.featured-visual .ic { width: 96px; height: 96px; opacity: .5; }

.grid-wrap { padding: 24px 0 0; }
.grid-wrap .wrap { display: flex; flex-direction: column; gap: 24px; }

.articles-pager { padding: 32px 0 48px; }

/* ==========================================================================
   文章详情
   ========================================================================== */
.article-wrap { padding: 28px 0 64px; }
.article-wrap .wrap { display: flex; gap: 56px; align-items: flex-start; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.crumbs a:hover { color: var(--brand); }
.crumbs .ic { width: 14px; height: 14px; color: var(--border-strong); }

.article-main { flex: 1; min-width: 0; }
.article-head { display: flex; flex-direction: column; gap: 16px; padding-bottom: 26px; border-bottom: 1px solid var(--border); }
.article-head h1 { font-size: 36px; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; }
.article-head .meta { display: flex; align-items: center; gap: 20px; font-size: 14px; color: var(--text-muted); }
.article-head .meta span { display: inline-flex; align-items: center; gap: 7px; }

.prose { padding-top: 30px; font-size: 17px; line-height: 1.95; color: #2B3439; }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-size: 22px; font-weight: 700; line-height: 1.5; margin-top: 44px; color: var(--text-primary); scroll-margin-top: 90px; }
.prose h3 { font-size: 18px; font-weight: 600; margin-top: 34px; color: var(--text-primary); }
.prose p { font-size: 17px; line-height: 1.95; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 600; color: var(--text-primary); }
.prose img { border-radius: var(--radius-md); margin: 26px auto; border: 1px solid var(--border); }
.prose figure { margin: 30px 0; }
.prose figure img { margin: 0 auto; }
.prose figcaption { margin-top: 10px; text-align: center; font-size: 13px; line-height: 1.7; color: var(--text-muted); }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: 8px; }
.prose blockquote {
  margin: 26px 0; padding: 16px 20px; background: var(--bg-alt); border-left: 3px solid var(--brand);
  border-radius: var(--radius); color: var(--text-secondary); font-size: 15px;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 5px; padding: 2px 6px;
}
.prose pre { background: var(--bg-dark); color: #E6EFEA; padding: 18px 20px; border-radius: var(--radius-md); overflow: auto; }
.prose pre code { background: none; border: 0; color: inherit; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 34px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.prose th { background: var(--bg-alt); font-weight: 600; }

.article-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.article-tags span { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--bg-alt); color: var(--text-secondary); }

.article-side { flex: none; width: 300px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 88px; }
.side-card { padding: 22px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 14px; }
.side-card h4 { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.toc { display: flex; flex-direction: column; gap: 4px; }
.toc a { font-size: 14px; line-height: 1.6; color: var(--text-secondary); padding: 5px 10px; border-left: 2px solid var(--border); }
.toc a:hover, .toc a.is-active { color: var(--brand); border-left-color: var(--brand); background: var(--brand-tint); }
.side-cta { background: var(--bg-dark); border: 0; }
.side-cta h3 { font-size: 18px; font-weight: 700; color: var(--text-invert); }
.side-cta p { font-size: 14px; line-height: 1.7; color: var(--text-invert-dim); }
.prevnext { display: flex; flex-direction: column; gap: 14px; }
.prevnext a { display: flex; flex-direction: column; gap: 5px; }
.prevnext .k { font-size: 12px; color: var(--text-muted); }
.prevnext .t { font-size: 14px; font-weight: 500; line-height: 1.6; color: var(--text-primary); }
.prevnext a:hover .t { color: var(--brand); }

.related { padding: 48px 0 64px; background: var(--bg-alt); }
.related .wrap { display: flex; flex-direction: column; gap: 24px; }
.related-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.related-head h2 { font-size: 24px; font-weight: 700; }

/* ==========================================================================
   弹层内容（layui layer 内）
   ========================================================================== */
.layui-layer { border-radius: var(--radius-md) !important; box-shadow: var(--shadow-pop) !important; }
.layui-layer-title { font-size: 15px !important; font-weight: 600 !important; }
.layui-layer-msg .layui-layer-content { border-radius: var(--radius) !important; }

/* 二维码弹窗：图片按容器缩放。太阳码原图 430px，不限制会把 400px 宽的弹窗撑出横向滚动条 */
.wxqrcode { padding: 16px 20px 18px; text-align: center; }
.wxqrcode-img {
  display: flex; align-items: center; justify-content: center;
  min-height: 240px;
}
.wxqrcode-img img,
.wxqrcode-img canvas {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: 240px;
  border-radius: var(--radius);
}
.wxqrcode-text { margin-top: 10px; font-size: 13.5px; color: var(--text-secondary); word-break: break-all; }
.wxqrcode-btn { margin-top: 12px; }
.wxqrcode-btn .layui-btn { background: var(--brand); border-radius: var(--radius); height: 38px; line-height: 38px; font-size: 14px; font-weight: 600; }
.wxqrcode-btn .layui-btn:hover { background: var(--brand-dark); }
.wxqrcode-tip { margin-top: 12px; font-size: 12px; line-height: 1.65; color: var(--text-muted); }

.wxlogin { padding: 24px 20px; text-align: center; }
.wxlogin-t { font-size: 14px; color: var(--text-primary); }
.wxlogin-img { margin: 16px auto; width: 220px; height: 220px; display: flex; align-items: center; justify-content: center; }
.wxlogin-img img { width: 200px; height: 200px; border-radius: var(--radius); }
.wxlogin-btn { margin-top: 6px; }
.wxlogin-t a { color: var(--brand); }
#lgtext { margin-top: 12px; font-size: 13px; color: var(--text-muted); }

.delete-confirm-box { padding: 26px 4px 4px; text-align: center; }
.delete-icon-wrapper {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: var(--radius-md);
  background: var(--brand-tint); color: var(--brand); display: flex; align-items: center; justify-content: center;
}
.delete-icon-wrapper i { font-size: 26px; }
.delete-title { font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.delete-tips { padding: 0 30px 16px; display: flex; flex-direction: column; gap: 9px; text-align: left; }
.tip-item { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; line-height: 1.7; }
.tip-item i { margin-top: 2px; }
.tip-item.tip-info { color: var(--text-secondary); }
.tip-item.tip-info i { color: var(--brand); }
.tip-item.tip-warning { color: var(--danger); }
.tip-item.tip-warning i { color: var(--danger); }
.tip-item.tip-notice { color: var(--warn-text); }
.tip-item.tip-notice i { color: var(--warn-text); }
.delete-actions { display: flex; gap: 10px; justify-content: center; padding: 6px 30px 26px; }
.delete-btn-cancel, .delete-btn-confirm {
  flex: 1; height: 40px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg); font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--text-secondary);
}
.delete-btn-cancel:hover { border-color: var(--border-strong); color: var(--text-primary); }
.delete-btn-confirm { background: var(--brand); border-color: var(--brand); color: #fff; }
.delete-btn-confirm:hover { background: var(--brand-dark); }

.uploadurl-modal { padding: 26px; }
.uploadurl-modal .modal-header h3 { font-size: 18px; font-weight: 700; }
.uploadurl-modal .modal-desc { margin-top: 8px; font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.uploadurl-modal .modal-form { margin-top: 20px; }
.uploadurl-modal .form-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.uploadurl-modal .form-label i { color: var(--brand); }
.uploadurl-modal .link-input {
  width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius);
  outline: none; font-size: 14px;
}
.uploadurl-modal .link-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 110, 79, .10); }
.uploadurl-modal .input-tips { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.uploadurl-modal .modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.uploadurl-modal .reset-btn, .uploadurl-modal .submit-btn {
  flex: 1; height: 42px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg);
  font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  color: var(--text-secondary);
}
.uploadurl-modal .submit-btn { background: var(--brand); border-color: var(--brand); color: #fff; }
.uploadurl-modal .submit-btn:hover { background: var(--brand-dark); }
.uploadurl-modal .reset-btn:hover { border-color: var(--border-strong); color: var(--text-primary); }

/* ==========================================================================
   运营版认证申请弹窗
   ========================================================================== */
/* 默认隐藏，只有点通知栏调 openApplyModal() 才显示 */
.version-apply-modal { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; padding: 24px; }
.version-apply-overlay { position: absolute; inset: 0; background: rgba(13, 21, 18, .55); }
.version-apply-content {
  position: relative; width: 560px; max-width: 100%; max-height: 90vh; overflow-y: auto;
  background: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); padding: 30px;
}
.version-apply-close {
  position: absolute; top: 12px; right: 16px; font-size: 22px; line-height: 1; color: var(--text-muted);
  cursor: pointer; background: none; border: 0;
}
.version-apply-close:hover { color: var(--text-primary); }
.version-apply-header { margin-bottom: 22px; }
.version-apply-header h3 { font-size: 20px; font-weight: 700; }
.version-apply-guide { margin-top: 8px; font-size: 13px; color: var(--brand); background: var(--brand-tint); border-radius: var(--radius); padding: 9px 12px; }
.version-apply-form { display: flex; flex-direction: column; gap: 16px; }
.version-apply-form .form-item { display: flex; flex-direction: column; gap: 7px; }
.version-apply-form .form-row { display: flex; gap: 14px; }
.version-apply-form label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.version-apply-form input[type="text"],
.version-apply-form select {
  width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); outline: none; font-size: 14px;
}
.version-apply-form input[type="text"]:focus,
.version-apply-form select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 110, 79, .10); }
.checkbox-group { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--text-secondary); }
.checkbox-group label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.apply-sms-btn {
  width: 96px; flex: none; height: 42px; border-radius: var(--radius); border: 1px solid var(--brand);
  background: var(--brand-tint); color: var(--brand); font-size: 12px; font-weight: 600; cursor: pointer;
}
.apply-sms-btn:hover { background: #DFF0E8; }
.apply-sms-btn[disabled] { opacity: .6; cursor: not-allowed; }

/* 手机号一行更宽、验证码一行更窄 */
.version-apply-form .apply-phone { flex: 1.9; }
.version-apply-form .apply-code { flex: 1; }
.version-apply-form .apply-code input[type="text"] { max-width: 150px; }
.apply-phone-row { display: flex; gap: 10px; }
.apply-phone-row input[type="text"] { flex: 1; min-width: 0; }
.version-apply-btn {
  height: 46px; border-radius: var(--radius); border: 0; background: var(--brand); color: #fff;
  font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 4px;
}
.version-apply-btn:hover { background: var(--brand-dark); }
.version-apply-policy { font-size: 12px; color: var(--text-muted); text-align: center; }
.version-apply-policy a { color: var(--brand); }

/* ==========================================================================
   免费领取空间弹窗（扫码去小程序领取）
   ========================================================================== */
.upgrade-modal { position: fixed; inset: 0; z-index: 1400; display: none; align-items: center; justify-content: center; padding: 24px; }
.upgrade-modal.is-open { display: flex; }
.upgrade-modal-mask { position: absolute; inset: 0; background: rgba(13, 21, 18, .55); }
.upgrade-modal-card {
  position: relative; width: 420px; max-width: 100%; max-height: 90vh; overflow-y: auto;
  padding: 28px; text-align: center; background: var(--bg); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop); display: flex; flex-direction: column; gap: 14px;
}
.upgrade-modal-close {
  position: absolute; top: 10px; right: 14px; background: none; border: 0; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--text-muted);
}
.upgrade-modal-close:hover { color: var(--text-primary); }
.upgrade-modal-card h3 {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 18px; font-weight: 700;
}
.upgrade-modal-card h3 .ic { color: var(--brand); }
.upgrade-modal-sub { font-size: 13px; line-height: 1.75; color: var(--text-secondary); }
.upgrade-qr {
  display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 14px;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.upgrade-qr img { width: 188px; height: 188px; display: block; border-radius: 8px; background: #fff; }
.upgrade-qr span { font-size: 12px; color: var(--text-muted); }
.upgrade-steps { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.upgrade-steps li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.7; color: var(--text-secondary); }
.upgrade-steps b {
  flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand);
  font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.upgrade-tip { font-size: 12px; line-height: 1.7; color: var(--text-muted); }

/* ==========================================================================
   微信登录页（导航 + 居中的分栏登录卡 + 页脚）
   ========================================================================== */
.login-page { background: var(--bg-alt); display: flex; flex-direction: column; min-height: 100vh; }
.login-main { flex: 1; display: flex; align-items: center; padding: 48px 0; }
.login-main .wrap { display: flex; }

/* 登录卡容器：和导航同一条 1200 网格，圆角裁切，左右分栏 */
.login-shell {
  width: 100%; min-height: 560px; display: flex;
  background: var(--bg); border: 1px solid var(--border); border-radius: 20px;
  overflow: hidden; box-shadow: 0 18px 48px rgba(18, 23, 26, .06);
}

.login-brand {
  flex: none; width: 46%; max-width: 540px; padding: 48px 44px; background: var(--brand); color: var(--text-invert);
  display: flex; flex-direction: column; justify-content: center; gap: 34px;
  position: relative; overflow: hidden;
}
.login-brand::after {
  content: ""; position: absolute; right: -160px; top: -140px; width: 440px; height: 440px;
  border-radius: 50%; background: radial-gradient(circle, rgba(79, 209, 165, .30), rgba(79, 209, 165, 0) 70%);
  pointer-events: none;
}
.login-brand .brand { position: relative; z-index: 1; gap: 10px; }
.login-brand .brand-mark { width: 30px; height: 30px; background: rgba(255, 255, 255, .16); color: var(--text-invert); }
.login-brand .brand-mark .ic { width: 17px; height: 17px; }
.login-brand .brand-name { font-size: 17px; color: var(--text-invert); }
.login-brand-mid { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; }
.login-brand-mid h1 { font-size: 30px; font-weight: 700; line-height: 1.5; letter-spacing: -.01em; color: var(--text-invert); }
.login-brand-mid p { font-size: 14px; line-height: 1.8; color: #CFE7DD; }
.login-points { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.login-points li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #CFE7DD; }
.login-points .ic { color: var(--brand-light); }

.login-panel { flex: 1; min-width: 0; padding: 40px 32px; display: flex; align-items: center; justify-content: center; }
.login-card {
  width: 360px; max-width: 100%; display: flex; flex-direction: column; align-items: center;
  gap: 10px; text-align: center;
}
.login-card h2 { font-size: 24px; font-weight: 700; }
.login-sub { font-size: 14px; color: var(--text-secondary); }
.login-qrbox {
  width: 216px; height: 216px; margin-top: 8px; padding: 12px; background: var(--bg-alt);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  transition: filter .2s ease;
}
.login-qrbox img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius); }
.login-qrbox.is-scanned { filter: blur(4px); }
.login-qr-loading { font-size: 13px; color: var(--text-muted); }
.login-status { font-size: 13px; color: var(--text-muted); min-height: 20px; }
.login-status.is-ok { color: var(--brand); }
.login-status.is-error { color: var(--danger); }
.login-terms {
  font-size: 13px; color: var(--text-muted); line-height: 1.8; margin-top: 10px;
  padding-top: 16px; border-top: 1px solid var(--border); width: 100%;
}
.login-terms a { color: var(--brand); }
.login-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-secondary); margin-top: 2px; }
.login-back:hover { color: var(--brand); }

@media (max-width: 1100px) {
  .login-brand { display: none; }
  .login-panel { padding: 36px 24px; }
  .login-shell { min-height: 0; }
}

/* ==========================================================================
   我的设置
   ========================================================================== */
.settings-grid { display: flex; gap: 24px; align-items: flex-start; }
.settings-col { flex: none; width: 320px; display: flex; flex-direction: column; gap: 20px; }
.settings-col--main { flex: 1; min-width: 0; width: auto; }

.profile-card { padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.profile-avatar {
  position: relative; width: 80px; height: 80px; border-radius: 50%; background: var(--brand);
  color: var(--text-invert); display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; overflow: visible;
}
.profile-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-avatar--default { background: var(--brand-tint); color: var(--brand); }
.avatar-edit {
  position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--bg); background: var(--bg-dark); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.avatar-edit:hover { background: var(--brand); }
.profile-name { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.profile-name b { font-size: 19px; font-weight: 700; }
.profile-meta { font-size: 13px; color: var(--text-muted); }
.profile-hint {
  margin-top: 6px; padding: 10px 12px; width: 100%; background: var(--bg-alt); border-radius: var(--radius);
  font-size: 12px; line-height: 1.7; color: var(--text-secondary);
}

.storage-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-head h3 { font-size: 15px; font-weight: 600; }
.card-head .num { font-size: 13px; color: var(--text-muted); }
.storage-bar { height: 8px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; }
.storage-bar span { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.storage-hint { font-size: 12px; color: var(--text-muted); }
.storage-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--border); }
.integral { display: flex; flex-direction: column; gap: 2px; }
.integral .label { font-size: 12px; color: var(--text-muted); }
.integral b { font-size: 18px; font-weight: 700; }

.settings-card { padding: 8px 24px 8px; }
.card-title { font-size: 15px; font-weight: 600; padding: 18px 0 6px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; border-top: 1px solid var(--border); }
.card-title + .setting-row { border-top: 0; padding-top: 8px; }
.setting-label { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.setting-label b { font-size: 15px; font-weight: 500; }
.setting-label span { font-size: 13px; color: var(--text-muted); }
.setting-value { flex: none; display: flex; align-items: center; gap: 12px; }
.setting-value .value-text { font-size: 14px; color: var(--text-secondary); max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setting-value .thumb {
  width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--brand-tint);
  color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-weight: 600;
}
.setting-value .thumb img { width: 100%; height: 100%; object-fit: cover; }
.setting-danger { color: var(--danger); border-color: var(--border); }
.setting-danger:hover { color: var(--danger); border-color: var(--danger); background: var(--danger-tint); }

/* 编辑弹窗 */
.settings-modal { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; padding: 24px; }
.settings-modal.is-open { display: flex; }
.settings-modal-overlay { position: absolute; inset: 0; background: rgba(13, 21, 18, .55); }
.settings-modal-card {
  position: relative; width: 440px; max-width: 100%; background: var(--bg); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop); padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.settings-modal-card h3 { font-size: 18px; font-weight: 700; }
.settings-modal-close {
  position: absolute; top: 12px; right: 16px; font-size: 22px; line-height: 1; color: var(--text-muted);
  background: none; border: 0; cursor: pointer;
}
.settings-modal-close:hover { color: var(--text-primary); }
.edit-pane { display: none; flex-direction: column; gap: 14px; }
.edit-pane.is-active { display: flex; }
.edit-pane .form-item { display: flex; flex-direction: column; gap: 7px; }
.edit-pane label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.edit-pane input[type="text"] {
  width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); outline: none; font-size: 14px;
}
.edit-pane input[type="text"]:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 110, 79, .10); }
.code-row { display: flex; align-items: center; gap: 10px; }
.code-row input[type="text"] { flex: 1; min-width: 0; }
.code-static {
  flex: 1; height: 42px; display: flex; align-items: center; padding: 0 13px;
  background: var(--bg-alt); border-radius: var(--radius); font-size: 14px; color: var(--text-secondary);
}
.settings-modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }

.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 12px); z-index: 200000001;
  padding: 11px 18px; border-radius: 999px; background: var(--bg-dark); color: #fff;
  font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-ok { background: var(--brand); }
.toast.is-error { background: var(--danger); }

/* 联系我们（邮箱弹窗，替换原来的客服二维码） */
.contact-modal { position: fixed; inset: 0; z-index: 1400; display: none; align-items: center; justify-content: center; padding: 24px; }
.contact-modal.is-open { display: flex; }
.contact-modal-mask { position: absolute; inset: 0; background: rgba(13, 21, 18, .55); }
.contact-modal-card {
  position: relative; width: 380px; max-width: 100%; padding: 28px; text-align: center;
  background: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column; gap: 8px;
}
.contact-modal-card h3 { font-size: 18px; font-weight: 700; }
.contact-modal-card p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.contact-modal-close {
  position: absolute; top: 8px; right: 12px; background: none; border: 0; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--text-muted);
}
.contact-modal-close:hover { color: var(--text-primary); }
.contact-email {
  display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 8px; padding: 14px 16px;
  background: var(--brand-tint); border: 1px dashed var(--brand); border-radius: var(--radius-md);
  cursor: pointer; font-family: var(--font-num); font-size: 15px; font-weight: 600; color: var(--brand-dark);
  transition: background-color .16s ease;
}
.contact-email:hover { background: #DFF0E8; }
.contact-email .ic { color: var(--brand); flex: none; }
.contact-email span { flex: 1; text-align: left; }
.contact-email em { flex: none; font-style: normal; font-size: 12px; font-weight: 500; color: var(--brand); }

/* ==========================================================================
   绑定手机号弹窗（上传被 403 拦截时弹出）
   ========================================================================== */
.bind-modal { position: fixed; inset: 0; z-index: 200000000; display: none; align-items: center; justify-content: center; padding: 24px; }
.bind-modal.is-open { display: flex; }
.bind-modal-mask { position: absolute; inset: 0; background: rgba(13, 21, 18, .55); }
.bind-modal-card {
  position: relative; width: 420px; max-width: 100%; padding: 28px;
  background: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column; gap: 14px;
}
.bind-modal-close {
  position: absolute; top: 10px; right: 14px; background: none; border: 0; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--text-muted);
}
.bind-modal-close:hover { color: var(--text-primary); }
.bind-modal-card h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700;
}
.bind-modal-card h3 .ic { color: var(--brand); }
.bind-modal-sub { font-size: 13px; line-height: 1.7; color: var(--text-secondary); }

.bind-field { display: flex; flex-direction: column; gap: 7px; }
.bind-field label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.bind-field input {
  width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); font-size: 14px; outline: none; font-family: inherit;
}
.bind-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 110, 79, .10); }
.bind-row { display: flex; gap: 10px; }
.bind-row input { flex: 1; min-width: 0; }
.bind-sms-btn {
  flex: none; width: 104px; height: 42px; border-radius: var(--radius);
  border: 1px solid var(--brand); background: var(--brand-tint); color: var(--brand);
  font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.bind-sms-btn:hover { background: #DFF0E8; }
.bind-sms-btn[disabled] { opacity: .6; cursor: not-allowed; }

.bind-submit {
  height: 46px; margin-top: 2px; border: 0; border-radius: var(--radius);
  background: var(--brand); color: #fff; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.bind-submit:hover { background: var(--brand-dark); }
.bind-submit[disabled] { opacity: .7; cursor: not-allowed; }
.bind-tip { font-size: 12px; line-height: 1.6; color: var(--text-muted); text-align: center; }

@media (max-width: 1200px) {
  .settings-grid { flex-direction: column; }
  .settings-col { width: 100%; }
}


/* ==========================================================================
   我的笔记
   ========================================================================== */
.is-hidden { display: none !important; }

.note-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.note-card {
  flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  padding: 20px 20px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.note-card:hover { border-color: var(--brand); box-shadow: 0 10px 24px rgba(18, 23, 26, .06); transform: translateY(-1px); }
.note-card-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.note-card-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.note-card-head h3 {
  font-size: 16px; font-weight: 600; line-height: 1.5; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.note-pin {
  flex: none; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand);
}
.note-lock { flex: none; color: var(--text-muted); display: inline-flex; }
.note-summary {
  font-size: 13px; line-height: 1.7; color: var(--text-secondary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 44px;
}
.note-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 10px; border-top: 1px solid var(--border);
}
.note-time { font-size: 12px; color: var(--text-muted); }
.note-actions { display: inline-flex; gap: 4px; flex: none; }

/* 编辑页 */
.note-editor-head { display: flex; align-items: center; gap: 12px; }
.note-editor-head .spacer { flex: 1; }
.note-save-status { font-size: 13px; color: var(--text-muted); }
.note-editor { display: flex; gap: 24px; align-items: flex-start; }
.note-editor-main {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 26px 28px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); min-height: 62vh;
}
.note-title-input {
  width: 100%; border: 0; outline: none; background: transparent; font-size: 24px; font-weight: 700;
  color: var(--text-primary); padding: 4px 0 12px; border-bottom: 1px solid var(--border); font-family: inherit;
}
.note-title-input::placeholder { color: var(--border-strong); }
.note-content-input {
  flex: 1; width: 100%; min-height: 48vh; border: 0; outline: none; resize: vertical; background: transparent;
  font-size: 15px; line-height: 1.9; color: var(--text-primary); font-family: inherit; padding: 16px 0 0;
}
.note-content-input::placeholder { color: var(--text-muted); }
.note-side { flex: none; width: 280px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 88px; }
.note-side .side-card { padding: 18px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 10px; }
.side-desc { font-size: 12px; line-height: 1.7; color: var(--text-muted); }
.side-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.kv span { color: var(--text-muted); }
.kv b { font-weight: 600; }
.share-link { display: flex; gap: 8px; }
.share-link input {
  flex: 1; min-width: 0; height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 12px; color: var(--text-secondary); background: var(--bg-alt); outline: none;
}
.qr-box { width: 220px; height: 220px; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; }

/* 解锁卡片 */
.unlock-card {
  padding: 44px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); max-width: 520px; margin: 0 auto;
}
.unlock-card h2 { font-size: 20px; font-weight: 700; }
.unlock-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.unlock-row { display: flex; gap: 10px; margin-top: 6px; }
.unlock-row input {
  width: 160px; height: 40px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 16px; letter-spacing: .3em; text-align: center; outline: none;
}
.unlock-row input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 110, 79, .10); }
.unlock-hint { font-size: 13px; color: var(--danger); min-height: 18px; }

/* 公开分享页 */
.share-page { padding: 56px 0 72px; background: var(--bg-alt); }
.share-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.share-head h1 { font-size: 32px; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; }
.share-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text-muted); }
.share-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.share-content {
  padding: 32px 36px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: 15px; line-height: 1.95; color: var(--text-primary); white-space: pre-wrap; word-break: break-word;
}
.share-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }

/* 插件单页 */
.plugin-hero { padding: 72px 0 80px; background: var(--bg); position: relative; overflow: hidden; }
.plugin-hero .wrap { display: flex; align-items: center; gap: 64px; }
.plugin-hero-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.plugin-hero-copy h1 { font-size: 42px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.plugin-hero-copy p { font-size: 16px; line-height: 1.8; color: var(--text-secondary); max-width: 560px; }
.plugin-hero-visual { flex: none; width: 520px; }
.plugin-hero-visual .ext-mock { width: 100%; }
.plugin-blocks { display: flex; gap: 24px; flex-wrap: wrap; }
.plugin-blocks .feature { flex: 1 1 240px; }

@media (max-width: 1200px) {
  .note-editor { flex-direction: column; }
  .note-side { width: 100%; position: static; }
  .plugin-hero .wrap { flex-direction: column; align-items: stretch; }
  .plugin-hero-visual { width: 100%; }
  .plugin-hero-copy h1 { font-size: 32px; }
}

/* ==========================================================================
   协议 / 政策页
   ========================================================================== */
.policy-page { background: var(--bg-alt); }
.policy-wrap { padding: 40px 0 64px; }
/* 卡片铺满 1200 内容格（和导航、其它页面同宽），靠内边距把文字收成阅读宽度 */
.policy {
  padding: 56px 180px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.policy h1 { font-size: 28px; font-weight: 700; text-align: center; letter-spacing: -.02em; }
.policy .version-date { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 10px; margin-bottom: 32px; }
.policy .notice {
  padding: 16px 20px; background: var(--brand-tint); border-radius: var(--radius-md);
  font-size: 14px; line-height: 1.85; color: var(--brand-dark); margin-bottom: 28px;
}
.policy h2 {
  font-size: 18px; font-weight: 600; margin: 32px 0 14px; padding-left: 12px;
  border-left: 3px solid var(--brand); line-height: 1.4;
}
.policy p, .policy li { font-size: 15px; line-height: 1.9; color: var(--text-secondary); margin-bottom: 10px; }
.policy strong { color: var(--text-primary); font-weight: 600; }
.policy ul { list-style: disc; padding-left: 22px; }
.policy .contact-info { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ==========================================================================
   网站地图（/sitemap.html）
   ========================================================================== */
.sitemap-page { background: var(--bg-alt); }
.sitemap-wrap { padding: 40px 0 64px; }
.sitemap-card {
  padding: 48px 180px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.sitemap-head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.sitemap-head h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.sitemap-head p { font-size: 14px; line-height: 1.8; color: var(--text-secondary); }
.sitemap-head p a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.sitemap-group { margin-top: 34px; }
.sitemap-group h2 {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 600; margin-bottom: 14px; padding-left: 12px;
  border-left: 3px solid var(--brand); line-height: 1.4;
}
.sitemap-group h2 .count {
  font-family: var(--font-num); font-size: 12px; font-weight: 600; padding: 2px 8px;
  border-radius: 999px; background: var(--brand-tint); color: var(--brand);
}
.sitemap-list { display: flex; flex-direction: column; }
.sitemap-list li {
  display: flex; align-items: baseline; gap: 14px; padding: 9px 0;
  border-bottom: 1px dashed var(--border); font-size: 15px; line-height: 1.7;
}
.sitemap-list li:last-child { border-bottom: 0; }
.sitemap-list a { color: var(--text-primary); }
.sitemap-list a:hover { color: var(--brand); }
.sitemap-list span { font-size: 13px; color: var(--text-muted); }
.sitemap-list--articles a { flex: 1; min-width: 0; }
.sitemap-list--articles .date { flex: none; font-size: 13px; }
.sitemap-list--pages { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.sitemap-list--pages li { padding: 0; border: 0; }
.sitemap-list--pages a {
  display: inline-flex; padding: 6px 12px; font-size: 13px;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px;
}
.sitemap-list--pages a:hover { border-color: var(--brand); color: var(--brand); }
.sitemap-list .empty { color: var(--text-muted); font-size: 14px; }

/* ==========================================================================
   响应式（以 PC 为主，做必要的收窄保护）
   ========================================================================== */
@media (max-width: 1360px) {
  .wrap { padding-left: 64px; padding-right: 64px; }
  .hero .wrap { gap: 48px; }
  .mock, .ext-mock { width: 520px; }
}

@media (max-width: 1200px) {
  .wrap { padding-left: 40px; padding-right: 40px; }
  .footer-top { gap: 40px; }
  .footer-links { gap: 40px; }
  .footer-brand { width: 280px; }
  .hero .wrap { flex-direction: column; align-items: flex-start; gap: 48px; }
  .hero-copy, .mock { width: 100%; }
  .features, .ways, .scenarios, .steps, .plans, .post-row { flex-wrap: wrap; }
  .feature, .way, .scenario, .plan { flex: 1 1 320px; }
  .step { flex: 1 1 300px; }
  .post-card { flex: 1 1 320px; }
  .plugin-body { flex-direction: column; align-items: stretch; }
  .ext-mock { width: 100%; }
  .why-block { flex-direction: column; gap: 32px; }
  .faq-wrap { flex-direction: column; gap: 32px; }
  .faq-copy { width: 100%; }
  .deploy-card { flex-direction: column; align-items: flex-start; }
  .featured-card { flex-direction: column; }
  .featured-visual { width: 100%; height: 200px; }
  .article-wrap .wrap { flex-direction: column; }
  .article-side { position: static; width: 100%; }
  .doc-head .c-share, .doc-row .c-share, .doc-head .c-pub, .doc-row .c-pub { display: none; }
  .doc-table { overflow-x: auto; }
  .doc-head, .doc-row { min-width: 900px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .stats { flex-wrap: wrap; }
  .stat { flex: 1 1 45%; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { flex-wrap: wrap; gap: 40px; }
  .hero h1 { font-size: 38px; }
  .sec-title { font-size: 30px; }
  .final-cta h2 { font-size: 30px; }
  .side-float { display: none; }
}

/* 窄屏：政策页 / 网站地图页的内边距必须跟着收，否则固定 180px 会把正文挤成一列字 */
@media (max-width: 1200px) {
  .policy, .sitemap-card { padding: 44px 96px; }
}

@media (max-width: 900px) {
  .policy, .sitemap-card { padding: 36px 48px; }
  .policy h1, .sitemap-head h1 { font-size: 24px; }
}

@media (max-width: 640px) {
  .policy, .sitemap-card { padding: 28px 22px; border-radius: var(--radius-md); }
  .policy-wrap, .sitemap-wrap { padding: 24px 0 44px; }
  .policy h1, .sitemap-head h1 { font-size: 21px; }
  .policy h2 { font-size: 16px; margin: 26px 0 12px; }
  .policy p, .policy li { font-size: 14px; line-height: 1.85; }
  .policy .notice { padding: 14px 16px; font-size: 13px; }
  .sitemap-list li { font-size: 14px; }
  .sitemap-list--articles .date { display: none; }
}
