:root {
  --ink: #17212b;
  --muted: #5f6f7d;
  --line: #d8e2ea;
  --soft: #f5f8fb;
  --panel: #ffffff;
  --brand: #0f766e;
  --brand-dark: #0b5f59;
  --gold: #a87524;
  --blue: #2457bd;
  --rose: #a63a48;
  --shadow: 0 18px 42px rgba(22, 33, 43, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.72;
}
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
code { padding: 2px 5px; border-radius: 4px; background: #eef3f7; font-family: Consolas, "Courier New", monospace; }
pre { margin: 14px 0; overflow: auto; padding: 18px; border-radius: 8px; background: #101827; color: #e5edf5; font-size: 14px; line-height: 1.55; }
pre code { padding: 0; background: transparent; color: inherit; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
th, td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--soft); color: #23313f; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 14px; font-size: 14px; }
.nav a { color: #26323d; font-weight: 700; }
.lang { display: inline-flex; gap: 8px; padding-left: 10px; border-left: 1px solid var(--line); }
.lang a[aria-current="page"] { color: var(--brand); text-decoration: underline; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  text-align: center;
}
.button:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }
.button.light { border-color: rgba(255,255,255,.84); background: rgba(255,255,255,.94); color: var(--ink); }
.button.light:hover { background: #fff; color: var(--ink); }
.button.secondary { background: #fff; color: var(--brand-dark); }
.button.secondary:hover { background: #e7f5f2; color: var(--brand-dark); }

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 72vh;
  padding: clamp(72px, 10vh, 118px) clamp(20px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 21, 32, .92), rgba(8, 21, 32, .64) 48%, rgba(8, 21, 32, .18)),
    url("/assets/accounting/accounting-hero.jpg") center / cover no-repeat;
}
.hero-content { width: min(790px, 100%); }
.eyebrow { margin: 0 0 12px; color: #d8f1ef; font-size: 14px; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 12ch; margin-bottom: 18px; font-size: clamp(42px, 6vw, 74px); line-height: 1.06; font-weight: 900; }
.lead { max-width: 730px; margin-bottom: 26px; color: rgba(255,255,255,.92); font-size: clamp(18px, 2.4vw, 23px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: #fff; }
.proof-item { min-height: 92px; padding: 18px clamp(18px, 3vw, 34px); border-right: 1px solid var(--line); }
.proof-item:last-child { border-right: 0; }
.proof strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 18px; }
.proof span { color: var(--muted); font-size: 14px; }

.section { padding: clamp(58px, 8vw, 96px) clamp(20px, 5vw, 72px); }
.section.soft { background: var(--soft); }
.inner { width: min(1180px, 100%); margin: 0 auto; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.section-head h2 { max-width: 670px; margin-bottom: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.18; }
.section-head p { max-width: 490px; margin-bottom: 0; color: var(--muted); font-size: 16px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 12px 30px rgba(22, 33, 43, .07); }
.feature-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #e8edf2; }
.feature-body { padding: 18px 18px 20px; }
.feature-body h3 { margin-bottom: 8px; font-size: 21px; line-height: 1.32; }
.feature-body p { margin-bottom: 0; color: var(--muted); font-size: 15px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border-radius: 999px; background: #eef6f5; color: #0d5e58; font-size: 12px; font-weight: 800; }
.tag.gold { background: #fbf2df; color: #815d1f; }
.tag.blue { background: #eaf1ff; color: #1e4fa8; }
.tag.rose { background: #fae9ec; color: #89313b; }

.workflow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { min-height: 188px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 18px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 14px; font-weight: 900; }
.step h3 { margin-bottom: 8px; font-size: 19px; }
.step p { margin-bottom: 0; color: var(--muted); font-size: 15px; }

.integration { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: clamp(28px, 5vw, 58px); align-items: center; }
.integration img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow); }
.integration h2 { margin-bottom: 15px; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; }
.integration p { color: var(--muted); font-size: 16px; }
.api-list { display: grid; gap: 12px; margin: 24px 0; padding: 0; list-style: none; }
.api-list li { padding-left: 18px; border-left: 4px solid var(--gold); color: #344454; font-weight: 700; }

.doc-hero { padding: 72px clamp(18px, 5vw, 64px) 36px; background: linear-gradient(180deg, #ecf8f6 0%, #fff 86%); border-bottom: 1px solid var(--line); }
.doc-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 44px; align-items: center; }
.doc-main { max-width: 1120px; margin: 0 auto; padding: 42px clamp(18px, 5vw, 64px) 72px; }
.doc-section { padding: 30px 0; border-bottom: 1px solid var(--line); }
.doc-section:last-child { border-bottom: 0; }
.facts { display: grid; gap: 12px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 18px 50px rgba(22, 32, 42, .08); }
.fact { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.fact:last-child { padding-bottom: 0; border-bottom: 0; }
.fact span { color: var(--muted); }
.fact strong { overflow-wrap: anywhere; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.mini-card { padding: 18px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; }
.mini-card strong { display: block; margin-bottom: 6px; }
.notice { padding: 16px 18px; border-left: 4px solid var(--gold); background: #fff8eb; border-radius: 6px; }

.cta { padding: clamp(48px, 7vw, 78px) clamp(20px, 5vw, 72px); background: #15202b; color: #fff; }
.cta .inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { margin-bottom: 8px; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.22; }
.cta p { max-width: 720px; margin-bottom: 0; color: rgba(255,255,255,.78); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
footer { padding: 24px clamp(20px, 5vw, 72px); border-top: 1px solid #2c3844; background: #15202b; color: rgba(255,255,255,.68); font-size: 14px; }
footer .inner { display: flex; justify-content: space-between; gap: 18px; }
footer a { color: #d8f1ef; }

@media (max-width: 980px) {
  .topbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .nav { justify-content: flex-start; }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-head { align-items: flex-start; flex-direction: column; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .integration, .doc-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .cta .inner { align-items: flex-start; flex-direction: column; }
  .cta-actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .topbar { padding: 12px 16px; }
  .nav { gap: 10px; font-size: 13px; }
  .hero { min-height: 68vh; padding: 62px 18px; background: linear-gradient(90deg, rgba(8,21,32,.92), rgba(8,21,32,.62)), url("/assets/accounting/accounting-hero.jpg") center / cover no-repeat; }
  .hero-actions .button, .nav .button { width: 100%; }
  .proof, .feature-grid, .workflow { grid-template-columns: 1fr; }
  .proof-item, .proof-item:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-item:last-child { border-bottom: 0; }
  .section { padding: 48px 18px; }
  .feature-body { padding: 16px; }
  footer .inner { flex-direction: column; }
}
