:root {
  --brand: #0d5c4d;
  --brand-accent: #1a9b84;
  --brand-deep: #0a3d34;
  --bg: #f0faf7;
  --bg-2: #dceee9;
  --surface: #ffffff;
  --text: #0a3d34;
  --muted: #4a7a70;
  --border: #b8ddd4;
  --danger: #b42318;
  --radius: 10px;
  --font: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 960px;
  --max-wide: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(165deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100vh;
  line-height: 1.6;
}
a { color: var(--brand); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: var(--max-wide); }
.site-header {
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}
.nav { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; justify-content: flex-end; }
.nav a { margin-left: 0.75rem; text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.nav a:hover { color: var(--brand); }
.nav-cta {
  margin-left: 1rem !important;
  background: var(--brand);
  color: #fff !important;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--brand-deep); color: #fff !important; }
.hero { text-align: center; padding: 48px 0 28px; }
.hero h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  margin: 0 0 8px;
  color: var(--brand-deep);
}
.hero .slogan { font-size: 1.15rem; color: var(--brand); font-weight: 600; margin: 0 0 8px; }
.hero .lead { color: var(--muted); margin: 0; }
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 24px 0 40px;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(13,92,77,0.12); border-color: var(--brand-accent); }
.tool-card h2, .tool-card h3 { font-size: 1rem; margin: 8px 0 4px; color: var(--brand); }
.tool-card p { margin: 0; font-size: 0.85rem; color: var(--muted); }
.tool-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(26, 155, 132, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.tool-icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--brand);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tool-card:hover .tool-icon {
  background: rgba(26, 155, 132, 0.2);
}
.tool-card:hover .tool-icon svg {
  stroke: var(--brand-deep, #0a4a3e);
}
.intro { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 40px; }

/* —— 首页（FeHelper 式信息架构） —— */
.page-home { background: var(--bg); }
.hero-plane {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 10vw, 88px) 0 clamp(40px, 6vw, 64px);
  text-align: center;
}
.hero-plane__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(26,155,132,0.28), transparent 55%),
    linear-gradient(165deg, #e8f7f2 0%, var(--bg) 45%, #d4ebe4 100%);
  animation: hero-shift 12s ease-in-out infinite alternate;
}
@keyframes hero-shift {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}
.hero-plane__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero-kicker {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--brand);
  font-weight: 600;
  opacity: 0;
  animation: fade-up 0.6s ease forwards;
}
.hero-plane h1 {
  font-size: clamp(2.4rem, 8vw, 3.5rem);
  margin: 0 0 10px;
  color: var(--brand-deep);
  letter-spacing: 0.04em;
  opacity: 0;
  animation: fade-up 0.65s ease 0.08s forwards;
}
.hero-plane .slogan {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  color: var(--brand);
  font-weight: 700;
  margin: 0 0 12px;
  opacity: 0;
  animation: fade-up 0.65s ease 0.16s forwards;
}
.hero-plane .lead {
  color: var(--muted);
  margin: 0 auto 24px;
  max-width: 34em;
  font-size: 1.02rem;
  opacity: 0;
  animation: fade-up 0.65s ease 0.24s forwards;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  opacity: 0;
  animation: fade-up 0.65s ease 0.32s forwards;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.btn-lg { padding: 12px 22px; margin-top: 0 !important; font-weight: 600; }
.btn-ghost {
  background: rgba(255,255,255,0.75);
  color: var(--brand-deep);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: #fff; border-color: var(--brand-accent); }
.section { padding: clamp(40px, 7vw, 72px) 0; }
.section-head { max-width: 640px; margin: 0 0 28px; }
.section-label {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-accent);
  text-transform: uppercase;
}
.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: var(--brand-deep);
  line-height: 1.35;
}
.section-desc { margin: 0; color: var(--muted); }
.tools-section { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.55) 20%, rgba(255,255,255,0.55) 80%, transparent); }
.tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.tool-tab {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.tool-tab:hover { border-color: var(--brand-accent); color: var(--brand); }
.tool-tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.tool-grid-home {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 0;
}
.tool-card-lg {
  display: flex;
  flex-direction: column;
  min-height: 180px;
  padding: 20px;
  position: relative;
}
.tool-card-lg .tool-icon { margin-top: 2px; }
.tool-card-lg h3 { font-size: 1.1rem; margin: 12px 0 8px; }
.tool-card-lg p { flex: 1; }
.tool-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand);
  background: rgba(26,155,132,0.12);
  padding: 3px 8px;
  border-radius: 6px;
}
.tool-go {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-accent);
}
.value-section { background: var(--brand-deep); color: #e8f7f2; }
.value-section .section-label { color: var(--brand-accent); }
.value-section .section-head h2 { color: #fff; }
.value-section .section-desc { color: rgba(232,247,242,0.75); }
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.value-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(184,221,212,0.25);
  border-radius: var(--radius);
  padding: 20px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.value-item:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.value-item h3 { margin: 0 0 8px; font-size: 1.05rem; color: #fff; }
.value-item p { margin: 0; color: rgba(232,247,242,0.78); font-size: 0.95rem; }
.intro-panel {
  display: grid;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 36px);
}
@media (min-width: 800px) {
  .intro-panel { grid-template-columns: 1.4fr 1fr; align-items: center; }
}
.intro-panel__text h2 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: var(--brand-deep);
}
.intro-panel__text p:last-child { margin: 0; color: var(--muted); }
.intro-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.intro-stats li {
  background: var(--bg);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.intro-stats strong {
  font-size: 1.5rem;
  color: var(--brand);
  line-height: 1.2;
}
.intro-stats span { font-size: 0.85rem; color: var(--muted); }
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.article-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(13,92,77,0.1);
  border-color: var(--brand-accent);
}
.article-card__tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-accent);
}
.article-card h3 {
  margin: 8px 0;
  font-size: 1rem;
  color: var(--brand-deep);
  line-height: 1.4;
}
.article-card p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.site-footer-home { background: #fff; margin-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(160px, 1.1fr) minmax(280px, 2fr) minmax(120px, 0.9fr);
  gap: 24px 32px;
  padding-bottom: 24px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.footer-brand strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  color: var(--brand);
  margin-bottom: 8px;
}
.footer-brand strong img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.footer-brand p { margin: 0; font-size: 0.9rem; }
.footer-title {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--brand-deep);
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin-bottom: 6px; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--brand); }
.footer-links--tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 20px;
}
.footer-links--tools li { margin-bottom: 0; }
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-links--tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .nav a:not(.nav-cta) { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .footer-links--tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.site-footer { border-top: 1px solid var(--border); padding: 24px 0 40px; color: var(--muted); font-size: 0.85rem; }
.disclaimer { margin-bottom: 8px; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin: 16px 0; }
.breadcrumb a { text-decoration: none; }
.calc-layout { display: grid; gap: 20px; margin-bottom: 32px; }
@media (min-width: 768px) {
  .calc-layout { grid-template-columns: 1fr 1fr; align-items: start; }
}
.calc-form, .calc-result {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.calc-form label { display: block; font-size: 0.9rem; margin: 12px 0 4px; }
.check-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 4px;
}
.calc-form label.check-card,
.check-card {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}
.check-card:hover {
  border-color: var(--brand-accent);
  background: rgba(26, 155, 132, 0.05);
}
.check-card:has(input:checked),
.check-card.is-on {
  border-color: var(--brand);
  background: linear-gradient(90deg, rgba(26, 155, 132, 0.14), rgba(26, 155, 132, 0.05));
  box-shadow: inset 3px 0 0 var(--brand);
}
.check-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.check-card__box {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 2px solid #9bbfb6;
  border-radius: 6px;
  background: #fff;
  position: relative;
  align-self: center;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.check-card:has(input:checked) .check-card__box,
.check-card.is-on .check-card__box {
  border-color: var(--brand);
  background: var(--brand);
}
.check-card:has(input:checked) .check-card__box::after,
.check-card.is-on .check-card__box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check-card__text {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.35;
}
.check-card__text strong {
  display: inline;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--brand-deep);
  font-style: normal;
  white-space: nowrap;
}
.check-card__text em {
  display: inline;
  font-size: 0.8rem;
  font-style: normal;
  color: var(--muted);
  line-height: 1.35;
}
.calc-form input, .calc-form select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 1rem; font-family: inherit;
}
.radio-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.calc-form .radio-row label,
.radio-row label {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 10px 12px;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.radio-row label:last-child { border-right: none; }
.radio-row input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.radio-row label:has(input:checked),
.radio-row label.is-checked {
  background: rgba(26, 155, 132, 0.14);
  color: var(--brand-deep);
  font-weight: 600;
}
.radio-row label:hover {
  background: rgba(26, 155, 132, 0.08);
  color: var(--brand);
}
.method-tip {
  margin-top: 10px;
  padding: 12px 14px;
  background: rgba(26, 155, 132, 0.08);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}
.method-tip__title {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-deep);
}
.method-tip p { margin: 0 0 6px; }
.method-tip ul {
  margin: 0;
  padding-left: 1.1em;
}
.method-tip li { margin-bottom: 2px; }
.method-tip strong { color: var(--brand-deep); font-weight: 600; }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.btn-row .btn { margin-top: 0; }
.btn-row .btn-ghost {
  background: var(--surface);
  color: var(--brand-deep);
  border: 1px solid var(--border);
}
.btn-row .btn-ghost:hover {
  border-color: var(--brand-accent);
  background: rgba(26, 155, 132, 0.08);
}
.compare-table-wrap {
  overflow-x: visible;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  width: 100%;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  table-layout: fixed;
}
.compare-table th,
.compare-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}
.compare-table th {
  background: rgba(26, 155, 132, 0.1);
  color: var(--brand-deep);
  font-weight: 700;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-table tbody tr:hover td {
  background: rgba(26, 155, 132, 0.04);
}
.compare-table td:first-child,
.compare-table th:first-child {
  font-weight: 600;
  color: var(--brand-deep);
  width: 18%;
}
.compare-table th:nth-child(2),
.compare-table th:nth-child(3),
.compare-table td:nth-child(2),
.compare-table td:nth-child(3) {
  width: 27%;
}
.compare-table th:nth-child(4),
.compare-table td:nth-child(4) {
  width: 28%;
}
@media (max-width: 640px) {
  .compare-table {
    font-size: 0.75rem;
  }
  .compare-table th,
  .compare-table td {
    padding: 8px 6px;
    line-height: 1.35;
  }
  .compare-table .hint {
    font-size: 0.68rem;
  }
  .compare-table td:first-child,
  .compare-table th:first-child {
    width: 16%;
  }
}
.btn {
  display: inline-block; border: none; cursor: pointer;
  padding: 10px 18px; border-radius: 8px; font-size: 1rem; font-family: inherit;
  text-decoration: none;
}
.btn-primary { background: var(--brand); color: #fff; margin-top: 16px; }
.btn-primary:hover { background: var(--brand-deep); }
.result-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.result-item strong { color: var(--brand-deep); font-size: 1.1rem; }
.result-item--tax {
  align-items: flex-start;
}
.result-item--tax span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 12px;
}
.result-note {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.35;
}
.tax-tips {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(26, 155, 132, 0.08);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}
.tax-tips ul {
  margin: 0;
  padding-left: 1.1em;
}
.tax-tips li { margin-bottom: 6px; }
.tax-tips li:last-child { margin-bottom: 0; }
.tax-tips strong { color: var(--brand-deep); font-weight: 600; }
.deep-link { margin: 16px 0 32px; }
.article-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; margin-bottom: 24px; }
.article-body h2 { color: var(--brand-deep); font-size: 1.25rem; margin-top: 1.6em; }
.article-body p { margin: 0.8em 0; }
.cta-box { text-align: center; margin: 28px 0 8px; }
details.schedule { margin-top: 12px; }
details.schedule table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
details.schedule th, details.schedule td { border-bottom: 1px solid var(--border); padding: 6px 4px; text-align: right; }
details.schedule th:first-child, details.schedule td:first-child { text-align: left; }
.hint { font-size: 0.85rem; color: var(--muted); }
.error { color: var(--danger); font-size: 0.9rem; margin-top: 8px; }
