/* ===== 销冠猫AI 站点主题 ===== */
:root {
  /* 品牌色 */
  --brand-orange: #C2410C;
  --brand-orange-light: #EA580C;
  --brand-orange-dark: #9A3412;
  --brand-gold: #EAB308;
  --brand-gold-light: #FEF08A;

  /* 导航与深色 */
  --nav-bg: #18181B;
  --nav-bg-hover: #27272A;
  --dark: #18181B;
  --dark-2: #27272A;

  /* 背景 */
  --page-bg: #FAF7F2;
  --page-bg-alt: #F5F0E8;
  --surface: #FFFFFF;
  --surface-hover: #FFFBF5;

  /* 文字 */
  --text: #18181B;
  --text-secondary: #52525B;
  --text-muted: #71717A;
  --text-ghost: #A1A1AA;
  --text-on-dark: #FFFFFF;

  /* 边框与分割线 */
  --border: #E4E4E7;
  --border-light: #F4F4F5;
  --divider: rgba(24, 24, 27, 0.08);

  /* 功能色 */
  --success: #16A34A;
  --warning: #EAB308;
  --danger: #DC2626;
  --info: #2563EB;

  /* 尺寸 */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.04);
  --shadow: 0 4px 20px rgba(24, 24, 27, 0.06);
  --shadow-md: 0 8px 30px rgba(24, 24, 27, 0.08);
  --shadow-lg: 0 12px 40px rgba(24, 24, 27, 0.12);
  --shadow-orange: 0 8px 24px rgba(194, 65, 12, 0.22);

  /* 排版 */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== 深色顶部导航 ===== */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 24px;
}
.navbar-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 800;
  color: #fff; text-decoration: none;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-gold));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.3);
}
.nav-links {
  display: flex; align-items: center; gap: 8px; list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-links a.active {
  color: #fff;
  background: rgba(234, 88, 12, 0.15);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* 移动端汉堡菜单按钮：PC 端隐藏 */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-gold) 100%);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: #fff;
  padding: 0;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.35);
}
.nav-toggle .bar {
  display: block;
  width: 20px; height: 2.5px;
  background: currentColor;
  border-radius: 1.5px;
  position: relative;
  transition: all 0.25s;
}
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: '';
  position: absolute;
  left: 0; width: 100%; height: 2.5px;
  background: currentColor;
  border-radius: 1.5px;
  transition: all 0.25s;
}
.nav-toggle .bar::before { top: -7px; }
.nav-toggle .bar::after { top: 7px; }
.nav-toggle.active .bar { background: transparent; }
.nav-toggle.active .bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active .bar::after { top: 0; transform: rotate(-45deg); }

/* 移动端展开的菜单：默认隐藏 */
.nav-links-mobile {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 12px 16px 20px;
  list-style: none;
  z-index: 999;
}
.nav-links-mobile li { margin: 4px 0; }
.nav-links-mobile a {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: 15px; font-weight: 500;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav-links-mobile a:hover,
.nav-links-mobile a.active {
  color: #fff;
  background: rgba(234, 88, 12, 0.15);
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.2s; line-height: 1.4;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: var(--brand-orange); color: #fff;
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { background: var(--brand-orange-dark); transform: translateY(-1px); }
.btn-secondary {
  background: #fff; color: var(--brand-orange);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: var(--surface-hover); border-color: var(--brand-orange); }
.btn-outline {
  background: transparent; color: var(--brand-orange);
  border: 1.5px solid var(--brand-orange);
}
.btn-outline:hover { background: rgba(194, 65, 12, 0.06); }
.btn-ghost {
  background: transparent; color: var(--text-muted);
}
.btn-ghost:hover { background: var(--border-light); color: var(--text); }
.btn-dark {
  background: var(--dark); color: #fff;
}
.btn-dark:hover { background: #000; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: var(--radius-lg); }
.btn-xl { padding: 16px 40px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-gold) 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
  box-shadow: 0 6px 16px rgba(194, 65, 12, 0.35);
  z-index: 998;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(194, 65, 12, 0.45);
}
.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ===== 容器与排版 ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand-orange); margin-bottom: 12px;
}
.section-title {
  font-size: 32px; font-weight: 800; color: var(--text);
  margin-bottom: 12px; line-height: 1.25;
}
.section-title span { color: var(--brand-orange); }
.section-subtitle {
  font-size: 16px; color: var(--text-muted); max-width: 640px; margin: 0 auto;
}

/* ===== 卡片 ===== */
.card {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  transition: all 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-body { padding: 24px; }

/* ===== Hero ===== */
.hero {
  background: var(--nav-bg);
  color: #fff;
  padding: 80px 0 100px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(234, 88, 12, 0.18), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(234, 179, 8, 0.10), transparent 35%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-title {
  font-size: 48px; font-weight: 800; line-height: 1.15;
  margin-bottom: 20px; color: #fff;
}
.hero-title span { color: var(--brand-orange-light); }
.hero-desc {
  font-size: 18px; color: rgba(255,255,255,0.72);
  max-width: 640px; margin-bottom: 32px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 48px;
}
.hero-stat strong {
  display: block; font-size: 28px; font-weight: 800; color: var(--brand-gold);
}
.hero-stat span { font-size: 13px; color: rgba(255,255,255,0.6); }

/* ===== 搜索筛选条 ===== */
.filter-bar {
  background: var(--surface); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 20px 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: -40px; position: relative; z-index: 2;
}
.search-input {
  flex: 1; min-width: 240px;
  background: var(--page-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
  font-size: 14px; color: var(--text);
  outline: none; transition: all 0.2s;
}
.search-input:focus { border-color: var(--brand-orange); box-shadow: 0 0 0 3px rgba(194,65,12,0.08); }
.filter-select {
  background: var(--page-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
  font-size: 14px; color: var(--text); min-width: 140px;
}

/* ===== 分类标签 ===== */
.category-tags {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 32px;
}
.category-tag {
  padding: 10px 18px; border-radius: var(--radius-full);
  background: var(--dark); color: rgba(255,255,255,0.85);
  font-size: 13px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; transition: all 0.2s;
}
.category-tag:hover, .category-tag.active {
  background: var(--brand-orange); color: #fff;
  box-shadow: var(--shadow-orange);
}

/* ===== 产品卡片网格 ===== */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.product-card {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--border-light); overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.25s; text-decoration: none; color: inherit;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--border); }
.product-thumb {
  height: 160px; display: flex; align-items: center; justify-content: center;
  background: var(--page-bg-alt); font-size: 48px; position: relative;
  overflow: hidden;
}
.product-thumb img {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
}
.product-thumb .product-thumb-inner {
  position: relative; z-index: 1;
}
.product-badge {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 10px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700;
}
.product-badge.hot { background: var(--brand-orange); color: #fff; }
.product-badge.free { background: var(--success); color: #fff; }
.product-badge.svip { background: var(--brand-gold); color: var(--dark); }
.product-info { padding: 20px; }
.product-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.product-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.product-author { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.product-price { font-size: 18px; font-weight: 800; color: var(--brand-orange); }
.product-price .original { font-size: 12px; color: var(--text-ghost); text-decoration: line-through; margin-left: 6px; font-weight: 500; }
.member-price-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.member-price-line { display: inline-flex; gap: 6px; margin-left: 8px; align-items: center; vertical-align: middle; }
.member-price-tag {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 4px 10px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600; line-height: 1;
  background: linear-gradient(135deg, #FFF7ED, #FFEDD5);
  color: #C2410C; border: 1px solid rgba(194, 65, 12, 0.12);
  white-space: nowrap;
  height: 24px;
  box-sizing: border-box;
}
.member-price-tag.svip-free-tag,
.member-price-tag.svip-tag {
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  color: #B45309;
  border: 1px solid rgba(180, 83, 9, 0.2);
}
.member-price-tag.vip-tag,
.member-price-tag.vip-free-tag {
  background: linear-gradient(135deg, #F5F3FF, #EDE9FE);
  color: #7C3AED;
  border: 1px solid rgba(124, 58, 237, 0.15);
}
.product-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-tag {
  padding: 3px 8px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600;
}
.mini-tag.oem { background: rgba(194,65,12,0.08); color: var(--brand-orange); }
.mini-tag.agent { background: rgba(37,99,235,0.08); color: var(--info); }
.mini-tag.hot { background: rgba(220,38,38,0.08); color: var(--danger); }
.mini-tag.free { background: rgba(22,163,74,0.08); color: var(--success); }

/* ===== 详情页 ===== */
.detail-hero {
  background: var(--nav-bg); color: #fff; padding: 60px 0;
}
.detail-layout {
  display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start;
}
.detail-main { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 32px; }
.detail-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid var(--border-light); padding: 24px;
}
.price-block {
  border-radius: var(--radius-lg); padding: 20px;
  border: 1px solid var(--border-light); cursor: pointer; transition: all 0.2s;
}
.price-block.selected {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 2px rgba(194,65,12,0.1);
}
.pb-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pb-title { font-weight: 700; color: var(--text); }
.pb-price { font-size: 20px; font-weight: 800; color: var(--brand-orange); }
.pb-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.pb-tag { display: inline-block; padding: 3px 10px; border-radius: var(--radius-full); font-size: 11px; font-weight: 600; background: rgba(194,65,12,0.08); color: var(--brand-orange); }
.pb-features { margin-top: 14px; font-size: 13px; color: var(--text-secondary); }
.pb-features div { margin: 6px 0; }

/* ===== 标签页 ===== */
.tabs {
  display: flex; gap: 8px; border-bottom: 1px solid var(--border); margin-bottom: 24px;
}
.tab {
  padding: 12px 20px; font-size: 14px; font-weight: 600; color: var(--text-muted);
  border-bottom: 2px solid transparent; cursor: pointer; transition: all 0.2s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--brand-orange); border-bottom-color: var(--brand-orange); }

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-light); }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { padding: 14px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border-light); }
th { background: var(--page-bg-alt); font-weight: 700; color: var(--text-secondary); font-size: 13px; }
tbody tr:hover { background: var(--surface-hover); }

/* ===== 表单 ===== */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-input, .form-textarea, .form-select {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px; font-size: 14px; color: var(--text);
  outline: none; transition: all 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--brand-orange); box-shadow: 0 0 0 3px rgba(194,65,12,0.08); }

/* ===== 底部 CTA ===== */
.cta-section {
  background: var(--brand-orange); color: #fff; padding: 80px 0; text-align: center;
}
.cta-section .section-title { color: #fff; }
.cta-section .section-subtitle { color: rgba(255,255,255,0.8); }

/* ===== Footer ===== */
.site-footer {
  background: var(--nav-bg); color: rgba(255,255,255,0.65); padding: 64px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 2fr 0.8fr; gap: 40px; margin-bottom: 48px; align-items: start;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.8; max-width: 240px; word-break: keep-all; }
.footer-links {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px;
}
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-col a {
  display: block; font-size: 14px; color: rgba(255,255,255,0.65);
  margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-qr h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 4px; text-align: center; }
.footer-qr .qr-item { display: flex; flex-direction: column; align-items: center; }
.footer-qr img { width: 92px; height: 92px; border-radius: 8px; object-fit: contain; background: #fff; padding: 4px; }
.footer-qr p { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 6px; text-align: center; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
  text-align: center; font-size: 13px; color: rgba(255,255,255,0.45);
}

/* ===== 辅助类 ===== */
.text-orange { color: var(--brand-orange); }
.text-gold { color: var(--brand-gold); }
.text-muted { color: var(--text-muted); }
.bg-surface { background: var(--surface); }
.bg-alt { background: var(--page-bg-alt); }
.divider { height: 1px; background: var(--divider); margin: 24px 0; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600;
}
.badge-orange { background: rgba(194,65,12,0.08); color: var(--brand-orange); }
.badge-gold { background: rgba(234,179,8,0.12); color: var(--brand-gold); }
.badge-green { background: rgba(22,163,74,0.08); color: var(--success); }

/* ===== 分页 ===== */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; margin-top: 36px; flex-wrap: wrap;
}
.pagination .page-btn {
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text-secondary);
  font-size: 13px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.pagination .page-btn:hover:not(:disabled) {
  border-color: var(--brand-orange); color: var(--brand-orange);
}
.pagination .page-btn.active {
  background: var(--brand-orange); border-color: var(--brand-orange);
  color: #fff; font-weight: 600;
}
.pagination .page-btn:disabled {
  opacity: 0.5; cursor: not-allowed; background: var(--surface); border-color: var(--border);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .navbar { position: relative; }
  .navbar-inner { height: 56px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links-mobile.open { display: block; }
  .hero-title { font-size: 32px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 26px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .filter-bar { padding: 16px; margin-top: -24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-qr .qr-row { flex-direction: row; }
  .hero-stats { gap: 24px; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
  }
  .footer-col h4 {
    font-size: 13px;
    margin-bottom: 10px;
    color: var(--brand-gold);
  }
  .footer-col a {
    font-size: 12px;
    margin-bottom: 6px;
    color: rgba(255,255,255,0.65);
  }
  .footer-col a:hover { color: #fff; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
}
