/* ============================================
   江苏正卓软件科技有限公司 - 全站样式
   简洁现代, 易于阅读与维护
   ============================================ */

:root {
  --color-primary: #0F766E;
  --color-primary-dark: #0B5C56;
  --color-primary-light: #14B8A6;
  --color-accent: #F59E0B;
  --color-accent-dark: #D97706;
  --color-text: #1F2937;
  --color-text-light: #6B7280;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F9FAFB;
  --color-bg-section: #F3F4F6;
  --color-border: #E5E7EB;
  --color-success: #10B981;
  --color-danger: #EF4444;
  --color-warning: #F59E0B;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --max-width: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary-dark); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select {
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: white;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--color-primary); }
textarea { resize: vertical; min-height: 100px; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; color: var(--color-text); }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }

/* ============= 容器 ============= */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; width: 100%; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 20px; width: 100%; }
main { flex: 1; padding-bottom: 40px; }

/* ============= 顶部导航 ============= */
.topbar {
  background: var(--color-text);
  color: #D1D5DB;
  font-size: 13px;
  padding: 6px 0;
}
.topbar a { color: #D1D5DB; }
.topbar a:hover { color: white; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-info { display: flex; gap: 16px; }
.topbar-links { display: flex; gap: 16px; }

.navbar {
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 36px; width: auto; }
.brand-text { font-size: 14px; font-weight: 600; color: var(--color-text); white-space: nowrap; }
.brand-text small { display: block; font-size: 11px; color: var(--color-text-light); font-weight: 400; margin-top: 2px; }
.nav-list { display: flex; gap: 2px; list-style: none; flex: 1; justify-content: center; flex-wrap: nowrap; overflow: hidden; }
.nav-list a {
  display: block;
  padding: 8px 10px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-list a:hover { background: var(--color-bg-soft); color: var(--color-primary); }
.nav-list a.active { color: var(--color-primary); background: #ECFDF5; }
.nav-mall-btn {
  background: var(--color-accent);
  color: white !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.nav-mall-btn:hover { background: var(--color-accent-dark); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions a, .nav-actions button {
  color: var(--color-text-light);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.cart-icon {
  position: relative;
  display: inline-block;
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--color-danger);
  color: white;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
  display: none;
}
.cart-count.active { display: block; }

.mobile-menu-btn { display: none; background: none; font-size: 24px; color: var(--color-text); padding: 4px 8px; }

/* ============= 页脚 ============= */
.footer {
  background: #1F2937;
  color: #D1D5DB;
  padding: 48px 0 24px;
  margin-top: 60px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer h4 { color: white; font-size: 15px; margin-bottom: 16px; }
.footer-list { list-style: none; }
.footer-list li { margin-bottom: 8px; }
.footer-list a { color: #9CA3AF; font-size: 13px; }
.footer-list a:hover { color: white; }
.footer-info p { margin-bottom: 4px; color: #9CA3AF; font-size: 13px; line-height: 1.7; }
.footer-info p strong { color: #D1D5DB; }
.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 20px;
  text-align: center;
  color: #9CA3AF;
  font-size: 12px;
  line-height: 1.8;
}
.footer-bottom a { color: #9CA3AF; }
.footer-bottom a:hover { color: white; }
.beian { display: inline-flex; align-items: center; gap: 4px; }

/* ============= 按钮 ============= */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover { background: var(--color-primary-dark); color: white; }
.btn-accent { background: var(--color-accent); color: white; }
.btn-accent:hover { background: var(--color-accent-dark); color: white; }
.btn-outline { background: white; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: white; }
.btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-ghost:hover { background: var(--color-bg-soft); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { display: block; width: 100%; }
.btn-danger { background: var(--color-danger); color: white; }
.btn-danger:hover { background: #DC2626; }

/* ============= 卡片 ============= */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-body { padding: 20px; }
.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--color-bg-section);
}

/* ============= 栅格 ============= */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* ============= 通用区块 ============= */
.section { padding: 48px 0; }
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-primary);
}
.section-title h2 { font-size: 22px; }
.section-title h2 small { color: var(--color-text-light); font-size: 14px; font-weight: 400; margin-left: 8px; }
.section-title a { color: var(--color-text-light); font-size: 14px; }

/* ============= Hero ============= */
.hero {
  background: linear-gradient(135deg, #0F766E 0%, #14B8A6 100%);
  color: white;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.hero::after {
  content: "";
  position: absolute;
  left: -50px;
  bottom: -100px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { font-size: 40px; margin-bottom: 16px; line-height: 1.2; color: white; }
.hero p { font-size: 17px; margin-bottom: 28px; opacity: 0.95; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-primary { background: white; color: var(--color-primary); }
.hero .btn-primary:hover { background: var(--color-bg-soft); }
.hero .btn-outline { background: transparent; color: white; border-color: white; }
.hero .btn-outline:hover { background: white; color: var(--color-primary); }

/* ============= 行业入口 ============= */
.industry-entries { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.entry-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: all 0.2s;
  display: block;
  color: var(--color-text);
}
.entry-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--color-text);
}
.entry-icon { font-size: 40px; margin-bottom: 8px; }
.entry-card h3 { font-size: 16px; margin-bottom: 4px; }
.entry-card p { font-size: 13px; color: var(--color-text-light); }

/* ============= 信息卡(列表用) ============= */
.info-card {
  display: flex;
  gap: 16px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s;
}
.info-card:hover { box-shadow: var(--shadow); }
.info-card img { width: 160px; height: 110px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.info-card-body { flex: 1; min-width: 0; }
.info-card h3 { font-size: 16px; margin-bottom: 6px; }
.info-card h3 a { color: var(--color-text); }
.info-card h3 a:hover { color: var(--color-primary); }
.info-card-meta {
  display: flex;
  gap: 12px;
  color: var(--color-text-light);
  font-size: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.info-card-meta .tag {
  background: #ECFDF5;
  color: var(--color-primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}
.info-card p { color: var(--color-text-light); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============= 商品卡 ============= */
.product-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card .img {
  width: 100%;
  height: 200px;
  background: var(--color-bg-section);
  object-fit: cover;
}
.product-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { font-size: 14px; line-height: 1.4; margin-bottom: 8px; height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-card .price { color: var(--color-danger); font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.product-card .price small { font-size: 12px; color: var(--color-text-light); text-decoration: line-through; margin-left: 6px; font-weight: 400; }
.product-card .meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--color-text-light); margin-top: auto; }
.product-card .actions { display: flex; gap: 8px; margin-top: 12px; }
.product-card .actions .btn { flex: 1; }

/* ============= 面包屑 ============= */
.breadcrumb {
  background: var(--color-bg-soft);
  padding: 12px 0;
  font-size: 13px;
  color: var(--color-text-light);
}
.breadcrumb a { color: var(--color-text-light); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { margin: 0 8px; color: #D1D5DB; }
.breadcrumb .current { color: var(--color-text); }

/* ============= 标签 / 徽章 ============= */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  background: var(--color-bg-section);
  color: var(--color-text-light);
  margin-right: 4px;
}
.tag-primary { background: #ECFDF5; color: var(--color-primary); }
.tag-accent { background: #FEF3C7; color: var(--color-accent-dark); }
.tag-danger { background: #FEE2E2; color: var(--color-danger); }
.tag-success { background: #D1FAE5; color: #047857; }
.tag-info { background: #DBEAFE; color: #1D4ED8; }
.tag-warn { background: #FEF3C7; color: #92400E; }

/* ============= 列表 / Tab ============= */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--color-border); margin-bottom: 24px; flex-wrap: wrap; }
.tab {
  padding: 12px 20px;
  font-size: 15px;
  color: var(--color-text-light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-weight: 500;
}
.tab:hover { color: var(--color-primary); }
.tab.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

/* ============= 表单 ============= */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--color-text); }
.form-group label .req { color: var(--color-danger); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--color-border); }
.form-help { font-size: 12px; color: var(--color-text-light); margin-top: 4px; }
.radio-group, .checkbox-group { display: flex; flex-wrap: wrap; gap: 12px; }
.radio-item, .checkbox-item { display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 6px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); transition: all 0.2s; }
.radio-item:hover, .checkbox-item:hover { border-color: var(--color-primary); }
.radio-item input, .checkbox-item input { width: auto; margin: 0; }
.radio-item.checked, .checkbox-item.checked { background: #ECFDF5; border-color: var(--color-primary); color: var(--color-primary); }

/* ============= 模态框 ============= */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-mask.active { display: flex; }
.modal {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 380px;
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-soft);
  border-radius: 50%;
  color: var(--color-text-light);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--color-border); }
.modal-title { text-align: center; font-size: 18px; margin-bottom: 20px; }
.modal-body { text-align: center; }
.modal-qr {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px;
  background: white;
}
.modal-qr img { width: 100%; height: 100%; object-fit: contain; }
.modal-amount { font-size: 16px; margin: 12px 0; color: var(--color-text); }
.modal-amount .price { color: var(--color-danger); font-size: 24px; font-weight: 600; margin-left: 4px; }
.modal-tip { font-size: 13px; color: var(--color-text-light); margin: 12px 0 20px; line-height: 1.5; }
.modal-actions { display: flex; gap: 12px; }
.modal-actions .btn { flex: 1; }

/* ============= Toast 提示 ============= */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(31, 41, 55, 0.95);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius);
  z-index: 10000;
  font-size: 14px;
  transition: transform 0.3s;
  box-shadow: var(--shadow-lg);
  max-width: 90%;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--color-success); }
.toast.error { background: var(--color-danger); }
.toast.warn { background: var(--color-warning); }

/* ============= 通用辅助 ============= */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-danger { color: var(--color-danger); }
.text-light { color: var(--color-text-light); }
.text-sm { font-size: 13px; }
.text-lg { font-size: 18px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; gap: 8px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--color-border); margin: 16px 0; }
.placeholder-img {
  width: 100%;
  height: 100%;
  background: var(--color-bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 13px;
}

/* ============= 分页 ============= */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 32px; }
.pagination a, .pagination span {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--color-text);
  background: white;
}
.pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination .active { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.pagination .disabled { color: var(--color-text-light); pointer-events: none; }

/* ============= 响应式 ============= */
@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr !important; }
  .grid-4, .grid-5, .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* 资讯/评测/服务的 3 列布局在中等屏降为 2 列 */
  .news-layout, .review-layout, .service-layout { grid-template-columns: 200px 1fr !important; }
  .news-layout > aside:last-child, .review-layout > aside:last-child, .service-layout > aside:last-child { display: none; }
  /* 商城列表 2 列保留 */
  .list-layout { grid-template-columns: 160px 1fr !important; }
}
@media (max-width: 768px) {
  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .industry-entries { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topbar-info, .topbar-links { gap: 8px; font-size: 12px; }
  .topbar-info span:nth-child(2) { display: none; }
  .nav-list { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-list.mobile-open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .nav-list.mobile-open a { padding: 12px; }
  .brand-text { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .info-card { flex-direction: column; }
  .info-card img { width: 100%; height: 180px; }
  .section { padding: 32px 0; }
  .navbar-inner { height: 56px; }
  /* 平板窄屏: 3 列布局 → 1 列堆叠 */
  .news-layout, .review-layout, .service-layout { grid-template-columns: 1fr !important; }
  .news-layout > aside, .review-layout > aside, .service-layout > aside { display: block; }
  .list-layout { grid-template-columns: 1fr !important; }
  .list-layout > aside { margin-bottom: 16px; }
  .list-layout > aside .card { padding: 12px; }
  .admin-tabs { font-size: 12px; }
  .admin-tab { padding: 10px 12px; }
  .module-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: 1fr; }
  .industry-entries { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
