:root {
  --ink: #122029;
  --ink-soft: #4a5d6a;
  --muted: #5a6d79;
  --mist: #eef4f5;
  --paper: #f8fbfb;
  --teal: #0b6b66;
  --teal-deep: #084e4a;
  --teal-soft: rgba(11, 107, 102, 0.12);
  --rose: #c45c6a;
  --sand: #d9e4e2;
  --line: #c5d4d1;
  --good: #1f7a4c;
  --radius: 18px;
  --shadow: 0 10px 28px rgba(18, 32, 41, 0.06);
  --font-body: "Noto Sans TC", "Manrope", sans-serif;
  --font-display: "Fraunces", "Noto Serif TC", serif;
  --fs-body: 17px;
  --fs-sm: 14px;
  --fs-xs: 13px;
  --lh: 1.65;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh);
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 8% -8%, #cfeae6 0%, transparent 58%),
    radial-gradient(900px 480px at 100% 0%, #f3e0e4 0%, transparent 48%),
    linear-gradient(180deg, var(--mist) 0%, var(--paper) 42%, #e7f0ef 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  position: relative;
  overflow: hidden;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  border-bottom: 0;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    url("img/hero.jpg?v=20260819sea") center 40% / cover no-repeat;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 40, 42, 0.78) 0%, rgba(8, 40, 42, 0.45) 48%, rgba(8, 40, 42, 0.25) 100%),
    linear-gradient(180deg, rgba(8, 40, 42, 0.15) 0%, rgba(8, 40, 42, 0.72) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 72px;
  padding-bottom: 56px;
  max-width: 1180px;
  animation: riseIn 0.8s ease both;
}

.site-header .eyebrow {
  color: #b7e4df;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.site-header .lead {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
  max-width: 34rem;
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  align-items: center;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.hero-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 0.98rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 2px;
}
.hero-link:hover { color: #fff; }

@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.2%, -1%, 0); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.wrap {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 28px 24px;
}

.main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 28px 64px;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 22px;
  animation: riseIn 0.7s ease 0.1s both;
}
.status-bar .l {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.status-bar .v {
  font-weight: 700;
  color: var(--teal-deep);
}

.mood-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.mood {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 180px;
  box-shadow: var(--shadow);
  animation: riseIn 0.75s ease both;
}
.mood:nth-child(2) { animation-delay: 0.08s; }
.mood:nth-child(3) { animation-delay: 0.16s; }

.mood img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.mood:hover img { transform: scale(1.05); }

.mood figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* remove old hero-row rules reliance */
.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin: 0 0 10px;
}

.lead {
  margin: 14px 0 0;
  color: var(--ink-soft);
  max-width: 38rem;
  line-height: 1.7;
  font-size: 1.05rem;
}

.surface {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(201, 214, 212, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.update-card {
  padding: 16px 18px;
  min-width: 200px;
}

.update-card .l {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.update-card .v {
  margin-top: 6px;
  font-weight: 700;
  font-size: 1.05rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 28px;
}

.stat {
  padding: 18px 18px;
  min-width: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(18, 32, 41, 0.08);
}
.stat .l {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  font-weight: 500;
}
.stat .v {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat .h {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}

.filters {
  padding: 22px 24px;
  margin-bottom: 28px;
}

.filters-top {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-end;
}

.filters h2,
.compare-block h2,
.list-col h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip:hover {
  border-color: rgba(11, 107, 102, 0.45);
  color: var(--teal-deep);
}

.chip.active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

input[type="search"] {
  width: 100%;
  max-width: 360px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 1rem;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
}

input[type="search"]:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(11, 107, 102, 0.18);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 1fr);
  gap: 28px;
  align-items: start;
}

.list-col { min-width: 0; }
.list-col h2 { margin: 0 0 14px; }

.card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 0;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 14px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.card-media {
  min-height: 100%;
  background-size: cover;
  background-position: center;
  background-color: #d9e4e2;
}

.card-body {
  padding: 16px 16px 16px 14px;
  min-width: 0;
}

.card:hover {
  border-color: rgba(11, 107, 102, 0.45);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card.active {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px var(--teal-soft), var(--shadow);
  background: #fff;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.card .name {
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.4;
}

.card .meta {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  margin-top: 6px;
  line-height: 1.45;
}

.card .price {
  font-family: var(--font-display);
  color: var(--teal-deep);
  font-size: 1.35rem;
  font-weight: 600;
  white-space: nowrap;
}

.card-price { text-align: right; flex-shrink: 0; }

.card-rating {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-top: 12px;
  font-size: var(--fs-sm);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  font-size: var(--fs-xs);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--ink-soft);
  background: var(--paper);
  font-weight: 500;
}

.tag.sand {
  border: 0;
  background: var(--sand);
  color: var(--ink);
}

.stars {
  color: var(--rose);
  letter-spacing: 1px;
  font-size: 1.05rem;
}

.aside {
  position: sticky;
  top: 20px;
  min-width: 0;
  align-self: start;
}

.aside .panel {
  padding: 22px;
  margin-bottom: 16px;
  overflow: hidden;
}

.aside .panel.has-cover {
  padding: 0;
}

.aside-cover {
  height: 168px;
  background-size: cover;
  background-position: center;
  background-color: #d9e4e2;
}

.panel-pad {
  padding: 18px 22px 22px;
}

.aside h3 {
  margin: 8px 0;
  font-size: clamp(1.4rem, 2vw, 1.65rem);
  line-height: 1.3;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}

.meta-box {
  background: var(--paper);
  border-radius: 14px;
  padding: 12px 14px;
  min-width: 0;
  border: 1px solid rgba(201, 214, 212, 0.55);
}

.meta-box .l {
  font-size: var(--fs-xs);
  color: var(--ink-soft);
  font-weight: 500;
}
.meta-box .v {
  font-size: 0.98rem;
  font-weight: 650;
  margin-top: 5px;
  line-height: 1.45;
  word-break: break-word;
}

.aside ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

.aside h4 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
}

.notes {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wa-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: #128c7e;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.wa-btn:hover {
  background: #0e6f64;
  transform: translateY(-1px);
}

.compare-block {
  padding: 22px 24px;
  margin-bottom: 28px;
}

.diff-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.diff-insights .insight {
  background: linear-gradient(165deg, #f2faf8, #fff);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  transition: transform 0.18s ease;
}
.diff-insights .insight:hover { transform: translateY(-2px); }

.diff-insights .insight .k {
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: 0.02em;
  font-weight: 500;
}

.diff-insights .insight .v {
  margin-top: 6px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.compare-scroll {
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  min-width: 1040px;
}

.compare-table th,
.compare-table td {
  border-bottom: 1px solid #e8eeef;
  padding: 11px 12px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.compare-table th {
  background: #f2f7f7;
  font-weight: 700;
  font-size: 0.95rem;
  position: sticky;
  top: 0;
}

.compare-table th.feat,
.compare-table td.feat {
  text-align: left;
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 1;
  min-width: 168px;
  white-space: normal;
  font-weight: 650;
  font-size: 0.95rem;
}

.compare-table th.feat { background: #f2f7f7; z-index: 2; }

.compare-table .yes {
  color: var(--good);
  font-weight: 700;
  font-size: 1.05rem;
}
.compare-table .no { color: #b0b8bd; font-size: 1rem; }

.compare-table tr.group-row td {
  background: #eaf5f3;
  text-align: left;
  font-weight: 700;
  color: var(--teal-deep);
  font-size: 0.95rem;
  padding-top: 12px;
  padding-bottom: 12px;
}

.diff-card .pkg-list {
  margin: 12px 0 0;
  padding-left: 1.2em;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink);
}
.diff-card .pkg-list .muted { font-weight: 400; }

.diff-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.diff-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.92);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.diff-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.diff-card h4 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}
.diff-card .tier {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  background: var(--sand);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}
.diff-card p {
  margin: 6px 0;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.55;
}

.review {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  margin-top: 12px;
}

.review .top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: var(--fs-sm);
}

.reviews-scroll {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
  margin-top: 4px;
}

.reviews-scroll .review:first-child {
  margin-top: 8px;
}

.muted {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.match-block {
  padding: 22px 24px;
  margin-bottom: 28px;
}

.match-q {
  margin-top: 16px;
}

.match-q h3 {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0;
}

.match-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.match-opt {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: 0.15s ease;
}
.match-opt:hover {
  border-color: rgba(11, 107, 102, 0.45);
  color: var(--teal-deep);
}
.match-opt.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.match-run {
  border: 0;
  cursor: pointer;
}
.match-reset {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: var(--fs-sm);
  cursor: pointer;
  text-decoration: underline;
}

.match-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.match-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: linear-gradient(165deg, #f3faf8, #fff);
}
.match-card h4 {
  margin: 6px 0 4px;
  font-size: 1.05rem;
  line-height: 1.35;
}
.match-rank {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-deep);
  background: var(--teal-soft);
  border-radius: 999px;
  padding: 3px 8px;
}
.match-price {
  margin: 0 0 8px;
  color: var(--teal-deep);
  font-weight: 700;
  font-size: var(--fs-sm);
}
.match-card ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.match-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.match-select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}
.match-wa {
  border: 0;
  cursor: pointer;
  padding: 8px 12px;
  font-size: var(--fs-sm);
}

.footer {
  margin-top: 32px;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.55;
}

@media (max-width: 1024px) {
  .wrap, .main { padding-left: 18px; padding-right: 18px; }
  .layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.95fr);
    gap: 18px;
  }
}

@media (max-width: 860px) {
  :root { --fs-body: 16px; }
  .site-header { min-height: min(70vh, 520px); }
  .mood-strip { grid-template-columns: 1fr; }
  .mood img { height: 160px; }
  .card {
    grid-template-columns: 1fr;
  }
  .card-media {
    height: 140px;
    min-height: 140px;
  }
  .stats { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: 1fr; }
  .aside { position: static; }
  .diff-cards { grid-template-columns: 1fr; }
  .match-results { grid-template-columns: 1fr; }
  .card .price { font-size: 1.2rem; }
}

/* —— 導覽／智能標示／手機優化（保留完整內容） —— */
.jump-nav {
  display: none;
  position: sticky;
  top: 0;
  z-index: 40;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(248, 251, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.jump-nav::-webkit-scrollbar { display: none; }
.jump-nav a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.jump-nav a:active { background: var(--teal-soft); color: var(--teal-deep); }

.compare-hint {
  display: none;
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.card.matched {
  outline: 2px solid rgba(11, 107, 102, 0.45);
  box-shadow: 0 0 0 4px rgba(11, 107, 102, 0.08);
}
.card.matched::after {
  content: "配對推薦";
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}
.card { position: relative; }

.compare-table col.matched,
.compare-table th.matched,
.compare-table td.matched {
  background: rgba(11, 107, 102, 0.08);
}

.match-opt {
  min-height: 44px;
  padding: 12px 14px;
  font-size: 15px;
}
.chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.chips .chip { flex: 0 0 auto; }

.sheet[hidden] { display: none !important; }
.sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
}
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 32, 41, 0.45);
}
.sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(88vh, 760px);
  overflow: auto;
  background: var(--paper);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 40px rgba(18, 32, 41, 0.18);
  padding: 8px 16px 28px;
  -webkit-overflow-scrolling: touch;
}
.sheet-grab {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #c5d0ce;
  margin: 6px auto 10px;
}
.sheet-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
}
.sheet-body { clear: both; padding-top: 4px; }
.sheet-body .panel { box-shadow: none; border: 0; background: transparent; padding: 0; }

@media (max-width: 860px) {
  .jump-nav { display: flex; }
  .compare-hint { display: block; }
  .main { padding-bottom: 28px; }
  .aside {
    display: none; /* 手機改用底部詳情面板，避免雙欄擠迫 */
  }
  .filters-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .filters-top input[type="search"] {
    width: 100%;
    min-height: 44px;
  }
  .match-opts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .match-actions {
    position: sticky;
    bottom: 8px;
    z-index: 5;
    background: rgba(248, 251, 251, 0.94);
    backdrop-filter: blur(8px);
    padding: 10px 8px;
    border-radius: 14px;
    border: 1px solid var(--line);
  }
  .match-run, .hero-cta {
    min-height: 46px;
  }
  .compare-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .compare-table {
    min-width: 720px;
  }
  .compare-table th:first-child,
  .compare-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #f7fbfb;
    box-shadow: 4px 0 10px rgba(18, 32, 41, 0.06);
  }
  .compare-table thead th:first-child { z-index: 4; }
}

@media (min-width: 861px) {
  .sheet { display: none !important; }
}



@media (max-width: 860px) {
  .card .name { font-size: 1.05rem; }
  .card-body { padding: 12px 14px 14px; }
  .sheet-panel {
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }
  .jump-nav {
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
  }
  .compare-table th, .compare-table td {
    font-size: 13px;
    padding: 10px 8px;
  }
  .match-card { padding: 14px; }
  .match-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .match-select, .match-wa {
    min-height: 44px;
    flex: 1;
  }
}
