:root {
  --ink: #171816;
  --muted: #747970;
  --line: #d8dbd4;
  --paper: #f7f5f0;
  --soft-yellow: #fff5b1;
  --yellow: #ffe000;
  --line-green: #06c755;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 100px; }

.skip { position: fixed; top: -80px; left: 8px; z-index: 50; background: var(--yellow); padding: 12px; }
.skip:focus { top: 4px; }
.preview-note { display: flex; justify-content: center; align-items: center; gap: 24px; min-height: 30px; background: var(--soft-yellow); font-size: 12px; padding: 4px 16px; }
.preview-note a { text-decoration: underline; text-underline-offset: 3px; }


.home-content { max-width: 1376px; margin: auto; padding: 36px 28px 26px; }
.intro { display: grid; grid-template-columns: minmax(380px, .9fr) minmax(460px, 1.1fr); align-items: end; gap: 48px; margin-bottom: 20px; }
.eyebrow { font-size: 11px; letter-spacing: .14em; font-weight: 650; color: var(--muted); margin: 0 0 8px; }
.home-content h1 { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.18; letter-spacing: -.04em; margin: 0; font-weight: 800; }
.mobile-break { display: none; }
.intro-copy { display: flex; gap: 22px; justify-content: flex-end; align-items: center; padding: 0 14px 5px 0; }
.intro-copy p { margin: 0; font-size: 15px; color: #60665d; line-height: 1.85; }
.accent { height: 4px; width: 48px; background: var(--yellow); flex-shrink: 0; }

.benefits { list-style: none; margin: 0 0 30px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; gap: 0; color: #555b52; font-size: 12px; }
.benefits li { display: flex; align-items: center; gap: 10px; padding-right: 28px; }
.benefits li + li::before { content: ""; width: 1px; height: 15px; background: var(--line); margin-right: 28px; }

.overview-note { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 22px; }
.overview-note h2 { margin: 0; font-size: 16px; font-weight: 650; }
.overview-note > span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.group { min-width: 0; }
.group-heading { margin: 0 0 18px; font-size: 19px; line-height: 1.4; font-weight: 750; display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.group-heading span { font-size: 11px; font-weight: 400; color: var(--muted); }
.group-cards { display: grid; gap: 26px; }
.card { text-align: left; width: 100%; padding: 0; border-radius: 14px; display: block; min-width: 0; }
.card-picture { display: block; border-radius: 14px; overflow: hidden; background: var(--paper); position: relative; aspect-ratio: 1.64; border: 1px solid #efeee8; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.art { display: block; width: 100%; height: 100%; pointer-events: none; }
.zoom-sign { position: absolute; bottom: 8px; right: 8px; border: 1px solid #dedfd8; background: #fff; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.card-caption { padding: 12px 0 0; display: block; }
.card-title { display: flex; align-items: baseline; gap: 8px; font-size: 17px; line-height: 1.4; font-weight: 750; }
.code { color: var(--muted); font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.card-copy { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; line-height: 1.6; }
.name { position: relative; }
.name::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; bottom: -3px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.card:active .card-picture, .card[data-active="true"] .card-picture { border-color: var(--ink); transform: translateY(1px); box-shadow: 0 0 0 1px var(--ink); }
.card:active .zoom-sign, .card[data-active="true"] .zoom-sign { background: var(--ink); color: #fff; transform: translateX(2px); }
.card:focus-visible .name::after { transform: scaleX(1); }

.image-note { font-size: 11px; color: var(--muted); margin: 28px 0 0; }
.line-help { margin-top: 40px; padding: 28px 30px; background: var(--paper); border: 1px solid #ecebe5; border-radius: 18px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.line-help h2 { font-size: 24px; line-height: 1.3; margin: 0; letter-spacing: -.02em; }
.line-help p:not(.eyebrow) { margin: 6px 0 0; color: var(--muted); font-size: 13px; }


#detail { padding: 0; border: 1px solid #d7d9d1; border-radius: 18px; width: min(850px, calc(100% - 36px)); max-height: 90dvh; color: var(--ink); box-shadow: 0 20px 80px #0003; overflow: auto; }
#detail::backdrop { background: #17181699; }
.dialog-bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); background: white; position: sticky; top: 0; z-index: 1; }
.dialog-bar > div { display: flex; align-items: baseline; gap: 12px; }
#detail-code { color: var(--muted); font-size: 13px; }
h2#detail-title { font-size: 23px; margin: 0; }
.close { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; font-size: 19px; flex-shrink: 0; }
.close:active, .return:active { background: var(--ink); color: white; }
.detail-art { background: var(--paper); aspect-ratio: 1.9; }
.detail-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 24px; }
.detail-bottom p { font-size: 14px; margin: 0; color: var(--ink); }
.detail-bottom small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.return { padding: 10px 18px; border: 1px solid var(--ink); border-radius: 50px; white-space: nowrap; font-size: 14px; min-height: 44px; }
.return span { margin-left: 10px; }
body.modal-open { overflow: hidden; }

.phone-page { background: #e9e9e4; padding: 20px; min-height: 100dvh; }
.phone-tools { display: flex; justify-content: center; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 13px; margin-bottom: 18px; }
.phone-tools a { text-decoration: underline; }
.phone-stage { width: min(390px, 100%); margin: auto; }
.phone-stage iframe { display: block; width: 100%; height: 844px; max-height: calc(100dvh - 100px); border: 1px solid #bbb; border-radius: 22px; background: white; }
.phone-hint { font-size: 12px; text-align: center; color: var(--muted); }

@media (hover: hover) {
  .card:hover .card-picture { border-color: #92998c; transform: translateY(-2px); box-shadow: 0 10px 24px #272a2212; }
  .card:hover .zoom-sign { background: var(--ink); color: #fff; transform: translateX(2px); }
  .card:hover .name::after { transform: scaleX(1); }
  .close:hover, .return:hover { background: var(--ink); color: #fff; }
}

@media (max-width: 1100px) and (min-width: 761px) {
  .desktop-nav > span { display: none; }
  .groups { gap: 18px; }
  .header-inner { min-height: 78px; }
  .card-title { font-size: 15px; }
  .card-copy { font-size: 11px; }
  .group-heading { font-size: 17px; }
  .intro { grid-template-columns: .9fr 1.1fr; gap: 24px; }
}

@media (max-width: 760px) {
  .preview-note { font-size: 10px; gap: 16px; min-height: 28px; }
  .header-inner { min-height: 70px; padding: 0 20px; gap: 16px; }
  .brand img { width: 82px; height: 38px; }
  .desktop-nav, .cart { display: none; }
  .header-sample { display: block; margin-left: auto; color: var(--muted); font-size: 13px; }
  .home-content { padding: 25px 20px 16px; }
  .intro { display: block; margin-bottom: 17px; }
  .eyebrow { font-size: 10px; margin-bottom: 8px; }
  .home-content h1 { font-size: 31px; line-height: 1.23; letter-spacing: -.035em; }
  .mobile-break { display: block; }
  .desktop-break { display: none; }
  .intro-copy { margin-top: 13px; gap: 12px; padding: 0; justify-content: flex-start; align-items: flex-start; }
  .intro-copy p { font-size: 13px; line-height: 1.65; }
  .accent { width: 24px; margin-top: 10px; }
  .benefits { gap: 8px; overflow: hidden; margin-bottom: 24px; padding: 11px 0; font-size: 10px; justify-content: space-between; }
  .benefits li { padding: 0; gap: 0; white-space: nowrap; }
  .benefits li + li::before { display: none; }
  .overview-note { margin-bottom: 21px; align-items: flex-end; }
  .overview-note h2 { max-width: 245px; font-size: 14px; line-height: 1.5; }
  .overview-note > span { font-size: 10px; }
  .groups { grid-template-columns: 1fr; gap: 29px; }
  .group-heading { font-size: 18px; margin-bottom: 13px; padding-bottom: 10px; }
  .group-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .card { border-radius: 10px; }
  .card-picture { border-radius: 10px; aspect-ratio: 1.35; }
  .card-caption { padding-top: 10px; }
  .card-title { font-size: 15px; gap: 6px; flex-wrap: wrap; }
  .card-copy { font-size: 11px; margin-top: 5px; }
  .zoom-sign { height: 26px; width: 26px; bottom: 6px; right: 6px; font-size: 14px; }
  .image-note { font-size: 10px; line-height: 1.8; margin-top: 24px; }
  .line-help { margin-top: 30px; padding: 22px 20px; display: block; border-radius: 14px; }
  .line-help h2 { font-size: 21px; }
  .line-help p:not(.eyebrow) { font-size: 12px; line-height: 1.7; }
  #detail { width: calc(100% - 24px); max-height: 90dvh; border-radius: 14px; }
  .dialog-bar { padding: 12px 16px; }
  .dialog-bar > div { gap: 8px; }
  h2#detail-title { font-size: 19px; }
  .detail-art { aspect-ratio: 1.45; }
  .detail-bottom { padding: 15px 16px; align-items: flex-start; flex-direction: column; }
  .detail-bottom p { font-size: 13px; }
  .return { align-self: flex-end; }
  .phone-page { padding: 12px 0; }
  .phone-stage iframe { border-radius: 0; }
}

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

/* Integration-only adaptations. Original shared assets above remain byte-identical. */
.home-content { color:var(--ink); font-family:var(--font); }
.home-content button, #detail button { font:inherit; cursor:pointer; touch-action:manipulation; }
.home-content .card { border:0; background:transparent; }
.home-content a { text-decoration:none; }
.home-content h1 { font-weight:800; }
body[data-home-candidate] .preview-note { position:relative; z-index:1; }
body[data-home-candidate] .wf-header { top:0; }
body[data-home-candidate] .wf-footer { margin-top:28px; }
body[data-home-candidate] .wf-footer .v5-footer-grid { align-items:start; }
body[data-home-candidate] { --bx-shell:1320px; --wf-shell:1320px; }
.line-help > .mitt-line-contact { display:inline-flex; align-items:center; min-height:44px; flex:none; white-space:nowrap; font-size:16px; font-weight:600; }
body[data-home-candidate] .wf-header .retail-nav { font-size:14px; }
#detail { font-family:var(--font); }
#detail .close { background:white; color:var(--ink); }
#detail .return { background:white; }
@media (max-width:760px) {
 body[data-home-candidate] .wf-header .retail-nav { font-size:12px; padding:8px 13px; margin:0 5px; }
 body[data-home-candidate] .wf-footer .v5-footer-grid { display:grid; }
 .line-help > .mitt-line-contact { margin-top:12px; }
}
