:root {
  --navy: #123b63;
  --navy-deep: #0d2c4a;
  --teal: #1e9e8a;
  --teal-dark: #167b6b;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --line: #e3e8ef;
  --text: #1f2937;
  --muted: #5b6675;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(18, 59, 99, .08);
  --shadow-lg: 0 10px 32px rgba(18, 59, 99, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 8px 14px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { left: 12px; }

.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.brand img { border-radius: 8px; }
.brand:hover { color: var(--navy); }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  position: relative;
}
.main-nav a:hover { background: #f0f5f8; color: var(--navy); }
.main-nav a.active { color: var(--navy); font-weight: 700; }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.header-actions { display: flex; gap: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 4px 12px rgba(30,158,138,.22); }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--navy); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-lg { min-height: 50px; padding: 0 28px; font-size: 16px; }

.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head h2 { margin: 0 0 12px; font-size: 30px; line-height: 1.25; color: var(--navy); }
.section-head p { margin: 0; color: var(--muted); font-size: 16px; }

.hero {
  background: linear-gradient(135deg, #f7fbff 0%, #eef8f5 100%);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 64px;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { margin: 0 0 18px; font-size: 46px; line-height: 1.18; color: var(--navy); letter-spacing: -.02em; }
.hero p { margin: 0 0 28px; font-size: 18px; color: var(--muted); max-width: 620px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-visual {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 28px;
}
.hero-visual h3 { margin: 0 0 18px; color: var(--navy); font-size: 18px; }
.hero-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hero-mini {
  border-radius: var(--radius-sm);
  background: #f6f9fb;
  padding: 16px;
  border: 1px solid var(--line);
}
.hero-mini strong { display: block; color: var(--navy); font-size: 20px; }
.hero-mini span { color: var(--muted); font-size: 13px; }

.search-bar {
  display: flex;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}
.search-bar input,
.search-bar select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}
.search-bar input { flex: 2; min-width: 200px; }
.search-bar select { flex: 1; min-width: 130px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card h3 { margin: 0 0 10px; color: var(--navy); font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card .card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: #e8f6f3; color: var(--teal-dark);
  font-weight: 800; margin-bottom: 14px;
}
.card-link { display: inline-block; margin-top: 14px; color: var(--teal-dark); font-weight: 600; font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: step; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 30px; height: 30px; margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 13px;
}
.step strong { display: block; color: var(--navy); font-size: 15px; }

.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 44px 0; }
.page-head h1 { margin: 0 0 10px; font-size: 36px; color: var(--navy); }
.page-head p { margin: 0; color: var(--muted); max-width: 760px; }

.breadcrumb { padding: 20px 0 0; color: var(--muted); font-size: 13px; }
.breadcrumb a:hover { color: var(--teal-dark); }

.filter-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 24px;
}
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; min-height: 42px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; background: #fff; color: var(--text);
}
.field select:focus, .field input:focus { outline: 2px solid rgba(30,158,138,.35); border-color: var(--teal); }

.list-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: var(--muted); font-size: 14px; }
.list-toolbar select { min-height: 38px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 10px; font: inherit; }

.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.listing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.listing-card a { display: block; }
.listing-card .thumb { aspect-ratio: 16 / 10; background: #e9eef3; overflow: hidden; }
.listing-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.listing-card-body { padding: 16px; }
.listing-card h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.45; color: var(--navy); }
.listing-meta { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.listing-price { display: flex; align-items: baseline; gap: 8px; }
.listing-price strong { font-size: 22px; color: var(--teal-dark); }
.listing-price span { font-size: 13px; color: var(--muted); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #e8f6f3; color: var(--teal-dark); font-size: 12px; font-weight: 600; margin-bottom: 8px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin: 36px 0 8px; flex-wrap: wrap; }
.pagination a, .pagination button {
  min-width: 40px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--navy); font: inherit; cursor: pointer;
}
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

.empty-state, .error-state {
  background: var(--surface); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 48px 24px; text-align: center; color: var(--muted);
}
.empty-state strong, .error-state strong { display: block; color: var(--navy); font-size: 18px; margin-bottom: 8px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 28px; align-items: start; }
.gallery { display: grid; grid-template-columns: 1fr 160px; gap: 10px; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: #e9eef3; }
.gallery-main img { width: 100%; height: 420px; object-fit: cover; }
.gallery-thumbs { display: grid; gap: 10px; max-height: 420px; overflow: auto; }
.gallery-thumbs img { width: 160px; height: 108px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; border: 2px solid transparent; }
.gallery-thumbs img.active { border-color: var(--teal); }
.detail-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: sticky; top: 96px; }
.detail-panel .price { font-size: 32px; color: var(--teal-dark); font-weight: 700; margin-bottom: 4px; }
.detail-panel .price-unit { color: var(--muted); font-size: 14px; }
.detail-panel .btn { width: 100%; margin-top: 14px; }
.fact-list { margin: 20px 0 0; padding: 0; list-style: none; }
.fact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.fact-list li span:first-child { color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { background: #f0f5f8; border-radius: 999px; padding: 4px 10px; font-size: 12px; color: var(--navy); }

.prose h2 { margin: 32px 0 12px; color: var(--navy); font-size: 22px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 22px; }
.prose strong { color: var(--text); }

table.rules { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.rules th, table.rules td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; vertical-align: top; }
table.rules th { background: #f3f7fa; color: var(--navy); font-weight: 700; }
table.rules tr:last-child td { border-bottom: 0; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-q { width: 100%; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; background: none; border: 0; font: inherit; font-weight: 700; color: var(--navy); text-align: left; cursor: pointer; }
.faq-a { margin: 0 0 18px; color: var(--muted); }
.faq-a[hidden] { display: none; }

.cta-band { background: var(--navy); color: #fff; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 36px; padding-bottom: 36px; }
.cta-band h2 { margin: 0 0 6px; font-size: 26px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.75); }
.cta-band .btn-ghost { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }

.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 56px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 40px; }
.footer-grid h3 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer-grid a { display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: #fff; }
.footer-brand { color: #fff; }
.footer-note, .footer-contact { margin: 10px 0 0; color: rgba(255,255,255,.62); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; }

@media (max-width: 1100px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .filter-bar { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1200px); }
  .hero-inner, .detail-layout, .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero-visual { display: none; }
  .cards, .listing-grid, .steps { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); max-height: none; }
  .gallery-thumbs img { width: 100%; height: 80px; }
  .detail-panel { position: static; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}
