:root {
  color-scheme: light dark;
  --ink: #121212; --paper: #f2f0eb; --cream: #f6f5f1; --card: #ffffff;
  --muted: #615e54; --faint: #8b877c; --line: #d8d3c8;
  --accent: #ff7a1a; --accent-soft: #fff0e5; --success: #557d3f; --danger: #b53d3d;
  font-family: Inter, "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f2f0ea; --paper: #101012; --cream: #232224; --card: #1c1c1e;
    --muted: #b7b0a3; --faint: #9c968a; --line: #3a3830; --accent-soft: #38291f;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.7; }
a { color: var(--ink); text-underline-offset: 3px; }
button, input, select { font: inherit; }
button, a, input, select { min-height: 44px; }
.shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.shell-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 94%, transparent); }
.shell-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 56px; }
.brand { color: var(--ink); font-size: 1rem; font-weight: 600; letter-spacing: .03em; text-decoration: none; }
.brand-mark { display: none; }
.shell-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.shell-nav a { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 7px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.shell-nav a:hover, .shell-nav a:focus-visible { background: var(--accent-soft); color: var(--ink); }
.shell-nav .nav-primary { color: var(--ink); border-bottom: 2px solid var(--accent); border-radius: 0; }
.line-link { color: var(--muted) !important; font-size: .9rem; }
.shell-nav .btn { min-height: 44px; padding: 4px 9px; border-color: transparent; background: transparent; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: 48px; align-items: end; padding: clamp(56px, 9vw, 108px) 0 70px; }
.hero h1 { max-width: 720px; margin: 0; font-size: clamp(2.2rem, 6vw, 4.8rem); font-weight: 600; line-height: 1.08; letter-spacing: -.055em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-lead { max-width: 650px; margin: 24px 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); }
.hero-aside { padding-left: 24px; border-left: 1px solid var(--line); color: var(--muted); }
.hero-aside strong { display: block; margin-bottom: 8px; color: var(--ink); font-size: 1.1rem; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); text-decoration: none; cursor: pointer; }
.btn:hover, .btn:focus-visible { border-color: var(--accent); }
.btn-primary { border-color: var(--accent); background: var(--accent); color: #121212; font-weight: 600; }
.btn-primary:hover, .btn-primary:focus-visible { background: #ff9145; }
.btn-muted { color: var(--muted); }
.section { padding: 30px 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; margin-bottom: 18px; }
.section h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 600; line-height: 1.25; }
.section-note, .muted { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.feature h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 600; }
.feature p { margin: 0; color: var(--muted); }
.notice { padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--accent-soft); color: var(--muted); }
.form-card { width: min(560px, 100%); margin: 52px auto; padding: clamp(24px, 5vw, 42px); border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.form-card h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 600; line-height: 1.2; }
.form-card h2 { margin: 30px 0 8px; font-size: 1.05rem; font-weight: 600; }
.form-card p { color: var(--muted); }
input, select { width: 100%; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--faint); font-size: .85rem; }
.divider::before, .divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.status { min-height: 24px; color: var(--muted); }
.status.error { color: var(--danger); }
.status.success { color: var(--success); }
.member-page { padding: 32px 0 56px; }
.member-page .page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.member-page h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 600; line-height: 1.2; }
.member-page .intro { max-width: 720px; margin: 8px 0 0; color: var(--muted); }
.filter-panel { margin-bottom: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.filter-panel summary { padding: 11px 14px; color: var(--muted); cursor: pointer; }
.filter-panel[open] summary { border-bottom: 1px solid var(--line); color: var(--ink); }
.filters { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(130px, .7fr)) auto; gap: 10px; padding: 12px; }
.filters button { padding: 8px 14px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: var(--ink); cursor: pointer; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.card h2 { margin: 0; font-size: 1.18rem; font-weight: 600; line-height: 1.4; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover { color: var(--accent); }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0; color: var(--muted); font-size: .9rem; }
.card-meta span + span::before { margin-right: 12px; color: var(--line); content: "·"; }
.card-type { color: var(--accent); font-weight: 600; }
.card .status { margin-top: auto; font-size: .9rem; }
.locked .status { color: var(--muted); }
.upgrade-link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; }
.upgrade-link:hover { border-color: var(--accent); }
.empty { grid-column: 1 / -1; padding: 32px 18px; border: 1px dashed var(--line); border-radius: 10px; text-align: center; color: var(--muted); }
.pagination { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.pagination a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.shell-footer { margin-top: 56px; padding: 28px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.shell-footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.shell-footer a { color: var(--muted); }
@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 620px); }
  .shell-header-inner { min-height: 56px; gap: 8px; }
  .brand { font-size: .9rem; }
  .shell-nav { justify-content: flex-end; flex-wrap: nowrap; max-width: calc(100% - 112px); overflow-x: auto; }
  .shell-nav .line-link { display: none; }
  .shell-nav a { padding: 5px 7px; font-size: .88rem; }
  .hero { grid-template-columns: 1fr; gap: 26px; padding: 54px 0 46px; }
  .hero h1 { font-size: clamp(2.2rem, 12vw, 3.3rem); }
  .hero-aside { padding: 18px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .feature-grid, .grid { grid-template-columns: 1fr; }
  .section-heading, .member-page .page-heading { display: block; }
  .section-note { display: block; margin-top: 6px; }
  .form-card { margin: 28px auto; padding: 24px 18px; }
  .member-page { padding-top: 24px; }
  .filters { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
.comparison { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table { width: 100%; min-width: 560px; border-collapse: collapse; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--cream); color: var(--muted); font-size: .85rem; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.price-placeholder { color: var(--faint); }
