/* 東保企業有限公司 siusan.com */
:root {
  --green-900: #12352a;
  --green-800: #1b4a37;
  --green-700: #245e46;
  --green-600: #2f7558;
  --green-100: #dcebe2;
  --green-50: #eef5f0;
  --sand: #f7f3ea;
  --sand-200: #ece4d2;
  --amber: #c9701c;
  --amber-700: #a85a12;
  --line-green: #06c755;
  --ink: #1c2420;
  --muted: #56625c;
  --border: #dbe3dd;
  --white: #fff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(18, 53, 42, .06), 0 8px 24px rgba(18, 53, 42, .07);
  --wrap: 1160px;
  --font: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.8; font-size: 17px; letter-spacing: .02em; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--amber-700); }
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .6em; color: var(--green-900); letter-spacing: .03em; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.7rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: var(--white); padding: 8px 14px; z-index: 100; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Top bar & header */
.topbar { background: var(--green-900); color: #cfe0d6; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.topbar a { color: #fff; text-decoration: none; margin-left: 18px; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-900); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.12rem; letter-spacing: .06em; }
.brand-text small { color: var(--muted); font-size: .72rem; letter-spacing: .05em; }
.site-nav { display: flex; align-items: center; gap: 12px; }
.site-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.site-nav li { position: relative; }
.site-nav > ul > li > a { display: block; padding: 10px 11px; color: var(--ink); text-decoration: none; font-size: .95rem; border-radius: 8px; }
.site-nav > ul > li > a:hover, .site-nav li.is-active > a { color: var(--green-700); background: var(--green-50); }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; }
.sub a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .93rem; }
.sub a:hover { background: var(--green-50); color: var(--green-700); }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub-toggle { display: none; }
.nav-toggle { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; font-size: .97rem; line-height: 1.3; transition: .15s ease; cursor: pointer; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-accent { background: var(--amber); color: #fff; }
.btn-accent:hover { background: var(--amber-700); color: #fff; }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-900); color: #fff; }
.btn-line { background: var(--line-green); color: #fff; }
.btn-line:hover { background: #05a647; color: #fff; }
.btn-ghost { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn-ghost:hover { background: var(--green-700); color: #fff; }

/* Hero (home) */
.hero { background: linear-gradient(160deg, var(--sand) 0%, var(--green-50) 100%); padding: clamp(48px, 7vw, 88px) 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 117, 88, .12), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 56px); align-items: center; position: relative; z-index: 1; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--green-700); background: var(--white); border: 1px solid var(--green-100); padding: 4px 14px; border-radius: 999px; margin-bottom: 18px; letter-spacing: .08em; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); }
.hero h1 em { font-style: normal; color: var(--amber-700); }
.nw { display: inline-block; }
.hero-lead { font-size: 1.1rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; color: var(--green-800); font-size: .93rem; }
.hero-facts li::before { content: "✓"; margin-right: 6px; color: var(--green-600); font-weight: 700; }
.diagnose { background: var(--white); border-radius: 20px; box-shadow: var(--shadow); padding: 26px; border: 1px solid var(--border); }
.diagnose h2 { font-size: 1.2rem; margin-bottom: 4px; }
.diagnose > p { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.diagnose ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.diagnose a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-radius: 12px; background: var(--sand); text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.diagnose a:hover { border-color: var(--green-600); background: var(--green-50); }
.diagnose .sign { font-size: .93rem; }
.diagnose .pest { grid-row: span 2; align-self: center; font-weight: 700; color: var(--green-700); font-size: .9rem; white-space: nowrap; }
.diagnose .pest::after { content: " →"; }

/* Page hero */
.page-hero { background: linear-gradient(160deg, var(--sand), var(--green-50)); padding: 28px 0 44px; border-bottom: 1px solid var(--border); }
.page-hero h1 { margin-top: 10px; max-width: 24em; }
.page-lead { font-size: 1.08rem; color: var(--muted); max-width: 44em; margin: 0; }
.byline { margin: 14px 0 0; color: var(--muted); font-size: .9rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0; font-size: .85rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 4px; color: #a6b2ab; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--green-700); }

/* Sections */
.section { padding: clamp(52px, 7vw, 88px) 0; }
.section-alt { background: var(--sand); }
.section-green { background: var(--green-50); }
.section-head { max-width: 46em; margin-bottom: 36px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.04rem; }
.kicker { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .14em; color: var(--amber-700); margin-bottom: 8px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: .18s ease; }
.card-link:hover { border-color: var(--green-600); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.card-link p { color: var(--muted); font-size: .95rem; flex: 1; }
.card-link .more { color: var(--green-700); font-weight: 600; font-size: .93rem; margin-top: 10px; }
.card-link .more::after { content: " →"; }
.icon { width: 52px; height: 52px; border-radius: 14px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 28px; height: 28px; }
.tag { display: inline-block; align-self: flex-start; font-size: .78rem; font-weight: 600; color: var(--green-700); background: var(--green-50); padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; }

.track { border-radius: 20px; padding: 32px; }
.track-home { background: var(--white); border: 1px solid var(--border); }
.track-biz { background: var(--green-800); color: #e3eee7; }
.track-biz h3, .track-biz h2 { color: #fff; }
.track ul { padding-left: 1.1em; }
.track-biz a.btn-ghost { border-color: #fff; color: #fff; }
.track-biz a.btn-ghost:hover { background: #fff; color: var(--green-800); }

.principles { counter-reset: p; }
.principle { position: relative; padding-left: 64px; }
.principle::before { counter-increment: p; content: counter(p, decimal-leading-zero); position: absolute; left: 0; top: 0; font-size: 2rem; font-weight: 800; color: var(--green-100); line-height: 1; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 18px; position: relative; }
.steps li::before { counter-increment: s; content: "STEP " counter(s); display: block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: var(--amber-700); margin-bottom: 6px; }
.steps h3 { font-size: 1.05rem; }
.steps p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Prose */
.layout-2col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.8em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--green-50); color: var(--green-900); white-space: nowrap; }
.callout { background: var(--sand); border-left: 4px solid var(--amber); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 20px; margin: 1.4em 0; }
.callout p:last-child { margin: 0; }
.callout-green { background: var(--green-50); border-color: var(--green-600); }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--green-600); }
.checklist li::after { content: ""; position: absolute; left: 6px; top: .62em; width: 6px; height: 10px; border: solid var(--green-600); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.toc { background: var(--green-50); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 2em; }
.toc strong { display: block; margin-bottom: 6px; color: var(--green-900); }
.toc ol { margin: 0; }

.sidebar { position: sticky; top: 96px; display: grid; gap: 18px; }
.side-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.side-card h2, .side-card h3 { font-size: 1.05rem; }
.side-card ul { list-style: none; padding: 0; margin: 0; }
.side-card li a { display: block; padding: 7px 0; border-bottom: 1px dashed var(--border); text-decoration: none; font-size: .95rem; }
.side-card li:last-child a { border: 0; }
.side-cta { background: var(--green-800); color: #dfece4; border: 0; }
.side-cta h3 { color: #fff; }
.side-cta .btn { width: 100%; margin-top: 8px; }

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 52em; }
details.faq { background: var(--white); border: 1px solid var(--border); border-radius: 12px; }
details.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 600; color: var(--green-900); position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--green-600); font-weight: 400; }
details.faq[open] summary::after { content: "−"; }
details.faq > div { padding: 0 20px 16px; color: var(--muted); }
details.faq > div p:last-child { margin: 0; }

/* Areas / contact */
.area-card .districts { font-size: .9rem; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-method { text-align: center; }
.contact-method .big { font-size: 1.4rem; font-weight: 700; color: var(--green-800); display: block; margin: 6px 0 12px; text-decoration: none; word-break: break-all; }
.branch-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .95rem; }
.branch-card dt { color: var(--muted); }
.branch-card dd { margin: 0; }

/* CTA band & footer */
.cta-band { background: var(--green-800); color: #dcebe2; padding: 48px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.site-footer { background: var(--green-900); color: #a9c1b4; font-size: .92rem; padding: 56px 0 0; }
.site-footer a { color: #dcebe2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 36px; padding-bottom: 40px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.branches li strong { display: block; color: #fff; font-weight: 600; }
.branches { gap: 12px !important; }
.brand-light { color: #fff; margin-bottom: 12px; }
.footer-contact a { font-size: 1.05rem; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 18px 0; font-size: .85rem; }
.copyright p { margin: 0; }
.legal a { margin-left: 18px; }
.legal a:first-child { margin-left: 0; }
.mobile-bar { display: none; }

/* Responsive */
@media (max-width: 1080px) {
  .nav-toggle { display: block; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; background: var(--white); position: relative; cursor: pointer; }
  .nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--green-900); content: ""; transition: .2s; }
  .nav-toggle span:first-child { top: 21px; }
  .nav-toggle span:first-child::before { left: 0; top: -6px; }
  .nav-toggle span:first-child::after { left: 0; top: 6px; }
  .nav-open .nav-toggle span:first-child { background: transparent; }
  .nav-open .nav-toggle span:first-child::before { top: 0; transform: rotate(45deg); }
  .nav-open .nav-toggle span:first-child::after { top: 0; transform: rotate(-45deg); }
  .site-nav { position: fixed; inset: 0 0 0 auto; top: 0; width: min(86vw, 360px); background: var(--white); flex-direction: column; align-items: stretch; padding: 84px 20px 24px; box-shadow: -10px 0 30px rgba(0, 0, 0, .12); transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; z-index: -1; }
  .nav-open .site-nav { transform: none; }
  .site-nav > ul { flex-direction: column; }
  .site-nav > ul > li > a { padding: 12px 10px; font-size: 1.02rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px 12px; display: none; }
  .has-sub.sub-open .sub { display: block; }
  .sub-toggle { display: block; position: absolute; right: 0; top: 4px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
  .sub-toggle::after { content: ""; position: absolute; left: 17px; top: 15px; width: 8px; height: 8px; border: solid var(--green-700); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: .2s; }
  .has-sub.sub-open .sub-toggle::after { transform: rotate(-135deg); top: 19px; }
  .nav-cta { margin-top: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .layout-2col { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 820px) {
  body { font-size: 16px; padding-bottom: 60px; }
  .topbar { display: none; }
  .hero-grid, .grid-2, .grid-3, .grid-4, .contact-grid { grid-template-columns: 1fr; }
  .grid-4.keep-2 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .header-inner { min-height: 62px; }
  .brand-text small { display: none; }
  .track { padding: 24px; }
  .principle { padding-left: 52px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -4px 16px rgba(0, 0, 0, .1); }
  .mobile-bar a { text-align: center; padding: 16px 8px; font-weight: 700; color: #fff; background: var(--amber); text-decoration: none; }
  .mobile-bar a.is-line { background: var(--line-green); }
  .cta-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .site-header, .cta-band, .mobile-bar, .sidebar { display: none !important; } }
