:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #0f172a;
  --accent: #e11d48;
  --accent-soft: #fff1f2;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226,232,240,0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: white;
  font-size: 20px;
  font-weight: 700;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #475569;
  font-size: 14px;
}

.header-cta,
.btn,
.ghost-btn,
.icon-btn,
.chip,
.thumb {
  border: 0;
  cursor: pointer;
}

.header-cta,
.btn {
  background: var(--primary);
  color: #fff;
  border-radius: 16px;
  padding: 12px 18px;
  font-weight: 600;
}

.btn.secondary {
  background: #fff;
  color: var(--primary);
}

.btn.outline {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}

.hero-alt-btn {
  background: rgba(255,255,255,0.12);
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.hero {
  padding: 26px 0 14px;
}

.hero-card {
  border-radius: 36px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #111827 100%);
  color: #fff;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.15;
  margin: 16px 0 0;
}

.hero p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.78);
  max-width: 760px;
  margin: 18px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hero-box {
  border-radius: 24px;
  background: rgba(255,255,255,0.1);
  padding: 20px;
}

.hero-box h3 {
  margin: 0;
  font-size: 18px;
}

.hero-box p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
}

.section {
  padding: 18px 0;
}

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 34px;
  margin: 0;
}

.section-desc {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.toolbar-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  width: min(100%, 560px);
}

.search-box {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.search-box input,
.select,
.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 16px;
  padding: 12px 14px;
  outline: none;
}

.search-box input {
  padding-left: 42px;
  height: 46px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
}

.select {
  width: 180px;
  height: 46px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.chip {
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.result-count {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.product-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card,
.feature-card,
.support-card,
.recommend-panel,
.detail-panel,
.side-panel,
.hot-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.product-card {
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}

.product-card:hover,
.hot-item:hover,
.recommend-item:hover {
  transform: translateY(-4px);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  background: #e2e8f0;
}

.product-media img,
.hot-image img,
.gallery-main img,
.thumb img,
.recommend-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-badges {
  position: static;
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
}

.badge.hot {
  background: var(--accent);
  color: #fff;
}

.product-content {
  padding: 18px;
}

.product-name {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}

.product-short {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  min-height: 48px;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #64748b;
  font-size: 14px;
}

.star {
  color: #f59e0b;
}

.price-row {
  margin-top: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.price-main {
  font-size: 30px;
  line-height: 1;
  color: var(--accent);
  font-weight: 800;
}

.price-old {
  margin-top: 6px;
  font-size: 14px;
  color: #94a3b8;
  text-decoration: line-through;
}

.small-btn {
  background: var(--primary);
  color: #fff;
  border-radius: 16px;
  padding: 11px 14px;
  font-weight: 600;
  white-space: nowrap;
}

.hot-card,
.feature-wrap {
  padding: 24px;
}

.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-head-row h2,
.detail-section h2,
.side-panel h2,
.detail-panel h1 {
  margin: 0;
}

.hot-grid,
.features-grid,
.support-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.hot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.support-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.hot-item,
.recommend-item {
  border-radius: 24px;
  background: #f8fafc;
  padding: 14px;
  transition: transform .25s ease, background .25s ease;
  cursor: pointer;
}

.hot-item:hover,
.recommend-item:hover { background: #f1f5f9; }

.hot-image {
  aspect-ratio: 1.2 / 1;
  border-radius: 22px;
  overflow: hidden;
  background: #e2e8f0;
}

.hot-info {
  margin-top: 14px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.hot-title {
  font-size: 16px;
  font-weight: 700;
}

.hot-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.hot-price {
  text-align: right;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

.feature-card,
.support-card {
  padding: 24px;
}

.feature-card h3,
.support-card h3,
.detail-block-title {
  margin: 0;
  font-size: 22px;
}

.feature-card p,
.support-card p {
  margin: 12px 0 0;
  line-height: 1.8;
  color: var(--muted);
  font-size: 14px;
}

.support-icon {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  margin-bottom: 12px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  margin: 24px 0 0;
}

.breadcrumbs a { cursor: pointer; }
.breadcrumbs .current { color: var(--text); }

.detail-top {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 24px;
}

.gallery-box,
.detail-panel,
.detail-section,
.side-panel {
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow);
}

.gallery-box {
  padding: 0;
  overflow: hidden;
}

.gallery-main {
  aspect-ratio: 1 / 1;
  background: #e2e8f0;
}

.thumb-row {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.thumb {
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #e2e8f0;
  aspect-ratio: 1 / 1;
  padding: 0;
}

.thumb.active {
  border-color: var(--primary);
}

.detail-panel {
  padding: 28px;
}

.detail-desc {
  margin: 14px 0 0;
  line-height: 1.85;
  color: var(--muted);
}

.detail-subtitle {
  margin-top: 20px;
  font-weight: 700;
  color: var(--muted);
}

.price-panel {
  margin-top: 22px;
  background: var(--accent-soft);
  border-radius: 26px;
  padding: 20px;
}

.price-inline {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.price-note {
  margin: 10px 0 0;
  color: #be123c;
  font-size: 14px;
}

.highlight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.detail-bottom {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.detail-section,
.side-panel {
  padding: 24px;
}

.detail-stack,
.side-stack {
  display: grid;
  gap: 24px;
}

.detail-list,
.side-list,
.recommend-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.detail-point,
.doc-item,
.promise-item {
  border-radius: 18px;
  background: #f8fafc;
  padding: 14px 16px;
  line-height: 1.8;
  color: #334155;
  font-size: 14px;
}

.spec-table {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}

.spec-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.spec-row:last-child { border-bottom: 0; }
.spec-label { color: var(--muted); font-weight: 600; }

.doc-item {
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.doc-item button {
  border: 0;
  background: transparent;
  color: #334155;
  font-weight: 600;
  cursor: pointer;
}

.form-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.recommend-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
}

.recommend-thumb {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  overflow: hidden;
  background: #e2e8f0;
}

.recommend-name {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recommend-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.recommend-price {
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
  margin-top: 8px;
}

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-bottom { grid-template-columns: 1fr; }
  .hero-card, .detail-top { grid-template-columns: 1fr; }
  .support-grid, .features-grid, .hot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .header-nav, .header-cta { display: none; }
  .hero-card { padding: 26px; }
  .hero-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-title { font-size: 28px; }
}

@media (max-width: 560px) {
  .container { width: min(var(--wrap), calc(100% - 20px)); }
  .product-grid { grid-template-columns: 1fr; }
  .thumb-row { grid-template-columns: repeat(3, 1fr); }
  .detail-panel, .detail-section, .side-panel, .hot-card, .feature-card, .support-card { padding: 18px; }
  .hero h1 { font-size: 32px; }
  .hero-card { border-radius: 26px; }
  .spec-row { grid-template-columns: 1fr; gap: 6px; }
}

.hidden{display:none;}
