/* Table2Excel — MVP 样式（极简、可信、工具感） */
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }   /* .license-row 等自带 display 的元素也要能被 hidden 属性隐藏 */
body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a2332; background: #f7f9fc; line-height: 1.5;
}
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px; background: #fff; border-bottom: 1px solid #e6ebf2;
}
.brand { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.brand span { color: #1a73e8; }
.badge { font-size: 12.5px; color: #137333; background: #e6f4ea; padding: 5px 12px; border-radius: 999px; }

main { max-width: 900px; margin: 0 auto; padding: 40px 20px 20px; }
h1 { font-size: 30px; letter-spacing: -0.5px; }
h1 em { color: #1a73e8; font-style: normal; }
.sub { color: #5b6b7f; margin: 8px 0 28px; }

#dropzone {
  border: 2px dashed #b9c6d8; border-radius: 14px; background: #fff;
  padding: 44px 20px; text-align: center; color: #5b6b7f; cursor: pointer;
  transition: border-color .15s, background .15s;
}
#dropzone.drag { border-color: #1a73e8; background: #f0f6ff; }
#dropzone p { margin-top: 10px; }
#dropzone label { color: #1a73e8; text-decoration: underline; cursor: pointer; }

#status { margin-top: 24px; }
.bar { height: 6px; background: #e6ebf2; border-radius: 4px; margin-top: 8px; overflow: hidden; }
#bar-fill { height: 100%; width: 30%; background: #1a73e8; border-radius: 4px; animation: slide 1.2s infinite; }
@keyframes slide { 0%{margin-left:-30%} 100%{margin-left:100%} }

#result { margin-top: 28px; }
.result-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.file-name { font-weight: 700; }
.selfcheck { font-size: 13px; margin-top: 2px; }
.selfcheck.ok { color: #137333; }
.selfcheck.warn { color: #b06000; }
button.primary {
  background: #1a73e8; color: #fff; border: 0; border-radius: 8px;
  padding: 11px 22px; font-size: 15px; font-weight: 600; cursor: pointer;
}
button.primary:disabled { background: #9db8d9; cursor: not-allowed; }

.table-wrap { overflow: auto; max-height: 460px; border: 1px solid #e6ebf2; border-radius: 10px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 8px 12px; text-align: left; border-bottom: 1px solid #f0f3f8; white-space: nowrap; }
th { position: sticky; top: 0; background: #f7f9fc; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: #5b6b7f; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.row-note { font-size: 12.5px; color: #5b6b7f; margin-top: 8px; }

.pro { margin-top: 36px; padding: 20px 24px; background: #fff; border: 1px solid #e6ebf2; border-radius: 12px; }
.pro h3 { font-size: 16px; }
.pro p { color: #5b6b7f; font-size: 14px; margin: 6px 0 14px; }
.pro a { color: #1a73e8; }
.license-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.license-row input {
  flex: 1; min-width: 240px; padding: 10px 12px; border: 1px solid #cfd9e6;
  border-radius: 8px; font-size: 14px; font-family: monospace;
}
.license-row button { padding: 10px 18px; border: 1px solid #1a73e8; background: #fff; color: #1a73e8; border-radius: 8px; cursor: pointer; font-weight: 600; }
#license-status { font-size: 13px; flex-basis: 100%; }
#license-status.ok { color: #137333; }
.license-row button:disabled { opacity: .6; cursor: wait; }
#pro-active { margin: 0; }
#key-line { margin: 8px 0 0; font-size: 13px; }
#key-line code { font-size: 13px; color: #1f2933; background: #f1f5f9; padding: 2px 6px; border-radius: 4px; user-select: all; }

footer { text-align: center; color: #8a97a8; font-size: 12.5px; padding: 28px 0 40px; }
footer a { color: #5b6b7f; }

/* ---------- 落地页 ---------- */
header { position: sticky; top: 0; z-index: 10; }
header nav { display: flex; gap: 22px; align-items: center; font-size: 14px; }
header nav a { color: #3c4a5c; text-decoration: none; }
header nav a:hover { color: #1a73e8; }
.cta-small { background: #1a73e8; color: #fff !important; padding: 8px 16px; border-radius: 8px; font-weight: 600; }

.hero { background: linear-gradient(180deg, #f7f9fc 0%, #eef3fa 100%); padding: 84px 20px 72px; text-align: center; }
.hero-inner { max-width: 760px; margin: 0 auto; }
.pill { display: inline-block; font-size: 13px; color: #137333; background: #e6f4ea; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { font-size: 42px; line-height: 1.15; letter-spacing: -1px; }
.hero h1 em { color: #1a73e8; font-style: normal; }
.hero .sub { font-size: 17.5px; color: #4a5a6e; margin: 18px auto 30px; max-width: 640px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-cta .primary { display: inline-block; background: #1a73e8; color: #fff; padding: 14px 30px; border-radius: 10px; font-size: 16.5px; font-weight: 700; text-decoration: none; }
.hero-cta .primary:hover { background: #1558b8; }
.hero-cta .ghost { display: inline-block; padding: 14px 26px; border-radius: 10px; font-size: 16px; color: #1a73e8; text-decoration: none; border: 1px solid #c6d6ee; background: #fff; }
.micro { font-size: 13px; color: #7a8798; margin-top: 16px; }
.micro.center, .center { text-align: center; }

.section { max-width: 980px; margin: 0 auto; padding: 64px 20px; }
.section.alt { background: #fff; }
.section h2 { font-size: 28px; letter-spacing: -0.5px; margin-bottom: 28px; text-align: center; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid #e6ebf2; border-radius: 14px; padding: 26px; position: relative; }
.card .step { width: 34px; height: 34px; border-radius: 50%; background: #eaf1fd; color: #1a73e8; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: #5b6b7f; }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.grid2 h3 { font-size: 17px; margin-bottom: 8px; }
.grid2 p { font-size: 14.5px; color: #5b6b7f; }

.bank-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.bank-tags span { background: #fff; border: 1px solid #dbe4ef; border-radius: 999px; padding: 9px 20px; font-weight: 600; font-size: 14.5px; color: #33445c; }

.card.price { text-align: center; padding: 34px 26px; }
.card.price.featured { border: 2px solid #1a73e8; box-shadow: 0 8px 28px rgba(26,115,232,.12); }
.card.price .amount { font-size: 40px; font-weight: 800; margin: 10px 0 16px; }
.card.price .amount s { font-size: 18px; color: #9aa7b8; font-weight: 500; margin-left: 6px; }
.card.price ul { list-style: none; text-align: left; margin: 0 auto 20px; max-width: 260px; }
.card.price li { padding: 7px 0; font-size: 14.5px; color: #3c4a5c; border-bottom: 1px dashed #eef2f8; }
.ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: #ff9f1a; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.ghost.full, .primary.full { display: block; text-align: center; text-decoration: none; }
.ghost.full { padding: 12px; border: 1px solid #c6d6ee; border-radius: 10px; color: #1a73e8; font-weight: 600; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid #e6ebf2; border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 15.5px; }
.faq p { font-size: 14.5px; color: #5b6b7f; margin-top: 10px; }

/* ---------- 银行指南页（/convert/*，由 build/bank-pages.mjs 生成） ---------- */
.guide { padding-top: 28px; }
.guide > h1 { font-size: 34px; letter-spacing: -0.8px; margin-bottom: 12px; }
.guide .lead { font-size: 17px; color: #5b6b7f; margin-bottom: 22px; }
.guide .hero-cta { justify-content: flex-start; margin-bottom: 8px; }
.guide h2 { font-size: 22px; margin: 44px 0 14px; text-align: left; }
.tips { padding-left: 20px; }
.tips li { font-size: 15px; color: #3c4a5c; line-height: 1.7; margin-bottom: 8px; }
.test-result { background: #fff; border: 1px solid #e6ebf2; border-radius: 14px; padding: 18px 24px; }
.test-result table { width: 100%; border-collapse: collapse; }
.test-result th, .test-result td { text-align: left; padding: 9px 6px; border-bottom: 1px solid #eef2f8; font-size: 14.5px; vertical-align: top; white-space: normal; }
.test-result th { position: static; color: #7a8798; font-weight: 600; width: 42%; }
.test-result tr:last-child th, .test-result tr:last-child td { border-bottom: 0; }
.bank-links { display: flex; flex-wrap: wrap; gap: 10px; }
.bank-links a, .bank-tags a { background: #fff; border: 1px solid #dbe4ef; border-radius: 999px; padding: 8px 18px; font-weight: 600; font-size: 14px; color: #33445c; text-decoration: none; }
.bank-tags a { padding: 9px 20px; font-size: 14.5px; }
.bank-links a:hover, .bank-tags a:hover { border-color: #1a73e8; color: #1a73e8; }

/* ---------- 内容指南页的长文（.article）：正文宽度、步骤、提示框、对比表、来源 ---------- */
.meta { font-size: 13px; color: #7a8798; margin-bottom: 18px; }
.article { margin-top: 34px; max-width: 820px; }
.article h2 { font-size: 23px; margin: 40px 0 12px; }
.article h3 { font-size: 17.5px; margin: 24px 0 8px; }
.article p { font-size: 15.5px; line-height: 1.75; color: #3c4a5c; margin: 0 0 14px; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 16px; }
.article li { font-size: 15.5px; line-height: 1.75; color: #3c4a5c; margin-bottom: 8px; }
.article a { color: #1a73e8; }
.article code { font-size: 14px; background: #f1f5f9; padding: 2px 6px; border-radius: 4px; }
.article pre { background: #fff; border: 1px solid #e6ebf2; border-radius: 10px; padding: 14px 18px; margin: 0 0 14px; overflow-x: auto; }
.article pre code { background: none; padding: 0; }
.note { background: #fff; border: 1px solid #e6ebf2; border-left: 4px solid #1a73e8; border-radius: 10px; padding: 14px 18px; margin: 0 0 18px; font-size: 14.5px; line-height: 1.7; color: #3c4a5c; }
.table-scroll { overflow-x: auto; background: #fff; border: 1px solid #e6ebf2; border-radius: 12px; padding: 4px 16px; margin: 0 0 12px; max-width: 860px; }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 11px 10px; border-bottom: 1px solid #e6ebf2; white-space: normal; }
.compare thead th { position: static; background: none; text-transform: none; font-size: 13px; letter-spacing: 0; color: #5b6b7f; border-bottom: 2px solid #cfd9e6; }
.compare th[scope=row] { position: static; background: none; text-transform: none; font-size: 14.5px; letter-spacing: 0; color: #1a2332; font-weight: 700; }
.compare .sub { display: block; font-size: 12.5px; font-weight: 400; color: #7a8798; }
.compare tr.us th[scope=row], .compare tr.us td { background: #eaf1fd; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.sources { padding-left: 20px; margin-bottom: 8px; }
.sources li { font-size: 14px; line-height: 1.7; color: #5b6b7f; margin-bottom: 6px; }
.sources a { color: #1a73e8; }

/* 首页"指南"区的卡片是链接；四张卡片在桌面宽度下排成一行 */
.guide-cards { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.guide-cards a.card { text-decoration: none; color: inherit; }
.guide-cards a.card:hover { border-color: #1a73e8; }
.guide-cards a.card h3 { color: #1a73e8; }

/* 窄屏：对比表改成每个工具一张卡片，免得横向滚动才能看全 */
@media (max-width: 700px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { border-bottom: 2px solid #cfd9e6; padding: 12px 0; }
  .compare tr:last-child { border-bottom: 0; }
  .compare th[scope=row], .compare td { border-bottom: 0; padding: 4px 0; }
  .compare td { display: grid; grid-template-columns: 40% 1fr; gap: 10px; }
  .compare td::before { content: attr(data-label); font-weight: 600; color: #5b6b7f; font-size: 13px; padding-top: 2px; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  header nav a:not(.cta-small) { display: none; }
  /* 工具页 / 指南页的页头有"站点名、返回首页、绿色标签"三样，窄屏放不下一行：标签换到第二行 */
  header { flex-wrap: wrap; padding: 12px 16px; row-gap: 8px; }
  header .badge { order: 3; flex-basis: 100%; text-align: center; }
}
