/* ============================================================
   亮途财税工具 · 官网样式（单文件，纯 CSS，无依赖）
   品牌色板与报告 / exe 一致：红 CA3A35 · 墨 211814 · 暖灰 4A4341
   红线：不放支付、不放课程售卖、不出现「免费版 / 阉割版」字样
   ============================================================ */

:root {
  --red: #ca3a35;
  --red-dark: #a92e2a;
  --ink: #211814;
  --gray: #4a4341;
  --gray-soft: #7c7472;
  --line: #d8d3d1;
  --band: #f5f3f2;
  --pink: #f7e9e8;
  --pink-mid: #ebd2d0;
  --white: #ffffff;
  --radius: 6px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--gray);
  background: var(--white);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB",
               "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------- 顶栏 */
.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 34px; width: auto; }
.brand-text { line-height: 1.2; }
.brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 1px;
}
.brand-sub { font-size: 11px; color: var(--gray-soft); letter-spacing: .5px; }

.nav { display: flex; gap: 28px; font-size: 14px; }
.nav a { color: var(--gray); }
.nav a:hover { color: var(--red); text-decoration: none; }
.nav a.on { color: var(--red); font-weight: 700; }

/* ---------------------------------------------- 首屏 */
.hero {
  padding: 76px 0 64px;
  border-bottom: 4px solid var(--red);
  background: linear-gradient(180deg, #fffdfc 0%, #ffffff 100%);
}
.hero h1 {
  font-size: 34px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 20px;
  letter-spacing: .5px;
  font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead {
  font-size: 16px;
  color: var(--gray);
  max-width: 760px;
  margin: 0 0 30px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.4;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; font-weight: 700; }
.btn-primary:hover { background: var(--red-dark); text-decoration: none; }
.btn-ghost { border-color: var(--line); color: var(--gray); background: #fff; }
.btn-ghost:hover { border-color: var(--red); color: var(--red); text-decoration: none; }

/* ---------------------------------------------- 通用区块 */
.section { padding: 56px 0; }
.section.band { background: var(--band); }
.section.pink { background: var(--pink); }

.sec-title {
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 8px;
  font-weight: 700;
}
.sec-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--red);
  margin-right: 10px;
  vertical-align: -2px;
  border-radius: 1px;
}
.sec-sub { color: var(--gray-soft); font-size: 14px; margin: 0 0 30px; }

h2, h3 { color: var(--ink); }

/* ---------------------------------------------- 卡片 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  background: #fff;
}
.card h3 {
  font-size: 16px;
  margin: 0 0 10px;
  font-weight: 700;
}
.card p { margin: 0; font-size: 14px; color: var(--gray); }
.card .idx {
  display: inline-block;
  width: 26px; height: 26px;
  line-height: 26px;
  text-align: center;
  border-radius: 50%;
  background: var(--pink);
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
}

/* ---------------------------------------------- 功能清单 */
.feat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
.feat-item {
  border-left: 3px solid var(--pink-mid);
  padding: 4px 0 4px 16px;
}
.feat-item b { color: var(--ink); display: block; font-size: 15px; }
.feat-item span { font-size: 13.5px; color: var(--gray); }

/* ---------------------------------------------- 表格 */
table.sheet-list {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
}
table.sheet-list th,
table.sheet-list td {
  border: 1px solid var(--line);
  padding: 9px 14px;
  text-align: left;
  vertical-align: top;
}
table.sheet-list th {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
table.sheet-list tr:nth-child(even) td { background: #fbfafa; }
table.sheet-list td.cat { color: var(--red); font-weight: 700; white-space: nowrap; }

/* ---------------------------------------------- 下载区 */
.dl-box {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 32px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 32px;
}
.dl-meta { font-size: 13.5px; color: var(--gray-soft); margin: 14px 0 0; }
.dl-meta b { color: var(--ink); }
.qr-block { text-align: center; }
.qr-block img { width: 148px; margin: 0 auto 10px; border: 1px solid var(--line); }
.qr-block span { font-size: 12.5px; color: var(--gray-soft); }

.note-box {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--pink);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13.5px;
  color: var(--gray);
}
.note-box b { color: var(--ink); }

/* ---------------------------------------------- 正文排版 */
.prose h2 { font-size: 20px; margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 16px; margin: 26px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 7px; }

.info-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.info-table th, .info-table td {
  border-bottom: 1px solid var(--line);
  padding: 13px 4px;
  text-align: left;
  vertical-align: top;
}
.info-table th {
  width: 140px;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

/* ---------------------------------------------- 页脚 */
.site-foot {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 34px 0 40px;
  font-size: 13px;
  color: var(--gray-soft);
}
.site-foot .row1 {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.site-foot .cname { color: var(--ink); font-weight: 700; font-size: 14px; }
.site-foot .en { font-size: 12px; color: var(--gray-soft); }
.site-foot a { color: var(--gray-soft); }
.site-foot a:hover { color: var(--red); }
.site-foot .beian { display: block; margin-top: 4px; }

/* ---------------------------------------------- 移动端 */
/* ---------------------------------------------- 下载前说明弹层（纯 CSS :target，无 JavaScript） */
.dl-modal { display: none; }
.dl-modal:target {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow-y: auto;
}
.dl-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(33, 24, 20, .5);
}
.dl-modal-panel {
  position: relative;
  z-index: 1;
  width: calc(100% - 48px);
  max-width: 580px;
  margin: 7vh auto 40px;
  background: #fff;
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 26px 28px 24px;
  box-shadow: 0 18px 50px rgba(33, 24, 20, .28);
}
.dl-modal-panel h3 { margin: 0 0 14px; font-size: 19px; color: var(--ink); }
.dl-modal-panel p { margin: 0 0 12px; font-size: 14px; line-height: 1.75; color: var(--gray); }
.dl-modal-panel .dl-file {
  background: var(--band);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
}
.dl-modal-panel .dl-file b { color: var(--ink); }
.dl-modal-panel code {
  display: inline-block;
  word-break: break-all;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12.5px;
  color: var(--ink);
}

@media (max-width: 820px) {
  .site-head .wrap { height: auto; padding: 14px 20px; flex-wrap: wrap; gap: 10px; }
  .dl-modal-panel { margin: 4vh auto 30px; padding: 20px 18px; }
  .nav { gap: 18px; font-size: 13.5px; }
  .hero { padding: 46px 0 40px; }
  .hero h1 { font-size: 24px; }
  .hero .lead { font-size: 15px; }
  .cards { grid-template-columns: 1fr; }
  .feat { grid-template-columns: 1fr; }
  .dl-box { grid-template-columns: 1fr; padding: 24px 20px; }
  .qr-block { text-align: left; }
  .qr-block img { margin: 0 0 8px; }
  .section { padding: 40px 0; }
  table.sheet-list { font-size: 13px; }
  table.sheet-list th, table.sheet-list td { padding: 7px 9px; }
  .info-table th { width: 96px; }
}
