:root {
  --background: #fafaf9;
  --surface: #f5f5f4;
  --surface-raised: #ffffff;
  --text: #292524;
  --text-muted: #78716c;
  --primary: #f97316;
  --primary-dark: #ea580c;
  --border: #e7e5e4;
  --success: #22c55e;
  --info: #3b82f6;
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.07), transparent 32rem),
    var(--background);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.7;
}
a { color: inherit; }
.container { width: min(calc(100% - 40px), var(--max-width)); margin-inline: auto; }
.skip-link { position: absolute; top: -60px; left: 16px; padding: 8px 12px; background: var(--text); color: white; z-index: 10; }
.skip-link:focus { top: 12px; }

.lang-suggest { background: var(--text); color: white; }
.lang-suggest-inner { min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding-block: 10px; font-size: 0.88rem; }
.lang-suggest-actions { display: flex; gap: 8px; }
.lang-suggest .button { min-height: 32px; padding: 6px 14px; font-size: 0.82rem; }
.lang-suggest .button:not(.button-primary) { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: white; }

header { border-bottom: 1px solid var(--border); background: rgba(250, 250, 249, 0.92); }
nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-size: 1.12rem; font-weight: 800; text-decoration: none; }
.brand span { color: var(--primary-dark); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-muted); font-size: 0.92rem; font-weight: 700; text-decoration: none; }
.nav-links a:hover { color: var(--primary-dark); }

.nav-dropdown { position: relative; }
.nav-dropdown summary { cursor: pointer; list-style: none; color: var(--text-muted); font-size: 0.92rem; font-weight: 700; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after { content: '\25be'; margin-left: 4px; font-size: 0.75em; }
.nav-dropdown:hover summary, .nav-dropdown[open] summary { color: var(--primary-dark); }
.nav-dropdown[open] summary::after { content: '\25b4'; }
.nav-dropdown-menu { position: absolute; top: calc(100% + 12px); left: 0; z-index: 20; min-width: 180px; margin: 0; padding: 8px; list-style: none; background: var(--surface-raised); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08); }
.nav-dropdown-menu li + li { margin-top: 2px; }
.nav-dropdown-menu a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--text); font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.nav-dropdown-menu a:hover { background: var(--surface); color: var(--primary-dark); }
.language-select { max-width: 170px; padding: 9px 30px 9px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-raised); color: var(--text); font: inherit; font-size: 0.86rem; }

.lang-switch { display: flex; align-items: center; gap: 10px; }
.lang-switch a { font-size: 0.86rem; }
.lang-switch a.active { color: var(--primary-dark); font-weight: 800; text-decoration: underline; }

.hero { min-height: 72vh; display: grid; align-items: center; padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 64px; align-items: center; }
.hero-image { display: block; width: 100%; min-width: 0; height: auto; border-radius: 8px; }
.eyebrow { color: var(--primary-dark); font-size: 0.86rem; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.25; margin-top: 0; }
h1 { max-width: 690px; margin-bottom: 24px; font-size: clamp(2.35rem, 5vw, 4.6rem); }
h2 { margin-bottom: 16px; font-size: clamp(1.75rem, 3vw, 2.65rem); }
h3 { margin-bottom: 8px; font-size: 1.08rem; }
.lead { max-width: 650px; margin: 0 0 30px; color: var(--text-muted); font-size: 1.15rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 20px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-raised); font-weight: 800; text-decoration: none; }
.button-primary { border-color: var(--primary); background: var(--primary); color: white; }
.button-primary:hover { background: var(--primary-dark); }

.image-placeholder { min-height: 390px; display: grid; place-items: center; padding: 32px; border: 2px dashed #d6d3d1; border-radius: 8px; background: var(--surface); color: var(--text-muted); text-align: center; }
.image-placeholder strong { display: block; margin-bottom: 8px; color: var(--text); }
.image-placeholder small { display: block; margin-top: 12px; }

section { padding: 80px 0; }
.section-intro { max-width: 680px; margin-bottom: 36px; color: var(--text-muted); }
.uses { background: var(--surface-raised); border-block: 1px solid var(--border); }
.use-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--border); }
.use-grid > a { text-decoration: none; }
.use-item { min-height: 172px; padding: 24px 20px; background: var(--surface-raised); }
.use-number { display: block; margin-bottom: 22px; color: var(--primary-dark); font-size: 0.8rem; font-weight: 800; }
.use-item p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

.features-block { margin-top: 48px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.feature-item { padding: 22px 20px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.feature-item h4 { margin: 0 0 8px; font-size: 1rem; }
.feature-item p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

.saving-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.price-comparison { overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-raised); }
.price-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 19px 22px; border-bottom: 1px solid var(--border); }
.price-row:last-child { border: 0; }
.price-row span { color: var(--text-muted); }
.price-row strong { white-space: nowrap; }
.price-row.highlight { background: #fff7ed; color: var(--primary-dark); }
.price-row.highlight span { color: var(--primary-dark); font-weight: 800; }
.saving { margin-top: 24px; padding-left: 20px; border-left: 4px solid var(--success); }
.saving strong { display: block; font-size: 2rem; line-height: 1.25; }
.fine-print { color: var(--text-muted); font-size: 0.82rem; }

.benefits { background: var(--text); color: white; }
.benefits .section-intro { color: #d6d3d1; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.benefit { padding-top: 20px; border-top: 3px solid var(--primary); }
.benefit p { margin-bottom: 0; color: #d6d3d1; }

.setup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.steps { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; margin-bottom: 24px; padding-left: 52px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: white; font-weight: 800; }

.faq-list { display: grid; gap: 12px; max-width: 780px; }
.faq-item { padding: 18px 22px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-raised); }
.faq-item summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--primary-dark); font-weight: 800; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin: 12px 0 0; color: var(--text-muted); }

footer { padding: 30px 0; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.86rem; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; }

/* 文章內容頁 (SEO articles)，沿用上方版面元件與 CSS 變數 */
.article-header { padding: 56px 0 32px; border-bottom: 1px solid var(--border); background: var(--surface); }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; color: var(--text-muted); font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.back-link:hover { color: var(--primary-dark); }
.article-body { padding: 56px 0; }
.article-body h2 { margin-top: 48px; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { margin: 0 0 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body li::marker { color: var(--primary-dark); font-weight: 700; }
.article-table { width: 100%; margin: 24px 0 32px; border-collapse: collapse; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; font-size: 0.92rem; }
.article-table th, .article-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.article-table th { background: var(--surface); font-weight: 800; }
.article-table tr:last-child td { border-bottom: 0; }
.article-highlight { margin: 32px 0; padding: 20px 24px; border-left: 4px solid var(--success); border-radius: 4px; background: var(--surface-raised); }
.article-highlight strong { display: block; margin-bottom: 4px; font-size: 1.2rem; color: var(--primary-dark); }
.article-highlight p { margin: 0; color: var(--text-muted); }
.article-cta { margin-top: 48px; padding: 32px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); text-align: center; }
.article-cta p { margin: 0 0 20px; }

@media (max-width: 900px) {
  .hero-grid, .saving-layout, .setup-grid { grid-template-columns: 1fr; gap: 40px; }
  .use-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .image-placeholder { min-height: 300px; }
}
@media (max-width: 620px) {
  .article-table { font-size: 0.84rem; }
  .article-table th, .article-table td { padding: 10px; }
}
@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--max-width)); }
  .nav-links a { display: none; }
  .nav-dropdown { display: none; }
  section { padding: 60px 0; }
  .hero { padding-top: 54px; }
  .use-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .price-row { grid-template-columns: 1fr; }
  .button { width: 100%; }
}
