/* ==========================================================================
   洁杰PDF —— 样式表
   浅色主题，无外部字体 / 无 CDN 依赖
   ========================================================================== */

:root {
  --ink:        #14161c;
  --ink-2:      #3b4250;
  --muted:      #6a7285;
  --faint:      #98a0b3;
  --line:       #e6e9f0;
  --line-2:     #eff1f6;
  --bg:         #ffffff;
  --bg-alt:     #f6f8fc;
  --brand:      #3b5bfd;
  --brand-dk:   #2a45d8;
  --brand-2:    #7b45e6;
  --ok:         #0f9d58;
  --danger:     #d83b3b;
  --radius:     14px;
  --radius-sm:  9px;
  --shadow:     0 1px 2px rgba(20, 22, 28, .04), 0 8px 24px -12px rgba(20, 22, 28, .12);
  --shadow-lg:  0 2px 6px rgba(20, 22, 28, .05), 0 24px 60px -24px rgba(20, 22, 28, .22);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
          "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 900px; }

/* ---------------------------------------------------------------- 按钮 */
.btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { border-color: #d3d8e4; background: #fbfcfe; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(59, 91, 253, .75);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--brand-dk), #6a37d6); border-color: transparent; }
.btn-primary:disabled { background: #c8cede; box-shadow: none; }

.btn-lg { font-size: 16.5px; padding: 14px 34px; border-radius: 11px; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--brand); }
.btn-ghost:hover { background: rgba(59, 91, 253, .07); border-color: transparent; }
.btn-mini { font-size: 13px; font-weight: 500; padding: 6px 11px; border-radius: 7px; color: var(--muted); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: #fdf3f3; border-color: #f3d4d4; }

/* ------------------------------------------------------------- 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand { display: inline-flex; align-items: baseline; gap: 7px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo {
  display: inline-flex; align-items: baseline;
  font-size: 19px; font-weight: 800; letter-spacing: .4px;
  font-family: Arial, "Segoe UI", var(--font);
}
.bl-navy  { color: #17264a; }
.bl-slash { color: var(--brand); font-weight: 600; margin: 0 5px; }
.bl-blue  { color: var(--brand); }
.brand-cn { font-size: 12px; color: var(--faint); letter-spacing: 1.5px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  color: var(--muted); font-size: 14.5px; font-weight: 500;
  padding: 7px 12px; border-radius: 8px;
}
.site-nav a em { font-style: normal; font-size: 12px; color: var(--faint); margin-left: 4px; font-weight: 400; }
.site-nav a:hover { color: var(--ink); background: var(--bg-alt); text-decoration: none; }
.header-cta { margin-left: 4px; }
.btn-navy {
  background: #17264a; color: #fff;
  border: 1px solid #17264a;
  border-radius: 999px;
  padding: 8px 22px;
}
.btn-navy:hover { background: #23366b; color: #fff; text-decoration: none; }

/* ----------------------------------------------------------------- 首屏 */
.hero { padding: 62px 0 30px; text-align: center; }
.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -.9px;
  margin-bottom: 14px;
}
.hero-sub { font-size: clamp(16px, 2.2vw, 19px); color: var(--ink-2); margin-bottom: 18px; }
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 8px; font-size: 13.5px; color: var(--muted); margin: 0;
}
.hero-meta i { color: var(--faint); font-style: normal; }
.hero-meta span { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; }

/* ------------------------------------------------------------- 工具面板 */
.tool-wrap { padding: 18px 0 42px; }
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 30px clamp(18px, 3.4vw, 36px) 26px;
}
.step + .step { margin-top: 30px; padding-top: 26px; border-top: 1px dashed var(--line); }
.step-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.step-head h2 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 23px; height: 23px; border-radius: 7px; font-size: 13px;
  background: rgba(59, 91, 253, .1); color: var(--brand); font-weight: 700;
}
.step-hint { font-size: 13.5px; color: var(--muted); margin-left: auto; }
.sub-title { font-size: 18px; margin: 34px 0 12px; }
.sec-title { font-size: clamp(23px, 3.4vw, 29px); margin-bottom: 18px; letter-spacing: -.4px; }
.lead { font-size: 16.5px; color: var(--ink-2); }
.lead strong { color: var(--ink); }

/* 布局选择 */
.layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 11px;
}
.layout-card {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 13px 10px 11px;
  cursor: pointer;
  text-align: center;
  transition: border-color .16s, box-shadow .16s, background .16s, transform .12s;
}
.layout-card:hover { border-color: #c6cfea; background: #fbfcff; }
.layout-card:active { transform: translateY(1px); }
.layout-card.is-active {
  border-color: var(--brand);
  background: linear-gradient(180deg, rgba(59, 91, 253, .06), rgba(123, 69, 230, .04));
  box-shadow: 0 0 0 3px rgba(59, 91, 253, .09);
}
.layout-card svg { display: block; margin: 0 auto 8px; }
.layout-card .lc-name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.layout-card .lc-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.layout-card input { position: absolute; opacity: 0; pointer-events: none; }

/* 选项 */
.opt-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 11px;
}
.opt {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 13px; cursor: pointer; background: #fff;
  transition: border-color .16s, background .16s;
}
.opt:hover { border-color: #c6cfea; background: #fbfcff; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-box {
  flex: 0 0 auto; width: 19px; height: 19px; margin-top: 2px;
  border: 1.6px solid #c3cad9; border-radius: 6px; background: #fff;
  position: relative; transition: all .16s;
}
.opt input:checked + .opt-box {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
}
.opt input:checked + .opt-box::after {
  content: ""; position: absolute; left: 5.5px; top: 2px;
  width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(42deg);
}
.opt input:focus-visible + .opt-box { box-shadow: 0 0 0 3px rgba(59, 91, 253, .25); }
.opt-text { display: block; font-size: 14px; }
.opt-text strong { display: block; color: var(--ink); font-weight: 600; }
.opt-text em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.opt-select { flex-direction: column; align-items: stretch; gap: 6px; cursor: default; }
.opt-select select {
  font-family: inherit; font-size: 14px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-2);
}

/* 拖拽区 */
.dropzone {
  border: 2px dashed #ccd4e6;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fbfcff, #f7f9ff);
  padding: 38px 20px 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .12s;
}
.dropzone:hover { border-color: #a9b7e6; background: #f6f9ff; }
.dropzone:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(59, 91, 253, .13); }
.dropzone.is-over {
  border-color: var(--brand);
  background: rgba(59, 91, 253, .06);
  transform: scale(1.005);
}
.dz-icon { color: var(--brand); margin-bottom: 10px; }
.dz-title { font-size: 16px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.dz-link { color: var(--brand); text-decoration: underline; }
.dz-sub { font-size: 13px; color: var(--muted); margin: 0; }

/* 文件列表 */
.filelist { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.filelist-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; background: var(--bg-alt);
  border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted);
}
.filelist-actions { margin-left: auto; display: flex; gap: 6px; }
#fileItems { list-style: none; margin: 0; padding: 0; max-height: 340px; overflow-y: auto; }
#fileItems li {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 14px; border-bottom: 1px solid var(--line-2); font-size: 14px;
}
#fileItems li:last-child { border-bottom: none; }
#fileItems li:hover { background: #fcfdff; }
.fi-index {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(59, 91, 253, .09); color: var(--brand);
  font-size: 12.5px; font-weight: 700;
}
.fi-main { min-width: 0; flex: 1 1 auto; }
.fi-name { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fi-meta { font-size: 12px; color: var(--faint); }
.fi-badge {
  font-size: 11.5px; padding: 1px 7px; border-radius: 6px;
  background: var(--bg-alt); border: 1px solid var(--line); color: var(--muted);
}
.fi-badge.is-warn { background: #fff8ec; border-color: #f4e0bd; color: #a3701a; }
.fi-badge.is-ok { background: #f1fbf5; border-color: #cfeedd; color: var(--ok); }
.fi-ops { flex: 0 0 auto; display: flex; gap: 2px; }
.fi-ops button {
  width: 27px; height: 27px; border: 1px solid transparent; background: transparent;
  border-radius: 7px; color: var(--faint); cursor: pointer; font-size: 13px; line-height: 1;
}
.fi-ops button:hover { background: var(--bg-alt); border-color: var(--line); color: var(--ink-2); }
.fi-ops button[disabled] { opacity: .3; cursor: default; }
.fi-ops button.del:hover { color: var(--danger); border-color: #f3d4d4; background: #fdf3f3; }

.privacy-note {
  display: flex; align-items: center; gap: 7px;
  margin: 14px 0 0; font-size: 13px; color: var(--muted);
}
.privacy-note svg { color: var(--ok); flex: 0 0 auto; }

/* 操作栏 */
.action-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line);
}
.action-info { font-size: 14px; color: var(--muted); }
.action-info strong { color: var(--ink); }
.action-bar .btn { margin-left: auto; }

/* 进度 */
.progress { margin-top: 18px; }
.progress-bar { height: 7px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.progress-bar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 99px; transition: width .25s ease;
}
.progress-text { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* 结果 */
.result {
  margin-top: 22px; border: 1px solid #d6e6dc; background: #f8fdfa;
  border-radius: var(--radius-sm); padding: 18px;
}
.result-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.result-head h3 { font-size: 17px; margin-bottom: 3px; }
.result-sub { font-size: 13.5px; color: var(--muted); margin: 0; }
.result-actions { margin-left: auto; }
.preview {
  display: flex; gap: 12px; overflow-x: auto; padding: 14px 2px 4px;
  margin-top: 14px; border-top: 1px solid #e3f0e8;
}
.preview figure { margin: 0; flex: 0 0 auto; text-align: center; }
.preview canvas {
  display: block; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; box-shadow: var(--shadow);
}
.preview figcaption { font-size: 11.5px; color: var(--faint); margin-top: 5px; }

/* 提示条 */
.notice {
  margin-top: 18px; padding: 13px 16px; border-radius: var(--radius-sm);
  font-size: 13.8px; border: 1px solid #f4e0bd; background: #fffaf0; color: #8a6415;
}
.notice.is-error { border-color: #f3d4d4; background: #fdf5f5; color: #a53232; }
.notice.is-info { border-color: #d5e2f8; background: #f5f9ff; color: #2d4d92; }

/* -------------------------------------------------------------- 卖点三卡 */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px; margin-top: 26px;
}
.feature {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 22px 18px;
}
.feature-ico { font-size: 24px; display: block; margin-bottom: 8px; }
.feature h3 { font-size: 16.5px; margin-bottom: 5px; }
.feature p { font-size: 14px; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------------ 分区 */
.section { padding: 62px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; background: #fff;
}
.card h4 { font-size: 16px; margin-bottom: 6px; }
.card p { font-size: 14px; color: var(--muted); margin: 0; }

/* 对比表 */
.table-scroll { overflow-x: auto; margin: 6px 0 4px; }
table.compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; font-size: 14.5px; background: #fff; min-width: 620px;
}
table.compare th, table.compare td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line-2); }
table.compare thead th { background: var(--bg-alt); font-size: 13.5px; color: var(--ink); font-weight: 700; }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare td:first-child { color: var(--muted); }
table.compare .hl { background: rgba(59, 91, 253, .05); color: var(--ink); font-weight: 600; }

/* 步骤 */
ol.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
ol.steps li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
ol.steps li:last-child { border-bottom: none; }
ol.steps li > span {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  font-size: 13px; font-weight: 700;
}
ol.steps li div { font-size: 15px; }
ol.steps strong { color: var(--ink); }

/* FAQ */
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 10px; background: #fff; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 15px 18px; font-weight: 600; color: var(--ink);
  font-size: 15.5px; list-style: none; position: relative; padding-right: 46px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 21px;
  width: 8px; height: 8px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 24px; }
.faq details[open] summary { border-bottom: 1px solid var(--line-2); }
.faq p { padding: 14px 18px 4px; margin: 0 0 10px; font-size: 14.8px; color: var(--muted); }
.faq details p strong { color: var(--ink); }

/* ----------------------------------------------------------------- 页脚 */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 40px 0 26px; }
.footer-inner { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.footer-desc { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; max-width: 420px; }
.footer-links { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--brand); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 12.8px; color: var(--faint);
}

/* ------------------------------------------------------------- 右下浮标 */
.fab-wrap { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; }
.fab {
  width: 50px; height: 50px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -10px rgba(59, 91, 253, .8);
  transition: transform .16s;
}
.fab:hover { transform: translateY(-2px) scale(1.03); }
.fab-card {
  width: 268px; margin-bottom: 12px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 16px 17px; font-size: 13.5px;
}
.fab-card strong { color: var(--ink); display: block; margin-bottom: 6px; font-size: 14.5px; }
.fab-card p { margin: 0 0 8px; color: var(--muted); }
.fab-qr { text-align: center; margin: 2px 0 10px; }
.fab-qr img {
  display: block; margin: 0 auto 4px;
  width: 140px; height: 140px;
  border: 1px solid var(--line); border-radius: 10px;
}
.fab-qr p { font-size: 12.5px; color: var(--faint); margin: 0; }

/* --------------------------------------------------------------- 响应式 */
@media (max-width: 880px) {
  .site-nav { display: none; }
  .header-inner { gap: 12px; }
  .header-cta { margin-left: auto; }
  .hero { padding: 40px 0 22px; }
  .panel { padding: 22px 16px 20px; }
  .step-hint { margin-left: 0; width: 100%; }
  .action-bar .btn { margin-left: 0; width: 100%; }
  .result-actions { margin-left: 0; width: 100%; }
  .result-actions .btn { width: 100%; }
  .footer-links { margin-left: 0; }
}

@media print {
  .site-header, .site-footer, .fab-wrap, .features, .section, .hero-meta { display: none; }
}
