:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #1c2430;
  --muted: #667085;
  --line: #e6ebf0;
  --accent: #0f6b5c;
  --accent-soft: #e7f4f1;
  --warn: #c45c26;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 36, 48, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #d9efe9 0%, transparent 60%),
    radial-gradient(900px 400px at 100% 0%, #f2e8de 0%, transparent 55%),
    var(--bg);
  min-width: 320px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(230,235,240,0.9);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.brand img { height: 36px; width: auto; }
.site-nav { display: flex; gap: 18px; }
.nav-link {
  color: var(--muted);
  font-size: 15px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--accent); border-color: var(--accent); }

.site-main { padding-bottom: 60px; }

.hero-banner {
  width: 100%;
  height: clamp(220px, 36vw, 420px);
  overflow: hidden;
  background: #0d1b1a;
}
.hero-banner .swiper-container,
.hero-banner .swiper-slide { height: 100%; }
.banner-slide {
  display: block;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.hero-banner .swiper-pagination-bullet-active { background: var(--accent); }

.intro-strip {
  padding: 42px 0 10px;
  text-align: center;
}
.intro-strip h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.04em;
}
.intro-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.product-section { padding: 28px 0 10px; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.section-head h2 {
  margin: 0;
  font-size: 24px;
}
.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-item {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.filter-item.is-active,
.filter-item:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15,107,92,0.25);
  box-shadow: 0 16px 36px rgba(28, 36, 48, 0.12);
}
.product-card .thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #eef2f5;
  overflow: hidden;
}
.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.product-card:hover .thumb img { transform: scale(1.04); }
.badge {
  display: inline-block;
  background: var(--warn);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}
.product-card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
}
.meta { padding: 16px 16px 18px; }
.meta h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}
.meta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}
.price {
  margin-top: 12px;
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
}

.recommend-section .section-head h2 { color: var(--accent); }

.empty-tip {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px dashed var(--line);
}

.pager {
  margin-top: 28px;
  text-align: center;
}
.pager a, .pager span {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}
.pager .active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.78);
  padding: 36px 0 28px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.footer-inner { padding: 0 8px; }
.footer-hotline { margin-bottom: 14px; }
.footer-label {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #667085;
}
.footer-phone {
  margin: 0;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.footer-copy {
  margin: 0;
  color: #7a8494;
  line-height: 1.8;
}
.footer-icp { margin-left: 10px; }
.site-footer a { color: var(--accent); }

/* detail */
.detail-page { padding: 28px 0 10px; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
}
.breadcrumb em { color: var(--ink); font-style: normal; }
.detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  background: var(--surface);
  border-radius: calc(var(--radius) + 4px);
  padding: 22px;
  box-shadow: var(--shadow);
}
.detail-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: #eef2f5;
}
.detail-media img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
}
.detail-summary h1 {
  margin: 12px 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
}
.detail-summary .desc {
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}
.detail-summary .extra {
  margin-top: 10px;
  color: var(--muted);
}
.back-link {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.detail-body, .related-section {
  margin-top: 28px;
  background: var(--surface);
  border-radius: calc(var(--radius) + 4px);
  padding: 24px;
  box-shadow: var(--shadow);
}
.detail-body h2, .related-section h2 {
  margin: 0 0 16px;
  font-size: 20px;
}
.rich-content {
  line-height: 1.8;
  color: #334155;
  overflow: hidden;
}
.rich-content img {
  max-width: 100%;
  height: auto;
  margin: 12px 0;
  border-radius: 8px;
}
.rich-content p { margin: 0 0 12px; }

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-hero { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .header-inner { height: 64px; }
  .brand span { display: none; }
  .detail-hero, .detail-body, .related-section { padding: 16px; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
}
