/* ============================================================
   公司产品发布网站 · 前台样式
   设计基调：浅色专业风，主色为科技蓝，强调色为青
   ============================================================ */

:root {
  --brand: #0b4bd8;
  --brand-dark: #0838a5;
  --brand-soft: #eaf0ff;
  --brand-softer: #f5f8ff;
  --accent: #00b4d8;
  --accent-soft: #e2f8fd;

  --ink: #0e1726;
  --ink-2: #43526e;
  --ink-3: #7b8ba8;

  --line: #e4eaf5;
  --line-strong: #cfdaeb;

  --bg: #ffffff;
  --bg-soft: #f5f8fd;

  --ok: #0e9f6e;
  --warn: #d97706;
  --danger: #dc2626;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-xs: 0 1px 2px rgba(14, 23, 38, 0.05);
  --shadow-sm: 0 2px 8px rgba(14, 23, 38, 0.06);
  --shadow-md: 0 10px 28px rgba(14, 23, 38, 0.09);
  --shadow-lg: 0 24px 56px rgba(14, 23, 38, 0.13);

  --max: 1180px;
  --header-h: 68px;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

button {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------------- 顶部导航 ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.5px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
}

.brand-slogan {
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 230px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.16s, color 0.16s;
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.nav-link.is-active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.14s, box-shadow 0.16s, background 0.16s, border-color 0.16s, color 0.16s;
  white-space: nowrap;
  line-height: 1.2;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(11, 75, 216, 0.24);
}

.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 8px 22px rgba(11, 75, 216, 0.3);
}

.btn-buy {
  background: linear-gradient(135deg, #ff6a00, #ff8c1a);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 106, 0, 0.28);
}

.btn-buy:hover {
  box-shadow: 0 9px 24px rgba(255, 106, 0, 0.36);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-softer);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 15.5px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13.5px;
}

.btn-block {
  width: 100%;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -12%, rgba(0, 180, 216, 0.16), transparent 62%),
    radial-gradient(760px 400px at 6% 108%, rgba(11, 75, 216, 0.13), transparent 60%),
    linear-gradient(180deg, var(--brand-softer) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  padding: 78px 0 84px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  box-shadow: var(--shadow-xs);
  margin-bottom: 22px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero h1 {
  font-size: clamp(30px, 4.2vw, 50px);
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 16.5px;
  color: var(--ink-2);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-stats {
  display: flex;
  gap: 38px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px dashed var(--line-strong);
}

.hero-stat-num {
  font-size: 25px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--ink-3);
}

/* Hero 右侧产品拼贴 */
.hero-visual {
  position: relative;
  min-height: 330px;
}

.hero-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 16px;
  display: flex;
  gap: 13px;
  align-items: center;
  animation: floatIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-card:nth-child(1) { top: 6%; left: 0; width: 268px; animation-delay: 0.05s; }
.hero-card:nth-child(2) { top: 38%; right: 0; width: 292px; animation-delay: 0.18s; }
.hero-card:nth-child(3) { bottom: 4%; left: 6%; width: 252px; animation-delay: 0.31s; }

@keyframes floatIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.hero-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 19px;
  flex-shrink: 0;
}

.hero-card-title {
  font-weight: 700;
  font-size: 14.5px;
}

.hero-card-desc {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* ---------------- 通用区块 ---------------- */

.section {
  padding: 76px 0;
}

.section-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 660px;
  margin-bottom: 42px;
}

.section-head.is-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(23px, 2.7vw, 32px);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--ink-2);
  font-size: 15.5px;
}

/* ---------------- 产品卡片 ---------------- */

.grid {
  display: grid;
  gap: 22px;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #eef3fd, #e3ecfb);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover .card-media img {
  transform: scale(1.05);
}

.media-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 40px;
  font-weight: 800;
  color: rgba(11, 75, 216, 0.28);
  background: linear-gradient(135deg, #eef3fd, #dfe9fb);
  letter-spacing: -2px;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(6px);
}

.badge-featured {
  background: linear-gradient(135deg, #ff6a00, #ff9a3c);
  color: #fff;
}

.card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 9px;
}

.card-cat {
  font-size: 12.5px;
  color: var(--brand);
  font-weight: 600;
}

.card-title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card:hover .card-title {
  color: var(--brand);
}

.card-desc {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-price {
  font-size: 15px;
  font-weight: 800;
  color: #d93f0b;
  letter-spacing: -0.01em;
}

.card-price.is-muted {
  color: var(--ink-3);
  font-weight: 600;
  font-size: 13.5px;
}

.card-arrow {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 600;
  transition: color 0.16s, transform 0.16s;
}

.card:hover .card-arrow {
  color: var(--brand);
  transform: translateX(3px);
}

/* ---------------- 分类导航卡 ---------------- */

.cat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: block;
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

.cat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 15px;
}

.cat-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 7px;
}

.cat-desc {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.62;
  min-height: 44px;
}

.cat-meta {
  margin-top: 15px;
  font-size: 12.5px;
  color: var(--brand);
  font-weight: 600;
}

/* ---------------- 优势列表 ---------------- */

.adv-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  height: 100%;
}

.adv-index {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.1em;
  margin-bottom: 11px;
}

.adv-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.adv-desc {
  font-size: 13.8px;
  color: var(--ink-3);
  line-height: 1.66;
}

/* ---------------- 产品中心 / 列表页 ---------------- */

.page-head {
  background: linear-gradient(180deg, var(--brand-softer), #fff);
  border-bottom: 1px solid var(--line);
  padding: 46px 0 40px;
}

.page-head h1 {
  font-size: clamp(25px, 3vw, 36px);
  margin-bottom: 10px;
}

.page-head p {
  color: var(--ink-2);
  max-width: 640px;
}

.toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.chip-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  flex: 1;
}

.chip {
  padding: 8px 17px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.16s;
}

.chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 5px 15px rgba(11, 75, 216, 0.22);
}

.search-box {
  position: relative;
  min-width: 240px;
}

.search-box input {
  width: 100%;
  padding: 11px 40px 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}

.search-box input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.search-box button {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  width: 36px;
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

.pagination {
  display: flex;
  gap: 7px;
  justify-content: center;
  align-items: center;
  margin-top: 44px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.16s;
  display: inline-grid;
  place-items: center;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
}

.page-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.page-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

/* ---------------- 产品详情 ---------------- */

.detail-top {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  padding: 44px 0 64px;
  align-items: start;
}

.gallery-main {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #eef3fd, #e2ecfb);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 13px;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  border: 2px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  padding: 0;
  transition: border-color 0.16s;
  flex-shrink: 0;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb.is-active {
  border-color: var(--brand);
}

.detail-info h1 {
  font-size: clamp(24px, 2.8vw, 33px);
  margin-bottom: 14px;
}

.detail-summary {
  font-size: 15.5px;
  color: var(--ink-2);
  margin-bottom: 22px;
  line-height: 1.72;
}

.detail-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}

.price-box {
  background: linear-gradient(135deg, #fff8f2, #fff1e6);
  border: 1px solid #ffd9b8;
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 24px;
}

.price-label {
  font-size: 12.5px;
  color: #a15b16;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}

.price-value {
  font-size: 27px;
  font-weight: 800;
  color: #d93f0b;
  letter-spacing: -0.02em;
}

.buy-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.buy-note {
  font-size: 13px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 7px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14.5px;
}

.spec-table tr:nth-child(odd) {
  background: var(--bg-soft);
}

.spec-table th {
  text-align: left;
  padding: 13px 18px;
  width: 32%;
  font-weight: 600;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table td {
  padding: 13px 18px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}

.feature-item {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 100%;
}

.feature-num {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}

.feature-title {
  font-weight: 700;
  font-size: 15.5px;
  margin-bottom: 5px;
}

.feature-desc {
  font-size: 13.8px;
  color: var(--ink-3);
  line-height: 1.66;
}

.prose {
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.85;
  white-space: pre-wrap;
}

.breadcrumb {
  font-size: 13.5px;
  color: var(--ink-3);
  padding: 20px 0 0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb .sep {
  color: var(--line-strong);
}

/* ---------------- 页脚 ---------------- */

.site-footer {
  background: #0c1729;
  color: #a8b7cf;
  padding: 58px 0 0;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}

.footer-brand .brand-logo {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.footer-brand-name {
  color: #fff;
  font-weight: 800;
  font-size: 15.5px;
}

.footer-about {
  font-size: 13.5px;
  line-height: 1.75;
  color: #8fa1bd;
  max-width: 330px;
}

.footer-title {
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 16px;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 13.5px;
}

.footer-list a:hover {
  color: #fff;
}

.footer-list li {
  color: #8fa1bd;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 20px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #7b8dab;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ---------------- 状态与占位 ---------------- */

.empty {
  text-align: center;
  padding: 76px 20px;
  color: var(--ink-3);
}

.empty-icon {
  font-size: 42px;
  margin-bottom: 14px;
  opacity: 0.5;
}

.empty-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.skeleton {
  background: linear-gradient(90deg, #eef2f9 25%, #e3eaf6 37%, #eef2f9 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  from { background-position: 100% 50%; }
  to { background-position: 0 50%; }
}

.skeleton-card {
  height: 320px;
}

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  border: 1px solid;
  margin-bottom: 18px;
}

.alert-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.fade-in {
  animation: fadeIn 0.4s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------------- CTA 条 ---------------- */

.cta-band {
  background: linear-gradient(120deg, #0b4bd8 0%, #1361e8 45%, #00a6c9 100%);
  border-radius: var(--radius-lg);
  padding: 48px 46px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}

.cta-band h3 {
  font-size: clamp(21px, 2.4vw, 27px);
  margin-bottom: 9px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  max-width: 560px;
}

.cta-band .btn-ghost {
  background: #fff;
  border-color: #fff;
  color: var(--brand);
}

.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-dark);
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 300px; max-width: 560px; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .detail-top { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 18px 18px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .nav-link { padding: 12px 14px; border-radius: 10px; }
  .nav-toggle { display: flex; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
  .hero-inner { padding: 52px 0 60px; }
  .brand-slogan { display: none; }
}

@media (max-width: 620px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-stats { gap: 24px; }
  .cta-band { padding: 34px 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-box { min-width: 0; }
  .card-foot { flex-direction: column; align-items: flex-start; }
  .buy-actions .btn { width: 100%; }
}
