/* 上海上诚泵阀真空泵专业站 - 全局样式 */
:root {
  --primary: #0a3d8f;
  --primary-light: #1e5bb5;
  --primary-dark: #062c6a;
  --accent: #e85913;
  --text: #1f2937;
  --text-light: #4b5563;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --bg-section: #f1f5f9;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1280px;
  --header-height: 72px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-light);
}

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

/* 顶部信息栏 */
.top-bar {
  background: var(--primary-dark);
  color: #cbd5e1;
  font-size: 13px;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a {
  color: #ffffff;
}

.top-bar a:hover {
  color: #93c5fd;
}

/* 导航 */
.header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 48px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text strong {
  font-size: 18px;
  color: var(--primary);
  line-height: 1.2;
}

.logo-text span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.2;
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav .dropdown {
  position: relative;
}

.nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  min-width: 220px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
  border: 1px solid var(--border);
}

.nav .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav .dropdown-menu a {
  display: block;
  padding: 10px 20px;
  border: none;
  font-size: 14px;
}

.nav .dropdown-menu a:hover {
  background: var(--bg-light);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-light);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-white:hover {
  background: #e2e8f0;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
}

/* Hero 区域 */
.hero {
  background: var(--primary);
  color: #fff;
  padding: 64px 0 80px;
}

.hero-simple {
  background: var(--primary);
  color: #fff;
  padding: 48px 0 56px;
}

.hero-simple h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-simple .subtitle {
  font-size: 16px;
  opacity: 0.92;
  max-width: 760px;
  line-height: 1.7;
}

.hero-content {
  max-width: 760px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.92;
  margin-bottom: 36px;
  max-width: 680px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stats .stat {
  display: flex;
  flex-direction: column;
}

.hero-stats .stat strong {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.hero-stats .stat span {
  font-size: 14px;
  opacity: 0.8;
  margin-top: 6px;
}

/* 面包屑 */
.breadcrumb {
  background: var(--bg-light);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.breadcrumb ol {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

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

.breadcrumb li:last-child {
  color: var(--text);
  font-weight: 500;
}

/* 区块标题 */
.section {
  padding: 72px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.section-title p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 720px;
  margin: 0 auto;
}

.section-title.left {
  text-align: left;
}

.section-title.left p {
  margin: 0;
}

/* 产品分类卡片 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.category-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

.category-card .image {
  height: 200px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.category-card .image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.category-card .content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.category-card p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 16px;
  flex: 1;
}

.category-card ul {
  list-style: none;
  margin-bottom: 20px;
}

.category-card ul li {
  font-size: 14px;
  color: var(--text-light);
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
}

.category-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
}

.category-card .btn {
  width: 100%;
}

/* 特性网格 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s;
}

.feature-box:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.feature-box .icon {
  width: 48px;
  height: 48px;
  background: rgba(10, 61, 143, 0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 22px;
  font-weight: 700;
}

.feature-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 14px;
  color: var(--text-light);
}

/* 选型流程 */
.process-steps {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  margin-top: 32px;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.process-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-step .num {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 16px;
  border: 4px solid var(--bg);
}

.process-step h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.process-step p {
  font-size: 13px;
  color: var(--text-light);
}

/* 对比表格 */
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.compare-table tr:nth-child(even) td {
  background: var(--bg-light);
}

.compare-table tr:hover td {
  background: #e0f2fe;
}

.compare-table td:first-child {
  font-weight: 600;
  width: 200px;
}

/* 应用行业 */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.industry-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s;
}

.industry-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.industry-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}

.industry-card p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.industry-card .tag {
  display: inline-block;
  font-size: 12px;
  color: var(--primary);
  background: rgba(10, 61, 143, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* FAQ */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-light);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--primary);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .answer {
  padding: 20px 24px;
  color: var(--text-light);
  font-size: 15px;
}

.faq-item .answer p + p {
  margin-top: 12px;
}

/* 产品页面 */
.product-hero {
  padding: 48px 0;
  background: var(--bg-light);
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-image {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.product-image img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.product-info h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.product-info .lead {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.product-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.product-meta .meta-item strong {
  color: var(--primary);
}

.product-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* 内容区块 */
.content-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.content-section:last-child {
  border-bottom: none;
}

.content-section h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.content-section h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 14px;
  color: var(--primary-dark);
}

.content-section p {
  margin-bottom: 14px;
  color: var(--text-light);
}

.content-section ul,
.content-section ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.content-section li {
  margin-bottom: 8px;
  color: var(--text-light);
}

/* 参数表格 */
.spec-table-wrap {
  overflow-x: auto;
  margin-top: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  padding: 12px 16px;
  text-align: center;
  border: 1px solid var(--border);
}

.spec-table th {
  background: var(--bg-section);
  font-weight: 600;
  color: var(--text);
}

.spec-table tr:nth-child(even) td {
  background: var(--bg-light);
}

.spec-table td:first-child {
  font-weight: 600;
  text-align: left;
  background: var(--bg-section);
}

/* 选型工具 */
.selection-tool {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
}

.selection-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group select,
.form-group input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 61, 143, 0.1);
}

.selection-result {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: none;
}

.selection-result.active {
  display: block;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 16px;
  opacity: 0.92;
  margin-bottom: 28px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* 页脚 */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 48px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 16px;
}

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

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 10px;
}

.footer a {
  color: #94a3b8;
  font-size: 14px;
}

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

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}

/* 产品列表 */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}

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

.product-card .image {
  height: 220px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product-card .image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.product-card .content {
  padding: 24px;
}

.product-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
}

/* 知识文章 */
.article-body {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.article-body h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 36px 0 16px;
  color: var(--primary-dark);
}

.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px;
}

.article-body p {
  margin-bottom: 16px;
  color: var(--text-light);
}

.article-body ul,
.article-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
  color: var(--text-light);
}

/* 说明书查看器 */
.manual-viewer {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
}

.manual-pages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.manual-page {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.manual-page:hover {
  box-shadow: var(--shadow);
}

.manual-page img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.manual-page span {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
}

/* 两栏布局 */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.two-col .text h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 16px;
}

.two-col .text p {
  color: var(--text-light);
  margin-bottom: 16px;
}

/* 标签 */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-section);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-light);
}

/* 移动端菜单 */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 999;
  padding: 24px;
  overflow-y: auto;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

.mobile-nav .submenu a {
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-light);
}

/* 响应式 */
@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 40px;
  }

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

  .two-col,
  .product-layout {
    grid-template-columns: 1fr;
  }

  .process-steps {
    flex-direction: column;
  }

  .process-steps::before {
    display: none;
  }

  .process-step {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .process-step .num {
    margin: 0;
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 60px 0 72px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero .subtitle {
    font-size: 15px;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stats .stat strong {
    font-size: 24px;
  }

  .section {
    padding: 48px 0;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .article-body {
    padding: 24px;
  }

  .product-info h1 {
    font-size: 26px;
  }

  .product-meta {
    grid-template-columns: 1fr;
  }

  .top-bar .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 简洁首页产品网格 */
.section-heading {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text);
}

.product-simple-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-simple-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: border-color 0.2s;
}

.product-simple-card:hover {
  border-color: var(--primary);
}

/* 简洁页脚 */
.footer-simple {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-simple p {
  margin: 0;
}

/* 移除 top-bar */
.top-bar {
  display: none;
}

/* ===== 第二轮优化新增样式 ===== */

/* 首屏左右布局 */
.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.hero-visual img {
  max-height: 360px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.25));
}

/* 模块细分 */
.section-sm {
  padding: 56px 0;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-light);
  max-width: 720px;
  margin-bottom: 32px;
}

/* 产品分类 */
.category-section {
  margin-bottom: 48px;
}

.category-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-title::before {
  content: "";
  width: 4px;
  height: 22px;
  background: var(--primary);
  border-radius: 2px;
}

/* 产品卡片优化 */
.product-simple-card {
  text-align: left;
}

.product-simple-card .product-img-wrap {
  height: 160px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.product-simple-card .product-img-wrap img {
  height: auto;
  width: auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.product-simple-card .product-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-simple-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
  line-height: 1.4;
}

.product-simple-card .desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
  flex: 1;
}

.product-simple-card .card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: inline-block;
}

.product-simple-card:hover .card-link {
  color: var(--primary-light);
  text-decoration: underline;
}

/* 简洁对比 */
.compare-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.compare-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.compare-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.compare-card ul {
  list-style: none;
}

.compare-card li {
  font-size: 14px;
  color: var(--text-light);
  padding: 6px 0;
  padding-left: 18px;
  position: relative;
}

.compare-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
}

.compare-summary {
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 24px;
}

.compare-summary p {
  margin: 0;
  color: var(--text-light);
  font-size: 15px;
}

/* 知识入口 */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.knowledge-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s;
}

.knowledge-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

.knowledge-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.knowledge-card p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.knowledge-card a {
  font-size: 14px;
  font-weight: 600;
}

/* 优势模块 */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.why-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.why-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.why-card p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

/* 询盘模块 */
.inquiry-section {
  background: var(--primary);
  color: #fff;
  padding: 56px 0;
}

.inquiry-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.inquiry-section p {
  opacity: 0.92;
  margin-bottom: 24px;
  max-width: 640px;
}

.inquiry-section .btn-white {
  background: #fff;
  color: var(--primary);
}

.inquiry-section .btn-white:hover {
  background: #e2e8f0;
}

/* 页脚优化 */
.footer-enhanced {
  background: #0f172a;
  color: #94a3b8;
  padding: 56px 0 24px;
}

.footer-enhanced .footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-enhanced .footer-brand img {
  height: 44px;
  margin-bottom: 16px;
}

.footer-enhanced .footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.footer-enhanced h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-enhanced ul {
  list-style: none;
}

.footer-enhanced li {
  margin-bottom: 10px;
}

.footer-enhanced a {
  color: #94a3b8;
  font-size: 14px;
}

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

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}

.footer-bottom a {
  color: #94a3b8;
}

/* 简单页面 */
.simple-page-content {
  padding: 48px 0 72px;
}

.simple-page-content .container {
  max-width: 800px;
}

.simple-page-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}

.simple-page-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 14px;
  color: var(--primary-dark);
}

.simple-page-content p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.contact-list {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}

.contact-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list strong {
  color: var(--primary);
  display: inline-block;
  width: 80px;
}

/* ===== 响应式优化 ===== */
@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-split .hero-content {
    margin: 0 auto;
  }

  .hero-split .subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-split .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
    min-height: 240px;
  }

  .hero-visual img {
    max-height: 260px;
  }

  .compare-cards {
    grid-template-columns: 1fr;
  }

  .product-simple-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

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

@media (max-width: 640px) {
  .hero-split {
    gap: 32px;
  }

  .hero-visual {
    min-height: 200px;
  }

  .hero-visual img {
    max-height: 200px;
  }

  .hero-simple h1 {
    font-size: 28px;
  }

  .hero-simple .subtitle {
    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .section-sm {
    padding: 40px 0;
  }

  .category-title {
    font-size: 18px;
  }

  .product-simple-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-simple-card .product-img-wrap {
    height: 110px;
    padding: 8px;
  }

  .product-simple-card .product-card-body {
    padding: 10px;
  }

  .product-simple-card h3 {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .product-simple-card .desc {
    font-size: 11px;
    -webkit-line-clamp: 2;
    min-height: 30px;
    margin-bottom: 6px;
  }

  .product-simple-card .card-link {
    font-size: 12px;
  }

  .product-list {
    grid-template-columns: 1fr;
  }

  .knowledge-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .footer-enhanced .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-enhanced .footer-brand img {
    height: 40px;
  }

  .process-step {
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
  }

  .compare-table-wrap {
    margin: 0 -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .inquiry-section {
    padding: 40px 0;
  }

  .inquiry-section h2 {
    font-size: 22px;
  }
}

@media (max-width: 360px) {
  .product-simple-grid {
    grid-template-columns: 1fr;
  }

  .product-simple-card .product-img-wrap {
    height: 140px;
  }
}

/* ============================================================
   右侧悬浮在线客服组件（.scpv-float-wrap）
   - 固定右侧、随页面滚动保持悬浮
   - 默认窄条：仅显示“在线客服 / 客服电话”两个按钮
   - 鼠标悬停向左展开详情（在线客服面板 / 电话号码）
   - 移动端自动简化为右下角横向图标，不遮挡正文
   ============================================================ */
.scpv-float-wrap {
  position: fixed;
  right: 12px;
  top: 35%;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", Arial, sans-serif;
  user-select: none;
}

.scpv-float-wrap a.scp-fi {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 60px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
  color: #6b7280;
  text-decoration: none;
  transition: color .15s, box-shadow .15s, transform .15s;
  position: relative;
}

.scpv-float-wrap a.scp-fi:hover {
  color: #2c5282;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
  transform: translateY(-1px);
}

.scpv-float-wrap a.scp-fi svg {
  width: 18px;
  height: 18px;
  display: block;
}

.scpv-float-wrap a.scp-fi span.scp-t {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.2;
}

/* 在线客服：鼠标悬停向左展开小型面板 */
.scpv-float-wrap .scp-chat .scp-panel {
  position: absolute;
  right: 56px;
  top: 0;
  width: 196px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  border-radius: 4px;
  padding: 12px 14px;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}

.scpv-float-wrap .scp-chat:hover .scp-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.scpv-float-wrap .scp-panel-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 6px;
}

.scpv-float-wrap .scp-panel-desc {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: #6b7280;
}

.scpv-float-wrap .scp-panel-link {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #2c5282;
}

/* 客服电话：鼠标悬停向左显示号码 */
.scpv-float-wrap .scp-phone .scp-num {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  background: #f3f4f6;
  color: #1e3a5f;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: .5px;
}

.scpv-float-wrap .scp-phone:hover .scp-num {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}

/* 窄屏适配 */
@media (min-width: 769px) and (max-width: 1100px) {
  .scpv-float-wrap {
    right: 6px;
  }

  .scpv-float-wrap a.scp-fi {
    width: 44px;
  }
}

/* 移动端：简化为右下角横向图标，不遮挡正文 */
@media (max-width: 768px) {
  .scpv-float-wrap {
    right: 6px;
    top: auto;
    bottom: 16px;
    flex-direction: row;
    gap: 6px;
  }

  .scpv-float-wrap a.scp-fi {
    width: 50px;
    height: 50px;
  }

  .scpv-float-wrap a.scp-fi svg {
    width: 20px;
    height: 20px;
  }

  .scpv-float-wrap a.scp-fi span.scp-t {
    font-size: 10px;
    margin-top: 2px;
  }

  .scpv-float-wrap .scp-phone .scp-num {
    display: none;
  }

  .scpv-float-wrap .scp-chat .scp-panel {
    display: none;
  }
}

/* ============================================================
   独立询价页（/inquiry/）：复用站内现有配色与表单样式
   ============================================================ */
.inquiry-wrap {
  background: var(--bg-section);
  padding: 40px 0 64px;
}

.inquiry-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
}

.inquiry-card h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.inquiry-card .inquiry-note {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 20px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-group textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  min-height: 96px;
  resize: vertical;
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 61, 143, 0.1);
}

.type-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.type-picker button {
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  color: var(--text-light);
  transition: all .15s;
}

.type-picker button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.type-picker button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.track-info {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-light);
  border: 1px dashed var(--border);
  padding: 10px 12px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  word-break: break-all;
}

.inquiry-success {
  display: none;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  border-radius: var(--radius);
}

.inquiry-success.show {
  display: block;
}

.inquiry-success h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: #166534;
}

.inquiry-success p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .inquiry-card {
    padding: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   知识中心：文章列表、延伸阅读网格、分页
   ============================================================ */
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.related-grid li a {
  color: var(--text-light);
  font-size: 14px;
}

.related-grid li a:hover {
  color: var(--primary);
}

.article-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.article-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.article-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
  line-height: 1.5;
}

.article-item h3 a {
  color: var(--text);
}

.article-item h3 a:hover {
  color: var(--primary);
}

.article-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.article-item p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}

.pagination a,
.pagination span {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-light);
  background: #fff;
  padding: 0 12px;
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

.pagination .current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

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

  .article-list {
    grid-template-columns: 1fr;
  }
}
