/* ==========================================================================
   佩特龙科技 · 子页样式表 (subpage.css)
   --------------------------------------------------------------------------
   用途：xuanqing.html / bianyue.html / pangong.html / news/*.html
   背景：style.css 只覆盖首页，上述 18 个子页的布局与组件类全部缺样式，
        导致子页仅剩浏览器默认排版。本表补齐，设计语言与首页保持一致。
   引入：<link rel="stylesheet" href="css/subpage.css?v=20261017">
   ========================================================================== */

/* ---------- 设计令牌（与首页 :root 一致，带兜底值） ---------- */
:root {
  --primary: #0F2340;
  --primary-light: #1A3A6B;
  --accent: #1E6FFF;
  --accent-light: #E6F0FF;
  --bg: #F6F8FB;
  --bg-white: #FFFFFF;
  --bg-section: #F1F4F8;
  --text: #333333;
  --text-muted: #666666;
  --text-light: #888888;
  --border: #E8ECF2;
  --footer-bg: #1A1F2E;
  --footer-text: #8899A8;
  --shadow-sm: 0 1px 4px rgba(15, 35, 64, 0.04);
  --shadow: 0 2px 12px rgba(15, 35, 64, 0.06);
  --shadow-hover: 0 8px 24px rgba(15, 35, 64, 0.10);
  --radius: 8px;
  --radius-lg: 12px;
  --font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, sans-serif;
  --nav-height: 72px;
  --max-width: 1280px;
  --transition: 0.3s ease;
}

/* ---------- 页面底色 ---------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.85;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   1. 顶部导航
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link .logo-img {
  height: 40px;
  width: auto;
  display: block;
}

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

.main-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}

.main-nav a:hover {
  color: var(--accent);
  background: var(--accent-light);
}

.main-nav a.active {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-light);
}

/* ==========================================================================
   2. 正文容器
   ========================================================================== */
.product-detail {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 64px;
}

.product-detail > section {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

/* 页头区特殊处理 */
.product-detail > section.product-hero {
  background: linear-gradient(135deg, #EEF4FF 0%, #F7FAFF 60%, #FFFFFF 100%);
  border-color: #DCE8FA;
  text-align: center;
  padding: 56px 40px;
  margin-top: 24px;
}

/* ==========================================================================
   3. 标题体系
   ========================================================================== */
.product-detail h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--primary);
  margin: 0 0 14px;
  letter-spacing: -0.3px;
}

.product-detail h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
  margin: 0 0 20px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.product-detail h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.5;
  margin: 0 0 10px;
}

.product-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

/* ==========================================================================
   4. 正文段落 / 列表
   ========================================================================== */
.product-detail p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.9;
  margin: 0 0 14px;
}

.product-detail p:last-child {
  margin-bottom: 0;
}

.product-detail strong {
  color: var(--primary);
  font-weight: 700;
}

.product-detail ul,
.product-detail ol {
  margin: 0 0 18px;
  padding-left: 0;
}

.product-detail ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  line-height: 1.85;
}

.product-detail ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.product-detail ol {
  counter-reset: li;
}

.product-detail ol li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  counter-increment: li;
}

.product-detail ol li::before {
  content: counter(li);
  position: absolute;
  left: 0;
  top: 4px;
  width: 21px;
  height: 21px;
  line-height: 21px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}

/* ==========================================================================
   5. 场景卡（product-scenes / scene-grid / scene-card）
   ========================================================================== */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 4px;
}

.scene-card {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.scene-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.scene-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

/* ==========================================================================
   6. 参数表（product-params table）
   ========================================================================== */
.product-params {
  overflow-x: auto;
}

.product-detail table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 4px;
  background: var(--bg-white);
}

.product-detail table th,
.product-detail table td {
  padding: 13px 16px;
  text-align: left;
  border: 1px solid var(--border);
  line-height: 1.7;
  vertical-align: top;
}

.product-detail table thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border-color: var(--primary);
  white-space: nowrap;
}

.product-detail table tbody tr:nth-child(even) {
  background: var(--bg-section);
}

.product-detail table tbody tr:hover {
  background: var(--accent-light);
}

.product-detail table tbody td:first-child {
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

/* ==========================================================================
   7. 案例列表（product-cases / case-list / case-item）
   ========================================================================== */
.case-list {
  display: grid;
  gap: 18px;
}

.case-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.case-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateX(3px);
}

.case-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.case-item p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* 列表页：文章条目里的链接 */
.case-item h3 a {
  color: var(--primary);
  font-weight: 700;
  transition: color var(--transition);
}

.case-item h3 a:hover {
  color: var(--accent);
}

/* ==========================================================================
   8. 转化区（product-cta / cta-contact）
   ========================================================================== */
.product-detail > section.product-cta {
  background: linear-gradient(135deg, #1E6FFF 0%, #0F2340 100%);
  border-color: transparent;
  text-align: center;
  color: #fff;
  padding: 44px 40px;
}

.product-cta h2 {
  color: #fff;
  border-left: none;
  padding-left: 0;
  font-size: 24px;
  margin-bottom: 12px;
}

.product-cta p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  margin-bottom: 8px;
}

.product-cta .cta-contact {
  font-size: 17px;
  color: #fff;
  margin: 14px 0 6px;
}

.product-cta .cta-contact strong {
  color: #FFD666;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.product-cta .btn-primary {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 34px;
  background: #fff;
  color: #1E6FFF;
  font-size: 15px;
  font-weight: 700;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
  color: #1E6FFF;
}

/* ==========================================================================
   9. 面包屑
   ========================================================================== */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px 0;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

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

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

.breadcrumb span {
  margin: 0 7px;
  color: #C3CBD6;
}

/* ==========================================================================
   10. 站内导航区块（内链补丁）
   ========================================================================== */
.site-internal-links {
  max-width: var(--max-width);
  margin: 8px auto 0;
  padding: 32px 24px 8px;
  border-top: 1px solid var(--border);
  box-sizing: border-box;
}

.site-internal-links h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 14px;
  padding-left: 0;
  border-left: none;
}

.site-internal-links h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin: 24px 0 10px;
}

.site-internal-links .internal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 6px;
}

.site-internal-links .internal-nav a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}

.site-internal-links .internal-nav a:hover {
  text-decoration: underline;
}

.site-internal-links .internal-related {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px 24px;
}

.site-internal-links .internal-related li {
  font-size: 14px;
  line-height: 1.75;
  padding-left: 16px;
  position: relative;
}

.site-internal-links .internal-related li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #C3CBD6;
}

.site-internal-links .internal-related a {
  color: #334155;
}

.site-internal-links .internal-related a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* 无列表符时不影响 */
.site-internal-links ul li {
  padding-left: 16px;
}

/* ==========================================================================
   11. 页脚
   ========================================================================== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 28px 20px;
  font-size: 13px;
  line-height: 1.8;
  margin-top: 40px;
}

.site-footer p {
  margin: 0;
  color: var(--footer-text);
  font-size: 13px;
}

.site-footer a {
  color: var(--footer-text);
  transition: color var(--transition);
}

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

/* ==========================================================================
   12. 响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .scene-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: auto;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 14px 16px;
    gap: 10px;
  }

  .main-nav {
    width: 100%;
    gap: 2px;
  }

  .main-nav a {
    padding: 7px 10px;
    font-size: 13px;
  }

  .product-detail {
    padding: 0 14px 40px;
  }

  .product-detail > section {
    padding: 26px 20px;
    border-radius: var(--radius);
  }

  .product-detail > section.product-hero {
    padding: 34px 20px;
    margin-top: 14px;
  }

  .product-detail h1 {
    font-size: 23px;
  }

  .product-detail h2 {
    font-size: 19px;
  }

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

  .product-detail table th,
  .product-detail table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .product-detail > section.product-cta {
    padding: 30px 20px;
  }

  .product-cta h2 {
    font-size: 20px;
  }

  .breadcrumb {
    padding: 14px 16px 0;
  }
}

/* ==========================================================================
   13. 打印
   ========================================================================== */
@media print {
  .site-header,
  .site-internal-links,
  .product-cta {
    display: none;
  }

  .product-detail > section {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
