/* 365Lab 邮箱签名生成器 - 全站样式（零依赖、扁平现代风） */
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f0f3f8;
  --border: #e3e8ef;
  --text: #1f2937;
  --text-2: #5b6472;
  --text-3: #5d6b7b;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-soft: #e8efff;
  --green: #16a34a;
  --red: #dc2626;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 6px 20px rgba(16, 24, 40, .06);
  --shadow-lg: 0 4px 12px rgba(16, 24, 40, .08), 0 16px 48px rgba(16, 24, 40, .12);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .08);
  --shadow-btn: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 8px rgba(16, 24, 40, .07);
  --ring: 0 0 0 3px rgba(37, 99, 235, .14);
  --pill: 999px;
  --font: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --header-h: 60px;
  --page-max: 1200px;
  --gutter: 20px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
img, svg { vertical-align: middle; }
/* 无障碍工具类 */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; left: 14px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: 11px 18px;
  border-radius: 10px; font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow-lg); transition: top .2s ease;
}
.skip-link:focus { top: 14px; text-decoration: none; color: #fff; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; color: var(--text); }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--page-max); margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font-weight: 700; font-size: 17px; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.main-nav { display: flex; gap: 4px; margin-left: 0; }
.main-nav a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 14.5px; font-weight: 500; white-space: nowrap;
}
.main-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.main-nav a.active { background: var(--accent-soft); color: var(--accent-2); }
.header-actions { margin-left: 0; display: flex; align-items: center; gap: 10px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); border-radius: var(--pill);
  padding: 7px 14px; font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-sm); transition: border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.lang-btn::before {
  content: ""; width: 15px; height: 15px; background: currentColor; flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent-2); box-shadow: var(--shadow-btn); text-decoration: none; }
.lang-btn:active { transform: translateY(1px); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 11px 22px; font-size: 15px; font-weight: 600;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(37, 99, 235, .28); }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 3px 10px rgba(37, 99, 235, .32); text-decoration: none; }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-2); box-shadow: var(--shadow-btn); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text-2); border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.btn-lg { padding: 14px 30px; font-size: 16px; border-radius: 10px; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn svg { flex: none; }

/* ---------- 布局 ---------- */
.container { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); width: 100%; }
main { flex: 1; }
.section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: 26px; font-weight: 700; letter-spacing: .2px; }
.section-head p { color: var(--text-2); margin-top: 8px; font-size: 15.5px; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--accent-2); background: var(--accent-soft); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; letter-spacing: .5px; }

/* ---------- 首页 Hero ---------- */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 34px; line-height: 1.28; font-weight: 800; letter-spacing: .3px; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { margin-top: 16px; color: var(--text-2); font-size: 16.5px; max-width: 520px; }
.hero-ctas { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { margin-top: 22px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--text-2); font-size: 14px; }
.hero-points span { display: inline-flex; align-items: center; gap: 6px; }
.hero-points svg { color: var(--green); }
.hero-demo {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-lg); padding: 22px;
  position: relative;
}
.hero-demo .demo-bar { display: flex; gap: 6px; margin-bottom: 16px; }
.hero-demo .demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dfe5ee; }
.hero-demo .demo-mail-subject { font-size: 13px; color: var(--text-3); border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 14px; }
.hero-demo .demo-body-line { height: 9px; border-radius: 5px; background: #eef1f6; margin-bottom: 9px; }
.hero-demo .demo-sig { margin-top: 18px; border-top: 1px dashed #d8dfe9; padding-top: 16px; overflow-x: auto; max-width: 100%; min-height: 160px; }
.hero-demo .demo-sig > div { width: max-content; }
.hero-demo { min-width: 0; }
.demo-badge {
  position: absolute; right: -12px; bottom: -14px;
  background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700;
  border-radius: 999px; padding: 8px 14px; box-shadow: var(--shadow);
}

/* ---------- 卡片网格 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  transition: box-shadow .15s, transform .15s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-card .ico {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--text-2); }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; position: relative;
}
.step .num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.step h3 { font-size: 15.5px; margin-bottom: 5px; }
.step p { font-size: 13.5px; color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 20px;
  font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-a { padding: 0 20px 16px; color: var(--text-2); font-size: 14.5px; }

/* ---------- CTA 条 ---------- */
.cta-band {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  border-radius: 16px; color: #fff; padding: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 24px; }
.cta-band p { opacity: .9; margin-top: 6px; }
.cta-band .btn { background: #fff; color: var(--accent-2); }
.cta-band .btn:hover { background: #eef4ff; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border); background: var(--surface);
  margin-top: 48px; padding: 30px 0;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 14px; flex: 0 0 auto; }
.footer-links a { color: var(--text-2); }
.footer-copy { color: var(--text-3); font-size: 13px; }

/* ---------- 生成器工作台 ---------- */
.workbench { max-width: var(--page-max); margin: 0 auto; padding: 18px var(--gutter) 40px; }
.wb-grid { display: grid; grid-template-columns: 400px 1fr; gap: 20px; align-items: start; }
.wb-grid > .panel { min-width: 0; }
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.panel-tabs { display: flex; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.panel-tabs::-webkit-scrollbar { display: none; }
.panel-tab {
  flex: 1 1 auto; border: none; background: none; padding: 13px 10px;
  font-size: 14px; font-weight: 600; color: var(--text-2); text-align: center;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.panel-tab:hover { color: var(--text); }
.panel-tab.active { color: var(--accent-2); border-bottom-color: var(--accent); }
.tab-body { padding: 16px; display: none; background: var(--surface-2); }
.tab-body.active { display: block; }

/* 表单：每个功能组独立成卡片方框 */
.form-section {
  margin-bottom: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-sm);
}
.form-section:last-child { margin-bottom: 0; }
.form-section h4 {
  font-size: 14px; font-weight: 700; color: var(--text);
  letter-spacing: .2px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 9px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.form-section h4::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--accent); flex: none; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-bottom: 5px; }
.field input[type=text], .field input[type=email], .field input[type=url], .field input[type=tel], .field select, .field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 15px; background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

/* ---------- 头像自由裁剪编辑器（R6） ---------- */
.crop-editor { margin-top: 10px; }
.crop-stage {
  width: 200px; height: 200px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border, #e2e8f0); background: var(--surface-2, #f4f6fa);
  cursor: grab; touch-action: none; /* 触屏拖动走 Pointer Events，禁止页面滚动劫持 */
}
.crop-stage.dragging { cursor: grabbing; }
.crop-stage canvas { display: block; width: 200px; height: 200px; }
.crop-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.crop-controls input[type="range"] { flex: 1; min-width: 0; }
.crop-controls .btn { padding: 4px 10px; font-size: 12px; flex: none; }
/* 实时校验：格式不合法的字段红框 + 聚焦安全描边（WCAG 可达，未依赖颜色 alone 已配合 status 文本） */
.field input.inp-err, .field input[aria-invalid="true"] {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .14);
}
.field input.inp-err:focus, .field input[aria-invalid="true"]:focus {
  outline: none; border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .22);
}
/* 表单级实时状态（aria-live），仅在出错时出现 */
.form-status {
  font-size: 12.5px; line-height: 1.5; color: #dc2626;
  background: rgba(220, 38, 38, .08); border: 1px solid rgba(220, 38, 38, .28);
  border-radius: var(--radius-sm); padding: 7px 10px; margin: 0 0 12px;
}
.form-status[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
.dark-hint { font-size: 12.5px; color: var(--text-3); margin-top: 8px; line-height: 1.5; }
.field-label {
  font-size: 14px; font-weight: 700; color: var(--text);
  margin-bottom: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--border); display: block;
}

/* 签名体检 */
.chk-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.chk-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.chk-list .chk-dot { flex: none; width: 16px; height: 16px; border-radius: 50%; margin-top: 2px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; color: #fff; font-weight: 700; }
.chk-list li.ok .chk-dot { background: var(--green); }
.chk-list li.warn .chk-dot { background: #d97706; }
.chk-list li.bad .chk-dot { background: var(--red); }
.chk-list li.info .chk-dot { background: #94a3b8; }
.chk-list li.bad .chk-msg { color: #b91c1c; }
.chk-list li.warn .chk-msg { color: #b45309; }
.chk-fix {
  margin-left: auto; flex: none; border: 1px solid var(--border); background: var(--surface);
  color: var(--accent-2); border-radius: 6px; padding: 2px 10px; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.chk-fix:hover { border-color: var(--accent); background: var(--accent-soft); }
/* 无法自动修复项的「为什么」按钮（R24）：次于 fix 的幽灵样式，点击告知原因与自助方法 */
.chk-why {
  margin-left: auto; flex: none; border: 1px solid var(--border); background: transparent;
  color: var(--text-3); border-radius: 6px; padding: 2px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.chk-why:hover { border-color: var(--accent); color: var(--accent-2); background: var(--accent-soft); }
.chk-summary { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.chk-summary.good { background: #dcfce7; color: #15803d; }
.chk-summary.warn { background: #fef3c7; color: #b45309; }
.chk-summary.bad { background: #fee2e2; color: #b91c1c; }

/* 我的签名库 */
.save-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--surface); overflow: hidden;
}
.save-thumb {
  height: 92px; overflow: hidden; background: #f7f9fc; border-bottom: 1px solid var(--border); position: relative;
}
.save-thumb .thumb-scale { transform-origin: top left; }
.save-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.save-item .save-rename-input { flex: 1; min-width: 0; border: 1px solid var(--accent); border-radius: 6px; padding: 6px 8px; font-size: 14px; }
.save-item strong { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.save-item .save-actions { display: flex; gap: 4px; flex: none; }
.save-item .save-del { color: var(--red); }

/* 团队页成员列表 */
.member-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px;
  cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s;
}
.member-row:hover { border-color: #b9c5d8; }
.member-row.active { border-color: var(--accent); background: var(--accent-soft); }
.member-row .mr-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none; overflow: hidden;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.member-row .mr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-row .mr-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.member-row .mr-info strong { font-size: 14.5px; }
.member-row .mr-info span { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-row .mr-edit, .member-row .mr-del { padding: 5px 8px; }
.member-row .mr-del { color: var(--red); }
.member-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 16px 0; }
.member-chip {
  border: 1px solid var(--border); background: var(--surface); border-radius: 999px;
  padding: 5px 14px; font-size: 13px; font-weight: 600; color: var(--text-2);
}
.member-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 配色预设色板 */
.palette { display: flex; gap: 9px; flex-wrap: wrap; }
.palette .sw {
  width: 27px; height: 27px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--border); padding: 0; transition: transform .1s, box-shadow .1s;
}
.palette .sw:hover { transform: scale(1.15); box-shadow: 0 0 0 2px var(--accent); }

/* ---------- 统一控件行：文字 · 滑条/取色 · 可输入数值 ---------- */
.ctl-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ctl-label { flex: 0 0 auto; min-width: 78px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.ctl-range { flex: 1 1 auto; min-width: 60px; height: 30px; accent-color: var(--accent); cursor: pointer; }
.ctl-num, .ctl-hex {
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
  padding: 6px 8px; font-size: 13px; font-family: Consolas, "Courier New", monospace; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.ctl-num { width: 60px; text-align: center; }
.ctl-hex { width: 88px; text-transform: lowercase; }
.ctl-num:focus, .ctl-hex:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.ctl-unit { flex: 0 0 auto; min-width: 20px; font-size: 12.5px; color: var(--text-3); }
.ctl-color {
  width: 40px; height: 32px; flex: none; padding: 2px; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
}
.ctl-color::-webkit-color-swatch-wrapper { padding: 0; }
.ctl-color::-webkit-color-swatch { border: none; border-radius: 4px; }
/* 数值框上下箭头：默认隐藏，聚焦(点入)时才显示 */
.ctl-num { -moz-appearance: textfield; appearance: textfield; }
.ctl-num::-webkit-outer-spin-button, .ctl-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ctl-num:focus::-webkit-outer-spin-button, .ctl-num:focus::-webkit-inner-spin-button { -webkit-appearance: auto; opacity: 1; }

/* 开关 */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; }
.switch-row .sw-label { font-size: 14px; font-weight: 600; color: var(--text); }
.switch { position: relative; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i {
  position: absolute; inset: 0; background: #cdd5e0; border-radius: 999px; transition: background .15s;
}
.switch i::before {
  content: ""; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px;
  background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::before { transform: translateX(18px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px rgba(37,99,235,.25); }

/* 分段选择（布局/字号等） */
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg-item {
  border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm);
  padding: 8px 14px; font-size: 13.5px; font-weight: 600; color: var(--text-2);
  box-shadow: var(--shadow-sm); transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
}
.seg-item:hover { border-color: var(--accent); color: var(--accent-2); box-shadow: var(--shadow-btn); }
.seg-item.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); box-shadow: var(--ring); }

/* 图片上传 */
.img-uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.img-slot {
  border: 1.5px dashed #c7d2e2; border-radius: var(--radius-sm);
  min-height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; color: var(--text-3); font-size: 12.5px; text-align: center; padding: 10px;
  background: var(--surface-2); position: relative; overflow: hidden;
}
.img-slot:hover { border-color: var(--accent); color: var(--accent); }
.img-slot img { max-width: 100%; max-height: 88px; border-radius: 4px; }
.img-slot.has-img { border-style: solid; border-color: var(--border); background: var(--surface); }
.img-slot .remove-img {
  position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(31,41,55,.72); color: #fff; border: none; font-size: 13px; line-height: 1;
  display: none; align-items: center; justify-content: center;
}
.img-slot.has-img .remove-img { display: flex; }
.img-slot:focus-visible { outline: none; border-color: var(--accent); box-shadow: var(--ring); }

/* 预览区 */
.preview-panel { position: sticky; top: calc(var(--header-h) + 18px); }
.preview-stage {
  background:
    radial-gradient(circle at 1px 1px, #dbe1ea 1px, transparent 0) 0 0 / 18px 18px,
    #f7f9fc;
  border-bottom: 1px solid var(--border);
  padding: 34px 24px; display: flex;
  overflow-x: auto; min-height: 240px;
}
.preview-card { background: #fff; border-radius: 6px; box-shadow: var(--shadow); padding: 24px 26px; width: max-content; max-width: none; margin: 0 auto; }
/* 邮件预览模式 */
.preview-stage[data-view="email"] .preview-card { display: none; }
.preview-stage[data-view="sig"] .email-mock { display: none; }
.email-mock { background: #fff; border-radius: 10px; box-shadow: var(--shadow); width: 640px; max-width: 100%; overflow: hidden; }
.email-mock[hidden] { display: none; }
.em-head { border-bottom: 1px solid var(--border); padding: 14px 18px; background: #fbfcfe; }
.em-row { display: flex; gap: 10px; font-size: 13.5px; padding: 3px 0; }
.em-row .em-k { color: var(--text-3); flex: none; width: 52px; }
.em-row .em-v { color: var(--text); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.em-body { padding: 18px; font-family: var(--font); font-size: 14px; color: #374151; line-height: 1.7; }
.em-body p { margin: 0 0 12px; }
.em-sig { border-top: 1px dashed #d8dfe9; padding-top: 16px; margin-top: 8px; overflow-x: auto; }
.em-sig > div { width: max-content; }
.preview-toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; flex-wrap: wrap; }
.preview-toolbar .grow { flex: 1; }
.zoom-ctl {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 4px;
  color: var(--text-2); font-size: 12.5px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--pill); padding: 4px 12px;
}
.zoom-ctl input[type=range] { width: 88px; accent-color: var(--accent); height: 20px; cursor: pointer; }
.zoom-ctl output { min-width: 38px; text-align: right; font-family: Consolas, monospace; color: var(--text-2); }

/* 签名体积仪表 */
.size-badge {
  font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px;
  font-family: Consolas, monospace; white-space: nowrap;
}
.size-badge.ok { background: #dcfce7; color: #15803d; }
.size-badge.warn { background: #fef3c7; color: #b45309; }
.size-badge.bad { background: #fee2e2; color: #b91c1c; }
/* 预览背景切换 */
.preview-stage[data-bg="light"] { background: #e9edf3; }
.preview-stage[data-bg="dark"] { background: #0f172a; }
.preview-stage[data-bg="dark"] .preview-card { background: #1f2937; }
.seg-bg {
  display: inline-flex; align-items: center; gap: 2px; margin: 0 4px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--pill); padding: 3px;
}
.seg-bg .seg-item {
  padding: 5px 12px; font-size: 12.5px; border: none; background: transparent;
  box-shadow: none; border-radius: var(--pill); color: var(--text-2);
}
.seg-bg .seg-item:hover { background: rgba(37, 99, 235, .08); color: var(--accent-2); box-shadow: none; }
.seg-bg .seg-item.active { background: var(--surface); color: var(--accent-2); box-shadow: var(--shadow-sm); }
.code-wrap { display: none; border-top: 1px solid var(--border); }
.code-wrap.show { display: block; }
.code-wrap pre {
  max-height: 300px; overflow: auto; padding: 14px 16px;
  font: 12px/1.6 Consolas, "Courier New", monospace; color: #334155;
  background: #f8fafc; white-space: pre-wrap; word-break: break-all;
}
.mail-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.mail-tab {
  border: 1px solid var(--border); background: var(--surface); border-radius: var(--pill);
  padding: 5px 14px; font-size: 13px; font-weight: 600; color: var(--text-2);
  box-shadow: var(--shadow-sm); transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
}
.mail-tab:hover { border-color: var(--accent); color: var(--accent-2); }
.mail-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 6px rgba(37, 99, 235, .32); }
.howto-ol { padding-left: 20px; font-size: 14px; color: var(--text-2); }
.howto-ol li { margin-bottom: 6px; }
.howto-ol li::marker { color: var(--accent); font-weight: 700; }

/* 提示 toast */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px);
  background: #111827; color: #fff; border-radius: 10px; padding: 12px 20px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  z-index: 120; max-width: 88vw; text-align: center; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: #7f1d1d; }

/* ---------- 模板页 ---------- */
.tpl-filter { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.chip {
  border: 1px solid var(--border); background: var(--surface); border-radius: var(--pill);
  padding: 7px 16px; font-size: 13.5px; font-weight: 600; color: var(--text-2);
  box-shadow: var(--shadow-sm); transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent-2); box-shadow: var(--shadow-btn); }
.chip.active { background: var(--text); border-color: var(--text); color: #fff; box-shadow: var(--shadow-btn); }
/* 分类计数徽标（R17）：紧跟标签的小数字，视觉增强、aria-hidden 不影响可访问名 */
.tpl-filter .chip-count { margin-left: 7px; font-size: 11.5px; font-weight: 700; opacity: .7; font-variant-numeric: tabular-nums; }
.tpl-filter .chip.active .chip-count { opacity: .85; }
/* 关键词搜索框（R19）：分类行下方居中，与分类筛选叠加 */
/* 空结果提示（R19；R65 搜索框已删，分类筛选空态仍走此提示） */
.tpl-empty { text-align: center; color: var(--text-2); font-size: 14.5px; padding: 40px 20px; }
.tpl-empty[hidden] { display: none; }
/* 预览操作工具栏视觉分组分隔（R22：导出 | 历史 | 工具 三段） */
.preview-toolbar .tb-sep { display: inline-block; width: 1px; height: 20px; background: var(--border); vertical-align: middle; margin: 0 7px; flex: none; }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tpl-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .15s, transform .15s;
  cursor: pointer; /* 整卡可点击跳转生成器 */
}
.tpl-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.tpl-preview { background: #f2f5f9; border-bottom: 1px solid var(--border); height: 225px; overflow: hidden; position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,.55); }
.tpl-preview .tpl-scale { transform-origin: top left; }
/* 入场淡入：滚动进入视口构建后播放，不触碰 fit() 内联 transform；尊重减弱动效偏好 */
.tpl-card.is-built .tpl-scale { animation: tplIn .38s ease both; }
@keyframes tplIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tpl-card.is-built .tpl-scale { animation: none; } }
/* 顶部分类色条：不同模板类目一眼可辨 */
.tpl-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); opacity: .9; z-index: 1; }
.tpl-card[data-cat="business"]::before { background: #1e3a5f; }
.tpl-card[data-cat="minimal"]::before { background: #111827; }
.tpl-card[data-cat="centered"]::before { background: #8a7360; }
.tpl-card[data-cat="creative"]::before { background: #7c3aed; }
.tpl-card[data-cat="cartoon"]::before { background: #ec4899; }
.tpl-card[data-cat="cool"]::before { background: #22d3ee; }
.tpl-card[data-cat="industry"]::before { background: #0d9488; }
.tpl-meta { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.tpl-meta h3 { font-size: 15px; font-weight: 700; }
.tpl-meta .tpl-cat { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ---------- 子页横幅 ---------- */
.page-head { padding: 40px 0 8px; text-align: center; }
.page-head h1 { font-size: 28px; font-weight: 800; }
.page-head p { color: var(--text-2); margin-top: 8px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- 面包屑 ---------- */
.crumbs { font-size: 13px; color: var(--text-3); padding: 14px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--text-3); }
.crumbs a:hover { color: var(--accent); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .wb-grid { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .card-grid, .tpl-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
/* 平板（竖屏 iPad 768 / 横屏 1024）：工作台恢复双栏，避免单栏过长 */
@media (min-width: 768px) and (max-width: 1100px) {
  .wb-grid { grid-template-columns: minmax(320px, 360px) 1fr; }
  .preview-panel { position: sticky; top: calc(var(--header-h) + 12px); }
}
/* 平板/窄桌面：收紧顶栏间距，保证不换行的菜单能容纳到隐藏断点 */
@media (max-width: 900px) {
  .header-inner { gap: 12px; }
  .main-nav { margin-left: 2px; gap: 0; }
  .main-nav a { padding: 8px 9px; font-size: 14px; }
  .brand { font-size: 16px; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero h1 { font-size: 27px; }
  .hero { padding: 40px 0 30px; }
  .section { padding: 40px 0; }
}
@media (max-width: 680px) {
  :root { --gutter: 16px; }
  .card-grid, .tpl-grid, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  /* iOS 聚焦防自动缩放：输入控件 ≥16px（特指度须 ≥ 基础规则 .field input[type=*] 的 0,2,1，否则 16px 败给 15px 而失效） */
  .field input[type=text], .field input[type=email], .field input[type=url], .field input[type=tel],
  .field select, .field textarea, .ctl-num, .ctl-hex { font-size: 16px; }
  .main-nav { display: none; }
  .header-inner { gap: 10px; }
  .cta-band { padding: 28px 22px; }
  .container { padding: 0 var(--gutter); }
  .workbench { padding: 14px var(--gutter) 32px; }
  .preview-stage { padding: 20px 12px; }
  .img-uploads { grid-template-columns: 1fr !important; }
  /* 页脚小屏：品牌块与链接列左对齐堆叠 */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-links { gap: 10px 18px; }
}
/* 移动端底部导航（生成器页顶栏导航隐藏后兜底） */
.m-nav { display: none; }
@media (max-width: 680px) {
  .m-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: rgba(255,255,255,.97); border-top: 1px solid var(--border);
    backdrop-filter: blur(8px); padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .m-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: 11px; color: var(--text-2); padding: 5px 0; border-radius: 8px;
  }
  .m-nav a.active { color: var(--accent-2); }
  .m-nav a:hover { text-decoration: none; }
  body { padding-bottom: 64px; }
}
::selection { background: rgba(37, 99, 235, .18); }

/* ---------- 细滚动条（全站统一，替换粗灰原生滚动条） ---------- */
* { scrollbar-width: thin; scrollbar-color: #c4ccd8 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #cdd5e0; border-radius: 999px;
  border: 2px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #b3bdcc; background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }

/* ---------- 打印 / 导出 PDF：仅保留签名预览（R9-C） ---------- */
@media print {
  body.pg-gen, body.pg-team { background: #fff !important; padding: 0 !important; }
  .pg-gen .site-header, .pg-team .site-header,
  .pg-gen .site-footer, .pg-team .site-footer,
  .pg-gen .m-nav, .pg-team .m-nav,
  .pg-gen .panel-tabs, .pg-team .panel-tabs,
  .pg-gen .preview-toolbar, .pg-team .preview-toolbar,
  .pg-gen .code-wrap, .pg-team .code-wrap,
  .pg-gen .crumbs, .pg-team .crumbs,
  .pg-gen .page-head, .pg-team .page-head,
  .pg-gen .howto-ol, .pg-team .howto-ol,
  .pg-gen .chk-list, .pg-team .chk-list,
  .pg-gen .panel:not(.preview-panel), .pg-team .panel:not(.preview-panel) { display: none !important; }
  .pg-gen .workbench, .pg-team .workbench { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .pg-gen .wb-grid, .pg-team .wb-grid { display: block !important; grid-template-columns: none !important; gap: 0 !important; }
  .pg-gen .preview-panel, .pg-team .preview-panel { position: static !important; box-shadow: none !important; border: none !important; }
  .pg-gen .preview-stage, .pg-team .preview-stage { background: #fff !important; padding: 0 !important; border: none !important; overflow: visible !important; min-height: 0 !important; }
  .pg-gen .preview-card, .pg-team .preview-card { box-shadow: none !important; padding: 0 !important; width: auto !important; margin: 0 !important; }
  .pg-gen .email-mock, .pg-team .email-mock { width: 100% !important; box-shadow: none !important; }
  .pg-gen .dark-hint, .pg-team .dark-hint { display: none !important; }
}

/* ============ R10 视觉精修 overlay（增量叠加，不重写既有规则） ============
   仅作用于外层容器，绝不触碰 .tpl-scale 的 fit transform，亦不破坏入场动画与 reduced-motion */
/* 模板画廊卡片：更精致的悬停 / 按压与键盘焦点态 */
.tpl-card { transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.tpl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(37, 99, 235, .45); }
.tpl-card:active { transform: translateY(-1px); }
.tpl-card:focus-within { border-color: var(--accent); box-shadow: var(--shadow-lg), var(--ring); }
.tpl-card:hover::before { opacity: 1; }
.tpl-meta h3 { transition: color .15s ease; }
.tpl-card:hover .tpl-meta h3 { color: var(--accent-2); }
/* 整卡键盘焦点态（R14）：与 :focus-within 一致，去掉默认 outline 改用品牌环 */
.tpl-card:focus-visible { outline: none; border-color: var(--accent); box-shadow: var(--shadow-lg), var(--ring); }

/* 功能卡片 / 步骤卡：悬停立体化，图标底色转为品牌渐变 */
.feature-card { transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(37, 99, 235, .35); }
.feature-card .ico { transition: background .2s ease, color .2s ease; }
.feature-card:hover .ico { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.step { transition: box-shadow .2s ease, transform .2s ease; }
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* FAQ 卡片：悬停轻微高亮 */
.faq-item { transition: border-color .15s ease, box-shadow .15s ease; }
.faq-item:hover { border-color: rgba(37, 99, 235, .35); box-shadow: var(--shadow-sm); }

/* 首页 hero 演示卡：更像一封真实邮件（窗口控制点 + 签名区高光底） */
.hero-demo { border-color: rgba(37, 99, 235, .12); }
.hero-demo .demo-bar i:nth-child(1) { background: #ff5f57; }
.hero-demo .demo-bar i:nth-child(2) { background: #febc2e; }
.hero-demo .demo-bar i:nth-child(3) { background: #28c840; }
.hero-demo .demo-sig { background: linear-gradient(180deg, #fbfdff, #f4f7fb); border: 1px solid #eef2f7; border-radius: 12px; }
.hero-demo .demo-badge { box-shadow: 0 8px 20px rgba(37, 99, 235, .38); }

/* 生成器预览卡 / 邮件模拟：更干净专业的边框与高光 */
.preview-card { border: 1px solid var(--border); }
.email-mock { border: 1px solid var(--border); }
.email-mock .em-head { background: linear-gradient(180deg, #fbfcfe, #f5f8fb); }

/* CTA 条轻微投影，强化层次 */
.cta-band { box-shadow: 0 12px 30px rgba(37, 99, 235, .25); }

/* ---------- R29 · 首页 hero 预览卡高度协调 ----------
   右侧预览卡纵向高于左栏文案，视觉失衡。桌面双栏时整体轻微缩放
   （zoom 影响布局盒，高度真实收缩；≤860px 单列布局不受影响）。
   配合 index.html renderHero 裁掉「工作时间/标语」两行示例内容。 */
@media (min-width: 861px) {
  .hero-demo { zoom: .92; }
}

/* ============================================================
   R31 · 社交链接「添加式」动态列表（CSS 增量 overlay，不改既有规则）
   用户点「添加」选择平台或自定义（上传图标+命名），条目可改/可删。
   ============================================================ */
.soc-list { display: flex; flex-direction: column; gap: 10px; }
.soc-list:empty { display: none; }
.soc-item {
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--card, #ffffff);
}
.soc-head { display: flex; align-items: center; gap: 8px; }
.soc-prev {
  width: 26px; height: 26px;
  border-radius: 7px;
  flex: 0 0 auto;
  display: inline-block;
  object-fit: contain;
}
.soc-prev-empty {
  border: 1.5px dashed var(--line, #cbd5e1);
  background: var(--bg-soft, #f4f6fa);
}
.soc-plat {
  flex: 1 1 auto;
  min-width: 0;
}
.soc-del {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 8px;
  background: var(--card, #ffffff);
  color: var(--muted, #64748b);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.soc-del:hover { color: #dc2626; border-color: #fecaca; background: #fef2f2; }
.soc-url { margin-top: 8px; width: 100%; }
.soc-cust { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.soc-up {
  flex: 0 0 auto;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 8px;
  background: var(--bg-soft, #f4f6fa);
  color: var(--text, #334155);
  font-size: 12.5px;
  padding: 6px 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.soc-up:hover { border-color: var(--accent, #2563eb); color: var(--accent, #2563eb); }
.soc-name { flex: 1 1 auto; min-width: 0; }
.soc-add-row { display: flex; gap: 8px; margin-top: 10px; }
.soc-pick { flex: 1 1 auto; min-width: 0; }
.soc-add { flex: 0 0 auto; white-space: nowrap; }
.soc-add:disabled { opacity: .5; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) {
  .soc-del, .soc-up { transition: none; }
}

/* ---------- R33: 功能卡图标/步骤序号与标题同行 ---------- */
.feature-card:has(> .ico) {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
}
.feature-card:has(> .ico) > .ico { margin-bottom: 0; }
.feature-card:has(> .ico) > h3 { margin-bottom: 0; }
.feature-card:has(> .ico) > p { grid-column: 1 / -1; margin-top: 8px; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
}
.step .num { margin-bottom: 0; }
.step h3 { margin-bottom: 0; }
.step p { grid-column: 1 / -1; margin-top: 8px; }

/* ---------- 文档/信息页通用排版（FAQ / 使用说明 / 关于我们 / 条款 / 隐私） ---------- */
.doc-body { max-width: 820px; margin: 0 auto; }
.doc-body h2 { font-size: 21px; margin: 30px 0 10px; display: flex; align-items: center; gap: 9px; }
.doc-body h2::before { content: ""; width: 4px; height: 20px; border-radius: 2px; background: var(--accent); flex: 0 0 auto; }
.doc-body h3 { font-size: 16px; margin: 20px 0 8px; color: var(--text); }
.doc-body p, .doc-body li { color: var(--text-2); font-size: 15px; line-height: 1.85; }
.doc-body ul, .doc-body ol { padding-left: 22px; margin: 8px 0; }
.doc-body li { margin-bottom: 6px; }
.doc-body .callout { background: var(--accent-soft); border: 1px solid #d5e3ff; border-radius: 10px; padding: 14px 18px; margin: 14px 0; }
.doc-body strong { color: var(--text); }
.doc-body a.inline { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.doc-toc { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin: 18px 0 8px; }
.doc-toc a { display: block; color: var(--text-2); padding: 4px 0; }
.doc-toc a:hover { color: var(--accent); }

/* FAQ 手风琴 */
.faq-item { border: 1px solid var(--border); border-radius: 12px; padding: 0; margin: 12px 0; background: var(--surface); overflow: hidden; }
.faq-item > summary { list-style: none; cursor: pointer; padding: 15px 18px; font-size: 16px; font-weight: 600; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--accent); flex: 0 0 auto; transition: transform .2s ease; }
.faq-item[open] > summary::after { content: "\2212"; }
.faq-item .faq-a { padding: 0 18px 16px; color: var(--text-2); font-size: 15px; line-height: 1.85; }
.faq-item .faq-a a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* 关于我们卡片 */
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 16px 0; }
.about-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.about-card h3 { margin: 0 0 8px; font-size: 16px; color: var(--text); }
.about-card p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.75; }
.about-link { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0; font-weight: 600; }

/* 邮箱一键复制 */
.copy-mail { display: inline-flex; align-items: center; gap: 10px; background: var(--accent-soft); border: 1px solid #cfe0ff; border-radius: 10px; padding: 12px 16px; margin: 12px 0; cursor: pointer; font-size: 15px; color: var(--accent-2); font-weight: 600; transition: border-color .15s, box-shadow .15s; }
.copy-mail:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.copy-mail .mail-addr { color: var(--text); font-weight: 700; }
.copy-mail .mail-hint { font-size: 12.5px; color: var(--text-2); font-weight: 500; margin-left: 2px; }
.copy-mail:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) { .about-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .faq-item > summary::after { transition: none; } }

/* ===== R36 overlay：关于我们页美化 + FAQ 增强（纯增量，不改动既有规则） ===== */
/* 关于页产品卡片图标与悬浮 */
.about-card { position: relative; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.about-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(37, 99, 235, .35); }
.about-ico { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }
.about-ico svg { width: 20px; height: 20px; display: block; }

/* 关于页邮箱复制：复制成功态 */
.copy-mail { position: relative; user-select: none; }
.copy-mail .copy-ico { transition: color .15s ease; }
.copy-mail.copied { border-color: #16a34a; background: #eafaf0; box-shadow: 0 0 0 3px rgba(22, 163, 74, .15); }
.copy-mail.copied .copy-ico { color: #16a34a; }
.copy-mail.copied .mail-addr { color: #15803d; }
.copy-mail.copied .mail-hint { color: #16a34a; }

/* FAQ 手风琴展开/收起动画（grid-rows 兼容方案，覆盖既有 .faq-a 同特异度声明） */
.faq-item .faq-a { padding: 0; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s ease; }
.faq-item[open] .faq-a { grid-template-rows: 1fr; }
.faq-item .faq-a-in { overflow: hidden; min-height: 0; padding: 0 18px 16px; color: var(--text-2); font-size: 15px; line-height: 1.85; }
.faq-item .faq-a-in a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.faq-item { scroll-margin-top: 84px; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  .about-card { transition: none; }
  .faq-item .faq-a { transition: none; }
}

/* R39 品牌 tagline：品牌名右侧的「免费在线生成邮件签名」 */
.brand-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  border-left: 1px solid var(--border);
  padding-left: 10px;
  margin-left: 2px;
  white-space: nowrap;
  letter-spacing: .02em;
  line-height: 1.4;
}
@media (max-width: 1280px) { .brand-tag { display: none; } }

/* ============================================================
   R40 生成器右侧面板美化（社交链接 / 邮箱粘贴指引 / 签名体检）
   仅增量 overlay，不触既有规则
   ============================================================ */

/* --- 社交链接：条目卡片化 --- */
.soc-item {
  border-color: var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 46%);
  box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.soc-item:hover {
  border-color: rgba(37, 99, 235, .38);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.soc-item .soc-plat,
.soc-item .soc-url,
.soc-item .soc-name { background: var(--surface); }
.soc-url { border-radius: 9px; }
.soc-del { border-radius: var(--radius-sm); }
.soc-up { border-radius: var(--radius-sm); background: var(--surface); }

/* 添加行：浅色下拉 + 虚线分隔 */
.soc-add-row { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.soc-pick { background: var(--surface-2); border-radius: 9px; }

/* --- 邮箱粘贴指引：胶囊 tab 精修 --- */
.mail-tab {
  padding: 6px 15px;
  background: var(--surface-2);
  box-shadow: none;
  transition: border-color .15s, color .15s, background .15s, box-shadow .15s, transform .15s;
}
.mail-tab:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.mail-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 2px 8px rgba(37, 99, 235, .35);
}
.howto-ol { font-size: 13.5px; line-height: 1.7; }
.howto-ol li { margin-bottom: 7px; }

/* --- 签名体检：按级别浅色行底 --- */
.chk-list { gap: 5px; }
.chk-list li { padding: 5px 9px; border-radius: 9px; background: var(--surface-2); transition: background .15s; }
.chk-list li.ok { background: #f0fdf4; }
.chk-list li.warn { background: #fffbeb; }
.chk-list li.bad { background: #fef2f2; }
.chk-list li.ok .chk-msg { color: #166534; }

@media (prefers-reduced-motion: reduce) {
  .soc-item, .mail-tab, .chk-list li { transition: none; }
}

/* ============================================================
   R42 · Hero 左右均衡与美化（CSS 增量 overlay，不改既有规则）
   左栏内容高度偏小、右侧预览卡偏高导致失衡：
   ① 左栏排版加大（h1/lead/eyebrow/间距），要点改胶囊卡；
   ② hero 加径向微光背景托住两栏；③ h1 高亮词渐变色；
   ④ 桌面端预览卡 zoom .92→.9 再轻收高度。
   ============================================================ */
.hero {
  background:
    radial-gradient(720px 340px at 12% 8%, rgba(37, 99, 235, .07), transparent 65%),
    radial-gradient(640px 320px at 88% 92%, rgba(37, 99, 235, .06), transparent 65%);
}
.eyebrow { padding: 5px 14px; margin-bottom: 16px; }
@media (min-width: 861px) {
  .hero h1 { font-size: 40px; line-height: 1.22; }
  .hero .lead { margin-top: 18px; font-size: 17px; line-height: 1.8; }
  .hero-ctas { margin-top: 30px; gap: 13px; }
  .hero-points { margin-top: 26px; gap: 10px; }
  .hero-demo { zoom: .9; }
}
.hero h1 .hl {
  color: var(--accent);
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* R47：去掉 R42 胶囊底框（外圈套内圈显杂乱），回归「绿勾 + 文字」纯净排布 */
.hero-points span {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  gap: 7px;
}
.hero-points svg { flex: none; }

/* ============================================================
   R46 品牌 tagline 移至品牌名下方（第二行），替代 R39 的右侧竖线排布
   ============================================================ */
.brand {
  display: grid;
  grid-template-columns: 30px auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 1px;
  align-items: center;
  line-height: 1.25;
}
.brand img { grid-row: 1 / span 2; width: 30px; height: 30px; }
.brand-tag {
  border-left: none;
  padding-left: 0;
  margin-left: 0;
  grid-column: 2;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .03em;
}
@media (max-width: 1280px) {
  .brand { grid-template-columns: 30px auto; grid-template-rows: auto; }
}

/* ============================================================
   R52 社交链接区美化（生成器条目精修 + 团队模板社交区卡片化）
   ============================================================ */

/* --- 生成器：社交条目精修 --- */
.soc-item { padding: 12px 14px; }
.soc-prev {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px;
}
.soc-plat, .soc-url, .soc-name { border-radius: 9px; }
.soc-item .soc-plat { padding: 8px 10px; }
.soc-url { margin-top: 10px; }
.soc-del {
  width: 30px; height: 30px;
  border-radius: 9px;
  font-size: 12px;
}
.soc-cust { margin-top: 10px; }
.soc-up { padding: 7px 11px; border-radius: 9px; }
.soc-add-row { margin-top: 14px; }
.soc-pick { padding: 9px 10px; }
.soc-add { border-radius: var(--radius-sm); }

/* --- 团队模板：社交区整体卡片化 --- */
.pg-team .socials {
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 52%);
  border-radius: 14px;
  padding: 16px 16px 4px;
}
.pg-team .socials .field-row { gap: 10px 14px; }
.pg-team .socials .field { margin-bottom: 12px; }
.pg-team .socials .field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 4px;
}
.pg-team .socials .field input[type=url] {
  background: var(--surface);
  border-radius: 9px;
}
.pg-team .socials .field input[type=url]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

/* ============================================================
   R53 hero 演示卡纯展示化：签名 HTML 自带外链/CTA 按钮，
   点击会跳转外部网址。演示仅作视觉展示，禁用卡内链接指针交互。
   ============================================================ */
.hero-demo a { pointer-events: none; cursor: default; }

/* ============================================================
   R59 社交链接输入框对齐标准输入样式：soc 控件不在 .field 容器内，
   从未拿到基础输入 chrome（边框/内边距/聚焦环），一直渲染浏览器
   默认黑边框。统一为与 .field 输入框完全一致的外观。
   ============================================================ */
.soc-plat, .soc-url, .soc-name, .soc-pick {
  border: 1px solid var(--border);
  padding: 10px 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  border-radius: 9px;
  transition: border-color .15s, box-shadow .15s;
}
.soc-plat:hover, .soc-url:hover, .soc-name:hover, .soc-pick:hover { border-color: #cdd6e1; }
.soc-plat:focus, .soc-url:focus, .soc-name:focus, .soc-pick:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
/* 底部「选择平台…」保留浅底层次，仅补边框 */
.soc-pick { background: var(--surface-2); }
@media (max-width: 680px) {
  /* iOS 聚焦防自动缩放：与 .field 输入控件同规则 */
  .soc-plat, .soc-url, .soc-name, .soc-pick { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .soc-plat, .soc-url, .soc-name, .soc-pick { transition: none; }
}

/* ============================================================
   R62 深色模式提示条突出：原 .dark-hint 是预览舞台内的弱灰小字
   （舞台为 flex 容器时被挤到右上角、深色底上不显眼）。移出到
   舞台下方独立成行，升级为醒目琥珀色提示条。
   ============================================================ */
.dark-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 16px 0;
  padding: 9px 14px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
  line-height: 1.5;
}
.dark-hint::before {
  content: '\2139';
  flex: none;
  font-size: 15px;
  font-weight: 700;
  color: #d97706;
  line-height: 1;
}
.dark-hint[hidden] { display: none; }

/* R64 防采集克隆（UX 中性）：UI 装饰性文字不可选中、品牌 Logo 禁拖拽。
   正文内容(.doc-body/.faq-a/main 内文本)保持可选中，不影响用户正常复制。 */
.site-header, .m-nav, .lang-btn, .btn, .brand-tag, .crumbs, .chip { -webkit-user-select: none; -ms-user-select: none; user-select: none; }
.brand img { -webkit-user-drag: none; user-drag: none; }

/* R69 博客卡片（仅 blog/ 子目录页面引用，根页未使用；新增 overlay 不影响既有规则） */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 10px; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; box-shadow: var(--shadow-sm); transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.blog-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.blog-card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.4; }
.blog-card p { margin: 0 0 14px; color: var(--text-2); font-size: 14px; line-height: 1.65; }
.blog-more { display: inline-block; color: var(--accent); font-weight: 600; font-size: 14px; }
.blog-more:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .blog-card { transition: none; } .blog-card:hover { transform: none; } }

/* ===== R76 内容页全面美化 overlay（博客/指南/FAQ 等正文页 + 博客首页） ===== */
/* 面包屑：轻胶囊化 */
.crumbs { padding: 18px 0 0; }
.crumbs a, .crumbs span { padding: 2px 0; }
.crumbs a:hover { text-decoration: none; }
/* 正文容器：卡片化呼吸感 */
.doc-body { padding: 8px 4px 24px; }
.doc-body h1 { font-size: 30px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; margin: 18px 0 10px; }
.doc-body .lead { font-size: 16.5px; line-height: 1.8; color: var(--text-2); margin: 0 0 14px; }
.doc-body h2 { font-size: 23px; margin: 40px 0 12px; letter-spacing: -.005em; }
.doc-body h2::before { width: 4px; height: 22px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
.doc-body p, .doc-body li { font-size: 15.5px; line-height: 1.9; }
.doc-body li { margin-bottom: 8px; }
.doc-body li::marker { color: var(--accent); font-weight: 600; }
.doc-body .callout { border-left: 3px solid var(--accent); border-radius: 10px 12px 12px 10px; box-shadow: var(--shadow-sm); padding: 14px 18px; }
.doc-body strong { font-weight: 700; }
.doc-body .btn { margin-top: 6px; box-shadow: var(--shadow-btn); }
/* FAQ 手风琴微调 */
.doc-body .faq-item { border-radius: 12px; }
.doc-body .faq-item[open] summary { color: var(--accent); }
.doc-body .faq-item summary:hover { color: var(--accent); }
/* 博客首页页头 */
.page-head h1 { font-size: 32px; letter-spacing: -.01em; }
.page-head { padding: 44px 0 10px; }
/* 博客卡片：更精致的悬浮 */
.blog-grid { gap: 22px; }
.blog-card { border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #c7d7f5; }
.blog-card h3 { font-weight: 700; }
.blog-card h3, .blog-card h3 span { color: var(--text); }
.blog-more::after { content: " →"; transition: margin-left .18s ease; }
.blog-card:hover .blog-more::after { margin-left: 3px; }
/* 分类条 */
.blog-cats a { transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.blog-cats a:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .blog-card, .blog-card .blog-more::after, .blog-cats a { transition: none; }
  .blog-card:hover, .blog-cats a:hover { transform: none; }
}

/* ============================================================
   R81 首页 FAQ 手风琴修复 + 美化（scope #faq，不影响 faq.html/.doc-body）
   结构修复：index.html 答案已补 .faq-a-in 包裹（对齐 faq.html，
   此前裸 .faq-a 被全局 grid-rows 动画规则裁切且 padding 清零）。
   本段仅做视觉增强。
   ============================================================ */
#faq .faq-list { gap: 12px; }
#faq .faq-item { border-radius: 14px; box-shadow: var(--shadow-sm); }
#faq .faq-item[open] { box-shadow: var(--shadow); border-color: rgba(37, 99, 235, .35); }
#faq .faq-item > summary {
  padding: 17px 20px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 14px;
  transition: background .15s ease, color .15s ease;
}
#faq .faq-item > summary:hover { background: var(--surface-2); color: var(--accent); }
#faq .faq-item[open] > summary { color: var(--accent); border-bottom: 1px solid var(--border); border-radius: 14px 14px 0 0; }
#faq .faq-item > summary::after {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(37, 99, 235, .08);
  font-size: 17px;
  transition: transform .2s ease, background .15s ease;
}
#faq .faq-item[open] > summary::after { background: rgba(37, 99, 235, .14); transform: rotate(180deg); }
#faq .faq-item .faq-a-in { padding: 12px 20px 18px; font-size: 15px; line-height: 1.85; }
@media (prefers-reduced-motion: reduce) {
  #faq .faq-item > summary, #faq .faq-item > summary::after { transition: none; }
}

/* ============================================================
   R84 卡片等高对齐 + 全面美化（首页博客导流卡 / 场景卡）
   原：feature-card 无 flex，「阅读全文」按钮随描述长度上下漂移
   （用户截图指认不对齐）。新：卡片 flex 纵向、描述伸展、
   .card-cta 恒定贴底；标题/行距/圆角统一；按钮加箭头动效。
   ============================================================ */
.card-grid .feature-card { display: flex; flex-direction: column; height: 100%; border-radius: 14px; }
.card-grid .feature-card h3 { font-size: 17px; letter-spacing: -.005em; margin-bottom: 8px; }
.card-grid .feature-card > p:not(.card-cta) { flex: 1 0 auto; margin: 0; line-height: 1.7; }
.card-cta { margin: 16px 0 0; }
.card-cta .btn { display: inline-flex; align-items: center; gap: 5px; }
.card-cta .btn::after { content: '\2192'; font-size: 14px; opacity: .75; transition: margin-left .15s ease; }
.card-grid .feature-card:hover .card-cta .btn::after { margin-left: 3px; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .card-cta .btn::after { transition: none; }
}

/* ============================================================
   R86 收拢重复内联样式 + 步骤区美化
   1) .cta-row：首页 3 处重复「居中按钮行」inline style → class
   2) .noscript-note：各页 noscript 提示 inline style → class（文本保留页内差异）
   3) 步骤区：编号徽章渐变 + 悬浮上浮（此前未美化）
   ============================================================ */
.cta-row { text-align: center; margin-top: 30px; }
.noscript-note { text-align: center; padding: 20px; color: #b91c1c; }
.steps .step { transition: box-shadow .15s ease, transform .15s ease; }
.steps .step:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.steps .step .num {
  width: 36px; height: 36px; font-size: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 5px 12px rgba(37, 99, 235, .28);
}
@media (prefers-reduced-motion: reduce) {
  .steps .step, .steps .step:hover { transition: none; transform: none; }
}

/* ============================================================
   R88 功能卡横排：标题移到图标右侧（描述仍占整行）
   根因：R86 的 .card-grid .feature-card{display:flex;flex-direction:column}
   覆盖了早前 .feature-card:has(> .ico) 的两列 grid，导致图标上、标题下。
   修复：以更高特异性恢复「图标左 / 标题右」两列 grid，描述跨整行。
   ============================================================ */
.card-grid .feature-card:has(> .ico) {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  height: 100%;
}
.card-grid .feature-card:has(> .ico) > .ico { margin-bottom: 0; flex-shrink: 0; }
.card-grid .feature-card:has(> .ico) > h3 { margin-bottom: 0; }
.card-grid .feature-card:has(> .ico) > p { grid-column: 1 / -1; margin-top: 8px; flex: none; }
@media (prefers-reduced-motion: reduce) {
  .card-grid .feature-card:has(> .ico) { transition: none; }
}
