:root {
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-color: #e2e8f0;
  --primary: #4338ca;
  --primary-hover: #3730a3;
  --primary-text: #ffffff;
  --accent-bg: #f1f5f9;
  --quote-bg: #f8fafc;
  --quote-border: #6366f1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #0b0f19;
    --card-bg: #151d2f;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #27354f;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-text: #ffffff;
    --accent-bg: #1c263c;
    --quote-bg: #101726;
    --quote-border: #818cf8;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: system-ui, -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-color);
  word-break: break-word;
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  width: 100%;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.header-btn:hover {
  background-color: var(--primary);
  color: var(--primary-text);
}

/* Main Content */
main {
  flex: 1 0 auto;
  padding: 32px 0;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 24px 0 40px;
}

.hero h1 {
  font-size: 28px;
  margin: 0 0 12px;
  font-weight: 800;
  line-height: 1.3;
}

.hero .subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0 0 24px;
  line-height: 1.5;
}

.cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-text);
  border: none;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.hero-subtext {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 4px 0 0;
  max-width: 480px;
  line-height: 1.45;
}

/* Sections */
.section {
  margin-top: 48px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.3;
}

.section-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 20px;
}

/* Cards */
.cards-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-main);
}

.card p {
  font-size: 15.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.common-notice {
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--text-muted);
  background-color: var(--accent-bg);
  padding: 14px 16px;
  border-radius: 8px;
  line-height: 1.6;
}

/* Ordered Steps */
.steps-list {
  margin: 0;
  padding: 0 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.steps-list li {
  font-size: 16px;
  line-height: 1.6;
}

/* Pricing */
.pricing-box {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
}

.pricing-badge {
  display: inline-block;
  background-color: var(--accent-bg);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.pricing-table th {
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-table td {
  font-size: 16px;
}

.pricing-table .price {
  font-weight: 700;
  color: var(--primary);
  text-align: right;
  white-space: nowrap;
}

.pricing-note {
  font-size: 14px;
  color: var(--text-muted);
  margin: 14px 0 0;
}

/* Blockquote */
blockquote.sample-excerpt {
  margin: 0;
  padding: 18px 20px;
  background-color: var(--quote-bg);
  border-left: 4px solid var(--quote-border);
  border-radius: 0 8px 8px 0;
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

blockquote.sample-excerpt p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
}

blockquote.sample-excerpt p:last-child {
  margin-bottom: 0;
}

/* FAQ Details */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

details.faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 16px;
}

details.faq-item summary {
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

details.faq-item p {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

details.faq-item a {
  color: var(--primary);
}

/* Legal & Info Pages */
.page-article {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 24px 20px;
}

.page-article h1 {
  font-size: 24px;
  margin: 0 0 16px;
  line-height: 1.3;
}

.page-article .lead-notice {
  background-color: var(--accent-bg);
  color: var(--primary);
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.page-article ul,
.page-article ol {
  padding-left: 20px;
  margin: 0 0 16px;
}

.page-article li {
  margin-bottom: 12px;
  font-size: 15.5px;
  line-height: 1.65;
}

.page-article p {
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0 0 16px;
}

/* Result & Status Pages */
.status-box {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 36px 20px;
  text-align: center;
}

.status-box h1 {
  font-size: 24px;
  margin: 0 0 16px;
}

.status-box p {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 0 28px;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  width: 100%;
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
  padding: 32px 0 24px;
  margin-top: auto;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-nav a {
  font-size: 14.5px;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-disclaimer {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 640px;
  margin: 0;
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
