/* ========== 基础样式:变量 / 重置 / 通用组件 ========== */
:root {
  --primary: #165dff;
  --primary-dark: #0e42c4;
  --primary-light: #e8efff;
  --accent: #ff7d00;
  --accent-light: #fff3e6;
  --text: #1d2129;
  --text-2: #4e5969;
  --text-3: #86909c;
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --border: #e5e6eb;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(29, 33, 41, 0.06);
  --shadow-lg: 0 12px 32px rgba(29, 33, 41, 0.12);
  --container: 1200px;
  --header-h: 64px;
}

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

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

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

h1, h2, h3, h4 { margin: 0 0 0.6em; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
button { font: inherit; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(22, 93, 255, 0.25);
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 125, 0, 0.28);
}
.btn-accent:hover { background: #e66f00; color: #fff; }
.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: #fff;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f0f4ff; color: var(--primary-dark); }
.btn-lg { padding: 15px 36px; font-size: 17px; }
.btn-sm { padding: 7px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; box-shadow: none; }

/* ---------- 区块 ---------- */
.section { padding: 72px 0; }
.section-gray { background: var(--bg-2); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: 32px; }
.section-head p { color: var(--text-2); font-size: 17px; margin-bottom: 0; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
a.card:hover, .card.hoverable:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
}
.tag-accent { background: var(--accent-light); color: var(--accent); }

/* ---------- FAQ(details 手风琴, 无需 JS) ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-right: 4px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item .faq-a { padding: 0 20px 18px; color: var(--text-2); }
.faq-item .faq-a p:last-child { margin-bottom: 0; }

/* ---------- 表单 ---------- */
.form-item { margin-bottom: 18px; }
.form-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.form-label em { color: #f53f3f; font-style: normal; margin-right: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.12);
}
.form-input.is-error, .form-select.is-error { border-color: #f53f3f; }
.form-error { display: none; color: #f53f3f; font-size: 13px; margin-top: 4px; }
.form-error.show { display: block; }
.form-tip { color: var(--text-3); font-size: 13px; margin-top: 4px; }
.form-code-row { display: flex; gap: 12px; }
.form-code-row .form-input { flex: 1; }
.form-code-row .btn { flex: none; }

.toast {
  position: fixed;
  left: 50%;
  top: 80px;
  transform: translateX(-50%) translateY(-12px);
  background: rgba(29, 33, 41, 0.92);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 1200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 25px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ========== 布局:头部 / 导航 / 页脚 / 面包屑 / CTA ========== */

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 32px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  display: flex;
  flex-direction: column;
}
.logo-text small {
  font-size: 10px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 1.5px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
}

.main-nav { flex: 1; }
.nav-list { display: flex; gap: 4px; }
.nav-list > li > a,
.nav-link-sub {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
}
.nav-list > li > a:hover,
.nav-link-sub:hover { color: var(--primary); background: var(--primary-light); }
.nav-list > li > a.is-active,
.nav-link-sub.is-active { color: var(--primary); font-weight: 600; }

.nav-item-sub { position: relative; }
.sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-item-sub:hover .sub-menu,
.nav-item-sub:focus-within .sub-menu,
.nav-item-sub.sub-open .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: 6px;
  color: var(--text-2);
  font-size: 14px;
}
.sub-menu a:hover { background: var(--primary-light); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: center;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #141a2e;
  color: #a9b2c7;
  padding: 56px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-logo { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-brand p:last-child { margin-bottom: 0; }
.footer-title { color: #fff; font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #a9b2c7; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #7c869e;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #7c869e; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-size: 13px;
  color: var(--text-3);
  padding: 14px 0 0;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; }
.breadcrumb li + li::before {
  content: "/";
  margin: 0 8px;
  color: var(--border);
}
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current] { color: var(--text-2); }

/* ---------- 子页面页头 ---------- */
.page-hero {
  background: linear-gradient(135deg, #0e2f7e 0%, #165dff 62%, #4d8dff 100%);
  color: #fff;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.page-hero h1 { font-size: 36px; margin-bottom: 12px; }
.page-hero p { font-size: 17px; opacity: 0.92; max-width: 640px; margin-bottom: 24px; }
.page-hero .breadcrumb { padding-top: 0; margin-bottom: 18px; position: relative; z-index: 1; }
.page-hero .breadcrumb,
.page-hero .breadcrumb a,
.page-hero .breadcrumb [aria-current] { color: rgba(255, 255, 255, 0.75); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .hero-actions { position: relative; z-index: 1; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- CTA 横幅 ---------- */
.cta-banner {
  background: linear-gradient(135deg, #0e2f7e 0%, #165dff 62%, #4d8dff 100%);
  border-radius: var(--radius);
  color: #fff;
  text-align: center;
  padding: 56px 32px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before,
.cta-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.cta-banner::before { width: 260px; height: 260px; left: -90px; bottom: -130px; }
.cta-banner::after { width: 200px; height: 200px; right: -60px; top: -100px; }
.cta-banner h2 { font-size: 30px; margin-bottom: 10px; }
.cta-banner p { opacity: 0.9; margin-bottom: 26px; font-size: 17px; }
.cta-banner .hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

@media (max-width: 768px) {
  .header-inner { gap: 12px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    left: 0; right: 0;
    top: var(--header-h);
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 12px 20px 16px;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-list > li > a, .nav-link-sub { display: flex; width: 100%; padding: 12px 10px; font-size: 16px; }
  .nav-link-sub { justify-content: space-between; }
  .sub-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0;
    padding: 0 0 4px 16px;
    display: none;
  }
  .nav-item-sub.sub-open .sub-menu { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .page-hero { padding: 44px 0; }
  .page-hero h1 { font-size: 27px; }
  .cta-banner { padding: 40px 20px; }
  .cta-banner h2 { font-size: 23px; }
}

/* ========== 首页 ========== */

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #0e2f7e 0%, #165dff 62%, #4d8dff 100%);
  color: #fff;
  padding: 80px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}
.hero::before { width: 420px; height: 420px; right: -140px; top: -160px; }
.hero::after { width: 260px; height: 260px; left: -100px; bottom: -120px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 20px;
}
.hero h1 { font-size: 44px; margin-bottom: 18px; letter-spacing: 1px; }
.hero h1 .hl { color: #ffd08a; }
.hero-sub { font-size: 18px; opacity: 0.92; margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 28px; font-weight: 700; }
.hero-stat span { font-size: 13px; opacity: 0.85; }
.hero-art { display: flex; justify-content: center; }

/* ---------- 解决方案卡片 ---------- */
.solution-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  color: var(--text);
}
.solution-card .sol-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--primary-light);
  color: var(--primary);
}
.solution-card.sol-accent .sol-icon { background: var(--accent-light); color: var(--accent); }
.solution-card h3 { font-size: 22px; margin-bottom: 8px; }
.solution-card > p { color: var(--text-2); font-size: 15px; }
.solution-card .sol-points { margin: 6px 0 20px; }
.solution-card .sol-points li {
  padding: 5px 0 5px 24px;
  position: relative;
  color: var(--text-2);
  font-size: 15px;
}
.solution-card .sol-points li::before {
  content: "";
  position: absolute;
  left: 2px; top: 12px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}
.solution-card.sol-accent .sol-points li::before { border-color: var(--accent); }
.solution-card .sol-link { margin-top: auto; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.solution-card .sol-link svg { transition: transform 0.2s; }
.solution-card .sol-link:hover svg { transform: translateX(4px); }

/* ---------- 功能优势 ---------- */
.feature-card { text-align: left; }
.feature-card .feat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 6px; }
.feature-card p { color: var(--text-2); font-size: 14px; margin-bottom: 0; }

/* ---------- 商城推荐 ---------- */
.mall-teaser { text-align: center; margin-top: 36px; }

/* ---------- 开通流程 ---------- */
.step-list { counter-reset: step; }
.step-card { position: relative; padding-top: 36px; }
.step-card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 20px; right: 24px;
  font-size: 44px;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
}
.step-card h3 { font-size: 18px; }
.step-card p { color: var(--text-2); font-size: 14px; margin-bottom: 0; }

@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .hero-art { display: none; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 27px; }
  .hero-stats { gap: 24px; }
  .hero-stat strong { font-size: 22px; }
}

/* ========== 解决方案详情页 ========== */

/* 痛点 */
.pain-card { text-align: center; }
.pain-card .pain-icon {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fff1f0;
  color: #f53f3f;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pain-card h3 { font-size: 17px; margin-bottom: 6px; }
.pain-card p { color: var(--text-2); font-size: 14px; margin-bottom: 0; }

/* 功能清单 */
.func-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 64px;
}
.func-row:last-child { margin-bottom: 0; }
.func-row:nth-child(even) .func-text { order: 2; }
.func-text h3 { font-size: 26px; }
.func-text > p { color: var(--text-2); }
.func-list li {
  padding: 8px 0 8px 30px;
  position: relative;
  color: var(--text-2);
}
.func-list li strong { color: var(--text); }
.func-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary-light) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23165dff" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l4 4L19 7"/></svg>') center/11px no-repeat;
}
.func-art {
  background: linear-gradient(135deg, var(--primary-light), #f4f8ff);
  border-radius: var(--radius);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

/* 适用场景 */
.scene-tags { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.scene-tags li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 15px;
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
}
.scene-tags li:hover { border-color: var(--primary); color: var(--primary); }

/* 硬件推荐条 */
.hardware-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hardware-item { text-align: center; }
.hardware-item .hw-icon {
  width: 72px; height: 72px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hardware-item h3 { font-size: 16px; margin-bottom: 4px; }
.hardware-item p { font-size: 13px; color: var(--text-3); margin-bottom: 10px; }
.hardware-item a { font-size: 14px; font-weight: 600; }

@media (max-width: 992px) {
  .func-row { grid-template-columns: 1fr; gap: 24px; margin-bottom: 44px; }
  .func-row:nth-child(even) .func-text { order: 0; }
  .hardware-strip { grid-template-columns: 1fr; }
}

/* ========== 收银机商城 ========== */

/* 工具条 */
.mall-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}
.mall-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.mall-tab {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-2);
  font-size: 14px;
  transition: all 0.2s;
}
.mall-tab:hover { border-color: var(--primary); color: var(--primary); }
.mall-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}
.mall-sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.mall-sort select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

/* 商品卡片 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-media {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef3ff, #f8faff);
}
.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; line-height: 1.4; }
.product-desc {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price-row { margin-top: auto; display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.product-price { color: #f53f3f; font-size: 22px; font-weight: 700; }
.product-price::before { content: "¥"; font-size: 14px; margin-right: 1px; }
.product-price-original { color: var(--text-3); font-size: 13px; text-decoration: line-through; }
.product-sales { color: var(--text-3); font-size: 12px; margin-left: auto; }
.product-card .btn { width: 100%; }

/* 骨架屏 */
.skeleton-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.skeleton-block {
  background: linear-gradient(90deg, #f2f3f5 25%, #e8eaee 37%, #f2f3f5 63%);
  background-size: 400% 100%;
  animation: skeleton 1.2s ease infinite;
}
.skeleton-media { aspect-ratio: 4 / 3; }
.skeleton-line { height: 14px; margin: 14px 18px 0; border-radius: 4px; }
.skeleton-line.short { width: 55%; margin-bottom: 18px; }
@keyframes skeleton {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.mall-empty {
  text-align: center;
  color: var(--text-3);
  padding: 64px 0;
  grid-column: 1 / -1;
}

@media (max-width: 992px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-body { padding: 12px; }
  .product-name { font-size: 14px; }
  .mall-toolbar { flex-direction: column; align-items: stretch; }
}
@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ========== 新闻资讯页面 ========== */

/* 新闻网格布局 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* 新闻卡片 */
.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* 新闻图片容器 */
.news-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #eef3ff, #f8faff);
}

.news-media picture,
.news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

/* 新闻内容 */
.news-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.news-category {
  color: var(--primary);
  font-weight: 600;
}

.news-date {
  color: var(--text-3);
}

.news-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-1);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-summary {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.news-tags .tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-2);
  color: var(--text-3);
  border-radius: 4px;
  font-size: 12px;
  transition: all 0.2s;
}

.news-card:hover .news-tags .tag {
  background: var(--primary-light);
  color: var(--primary);
}

/* 详情页样式 */
.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  font-size: 32px;
  line-height: 1.4;
  margin-bottom: 16px;
  color: var(--text-1);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-3);
}

.article-image {
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-image picture,
.article-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-summary {
  padding: 24px;
  background: var(--bg-2);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  margin: 24px 0;
}

.article-summary p {
  margin: 0;
  line-height: 1.8;
}

.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.article-tags .tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

/* 响应式图片加载指示器 */
.news-media::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
}

.news-media.loading::before {
  opacity: 1;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
/* ========== 注册开通页 ========== */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

/* 左侧卖点 */
.auth-aside h2 { font-size: 28px; margin-bottom: 14px; }
.auth-aside > p { color: var(--text-2); margin-bottom: 28px; }
.benefit-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.benefit-list li:last-child { border-bottom: 0; }
.benefit-icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefit-list h3 { font-size: 16px; margin-bottom: 2px; }
.benefit-list p { color: var(--text-2); font-size: 14px; margin-bottom: 0; }

/* 右侧表单卡片 */
.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 36px;
}
.auth-card > h2 { font-size: 22px; margin-bottom: 4px; }
.auth-card > .auth-sub { color: var(--text-3); font-size: 14px; margin-bottom: 24px; }
.auth-agree { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-2); }
.auth-agree input { margin-top: 4px; flex: none; }

/* 成功态 */
.auth-success { text-align: center; padding: 28px 0 12px; }
.auth-success .ok-icon {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #e8f7ee;
  color: #00b42a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-success h2 { font-size: 22px; }
.auth-success p { color: var(--text-2); font-size: 15px; }
.auth-success .account-box {
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 18px 0 24px;
  font-size: 14px;
  color: var(--text-2);
}
.auth-success .account-box strong { color: var(--text); font-size: 16px; }

@media (max-width: 992px) {
  .auth-layout { grid-template-columns: 1fr; gap: 36px; }
  .auth-card { padding: 26px 20px; }
}

/* ========== 资讯咨询页 ========== */
.consult-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

/* 文章内容(SEO 正文) */
.article { max-width: 100%; }
.article h2 {
  font-size: 24px;
  margin: 40px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  line-height: 1.4;
}
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 18px; margin: 24px 0 10px; }
.article p { color: var(--text-2); }
.article ul, .article ol { color: var(--text-2); padding-left: 22px; margin-bottom: 1em; }
.article ul li { list-style: disc; margin-bottom: 6px; }
.article ol li { list-style: decimal; margin-bottom: 6px; }
.article strong { color: var(--text); }
.article table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2em;
  font-size: 14px;
}
.article th, .article td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.article th { background: var(--bg-2); font-weight: 600; }

/* 侧栏 */
.consult-side { position: sticky; top: calc(var(--header-h) + 20px); }
.side-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.side-card h2 { font-size: 18px; margin-bottom: 6px; }
.side-card > p { color: var(--text-3); font-size: 13px; margin-bottom: 18px; }
.side-links li { border-bottom: 1px solid var(--bg-2); }
.side-links li:last-child { border-bottom: 0; }
.side-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  color: var(--text-2);
  font-size: 14px;
}
.side-links a:hover { color: var(--primary); }

/* 咨询成功 */
.consult-success { text-align: center; padding: 12px 0; }
.consult-success .ok-icon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #e8f7ee;
  color: #00b42a;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 992px) {
  .consult-layout { grid-template-columns: 1fr; }
  .consult-side { position: static; }
}

/* ========== 资讯中心列表 ========== */
.article-card {
  display: block;
  color: var(--text);
  margin-bottom: 20px;
}
.article-card:hover { color: var(--text); }
.article-card h2 {
  font-size: 20px;
  margin: 10px 0 8px;
  border: 0;
  padding: 0;
  transition: color 0.2s;
}
.article-card:hover h2 { color: var(--primary); }
.article-card > p {
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-meta { color: var(--text-3); font-size: 13px; margin: 0; }

/* 文章详情页元信息 */
.article > .article-meta {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* 相关阅读 */
.related-box {
  margin-top: 48px;
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 24px;
}
.related-box h2 {
  border: 0;
  padding: 0;
  margin: 0 0 10px;
  font-size: 18px;
}
.related-list li { padding: 5px 0; font-size: 15px; }
.related-list a { color: var(--text-2); }
.related-list a:hover { color: var(--primary); }

/*# sourceMappingURL=main.css.map */
