:root {
  /* 表面層級：底色不是純白，卡片才浮得起來 */
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f7f9fb;
  --surface-3: #eef2f6;
  --line: #e2e8f0;
  --line-soft: #eef2f6;

  --text: #0d1726;
  --text-dim: #44536b;
  --muted: #6b7a90;

  --accent: #229ed9;
  --accent-dark: #1a7fae;
  --accent-darker: #145f83;
  --accent-soft: #e9f6fd;
  --accent-line: #b4dff4;

  --ok: #0d9b6c;
  --ok-soft: #e6f7f1;
  --warn: #b0761c;
  --warn-soft: #fdf5e6;
  --danger: #cb3a3a;
  --danger-soft: #fdecec;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;

  /* 陰影一律多層疊：近處緊、遠處散，這是質感的來源 */
  --shadow-xs:
    0 1px 2px rgba(13, 23, 38, 0.04),
    0 1px 1px rgba(13, 23, 38, 0.03);
  --shadow-sm:
    0 1px 2px rgba(13, 23, 38, 0.05),
    0 4px 10px -3px rgba(13, 23, 38, 0.05);
  --shadow-md:
    0 2px 4px rgba(13, 23, 38, 0.04),
    0 10px 22px -6px rgba(13, 23, 38, 0.09);
  --shadow-lg:
    0 4px 8px rgba(13, 23, 38, 0.05),
    0 18px 38px -10px rgba(13, 23, 38, 0.13);
  --shadow-xl:
    0 8px 16px rgba(13, 23, 38, 0.06),
    0 32px 64px -16px rgba(13, 23, 38, 0.18);

  --ring: 0 0 0 3px rgba(34, 158, 217, 0.18);
  --ease: cubic-bezier(.4, 0, .2, 1);

  --announce-h: 40px;
  --utility-h: 38px;
  --main-h: 66px;
  --header-h: calc(var(--utility-h) + var(--main-h));
  --tabbar-h: 62px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC",
          "Microsoft JhengHei", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { line-height: 1.34; font-weight: 650; letter-spacing: -0.018em; margin: 0; }

[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

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

/* ---------- announcement ---------- */

.announce-bar {
  background: linear-gradient(90deg, var(--accent-darker), var(--accent-dark));
  color: #eaf7ff;
  font-size: 0.85rem;
  line-height: 1.5;
}
.announce-inner {
  min-height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
  padding-top: 8px;
  padding-bottom: 8px;
}
.announce-inner a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.announce-inner a:hover { color: #fff; opacity: .88; }

.announce-close {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}
.announce-close:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: box-shadow .2s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-md); }

.utility-bar {
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-2);
  overflow: hidden;
  transition: height .22s var(--ease), opacity .18s var(--ease);
}
/* 捲下去之後把上層列收起來，只留主列，視覺更俐落 */
.site-header.is-stuck .utility-bar { height: 0; opacity: 0; border-bottom-color: transparent; }
.utility-inner {
  height: var(--utility-h);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.utility-hours { font-size: 0.8rem; color: var(--muted); }

.utility-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.82rem;
}
.utility-nav > a { color: var(--muted); }
.utility-nav > a:hover { color: var(--accent); }

.main-bar { background: var(--surface); }

.header-inner {
  height: var(--main-h);
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 1.08rem;
  white-space: nowrap;
  letter-spacing: -0.024em;
  flex: 0 0 auto;
}

.brand-mark {
  width: 32px;
  height: 32px;
  color: var(--accent);
  flex: 0 0 auto;
}
.brand-mark svg { width: 100%; height: 100%; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  flex: 0 0 auto;
}
.main-nav > a {
  color: var(--text-dim);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.main-nav > a:hover { color: var(--accent); }
.main-nav > a.is-active { color: var(--text); }
.main-nav > a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.main-nav-extra { display: none; }

/* search */

.search-form {
  position: relative;
  flex: 1;
  max-width: 340px;
  margin-left: auto;
}
.search-form input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.search-form input:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: var(--ring);
}
.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
}

.search-form-page {
  display: flex;
  gap: 12px;
  max-width: 560px;
  margin: 24px 0 0;
}
.search-form-page .input { height: 46px; border-radius: var(--radius-sm); }

.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 50%;
  color: var(--text-dim);
  cursor: pointer;
  transition: background .15s, color .15s, transform .12s var(--ease);
}
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn:hover { background: var(--surface-3); color: var(--accent); }
.icon-btn:active { transform: scale(.93); }

.search-trigger { display: none; }

.cart-count {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--surface);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 10px 8px 10px 0;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 19px; height: 2px; border-radius: 2px; background: var(--text-dim); }

/* lang menu */

.lang-switch { position: relative; }

.lang-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.79rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  min-width: 156px;
  list-style: none;
  margin: 0;
  padding: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 60;
}
.lang-menu li a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.89rem;
  color: var(--text-dim);
}
.lang-menu li a:hover { background: var(--surface-2); color: var(--text); }
.lang-menu li a[aria-current] { color: var(--accent); font-weight: 600; }

/* ---------- buttons ---------- */

.btn,
.btn-primary-soft,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: background .16s var(--ease), border-color .16s, color .16s,
              box-shadow .2s var(--ease), transform .12s var(--ease);
}
.btn:active,
.btn-primary-soft:active,
.btn-ghost:active { transform: translateY(1px) scale(.99); box-shadow: var(--shadow-xs); }

.btn-primary,
.btn-primary-soft {
  background: linear-gradient(180deg, #2eaae3, var(--accent));
  border-color: var(--accent-dark);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 1px 2px rgba(13, 23, 38, 0.08),
    0 6px 14px -4px rgba(26, 127, 174, 0.42);
}
.btn-primary:hover,
.btn-primary-soft:hover {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 2px 4px rgba(13, 23, 38, 0.1),
    0 12px 26px -6px rgba(26, 127, 174, 0.5);
  transform: translateY(-1px);
}

.btn-secondary,
.btn-ghost { color: var(--text-dim); }
.btn-secondary:hover,
.btn-ghost:hover {
  border-color: var(--accent-line);
  color: var(--accent-dark);
  background: var(--accent-soft);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-block { width: 100%; }
.btn[disabled], .btn-primary-soft[disabled], .btn-ghost[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent);
}
.link-arrow::after { content: "→"; transition: transform .16s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- sections ---------- */

.section { padding: 76px 0; }
.section-tight { padding: 44px 0; }

.section-head { margin-bottom: 36px; max-width: 660px; }
.section-head h1 { font-size: clamp(1.65rem, 3.2vw, 2.15rem); margin: 0 0 10px; }
.section-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 0 0 10px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1rem; }

.page-head {
  padding: 52px 0 44px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border-bottom: 1px solid var(--line-soft);
}
.page-head h1 { font-size: clamp(1.65rem, 3.2vw, 2.1rem); margin: 0 0 10px; }
.page-head p { color: var(--muted); margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 12px;
}

.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 28px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { opacity: .5; margin: 0 2px; }

/* ---------- banner ---------- */

.banner-strip { padding: 28px 0 10px; }
.banner-track { position: relative; }

.banner-slide {
  display: none;
  border-radius: var(--radius);
  padding: 56px 52px;
  min-height: 250px;
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.banner-slide.is-active { display: flex; align-items: center; }

.banner-slide.has-image { position: relative; }
.banner-slide.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.8) 40%,
    rgba(255, 255, 255, 0) 70%);
}
.banner-dark.has-image::before,
.banner-brand.has-image::before {
  background: linear-gradient(90deg,
    rgba(10, 27, 43, 0.9) 0%,
    rgba(10, 27, 43, 0.64) 42%,
    rgba(10, 27, 43, 0) 72%);
}

.banner-inner { max-width: 620px; position: relative; z-index: 1; }
.banner-title { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin: 0 0 12px; }
.banner-sub { font-size: 1.02rem; color: var(--text-dim); margin: 0 0 24px; }

.banner-brand { background-color: var(--accent-dark); }
.banner-brand .banner-title { color: #fff; }
.banner-brand .banner-sub { color: rgba(255, 255, 255, 0.9); }
.banner-brand .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--accent-dark);
}

.banner-dark { background-color: #0d1726; }
.banner-dark .banner-title { color: #fff; }
.banner-dark .banner-sub { color: #b9c4d4; }

.banner-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.banner-dot {
  width: 32px;
  height: 4px;
  border: none;
  border-radius: 2px;
  background: var(--surface-3);
  cursor: pointer;
  padding: 0;
  transition: background .18s, width .18s var(--ease);
}
.banner-dot.is-active { background: var(--accent); width: 46px; }

/* ---------- product grid ---------- */

.shop-filter { margin-bottom: 30px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(276px, 1fr));
  gap: 26px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .26s var(--ease), transform .26s var(--ease);
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--surface-3);
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.04); }

.product-media-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-dark), #4bb3e4);
  color: #fff;
}
.product-media-fallback svg { width: 62px; height: 62px; opacity: .92; }

/* 斜角緞帶 */
.ribbon {
  position: absolute;
  top: 0;
  left: 0;
  width: 92px;
  height: 92px;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.ribbon span {
  position: absolute;
  top: 17px;
  left: -25px;
  width: 116px;
  transform: rotate(-45deg);
  display: block;
  padding: 4px 0;
  text-align: center;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.4;
  color: #fff;
  background: #e0522f;
  box-shadow: 0 2px 6px rgba(13, 23, 38, 0.24);
}
.ribbon span::before,
.ribbon span::after {
  content: "";
  position: absolute;
  bottom: -4px;
  border-style: solid;
  border-width: 0 4px 4px 0;
  border-color: transparent;
  border-right-color: #9c3418;
}
.ribbon span::before { left: 21px; }
.ribbon span::after { right: 21px; border-width: 0 0 4px 4px; border-left-color: #9c3418; border-right-color: transparent; }

.ribbon.is-brand span { background: var(--accent); }
.ribbon.is-brand span::before { border-right-color: var(--accent-darker); }
.ribbon.is-brand span::after { border-left-color: var(--accent-darker); }

.badge-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-dark);
  box-shadow: var(--shadow-sm);
}

.product-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-body .cat { font-size: 0.77rem; color: var(--muted); letter-spacing: .03em; }
.product-body h3 { font-size: 1.1rem; margin: 0; }
.product-body h3 a:hover { color: var(--accent); }
.product-body .desc { color: var(--text-dim); font-size: 0.9rem; margin: 0; flex: 1; line-height: 1.66; }

.price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.price { font-size: 1.6rem; font-weight: 750; letter-spacing: -0.035em; }
.price-was { color: var(--muted); text-decoration: line-through; font-size: 0.87rem; }

.stock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ok);
  background: var(--ok-soft);
  padding: 4px 12px;
  border-radius: 999px;
  align-self: flex-start;
}
.stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stock.is-out { color: var(--muted); background: var(--surface-3); }

.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.card-actions > * { flex: 1 1 0; min-width: max-content; }
.card-actions .btn { padding-inline: 14px; }

.empty-box {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

/* ---------- product detail ---------- */

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 404px;
  gap: 56px;
  align-items: start;
}

.product-gallery {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-3);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }

.buy-box {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border-radius: var(--radius);
  padding: 30px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.buy-box .price { font-size: 2.1rem; }

.buy-divider {
  margin: 24px 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.delivery-note {
  font-size: 0.88rem;
  color: var(--text-dim);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 15px 17px;
  line-height: 1.62;
}
.delivery-note strong { display: block; margin-bottom: 5px; color: var(--accent-dark); font-size: 0.81rem; letter-spacing: .02em; }

.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li {
  display: flex;
  gap: 20px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.94rem;
}
.spec-list li:last-child { border-bottom: none; }
.spec-list .k { color: var(--muted); min-width: 132px; flex: 0 0 auto; }

/* ---------- surfaces ---------- */

.panel,
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.panel + .panel { margin-top: 22px; }
.panel h2 { font-size: 1.1rem; margin: 0 0 20px; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.data-table th,
.data-table td {
  padding: 18px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table th { color: var(--muted); font-weight: 600; font-size: 0.83rem; }

/* ---------- forms ---------- */

.form-field { margin-bottom: 22px; }
.form-field label {
  display: block;
  font-size: 0.89rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.form-field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 7px; line-height: 1.55; }
.form-field .opt { color: var(--muted); font-weight: 400; }

.input,
.textarea,
.select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font-size: 0.96rem;
  font-family: inherit;
  box-shadow: inset 0 1px 2px rgba(13, 23, 38, 0.03);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}
.textarea { min-height: 112px; resize: vertical; line-height: 1.6; }

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.91rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.check-row input { margin-top: 5px; flex: 0 0 auto; }
.check-row a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.qty-input { width: 84px; text-align: center; }

/* ---------- flash ---------- */

.flash-wrap { margin-top: 20px; }
.flash {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.93rem;
  margin-bottom: 10px;
  border-left: 3px solid var(--muted);
  box-shadow: var(--shadow-sm);
}
.flash-error { border-left-color: var(--danger); background: var(--danger-soft); }
.flash-success { border-left-color: var(--ok); background: var(--ok-soft); }

/* ---------- order ---------- */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text-dim);
  font-size: 0.84rem;
  font-weight: 600;
}
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.is-paid,
.status-pill.is-completed { background: var(--ok-soft); color: var(--ok); }
.status-pill.is-pending { background: var(--warn-soft); color: var(--warn); }
.status-pill.is-failed,
.status-pill.is-cancelled { background: var(--danger-soft); color: var(--danger); }
.status-pill.is-delivering { background: var(--accent-soft); color: var(--accent-dark); }

.payload-card {
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 10px;
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.payload-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; flex-wrap: wrap; }
.payload-row + .payload-row { border-top: 1px solid rgba(34, 158, 217, 0.2); }
.payload-key { font-size: 0.82rem; color: var(--accent-dark); font-weight: 700; min-width: 82px; }
.payload-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  color: var(--text);
  word-break: break-all;
  flex: 1;
}

.code-box {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.code-head .payload-key { min-width: 0; color: var(--text); }
.code-hint { margin: 8px 0 0; font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.code-hint.is-error { color: var(--danger); }
.code-value { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.code-value code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent-dark);
}
.code-value[hidden] { display: none; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

.payload-box {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.89rem;
  white-space: pre-wrap;
  word-break: break-all;
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ---------- blog ---------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .26s var(--ease), transform .26s var(--ease);
}
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.post-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-3); }

.post-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-body .meta { font-size: 0.79rem; color: var(--muted); }
.post-body h3 { font-size: 1.08rem; margin: 0; }
.post-body p { color: var(--text-dim); font-size: 0.9rem; margin: 0; flex: 1; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 284px;
  gap: 60px;
  align-items: start;
}

.article-body { font-size: 1.04rem; color: var(--text-dim); }
.article-body h2 { font-size: 1.42rem; margin: 44px 0 14px; color: var(--text); }
.article-body h3 { font-size: 1.12rem; margin: 30px 0 10px; color: var(--text); }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 18px; }
.article-body li { margin-bottom: 8px; }
.article-body img { border-radius: var(--radius-sm); margin: 24px 0; box-shadow: var(--shadow-md); }
.article-body blockquote {
  margin: 26px 0;
  padding: 18px 24px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
}
/* 重點摘要圖卡：放在導言之後，只看結論的人與 AI 引擎都會先讀這張 */
.article-body .key-points {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-soft) 100%);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  padding: 24px 28px 20px;
  margin: 30px 0 38px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.article-body .key-points::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
}
.article-body .key-points strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  letter-spacing: .1em;
  color: var(--accent-dark);
  margin-bottom: 14px;
  font-weight: 700;
}
.article-body .key-points strong::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 5px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27white%27%3E%3Cpath d=%27M4 5h16v2H4zm0 6h16v2H4zm0 6h10v2H4z%27/%3E%3C/svg%3E") center/12px no-repeat;
}
.article-body .key-points ul { list-style: none; margin: 0; padding: 0; }
.article-body .key-points li {
  position: relative;
  padding: 8px 0 8px 30px;
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.62;
  border-top: 1px dashed rgba(34, 158, 217, 0.22);
}
.article-body .key-points li:first-child { border-top: none; }
.article-body .key-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27%23229ed9%27%3E%3Cpath d=%27M9.5 16.2L5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z%27/%3E%3C/svg%3E") center/12px no-repeat;
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

/* 第一線觀察段：每篇文章的第一方內容，視覺上要跟一般段落分開 */
.article-body .field-note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 34px 0;
  box-shadow: var(--shadow-xs);
}
.article-body .field-note strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: .09em;
  color: var(--accent-dark);
  margin-bottom: 8px;
  font-weight: 700;
}
.article-body .field-note p { margin: 0; color: var(--text); font-size: 0.97rem; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 0.94rem; margin: 24px 0; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 11px 13px; }
.article-body th { background: var(--surface-2); }

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
}
.toc h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 0 0 14px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin-bottom: 10px; }
.toc a { color: var(--text-dim); }
.toc a:hover { color: var(--accent); }
.toc .lv-3 { padding-left: 16px; font-size: 0.86rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--surface);
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: border-color .15s, color .15s, background .15s, box-shadow .16s, transform .12s var(--ease);
}
.chip:hover { border-color: var(--accent-line); color: var(--accent-dark); box-shadow: var(--shadow-sm); }
.chip:active { transform: scale(.97); }
.chip.is-active { border-color: var(--accent); color: #fff; background: var(--accent); }

/* ---------- post page ---------- */

.post-header { margin-bottom: 26px; }
.post-cat {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.post-cat:hover { background: var(--accent); color: #fff; }
.post-title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0 0 14px; line-height: 1.32; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.86rem;
  color: var(--muted);
}
.post-meta span + span::before { content: "·"; margin-right: 18px; opacity: .6; }

.post-hero {
  margin: 0 0 30px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
  background: var(--surface-3);
}
.post-hero img { width: 100%; height: 100%; object-fit: cover; }

.article-main {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px 44px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.article-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--main-h) + 24px); }
.article-side .toc { position: static; }

.toc-mobile { display: none; }

.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.share-label { font-size: 0.86rem; color: var(--muted); margin-right: 4px; }

.author-card {
  display: flex;
  gap: 18px;
  margin-top: 30px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.author-card .brand-mark { width: 48px; height: 48px; flex: 0 0 auto; }
.author-kicker { font-size: 0.76rem; letter-spacing: .09em; color: var(--muted); font-weight: 700; }
.author-name { font-weight: 700; font-size: 1.05rem; margin: 2px 0 8px; }
.author-card p { margin: 0 0 12px; font-size: 0.92rem; color: var(--text-dim); line-height: 1.7; }

.side-product {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-md);
}
.side-product img { width: 100%; border-radius: var(--radius-sm); margin-bottom: 14px; aspect-ratio: 4 / 3; object-fit: cover; }
.side-kicker { font-size: 0.76rem; letter-spacing: .09em; color: var(--accent-dark); font-weight: 700; margin-bottom: 12px; }
.side-name { font-weight: 700; font-size: 1rem; line-height: 1.45; }
.side-price { font-size: 1.35rem; font-weight: 750; letter-spacing: -0.03em; margin: 6px 0 14px; }

.related-block { margin-top: 64px; }

@media (max-width: 1024px) {
  .article-side { position: static; }
  .article-side .toc { display: none; }
  .toc-mobile {
    display: block;
    margin: 0 0 30px;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 4px 18px;
  }
  .toc-mobile summary {
    cursor: pointer;
    padding: 12px 0;
    font-weight: 600;
    font-size: 0.94rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
  }
  .toc-mobile summary::after { content: "+"; color: var(--accent); font-weight: 400; }
  .toc-mobile[open] summary::after { content: "−"; }
  .toc-mobile ul { list-style: none; margin: 0; padding: 0 0 12px; }
  .toc-mobile li { padding: 6px 0; font-size: 0.9rem; }
  .toc-mobile .lv-3 { padding-left: 16px; }
  .toc-mobile a { color: var(--text-dim); }
}

@media (max-width: 768px) {
  .article-main { padding: 24px 18px; border-radius: var(--radius-sm); }
  .author-card { flex-direction: column; gap: 12px; }
}

/* ---------- faq ---------- */

.faq-item { border-bottom: 1px solid var(--line-soft); padding: 22px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.faq-q span { color: var(--accent); font-weight: 400; }
.faq-a { color: var(--text-dim); font-size: 0.95rem; margin: 0; line-height: 1.75; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 58px 0 34px;
  margin-top: 44px;
  background: var(--surface);
}
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 1.04rem;
}
.footer-brand .brand-mark { width: 28px; height: 28px; }
.footer-about { color: var(--muted); font-size: 0.9rem; margin: 0; max-width: 340px; line-height: 1.7; }
.footer-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 700;
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 10px; }
.footer-list a { color: var(--text-dim); font-size: 0.91rem; }
.footer-bottom {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- mobile tab bar ---------- */

.tab-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 -1px 0 var(--line), 0 -8px 24px -8px rgba(13, 23, 38, 0.12);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab-bar a {
  flex: 1;
  height: var(--tabbar-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  transition: color .15s, transform .12s var(--ease);
}
.tab-bar a svg { width: 21px; height: 21px; }
.tab-bar a.is-active { color: var(--accent); }
.tab-bar a:active { transform: scale(.92); }

/* ---------- floating telegram ---------- */

.tg-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #2eaae3, var(--accent));
  color: #fff;
  border-radius: 50%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 6px 18px -3px rgba(26, 127, 174, 0.5),
    0 14px 32px -10px rgba(13, 23, 38, 0.22);
  transition: transform .18s var(--ease), box-shadow .2s var(--ease);
}
.tg-float svg { width: 26px; height: 26px; }
.tg-float:hover { color: #fff; transform: translateY(-3px) scale(1.04); }
.tg-float:active { transform: scale(.94); }

/* ---------- cart drawer ---------- */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 23, 38, 0.45);
  backdrop-filter: blur(2px);
  z-index: 70;
  opacity: 0;
  transition: opacity .24s var(--ease);
}
.drawer-backdrop.is-open { opacity: 1; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 424px;
  max-width: 92vw;
  background: var(--surface);
  box-shadow: var(--shadow-xl);
  z-index: 80;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
}
.cart-drawer.is-open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line-soft);
  flex: 0 0 auto;
}
.drawer-head strong { font-size: 1.05rem; }

.drawer-close {
  background: transparent;
  border: none;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
  border-radius: 6px;
}
.drawer-close:hover { color: var(--text); }

.drawer-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.drawer-items { padding: 8px 22px; flex: 1; }

.drawer-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.drawer-item:last-child { border-bottom: none; }

.drawer-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--surface-3);
  flex: 0 0 auto;
  box-shadow: var(--shadow-xs);
}

.drawer-info { flex: 1; min-width: 0; }
.drawer-name { display: block; font-weight: 600; font-size: 0.94rem; line-height: 1.45; }
.drawer-unit { font-size: 0.82rem; color: var(--muted); margin: 2px 0 10px; }

.drawer-qty { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.qty-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-dim);
  font-family: inherit;
  box-shadow: var(--shadow-xs);
  transition: border-color .15s, color .15s, transform .12s var(--ease);
}
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.qty-btn:active { transform: scale(.9); }

.qty-val {
  width: 50px;
  height: 30px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
}
.qty-val:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }

.drawer-remove {
  margin-left: 6px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.81rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: inherit;
  padding: 0;
}
.drawer-remove:hover { color: var(--danger); }

.drawer-sub { font-weight: 700; font-size: 0.94rem; white-space: nowrap; }

.drawer-empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.drawer-empty p { margin: 0; }
.drawer-empty .btn { align-self: center; }

.drawer-foot {
  padding: 20px 22px 24px;
  background: var(--surface-2);
  box-shadow: 0 -1px 0 var(--line), 0 -10px 24px -12px rgba(13, 23, 38, 0.14);
  flex: 0 0 auto;
}
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.drawer-total span { color: var(--muted); font-size: 0.9rem; }
.drawer-total strong { font-size: 1.4rem; letter-spacing: -0.03em; }

body.drawer-open { overflow: hidden; }

/* ---------- gateway redirect ---------- */

.body-blank {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  background: var(--bg);
}
.redirect-box {
  max-width: 400px;
  padding: 42px 30px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.redirect-spinner {
  width: 38px; height: 38px;
  border: 3px solid var(--surface-3);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 22px;
  animation: tgspin .8s linear infinite;
}
@keyframes tgspin { to { transform: rotate(360deg); } }

/* ---------- entrance ---------- */

@media (prefers-reduced-motion: no-preference) {
  main { animation: tgfade .32s var(--ease) both; }
}
@keyframes tgfade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .search-form { max-width: 240px; }
  .main-nav { gap: 22px; }
  .header-inner { gap: 18px; }
}

@media (max-width: 1024px) {
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .buy-box { position: static; }
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  :root { --main-h: 60px; }

  .utility-bar { display: none; }
  .search-form { display: none; }
  .search-trigger { display: inline-flex; }

  .header-inner { gap: 10px; }
  .nav-toggle { display: flex; }
  .brand { flex: 1; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--main-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    padding: 8px 24px 16px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav > a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .main-nav > a.is-active::after { display: none; }
  .main-nav-extra { display: flex; flex-direction: column; }
  .main-nav-extra a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 0.92rem; }

  .tab-bar { display: flex; }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  /* 底部 tab bar 已經有客服了，浮動鈕在手機版是重複的 */
  .tg-float { display: none; }
  .site-footer { margin-bottom: 0; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 46px 0; }
  .page-head { padding: 34px 0 30px; }
  .banner-slide { padding: 34px 24px; min-height: 0; border-radius: var(--radius-sm); }
  .panel, .card { padding: 22px; }
  .buy-box { padding: 22px; }
  .product-grid, .post-grid { grid-template-columns: 1fr; gap: 18px; }
  .announce-inner { justify-content: flex-start; padding-right: 36px; text-align: left; }
  /* 卡片變窄，緞帶要跟著縮，不然佔比太重 */
  .ribbon { width: 76px; height: 76px; }
  .ribbon span { top: 13px; left: -23px; width: 98px; font-size: .6rem; padding: 3px 0; }
  .ribbon span::before { left: 17px; }
  .ribbon span::after { right: 17px; }
  .search-form-page { flex-direction: column; }
}

/* 手機版把購物車表格攤成卡片，390px 用表格會擠成三行 */
@media (max-width: 640px) {
  .page-cart .data-table thead { display: none; }
  .page-cart .data-table,
  .page-cart .data-table tbody,
  .page-cart .data-table tr,
  .page-cart .data-table td { display: block; width: 100%; }
  .page-cart .data-table tr { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
  .page-cart .data-table tr:last-child { border-bottom: none; }
  .page-cart .data-table td { border: none; padding: 5px 0; text-align: left !important; }
  .page-cart .data-table td:first-child { font-weight: 600; }
  .page-cart .data-table td:nth-child(2),
  .page-cart .data-table td:nth-child(3),
  .page-cart .data-table td:nth-child(4) {
    display: inline-block;
    width: auto;
    vertical-align: middle;
    margin-right: 18px;
  }
  .page-cart .qty-input { width: 72px; }
}

@media (max-width: 585px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .brand-text { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .spec-list li { flex-direction: column; gap: 4px; }
  .spec-list .k { min-width: 0; }
  .data-table th, .data-table td { padding: 14px 8px; }
  .tg-float { right: 16px; width: 50px; height: 50px; }
  .announce-bar { font-size: 0.79rem; }
}
