@media screen {
  :root,
  :root[data-theme="light"] {
    color-scheme: light;
    --bg: #F6F1E8;
    --surface: #FFFDF9;
    --soft: #EFE8DC;
    --brand: #3E4E66;
    --on-brand: #FFFDF9;
    --brand-soft: color-mix(in srgb, var(--brand) 10%, var(--surface));
    --accent: #94703F;
    --accent-soft: #E4EBF3;
    --sun: #C6A06A;
    --sun-soft: #F0E4CC;
    --fg: #2B3442;
    --muted: #5A6372;
    --line: #E3DDD2;
    --control-line: #8C93A0;
    --staff: var(--brand);
    --chair: #4C6585;
    --banqi: #79536A;
    --open: #2D6243;
    --open-bg: #E5EEE3;
    --full: #88502F;
    --full-bg: #F8EADD;
    --wait: #775C1F;
    --wait-bg: #F5EDD6;
    --checked: #345C78;
    --checked-bg: #E6EDF3;
    --redeemed: #6A507E;
    --redeemed-bg: #EEE7F3;
    --ended: #626B61;
    --ended-bg: #ECEEE7;
    --danger: #A03932;
    --danger-bg: #F9E9E4;
    --overlay: #1A2230A6;
    --video: #E3E8EE;
    --qr-ink: #1C2533;
    --qr-paper: #FFFFFF;
    --heading-font: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
    --body-font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    --hand-font: "LXGW WenKai TC", "Noto Serif TC", serif;
    --shadow: 0 1px 2px #3e4e660d, 0 10px 30px -12px #3e4e662e;
    --shadow-raised: 0 3px 8px #3e4e6614, 0 24px 48px -22px #3e4e6647;
    --focus: color-mix(in srgb, var(--brand) 18%, transparent);
    --s-accent-ink: color-mix(in srgb, var(--accent) 78%, var(--fg));
    --s-cta: #86622F;
    --s-cta-fg: #FFFDF7;
    --s-panel: var(--brand);
    --s-panel-fg: var(--on-brand);
    --s-tape-fg: #2B3442;
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      color-scheme: dark;
      --bg: #151A22;
      --surface: #1D2430;
      --soft: #273040;
      --brand: #A9BFD8;
      --on-brand: #151A22;
      --brand-soft: color-mix(in srgb, var(--brand) 12%, var(--surface));
      --accent: #D8B57C;
      --accent-soft: #2A3445;
      --sun: #D8B57C;
      --sun-soft: #3A3326;
      --fg: #ECE8E0;
      --muted: #B4BAC4;
      --line: #3E4757;
      --control-line: #7F8898;
      --staff: var(--brand);
      --chair: #B7C8DC;
      --banqi: #DAB7CB;
      --open: #B5D9B6;
      --open-bg: #2B4130;
      --full: #EDC0A0;
      --full-bg: #45362A;
      --wait: #E8D18F;
      --wait-bg: #3D3927;
      --checked: #B9D9EF;
      --checked-bg: #2A3D4B;
      --redeemed: #D6BFE9;
      --redeemed-bg: #3C3248;
      --ended: #C4CABC;
      --ended-bg: #2E3542;
      --danger: #FFB9AC;
      --danger-bg: #462E2A;
      --overlay: #0A0E14D1;
      --video: #263040;
      --shadow: 0 1px 2px #0003, 0 10px 30px -12px #0008;
      --shadow-raised: 0 3px 8px #0004, 0 24px 48px -22px #000B;
      --s-accent-ink: var(--accent);
      --s-cta: var(--accent);
      --s-cta-fg: #151A22;
      --s-panel: color-mix(in srgb, var(--brand) 22%, var(--bg));
      --s-panel-fg: var(--fg);
    }
  }

  :root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #151A22;
    --surface: #1D2430;
    --soft: #273040;
    --brand: #A9BFD8;
    --on-brand: #151A22;
    --brand-soft: color-mix(in srgb, var(--brand) 12%, var(--surface));
    --accent: #D8B57C;
    --accent-soft: #2A3445;
    --sun: #D8B57C;
    --sun-soft: #3A3326;
    --fg: #ECE8E0;
    --muted: #B4BAC4;
    --line: #3E4757;
    --control-line: #7F8898;
    --staff: var(--brand);
    --chair: #B7C8DC;
    --banqi: #DAB7CB;
    --open: #B5D9B6;
    --open-bg: #2B4130;
    --full: #EDC0A0;
    --full-bg: #45362A;
    --wait: #E8D18F;
    --wait-bg: #3D3927;
    --checked: #B9D9EF;
    --checked-bg: #2A3D4B;
    --redeemed: #D6BFE9;
    --redeemed-bg: #3C3248;
    --ended: #C4CABC;
    --ended-bg: #2E3542;
    --danger: #FFB9AC;
    --danger-bg: #462E2A;
    --overlay: #0A0E14D1;
    --video: #263040;
    --shadow: 0 1px 2px #0003, 0 10px 30px -12px #0008;
    --shadow-raised: 0 3px 8px #0004, 0 24px 48px -22px #000B;
    --s-accent-ink: var(--accent);
    --s-cta: var(--accent);
    --s-cta-fg: #151A22;
    --s-panel: color-mix(in srgb, var(--brand) 22%, var(--bg));
    --s-panel-fg: var(--fg);
  }

  body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--body-font);
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: .015em;
  }

  h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: 700;
  }

  h1 {
    font-size: 30px;
    line-height: 1.4;
    font-weight: 900;
  }

  h2 { line-height: 1.45; }
  h3 { line-height: 1.6; }
  small, .muted { color: var(--muted); }

  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  :is(button, a, input, select, textarea, summary):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  button, a.btn, .button-link {
    border-radius: 10px;
    border-color: var(--line);
    background: var(--surface);
    transition: transform .2s ease, background-color .2s ease,
      border-color .2s ease, box-shadow .2s ease, color .2s ease;
  }

  button.primary, a.btn.primary {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--on-brand);
  }

  button.primary:not(:disabled):hover, a.btn.primary:hover {
    background: var(--brand);
    color: var(--on-brand);
    transform: translateY(-1px);
    box-shadow: var(--shadow-raised);
  }

  button:disabled { transform: none; }

  input:not([type="checkbox"]):not([type="radio"]), select, textarea {
    background: var(--surface);
    color: var(--fg);
    border-color: var(--control-line);
    font-family: var(--body-font);
  }

  input:focus, select:focus, textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--focus);
  }

  .card, .stat, .seatcard, .ai-card, .ai-plan, .m-prod {
    border-color: var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  #topbar { background: var(--surface); }

  .topnav, .tabs {
    width: fit-content;
    max-width: 100%;
    padding: 5px;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 25px;
    background: var(--soft);
  }

  .topnav button, .tabs button, .topnav details.menu > summary {
    border-radius: 20px;
    border: 0;
    background: transparent;
    color: var(--fg);
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
  }

  .topnav button.active, .tabs button.active,
  .topnav details.menu > summary.active {
    background: var(--brand);
    color: var(--on-brand);
    box-shadow: var(--shadow);
  }

  .sidebar {
    border-radius: 14px;
    border-color: var(--line);
    box-shadow: var(--shadow);
  }

  .sidebar button.active {
    background: var(--brand-soft);
    color: var(--fg);
    box-shadow: inset 3px 0 0 var(--accent);
  }

  .stat strong, .livehead .count {
    font-family: var(--heading-font);
    font-weight: 900;
    color: var(--s-accent-ink);
  }

  .stat small { font-size: 13px; }
  table, th, td { font-size: 14px; }
  th { background: var(--soft); color: var(--fg); }
  tbody tr:hover > td { background: var(--brand-soft); }
  .tag, .badge, .tag-q { border-radius: 999px; }

  .mobile-head {
    background: linear-gradient(135deg, var(--sun-soft), var(--surface));
  }

  .mobile-head h2 {
    font-family: var(--heading-font);
    font-weight: 900;
  }

  .site {
    max-width: 1200px;
    width: 100%;
    gap: clamp(64px, 8vw, 112px);
    padding: 0 0 24px;
    font-size: 16px;
    line-height: 1.8;
  }

  .site > *, .site section > *, .site article > * { min-width: 0; }

  .site h1 {
    font-size: clamp(34px, 4.6vw, 60px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: .015em;
  }

  .site-sec h2 {
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.45;
    margin-bottom: 16px;
    letter-spacing: .02em;
  }

  .site h3 {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .site p { line-height: 1.8; }
  .site .lead { color: var(--fg); font-size: 16px; line-height: 1.9; }
  .site .sec-sub { color: var(--muted); max-width: 65ch; margin-bottom: 32px; }
  .site .small { font-size: 14px; }
  .site .big { border-radius: 9px; min-height: 52px; }
  .site-sec { scroll-margin-top: 220px; }

  .site .site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    gap: 12px 16px;
    margin-bottom: -32px;
    padding: 14px 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    background: transparent;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
  }

  .site-nav.scrolled {
    background: var(--bg);
    border-bottom-color: var(--line);
    box-shadow: 0 8px 16px -16px var(--brand);
  }

  .site-logo { flex-shrink: 0; }
  .site-logo strong { font-family: var(--heading-font); font-size: 24px; }
  .site-logo small { font-size: 12px; }
  .site-mark { background: var(--brand); color: var(--on-brand); border-radius: 50% 45% 48% 42%; }
  .site-links, .site-login { gap: 4px; }
  .site-links button { padding: 8px; font-size: 14px; }
  .site-login button { padding: 9px 12px; font-size: 14px; }

  .hl {
    padding: 0 .04em;
    background-image: linear-gradient(var(--sun), var(--sun));
    background-repeat: no-repeat;
    background-position: left 94%;
    background-size: 100% 40%;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }

  .site h1 .hl {
    background-image: linear-gradient(var(--sun-soft), var(--sun-soft));
  }

  .site .tape, .tape {
    display: inline-block;
    width: fit-content;
    padding: 5px 16px;
    background: var(--sun);
    color: var(--s-tape-fg);
    border-left: 2px dashed color-mix(in srgb, var(--s-tape-fg) 30%, transparent);
    border-right: 2px dashed color-mix(in srgb, var(--s-tape-fg) 30%, transparent);
    font-family: var(--hand-font);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .04em;
    transform: rotate(-2deg);
    border-radius: 0;
  }

  .hand-note {
    color: var(--s-accent-ink);
    font-family: var(--hand-font);
    font-size: 21px;
    line-height: 1.6;
    font-weight: 400;
  }

  .stamp {
    display: grid;
    place-items: center;
    width: 118px;
    aspect-ratio: 1;
    padding: 14px;
    border: 4px double currentColor;
    border-radius: 50%;
    text-align: center;
    font-family: var(--hand-font);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.5;
    transform: rotate(-8deg);
  }

  .num-big {
    font-family: var(--heading-font);
    font-size: clamp(48px, 5vw, 72px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.06em;
    color: var(--accent);
    opacity: .65;
  }

  .site .s-hero {
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    gap: clamp(20px, 4vw, 56px);
    padding: 16px 0 32px;
    align-items: center;
  }

  .s-hero .hero-copy { position: relative; z-index: 1; }
  .s-hero .eyebrow { margin-bottom: 24px; }
  .s-hero h1 { margin: 0 0 24px; max-width: 12em; }
  .s-hero .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

  .s-response {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 0;
    transform: rotate(-2deg);
  }

  .s-response svg { flex: 0 0 54px; width: 54px; height: 36px; }

  .s-hero .hero-visual {
    isolation: isolate;
    position: relative;
    display: grid;
    place-items: center;
    min-height: 460px;
    padding: 34px 20px 100px;
  }

  .s-hero .hero-visual::before,
  .s-hero .hero-visual::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    filter: blur(12px);
  }

  .s-hero .hero-visual::before {
    width: 90%;
    height: 78%;
    top: 5%;
    right: 2%;
    background: var(--sun-soft);
    border-radius: 40% 60% 52% 48% / 60% 44% 56% 40%;
    transform: rotate(-12deg);
  }

  .s-hero .hero-visual::after {
    width: 60%;
    height: 50%;
    left: 0;
    bottom: 8%;
    background: var(--accent-soft);
    border-radius: 62% 38% 44% 56%;
  }

  .site .s-ticket {
    position: relative;
    width: min(290px, 90%);
    gap: 16px;
    border: 1px solid var(--line);
    border-top: 5px solid var(--brand);
    border-radius: 6px;
    padding: 25px 25px 28px;
    background: var(--surface);
    color: var(--fg);
    box-shadow: var(--shadow-raised);
    transform: rotate(2.5deg);
  }

  .s-ticket::before, .s-ticket::after {
    content: "";
    position: absolute;
    top: 66%;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sun-soft);
    border: 1px solid var(--line);
  }

  .s-ticket::before { left: -12px; border-left-color: transparent; }
  .s-ticket::after { right: -12px; border-right-color: transparent; }
  .s-ticket .phone-top { font-family: var(--heading-font); font-size: 19px; }
  .s-ticket .phone-qr { border-radius: 3px; padding: 14px; }
  .s-ticket .phone-row { border-top: 1px dashed var(--line); padding-top: 12px; }
  .s-ticket .phone-row strong { font-size: 30px; font-family: var(--heading-font); }

  .site .s-checkin {
    top: auto;
    left: auto;
    right: 0;
    bottom: 30px;
    width: min(260px, 88%);
    padding: 18px 20px;
    border-radius: 10px;
    background: var(--brand);
    color: var(--on-brand);
    box-shadow: var(--shadow-raised);
    gap: 7px;
    animation: s-float 6s ease-in-out infinite;
  }

  .s-checkin strong { font-size: 19px; }
  .s-checkin small { color: inherit; }
  .s-progress { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--on-brand) 25%, transparent); }
  .s-progress span { display: block; height: 100%; width: 68.7%; border-radius: inherit; background: var(--sun); }
  .s-checkin > span { align-self: flex-end; font-size: 13px; }

  .s-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 28px;
  }

  .s-heading h2 { margin: 0; }
  .s-heading .hand-note { margin: 0; transform: rotate(-3deg); }

  .site .s-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px 36px;
    padding: 14px 12px;
  }

  .site .s-note {
    position: relative;
    padding: 32px;
    border: 0;
    border-radius: 2px 4px 8px 2px;
    background: var(--sun-soft);
    box-shadow: 0 12px 18px -14px var(--overlay);
    transform: rotate(-1.5deg);
    transition: transform .2s ease;
  }

  .s-note::before {
    content: "";
    position: absolute;
    top: -10px;
    left: calc(50% - 32px);
    width: 64px;
    height: 20px;
    background: color-mix(in srgb, var(--sun) 65%, transparent);
    transform: rotate(4deg);
  }

  .site .s-note:nth-child(2) { margin-top: 30px; background: var(--accent-soft); transform: rotate(1.5deg); }
  .site .s-note:nth-child(3) { background: var(--soft); transform: rotate(1deg); }
  .site .s-note:nth-child(4) { margin-top: 30px; background: var(--brand-soft); transform: rotate(-1deg); }
  .site .s-note:hover { transform: rotate(0); }
  .site .s-note p { margin: 0; color: var(--fg); }

  .site .s-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 44px;
  }

  .site .s-service {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    padding: 30px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .s-service .num-big { padding-top: 9px; }
  .s-service p { color: var(--fg); margin-bottom: 0; }
  .s-service .svc-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 0 15px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--s-accent-ink);
  }
  .s-service .svc-icon svg { width: 29px; height: 29px; }

  .site .s-proposals {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 22px;
    align-items: stretch;
  }

  .site .s-proposal {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--soft);
    box-shadow: none;
  }

  .s-proposal .tape { margin-bottom: 20px; }
  .s-proposal h3 { font-size: 26px; }
  .s-proposal p { color: inherit; }
  .s-proposal .price {
    font-family: var(--heading-font);
    color: var(--s-accent-ink);
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 900;
    margin: 20px 0 0;
  }

  .site .s-proposal:first-child {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(28px, 4vw, 48px);
    background: var(--s-panel);
    color: var(--s-panel-fg);
    border-color: transparent;
  }

  .s-proposal:first-child h3 { font-size: clamp(28px, 3vw, 38px); }
  .s-proposal:first-child .price { margin-top: auto; padding-top: 32px; color: inherit; font-size: clamp(30px, 3.5vw, 46px); }

  .site .s-cases {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding: 14px 10px;
  }

  .site .s-case {
    display: flex;
    flex-direction: column;
    padding: 12px 12px 26px;
    border-radius: 2px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-raised);
    transform: rotate(-2deg);
  }

  .site .s-case:nth-child(2) { transform: rotate(2deg); margin-top: 24px; }
  .site .s-case:nth-child(3) { transform: rotate(-1deg); }

  .s-case-art {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 180px;
    aspect-ratio: 4 / 3;
    margin-bottom: 22px;
    background: linear-gradient(135deg, var(--sun-soft), var(--soft));
    color: var(--s-accent-ink);
    font: 900 clamp(38px, 4vw, 56px)/1.2 var(--heading-font);
    letter-spacing: .12em;
  }

  .s-case:nth-child(2) .s-case-art { background: linear-gradient(145deg, var(--accent-soft), var(--sun-soft)); }
  .s-case:nth-child(3) .s-case-art { background: linear-gradient(135deg, var(--brand-soft), var(--sun-soft)); color: var(--brand); }
  .site .s-case h3 { font-family: var(--hand-font); font-size: 24px; padding: 0 9px; }
  .s-case p { padding: 0 9px; margin: 0; font-size: 15px; color: var(--fg); }

  .site .s-platform {
    position: relative;
    padding: clamp(26px, 4vw, 54px);
    border: 0;
    border-radius: 7px 40px 7px 7px;
    background: var(--s-panel);
    color: var(--s-panel-fg);
  }

  .s-platform .s-platform-heading { padding-right: 140px; }
  .s-platform .sec-sub { color: inherit; }
  .s-platform .stamp { position: absolute; top: 32px; right: 28px; color: inherit; }

  .site .s-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .site .s-feature {
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid color-mix(in srgb, var(--s-panel-fg) 28%, transparent);
    border-radius: 9px;
    background: color-mix(in srgb, var(--s-panel-fg) 5%, transparent);
    box-shadow: none;
    color: inherit;
  }

  .site .s-feature:first-child { grid-column: span 2; }
  .s-feature h3 { color: inherit; }
  .s-feature p { color: inherit; margin-bottom: 20px; }

  .site .s-feature button.link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    box-shadow: none;
  }

  .s-feature button.link::after {
    content: "→";
    display: inline-block;
    font-size: 25px;
    transition: transform .2s ease;
  }

  .s-feature button.link:hover::after { transform: translateX(5px); }

  .s-marquee {
    overflow: hidden;
    width: 100%;
    border-block: 1px solid var(--line);
    padding: 24px 0;
  }

  .s-marquee-track {
    display: flex;
    width: max-content;
    max-width: none;
    animation: s-marquee 40s linear infinite;
  }

  .s-marquee-group {
    display: flex;
    gap: 20px;
    padding-right: 20px;
    flex: 0 0 auto;
  }

  .site .s-digest-card {
    width: 270px;
    flex: 0 0 270px;
    padding: 22px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: 3px;
    background: var(--surface);
    gap: 9px;
  }

  .s-digest-card strong { font-family: var(--heading-font); font-size: 22px; }
  .s-digest-card span { color: var(--fg); font-size: 15px; }
  .s-marquee:hover .s-marquee-track,
  .s-marquee:focus-within .s-marquee-track { animation-play-state: paused; }

  .site .s-contact {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(28px, 6vw, 80px);
  }

  .s-contact .contact-copy { padding-top: 14px; }
  .s-contact .contact-copy > p { font-size: 17px; }
  .s-contact .contact-copy > .small { font-size: 14px; }

  .site .s-lead-form {
    position: relative;
    padding: 34px 30px 30px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    box-shadow: var(--shadow-raised);
  }

  .s-lead-form::before {
    content: "";
    position: absolute;
    width: 116px;
    height: 26px;
    top: -13px;
    left: calc(50% - 58px);
    background: color-mix(in srgb, var(--sun) 80%, transparent);
    border-inline: 2px dashed color-mix(in srgb, var(--s-tape-fg) 25%, transparent);
    transform: rotate(-3deg);
  }

  .s-lead-form label { font-size: 15px; color: var(--fg); }
  .s-lead-form fieldset { border-color: var(--line); }
  .site .s-lead-form > button.primary {
    background: var(--s-cta);
    border-color: var(--s-cta);
    color: var(--s-cta-fg);
  }
  .site .s-lead-form > button.primary:hover {
    background: var(--s-cta);
    color: var(--s-cta-fg);
  }
  .s-lead-form .ok { grid-column: 1 / -1; color: var(--open); }

  .site .s-footer {
    margin-top: -24px;
    padding: 28px 32px;
    border: 0;
    border-radius: 4px;
    background: var(--s-panel);
    color: var(--s-panel-fg);
    font-size: 14px;
  }

  .s-footer a { color: inherit; }

  html.motion .site [data-reveal] {
    transition: opacity .6s cubic-bezier(.2,.7,.2,1),
      translate .6s cubic-bezier(.2,.7,.2,1), transform .2s ease;
    transition-delay: calc(var(--i, 0) * 60ms);
  }

  html.motion .site [data-reveal]:not(.in) {
    opacity: 0;
    translate: 0 16px;
  }

  html.motion .site [data-reveal].in {
    opacity: 1;
    translate: 0 0;
  }

  html.motion .hl {
    background-size: 0% 40%;
    transition: background-size .9s cubic-bezier(.2,.7,.2,1);
  }

  html.motion .hl.in { background-size: 100% 40%; }

  html.motion .site .s-seen,
  html.motion .hl.s-seen {
    transition: none;
  }

  html.motion .s-ticket {
    animation: s-ticket-drop .8s cubic-bezier(.2,.7,.2,1) both;
  }

  html.motion .s-seen .s-ticket { animation: none; }

  @keyframes s-ticket-drop {
    from { opacity: 0; transform: translateY(-24px) rotate(0); }
    to { opacity: 1; transform: translateY(0) rotate(2.5deg); }
  }

  @keyframes s-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
  }

  @keyframes s-marquee {
    to { transform: translateX(-50%); }
  }

  @media (max-width: 1050px) {
    .site .site-nav { gap: 10px; }
    .site-links { order: 3; width: 100%; }
    .site-login { margin-left: auto; }
    .s-platform .s-platform-heading { padding-right: 128px; }
    .site .s-feature { padding: 22px; }
    .site .s-service { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  }

  @media (max-width: 760px) {
    .site { gap: 64px; }
    .site .site-nav { margin-bottom: -24px; padding: 10px 0; }
    .site-logo small { max-width: 10em; }
    .site .s-hero, .site .s-contact { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .s-hero h1 { max-width: 14em; }
    .s-hero .hero-visual { min-height: 440px; width: min(430px, 100%); margin: 0 auto; }
    .site .s-checkin { right: 8px; }
    .site .s-services { grid-template-columns: minmax(0, 1fr); }
    .site .s-proposals { grid-template-columns: minmax(0, 1fr); }
    .site .s-proposal:first-child { grid-row: auto; min-height: 340px; }
    .site .s-cases { grid-template-columns: minmax(0, 1fr); gap: 30px; max-width: 450px; margin: auto; }
    .site .s-case:nth-child(2) { margin-top: 0; }
    .s-case-art { min-height: 160px; aspect-ratio: 16 / 9; }
    .site .s-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .s-platform .s-platform-heading { padding-right: 0; }
    .s-platform .stamp { position: static; width: 102px; font-size: 17px; margin: 0 0 26px auto; }
    .site .s-lead-form { padding: 30px 22px 22px; }
    .site .s-footer { padding: 26px; }
  }

  @media (max-width: 500px) {
    #topbar .topnav { width: 100%; }
    .site .site-nav { column-gap: 6px; }
    .site-logo { gap: 7px; }
    .site-logo strong { font-size: 21px; }
    .site-logo small { font-size: 10px; }
    .site-mark { width: 32px; height: 32px; }
    .site-login { gap: 5px; }
    .site-login button { font-size: 12px; padding: 8px; }
    .site-links { justify-content: space-between; gap: 0; }
    .site-links button { font-size: 13px; padding: 7px; }
    .site .s-hero { padding-top: 4px; }
    .site .tape { font-size: 15px; }
    .s-hero .hero-cta { gap: 10px; }
    .s-hero .hero-cta button { flex: 1 1 150px; padding-inline: 12px; }
    .s-response { font-size: 19px; }
    .site .s-notes { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 10px 6px; }
    .site .s-note { padding: 27px 24px; }
    .site .s-note:nth-child(even) { margin-top: 0; }
    .site .s-service { grid-template-columns: 54px minmax(0, 1fr); gap: 15px; }
    .s-service .num-big { font-size: 48px; }
    .site .s-proposal { padding: 26px; }
    .site .s-platform { padding: 28px 22px; }
    .site .s-features { grid-template-columns: minmax(0, 1fr); }
    .site .s-feature:first-child { grid-column: auto; }
    .site .s-feature { padding: 22px; }
    .site .s-lead-form { grid-template-columns: minmax(0, 1fr); }
    table, th, td { font-size: 14px; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation: none !important;
      transition: none !important;
      scroll-behavior: auto !important;
    }

    html.motion .site [data-reveal],
    html.motion .site [data-reveal]:not(.in) {
      opacity: 1;
      translate: none;
    }

    html.motion .hl { background-size: 100% 40%; }
    .site .s-checkin { transform: none; }
    .s-marquee { overflow-x: auto; overscroll-behavior-x: contain; }
    .s-marquee-track { transform: none; width: max-content; }
    .s-marquee-group[aria-hidden="true"] { display: none; }
    .s-feature button.link:hover::after { transform: none; }
    button.primary:not(:disabled):hover, a.btn.primary:hover { transform: none; }
  }
}

/* 修正：手機不可橫向捲動；編號不換行；平台功能 3×2 整齊排 */
@media screen {
  .site { overflow-x: clip; }
  .s-hero .hero-visual { overflow: clip; }
  .num-big { white-space: nowrap; }
  .site .s-feature:first-child { grid-column: auto; }
  .site .s-feature:first-child { background: color-mix(in srgb, var(--sun) 16%, transparent); }
}
@media screen { td { vertical-align: middle; } }

/* 第二輪（Gemini 審查後）：平台功能改米白紙卡、表單暖底、後台手帳感 */
@media screen {
  .site .s-feature { background: var(--surface); color: var(--fg); border: 0; box-shadow: 0 2px 0 color-mix(in srgb, var(--fg) 12%, transparent); }
  .site .s-feature:first-child { background: var(--sun-soft); }
  .s-feature h3 { color: var(--brand); }
  .site .s-feature button.link { color: var(--brand); font-weight: 700; border-top: 1px dashed var(--line); padding-top: 12px; }
  .s-feature button.link::after { color: var(--accent); }
  .s-lead-form input, .s-lead-form select { background: color-mix(in srgb, var(--soft) 45%, var(--surface)); border-width: 1.5px; border-radius: 8px; }
  .s-case h3 { transform: rotate(-.8deg); }

  .stat { border-radius: 6px; box-shadow: 3px 3px 0 color-mix(in srgb, var(--sun) 35%, var(--line)); }
  .stat strong { background: linear-gradient(180deg, transparent 58%, color-mix(in srgb, var(--sun) 45%, transparent) 58%); padding: 0 4px; }
  th { background: transparent; border-bottom: 2px dashed color-mix(in srgb, var(--accent) 35%, var(--line)); font-family: var(--heading-font); }
  .sidebar button.active { background: var(--sun-soft); border-radius: 0 8px 8px 0; }
}
@media screen {
  .stat strong { display: inline-block; width: auto; justify-self: start; align-self: flex-start; }
  .s-ticket .phone-top { white-space: nowrap; font-size: 17px; }
}
/* 持續漂浮會打斷 scrollIntoView 的平滑捲動（實測），改成靜止 */
@media screen { .site .s-checkin { animation: none; } }
/* 跑馬燈卡片靠動畫移入畫面，IntersectionObserver 抓不到，直接顯示（整段仍由外層 section 淡入） */
@media screen { html.motion .site .s-marquee [data-reveal]:not(.in) { opacity: 1; translate: none; transition: none; } }
/* 深色模式：統計數字的螢光筆淡一點 */
@media screen and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stat strong { background: linear-gradient(180deg, transparent 70%, color-mix(in srgb, var(--sun) 22%, transparent) 70%); } }
@media screen { :root[data-theme="dark"] .stat strong { background: linear-gradient(180deg, transparent 70%, color-mix(in srgb, var(--sun) 22%, transparent) 70%); } }

/* 員企站品牌 logo */
.brand-mark{width:32px;height:32px;flex:none;display:block}
.brand span{font-family:var(--heading-font);font-weight:900;letter-spacing:.06em}
img.site-mark{width:44px;height:44px;background:none;border-radius:0;padding:0;object-fit:contain}
.site-logo strong{letter-spacing:.08em}

/* 閱讀舒適度：斷行、字級、留白（2026-10-20） */
@media screen {
  .nw { display: inline-block; }
  h1, h2, h3, .site h1, .site h2, .site h3 { text-wrap: balance; }
  p, li, td, small, label, .sec-sub, .lead, .muted, .hand-note { text-wrap: pretty; }
  .site { gap: clamp(48px, 6vw, 88px); }
  .site .s-hero { padding: 0 0 8px; }
  .s-hero h1 { max-width: none; }
  .site .s-hero h1 { font-size: clamp(30px, 3.7vw, 52px); }
  .site .sec-sub { max-width: 46em; margin-bottom: 28px; }
  .site .s-note p, .s-service p, .s-proposal p, .s-feature p, .s-case p { font-size: 16px; line-height: 1.8; }
  .site .s-note { padding-top: 30px; padding-bottom: 26px; }
  .hl, .site h1 .hl {
    background-image: linear-gradient(color-mix(in srgb, var(--sun) 38%, transparent), color-mix(in srgb, var(--sun) 38%, transparent));
    background-position: left 92%;
    background-size: 100% 36%;
  }
  .site .s-proposal:first-child { justify-content: center; }
  .site .s-proposal:first-child p:not(.price) { font-size: 17px; max-width: 30em; }
  .s-proposal:first-child .price { margin-top: 0; padding-top: 28px; }
  .s-platform .stamp { width: 132px; font-size: 18px; white-space: nowrap; }
  .s-lead-form label:has(input[type="email"]) { grid-column: 1 / -1; }
  .s-contact .contact-copy > p { max-width: 24em; }
  .site .s-footer { margin-bottom: 0; }
  #app:has(> .site) { padding-bottom: 28px; }
}
@media screen and (max-width: 500px) {
  .site h1 { font-size: 30px; line-height: 1.35; }
  .site-sec h2 { font-size: 24px; }
  .site { gap: 48px; }
  #topbar .brand { order: 0; }
  #topbar .topactions { order: 1; margin-left: auto; }
  #topbar .topnav { order: 2; }
  .site .s-service { grid-template-columns: 52px minmax(0, 1fr); gap: 4px 12px; }
  .s-service .num-big { font-size: 40px; padding-top: 0; }
  .s-service .svc-icon { display: none; }
  .s-service h3 { margin-top: 4px; }
  .site .s-note { padding: 26px 20px 20px; }
}
@media screen and (max-width: 500px) {
  .site .s-feature { padding: 20px 20px 14px; min-height: 0; }
  .site .s-feature p { margin-bottom: 10px; }
}
