
: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, "Helvetica Neue", Arial, 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,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226,232,240,.9);
}
.header-inner {
  min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; gap: 14px; align-items: center; }
.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; gap: 24px; font-size: 14px; color: #475569; }
.header-cta, .btn, .chip, .icon-btn, .thumb {
  border: 0; cursor: pointer;
}
.header-cta, .btn {
  background: var(--primary); color: white; border-radius: 16px; padding: 12px 18px; font-weight: 600;
}
.btn.secondary { background: white; color: var(--primary); }
.btn.outline { background: white; 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: white; 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);
}
.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); 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,.74); }
.section { padding: 18px 0; }
.feature-card, .hot-card, .detail-panel, .detail-section, .side-panel, .product-card {
  background: var(--card); border-radius: var(--radius-xl); box-shadow: var(--shadow);
}
.feature-card, .hot-card, .detail-panel, .detail-section, .side-panel { padding: 24px; }
.features-grid, .hot-grid { display: grid; gap: 16px; }
.features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }
.feature-card h3, .hot-title, .detail-section h2, .side-panel h2 { margin: 0; }
.feature-card p, .section-desc, .hot-sub { color: var(--muted); line-height: 1.8; }
.platform-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.platform-tag, .chip, .badge {
  display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); color: #475569; font-size: 14px;
}
.toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-title { font-size: 34px; margin: 0; }
.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.active { background: var(--primary); color: white; 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 { overflow: hidden; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.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, .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; }
.badge.hot { background: var(--accent); color: white; border-color: var(--accent); }
.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: white; border-radius: 16px; padding: 11px 14px; font-weight: 600; }
.hot-item, .recommend-item { border-radius: 24px; background: #f8fafc; padding: 14px; transition: transform .25s ease, background .25s ease; }
.dual-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.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; }
.detail-top { margin-top: 20px; display: grid; grid-template-columns: 1fr 0.95fr; gap: 24px; }
.gallery-box { border-radius: 32px; background: white; box-shadow: var(--shadow); overflow: hidden; }
.gallery-main { aspect-ratio: 1 / 1; background: #e2e8f0; }
.thumb-row { padding: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.thumb { border-radius: 18px; overflow: hidden; border: 2px solid transparent; background: #e2e8f0; aspect-ratio: 1 / 1; padding: 0; }
.thumb.active { border-color: var(--primary); }
.detail-badges { position: static; margin-bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.detail-desc { margin: 14px 0 0; line-height: 1.85; color: var(--muted); }
.creator-angle { margin-top: 16px; padding: 16px; border-radius: 20px; background: #f8fafc; color: #334155; line-height: 1.8; }
.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, .detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.divider { height: 1px; background: var(--line); margin: 24px 0; }
.detail-bottom { margin-top: 24px; display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.detail-stack, .side-stack, .detail-list, .side-list, .recommend-list { display: grid; gap: 12px; }
.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: white; border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.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: white; }
.recommend-thumb { width: 84px; height: 84px; border-radius: 18px; overflow: hidden; background: #e2e8f0; }
.recommend-name { font-weight: 700; font-size: 14px; }
.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, .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 { padding: 18px; }
  .hero h1 { font-size: 32px; }
  .hero-card { border-radius: 26px; }
  .spec-row { grid-template-columns: 1fr; gap: 6px; }
}
