/* 税安吗 s.hegui66.com — 全站样式（浅色主题，三视口自适应） */
:root {
  --blue: #1a2b4a;
  --blue-2: #2a4a7f;
  --red: #c81623;
  --gold: #b98a2f;
  --bg: #f6f7fa;
  --card: #ffffff;
  --line: #e3e7ee;
  --text: #232a35;
  --muted: #6b7686;
  --green: #1d8a4e;
  --amber: #c07d10;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.7; font-size: 16px;
}
a { color: var(--blue-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* 顶栏 */
header.site {
  background: var(--blue); color: #fff; position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 8px rgba(20,35,70,.15);
}
.site .inner { max-width: 1120px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: baseline; gap: 10px; color: #fff; font-weight: 700; font-size: 20px; }
.logo small { font-weight: 400; opacity: .75; font-size: 12px; }
nav.main { display: flex; gap: 4px; flex-wrap: wrap; }
nav.main a { color: rgba(255,255,255,.85); padding: 8px 12px; border-radius: 8px; font-size: 15px; }
nav.main a:hover, nav.main a.active { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
nav.main a.cta { background: var(--red); color: #fff; font-weight: 600; }

/* 主体 */
main { max-width: 1120px; margin: 0 auto; padding: 28px 20px 60px; }
.hero { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%); color: #fff; border-radius: 16px; padding: 48px 40px; margin-bottom: 28px; }
.hero h1 { font-size: 32px; margin-bottom: 12px; letter-spacing: 1px; }
.hero p { opacity: .92; max-width: 640px; font-size: 17px; }
.hero .btns { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 11px 26px; border-radius: 10px; font-size: 16px; font-weight: 600; border: none; cursor: pointer; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); text-decoration: none; }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.22); text-decoration: none; }
.btn-line { background: #fff; color: var(--blue); border: 1px solid var(--line); }
.btn-line:hover { background: #f2f5fa; text-decoration: none; }

.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { color: var(--blue); font-size: 18px; margin-bottom: 8px; }
.card .ico { font-size: 26px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.sec-title { font-size: 24px; color: var(--blue); margin: 34px 0 16px; padding-left: 12px; border-left: 4px solid var(--red); }
.sec-sub { color: var(--muted); margin-bottom: 16px; font-size: 15px; }

/* 宪法义务横条 */
.oath-bar { background: #fdf6e8; border-top: 1px solid #efe3bb; border-bottom: 1px solid #efe3bb; color: #7a6a33; text-align: center; padding: 10px 16px; font-size: 14.5px; }
.oath-bar b { color: var(--blue); }

/* 表单 */
form.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
fieldset { border: none; margin-bottom: 26px; }
legend { font-weight: 700; color: var(--blue); font-size: 17px; margin-bottom: 12px; }
.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.fgrid .full { grid-column: 1 / -1; }
label.f { display: block; font-size: 14px; color: var(--muted); }
label.f b { color: var(--text); font-weight: 600; display: block; margin-bottom: 4px; }
label.f b .req { color: var(--red); }
input[type=text], input[type=number], select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 15px; background: #fff; color: var(--text);
}
input:focus, select:focus { outline: 2px solid rgba(42,74,127,.25); border-color: var(--blue-2); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label { display: flex; align-items: center; gap: 6px; background: #f2f5fa; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 14px; cursor: pointer; color: var(--text); }
.checks input { accent-color: var(--red); }
.filebox { border: 2px dashed var(--line); border-radius: 10px; padding: 16px; text-align: center; color: var(--muted); font-size: 14px; cursor: pointer; background: #fafbfd; }
.filebox.has { border-color: var(--green); color: var(--green); }
.form-actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; align-items: center; }
.form-err { background: #fdf0f0; border: 1px solid #f3c2c2; color: var(--red); border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; display: none; }

/* 报告 */
.report-head { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.score-tag { display: inline-block; padding: 4px 14px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 15px; }
.score-red { background: var(--red); } .score-yellow { background: var(--amber); } .score-green { background: var(--green); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.kpi { background: #f6f8fc; border-radius: 10px; padding: 14px; text-align: center; }
.kpi .v { font-size: 24px; font-weight: 800; color: var(--blue); }
.kpi .k { font-size: 13px; color: var(--muted); }
.item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px; }
.item .head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.item .head h4 { font-size: 16.5px; color: var(--blue); }
.badge { font-size: 12px; padding: 2px 10px; border-radius: 999px; color: #fff; font-weight: 600; white-space: nowrap; }
.b-high { background: var(--red); } .b-medium { background: var(--amber); } .b-low { background: var(--gold); }
.b-save { background: var(--green); }
.item .analysis { font-size: 15px; color: var(--text); margin-bottom: 10px; }
.item .saving { background: #eef8f1; border: 1px solid #cde8d6; border-radius: 8px; padding: 8px 12px; font-size: 14.5px; color: var(--green); font-weight: 600; margin-bottom: 10px; }
.item .cite { background: #f6f8fc; border-left: 3px solid var(--blue-2); padding: 8px 12px; font-size: 13.5px; color: var(--muted); border-radius: 0 8px 8px 0; margin-bottom: 8px; }
.item .act { font-size: 14.5px; color: var(--text); }
.item .act::before { content: "✅ 落地动作："; font-weight: 700; color: var(--blue); }
.roadmap { counter-reset: rm; }
.roadmap .step { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.roadmap .num { counter-increment: rm; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.roadmap .num::before { content: counter(rm); }
.notice { background: #fffdf4; border: 1px solid #efe3bb; border-radius: var(--radius); padding: 18px 22px; font-size: 14px; color: #7a6a33; margin-top: 26px; }
.notice p { margin-bottom: 8px; } .notice p:last-child { margin-bottom: 0; }

/* 表格（方案库/定价） */
table.t { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; font-size: 14.5px; }
table.t th, table.t td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
table.t th { background: var(--blue); color: #fff; font-weight: 600; white-space: nowrap; }
table.t tr:nth-child(even) td { background: #fafbfd; }
.price { font-size: 22px; font-weight: 800; color: var(--red); }

/* 页脚 */
footer.site { background: var(--blue); color: rgba(255,255,255,.8); margin-top: 40px; }
footer.site .inner { max-width: 1120px; margin: 0 auto; padding: 28px 20px; font-size: 13.5px; }
footer.site a { color: rgba(255,255,255,.85); }
footer.site .links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }

/* 响应式 */
@media (max-width: 1024px) {
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  header.site .inner { height: auto; flex-direction: column; padding: 10px 16px; gap: 8px; }
  nav.main { justify-content: center; }
  nav.main a { padding: 6px 10px; font-size: 14px; }
  main { padding: 20px 16px 40px; }
  .hero { padding: 32px 22px; }
  .hero h1 { font-size: 24px; }
  .g3, .g2, .fgrid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .card, form.step, .report-head { padding: 18px; }
  table.t { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media print {
  header.site, footer.site, .no-print { display: none !important; }
  body { background: #fff; }
  .card, .item, .report-head { border-color: #ccc; }
}
