:root {
  color-scheme: light dark;
  --paper: #f1f4f5;
  --surface: #fbfcfc;
  --surface-soft: #e7edef;
  --ink: #17232b;
  --muted: #60717a;
  --line: #d1dce1;
  --accent: #e06536;
  --accent-deep: #a94625;
  --accent-soft: #f5d8ca;
  --shadow: 0 22px 48px rgba(25, 43, 51, 0.1);
  --radius-card: 14px;
  --radius-control: 999px;
  --content: min(1180px, calc(100% - 40px));
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #182329;
    --surface: #202d34;
    --surface-soft: #2c3a42;
    --ink: #eef3f4;
    --muted: #b2c1c7;
    --line: #40525b;
    --accent: #f07a49;
    --accent-deep: #ffad88;
    --accent-soft: #4a302a;
    --shadow: 0 22px 48px rgba(0, 0, 0, 0.26);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: linear-gradient(rgba(23, 35, 43, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 35, 43, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.section-wrap { width: var(--content); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
  letter-spacing: -0.08em;
}
.brand strong, .brand small { display: block; white-space: nowrap; }
.brand strong { font-size: 0.95rem; letter-spacing: 0.06em; }
.brand small { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.16em; }

.main-nav { display: flex; align-items: center; gap: 28px; font-size: 0.9rem; color: var(--muted); }
.main-nav a { transition: color 180ms ease; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }

.header-actions { display: flex; justify-content: flex-end; gap: 10px; }
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(0.98); }
.button-primary { background: var(--accent); color: #24160f; }
.button-primary:hover { background: var(--accent-deep); color: var(--surface); }
.button-quiet { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button-quiet:hover, .button-outline:hover { border-color: var(--accent); color: var(--accent-deep); }
.button-outline { border-color: var(--ink); color: var(--ink); }
.button-large { min-height: 52px; padding-inline: 24px; font-size: 1rem; }
.menu-button { display: none; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); padding: 8px 14px; }
.mobile-nav { display: none; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr); align-items: center; gap: clamp(42px, 8vw, 100px); min-height: min(720px, calc(100dvh - 76px)); padding-block: 64px 76px; }
.hero-copy { max-width: 650px; }
.eyebrow { margin: 0 0 14px; color: var(--accent-deep); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.18em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -0.045em; line-height: 1.18; }
h1 { max-width: 630px; margin-bottom: 22px; font-size: clamp(3rem, 6.1vw, 6.2rem); font-weight: 850; }
h2 { margin-bottom: 18px; font-size: clamp(2.1rem, 4vw, 4rem); font-weight: 820; }
h3 { margin-bottom: 8px; font-size: 1.45rem; }
.hero-lead { max-width: 590px; margin-bottom: 30px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 850; }
.text-link span { color: var(--accent-deep); font-size: 1.2em; transition: transform 180ms ease; }
.text-link:hover span { transform: translate(3px, -3px); }
.hero-note { display: flex; gap: 14px; margin-top: 44px; color: var(--muted); font-size: 0.77rem; }
.hero-note span + span { padding-left: 14px; border-left: 1px solid var(--line); }
.hero-media { position: relative; }
.image-slot { display: grid; place-items: center; min-height: 300px; border: 1px solid var(--line); border-radius: var(--radius-card); background: linear-gradient(140deg, var(--surface-soft), var(--surface)); color: var(--muted); text-align: center; }
.image-slot::after { content: ""; position: absolute; inset: 18px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: calc(var(--radius-card) - 4px); pointer-events: none; }
.image-slot-hero { position: relative; min-height: 510px; align-content: center; gap: 10px; overflow: hidden; box-shadow: var(--shadow); }
.image-slot-hero::before { content: ""; position: absolute; width: 290px; height: 290px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, transparent); transform: translate(30%, -8%); }
.image-slot strong, .image-slot span { position: relative; z-index: 1; }
.image-slot strong { font-size: clamp(1.6rem, 3vw, 2.7rem); letter-spacing: -0.06em; }
.slot-label { color: var(--accent-deep); font-size: 0.74rem; font-weight: 900; letter-spacing: 0.16em; }
.hero-media-caption { display: flex; justify-content: space-between; gap: 18px; padding: 15px 4px 0; color: var(--muted); font-size: 0.82rem; }

.category-section, .trust-section { padding-block: 112px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 34px; }
.section-heading h2 { max-width: 650px; margin-bottom: 0; }
.section-intro { max-width: 300px; margin: 0; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.category-tile { position: relative; display: flex; min-height: 194px; flex-direction: column; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; background: var(--surface); transition: transform 180ms ease, border-color 180ms ease, background 180ms ease; }
.category-tile:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--accent-soft); }
.category-tile-wide { grid-row: span 2; min-height: 400px; }
.category-tile-accent { background: var(--accent); border-color: var(--accent); color: #24160f; }
.category-tile-accent:hover { background: var(--accent-deep); color: var(--surface); }
.category-index { color: var(--accent-deep); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.75rem; font-weight: 800; }
.category-tile-accent .category-index { color: inherit; }
.category-tile p { max-width: 230px; margin: 0; color: var(--muted); }
.category-tile-accent p { color: inherit; opacity: 0.78; }
.category-arrow { align-self: flex-end; color: var(--accent-deep); font-size: 1.6rem; }
.category-tile-accent .category-arrow { color: inherit; }

.featured-section { padding-block: 112px; background: var(--surface); }
.featured-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.product-card { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; background: var(--paper); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.product-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.featured-grid .product-card { grid-column: span 3; }
.featured-grid .product-card:nth-child(1), .featured-grid .product-card:nth-child(4) { grid-column: span 6; }
.product-thumb { display: grid; min-height: 154px; place-items: end start; padding: 18px; background: linear-gradient(145deg, var(--surface-soft), var(--surface)); color: var(--muted); }
.product-thumb-image { display: block; padding: 0; overflow: hidden; }
.product-thumb .product-image { display: block; width: 100%; height: 220px; object-fit: cover; }
.product-card:nth-child(4n + 1) .product-thumb { min-height: 220px; background: linear-gradient(145deg, var(--accent-soft), var(--surface)); }
.product-thumb span { color: var(--accent-deep); font-size: 0.75rem; font-weight: 850; letter-spacing: 0.12em; }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.product-card h3 { margin-bottom: 12px; font-size: 1.1rem; }
.product-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; color: var(--muted); font-size: 0.77rem; }
.product-meta strong { color: var(--accent-deep); }
.product-card .card-link { display: inline-flex; gap: 7px; margin-top: 15px; color: var(--ink); font-size: 0.88rem; font-weight: 850; }

.trust-section { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; }
.trust-copy { max-width: 530px; }
.trust-copy p:not(.eyebrow) { margin-bottom: 28px; color: var(--muted); font-size: 1.08rem; line-height: 1.9; }
.trust-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; }
.trust-list > div { min-height: 230px; padding: 22px; border-top: 3px solid var(--ink); background: var(--surface); }
.trust-list > div:nth-child(2) { min-height: 300px; border-color: var(--accent); }
.trust-list > div:nth-child(3) { min-height: 260px; }
.trust-list strong { display: block; color: var(--accent-deep); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; }
.trust-list span { display: block; margin-top: 48px; font-size: 1.3rem; font-weight: 850; }
.trust-list p { margin: 12px 0 0; color: var(--muted); font-size: 0.87rem; }

.contact-section { background: var(--ink); color: var(--paper); }
.contact-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding-block: 70px; }
.contact-section .eyebrow { color: var(--accent); }
.contact-section h2 { max-width: 570px; margin-bottom: 0; }
.contact-intro { max-width: 480px; margin: 18px 0 0; color: color-mix(in srgb, var(--paper) 72%, transparent); }
.contact-panel { min-width: min(100%, 500px); }
.contact-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.contact-actions .button-outline { border-color: var(--paper); color: var(--paper); }
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--paper) 20%, transparent); }
.contact-list div { display: grid; grid-template-columns: 66px 1fr; gap: 10px; align-items: baseline; }
.contact-list dt { color: color-mix(in srgb, var(--paper) 58%, transparent); font-size: 0.76rem; }
.contact-list dd { margin: 0; color: var(--paper); font-size: 0.86rem; overflow-wrap: anywhere; }
.contact-list a, .contact-facebook { color: var(--paper); }
.contact-list a:hover, .contact-facebook:hover { color: var(--accent); }
.contact-facebook { display: inline-block; margin-top: 22px; font-size: 0.84rem; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 32px; }
.brand-footer .brand-mark { width: 31px; height: 31px; border-radius: 8px; font-size: 0.85rem; }
.brand-footer strong { font-size: 0.84rem; }
.brand-footer small { font-size: 0.6rem; }
.footer-note { margin: 16px 0 0; color: var(--muted); font-size: 0.78rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px 24px; color: var(--muted); font-size: 0.8rem; }
.footer-links a:hover { color: var(--accent-deep); }

.catalog-hero { padding-block: 74px 56px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.catalog-heading h1 { margin-bottom: 14px; font-size: clamp(2.7rem, 5vw, 5.2rem); }
.catalog-heading p { max-width: 540px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.catalog-summary { min-width: 160px; padding-left: 20px; border-left: 1px solid var(--line); }
.catalog-summary strong { display: block; font-size: 3.5rem; line-height: 1; }
.catalog-summary span { color: var(--muted); font-size: 0.84rem; }
.catalog-section { padding-bottom: 112px; }
.catalog-tools { display: grid; grid-template-columns: minmax(260px, 0.6fr) 1.4fr; align-items: end; gap: 24px; padding-block: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.search-field { display: grid; gap: 7px; color: var(--muted); font-size: 0.8rem; font-weight: 800; }
.search-field input { width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: none; background: var(--surface); color: var(--ink); padding: 12px 14px; }
.search-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.filter-button { border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); color: var(--muted); padding: 9px 14px; font-size: 0.82rem; transition: border-color 180ms ease, background 180ms ease, color 180ms ease; }
.filter-button:hover, .filter-button.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }
.catalog-list-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-block: 42px 22px; }
.catalog-list-heading h2 { margin: 0; font-size: 2rem; }
.catalog-list-heading span { color: var(--muted); font-size: 0.84rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.catalog-grid .product-thumb { min-height: 170px; }
.catalog-grid .product-card:nth-child(4n + 1) .product-thumb { min-height: 170px; }
.empty-state { margin-top: 20px; border: 1px dashed var(--line); border-radius: var(--radius-card); padding: 42px; background: var(--surface); text-align: center; }
.empty-state strong { display: block; font-size: 1.2rem; }
.empty-state p { margin: 6px 0 0; color: var(--muted); }

.product-loading { padding-block: 120px; color: var(--muted); }
.product-detail { padding-block: 56px 112px; }
.breadcrumbs { display: flex; gap: 8px; margin-bottom: 34px; color: var(--muted); font-size: 0.82rem; }
.breadcrumbs a:hover { color: var(--accent-deep); }
.product-hero { display: grid; grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 8vw, 100px); align-items: start; }
.product-detail-visual { min-height: 580px; position: relative; }
.product-detail-visual-image { display: block; padding: 0; overflow: hidden; }
.product-detail-image { display: block; width: 100%; height: 580px; object-fit: contain; }
.product-detail-copy h1 { max-width: 760px; margin-bottom: 18px; font-size: clamp(2.6rem, 5vw, 5.4rem); }
.product-detail-copy .product-kicker { color: var(--accent-deep); font-size: 0.82rem; font-weight: 850; }
.product-detail-copy > p { max-width: 620px; color: var(--muted); font-size: 1.05rem; line-height: 1.9; }
.detail-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.detail-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 45px; }
.detail-fact { border-top: 2px solid var(--ink); padding-top: 12px; }
.detail-fact span, .detail-fact strong { display: block; }
.detail-fact span { color: var(--muted); font-size: 0.76rem; }
.detail-fact strong { margin-top: 4px; font-size: 1rem; }
.product-content-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; margin-top: 88px; }
.content-panel { border-top: 1px solid var(--line); padding-top: 22px; }
.content-panel h2 { font-size: 1.8rem; }
.content-panel p { color: var(--muted); }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.spec-item { min-height: 104px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.spec-item span, .spec-item strong { display: block; }
.spec-item span { color: var(--muted); font-size: 0.75rem; }
.spec-item strong { margin-top: 7px; font-size: 1.02rem; }
.pdf-placeholder { min-height: 270px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: var(--radius-card); background: var(--surface-soft); color: var(--muted); text-align: center; }
.related-section { margin-top: 100px; }
.related-section h2 { font-size: 2rem; }
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.line-dialog { width: min(440px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 32px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.line-dialog::backdrop { background: rgba(23, 35, 43, 0.55); backdrop-filter: blur(4px); }
.line-dialog h2 { margin-bottom: 12px; font-size: 2rem; }
.line-dialog p:not(.eyebrow) { color: var(--muted); }
.dialog-close { float: right; border: 0; background: transparent; color: var(--muted); padding: 0; }
.dialog-close:hover { color: var(--ink); }

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

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav, .header-actions { display: none; }
  .menu-button { display: inline-flex; justify-self: end; }
  .mobile-nav { display: none; flex-direction: column; gap: 8px; padding: 12px 20px 22px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .mobile-nav.is-open { display: flex; }
  .mobile-nav a { padding: 10px 0; color: var(--muted); }
  .mobile-nav .button { width: fit-content; margin-top: 5px; color: #24160f; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-media { max-width: 660px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-tile-wide { grid-row: span 1; min-height: 260px; }
  .trust-section { grid-template-columns: 1fr; gap: 44px; }
  .catalog-grid, .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --content: min(100% - 28px, 620px); }
  .site-header { min-height: 68px; padding-inline: 14px; }
  .brand strong { font-size: 0.84rem; }
  .brand small { font-size: 0.58rem; }
  h1 { font-size: clamp(2.65rem, 14vw, 4.2rem); }
  h2 { font-size: 2.35rem; }
  .hero { gap: 42px; padding-block: 48px 58px; }
  .hero-note { flex-direction: column; gap: 4px; margin-top: 30px; }
  .hero-note span + span { padding-left: 0; border-left: 0; }
  .image-slot-hero, .product-detail-visual { min-height: 360px; }
  .section-heading, .catalog-heading, .contact-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
  .section-heading { gap: 18px; }
  .category-section, .trust-section, .featured-section { padding-block: 72px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-tile, .category-tile-wide { min-height: 180px; }
  .featured-grid, .catalog-grid, .related-grid { grid-template-columns: 1fr; }
  .featured-grid .product-card, .featured-grid .product-card:nth-child(1), .featured-grid .product-card:nth-child(4) { grid-column: auto; }
  .product-thumb, .product-card:nth-child(4n + 1) .product-thumb, .catalog-grid .product-thumb { min-height: 190px; }
  .product-thumb .product-image, .catalog-grid .product-thumb .product-image { height: 190px; }
  .product-detail-image { height: 360px; }
  .trust-list { grid-template-columns: 1fr; }
  .trust-list > div, .trust-list > div:nth-child(2), .trust-list > div:nth-child(3) { min-height: auto; }
  .trust-list span { margin-top: 22px; }
  .contact-actions { justify-content: flex-start; }
  .contact-panel { min-width: 0; width: 100%; }
  .contact-list { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .catalog-hero { padding-block: 54px 38px; }
  .catalog-summary { padding: 18px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .catalog-tools { grid-template-columns: 1fr; }
  .filter-group { justify-content: flex-start; }
  .product-hero, .product-content-grid { grid-template-columns: 1fr; }
  .product-detail { padding-top: 30px; }
  .detail-facts { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
