/* ========== runhuayou78.com 样式 ========== */
/* 配色：深海藏蓝 #1A365D | 炭灰 #4A5568 | 工业橙 #DD6B20 | 白 #FFFFFF | 浅灰 #F7FAFC */

:root {
  --primary: #1A365D;
  --primary-light: #2A4A7F;
  --primary-dark: #0F2340;
  --secondary: #4A5568;
  --accent: #DD6B20;
  --accent-hover: #C05621;
  --bg-white: #FFFFFF;
  --bg-light: #F7FAFC;
  --bg-lighter: #EDF2F7;
  --text-dark: #1A202C;
  --text-body: #2D3748;
  --text-light: #718096;
  --border: #E2E8F0;
  --shadow: 0 2px 8px rgba(26,54,93,0.08);
  --shadow-lg: 0 4px 20px rgba(26,54,93,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', 'Source Han Sans CN', 'Microsoft YaHei', sans-serif;
  color: var(--text-body);
  line-height: 1.6;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

/* 等宽字体 - 技术参数 */
.mono, .spec-table td:last-child, .spec-table th:last-child {
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Consolas', monospace;
}

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

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== HEADER ========== */
.site-header {
  background: var(--primary);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  height: 64px;
}
.header-logo {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 700; font-size: 18px;
  white-space: nowrap;
}
.header-logo img { height: 40px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 2px; }
.header-nav a {
  color: rgba(255,255,255,0.85); font-size: 14px; padding: 8px 12px;
  border-radius: 4px; transition: all 0.2s; white-space: nowrap;
}
.header-nav a:hover, .header-nav a.active {
  color: #fff; background: rgba(255,255,255,0.12);
}
.header-phone {
  color: var(--accent); font-size: 16px; font-weight: 700;
  white-space: nowrap; margin-left: 16px;
}
.header-phone a { color: var(--accent); }
.menu-toggle {
  display: none; background: none; border: none; color: #fff;
  font-size: 24px; cursor: pointer; padding: 4px 8px;
}

/* ========== BANNER ========== */
.hero-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff; padding: 80px 0; text-align: center;
  position: relative; overflow: hidden;
}
.hero-banner::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(255,255,255,0.03)"/><circle cx="20" cy="80" r="30" fill="rgba(255,255,255,0.02)"/></svg>');
  background-size: cover;
}
.hero-content { position: relative; z-index: 1; }
.hero-title { font-size: 36px; font-weight: 700; margin-bottom: 16px; letter-spacing: 2px; }
.hero-subtitle { font-size: 20px; opacity: 0.9; margin-bottom: 8px; }
.hero-desc { font-size: 15px; opacity: 0.8; margin-bottom: 32px; max-width: 680px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 6px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; border: none; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(221,107,32,0.3); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.1); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--bg-light); color: var(--primary); }

/* ========== 通用板块 ========== */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-light); }
.section-dark { background: var(--primary); color: #fff; }
.section-title {
  font-size: 28px; font-weight: 700; color: var(--primary);
  text-align: center; margin-bottom: 12px;
}
.section-dark .section-title { color: #fff; }
.section-subtitle {
  font-size: 15px; color: var(--text-light); text-align: center;
  margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* ========== 核心产品卡片 ========== */
.product-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  background: #fff; border-radius: 8px; padding: 28px 24px;
  box-shadow: var(--shadow); transition: all 0.3s;
  border-top: 3px solid var(--primary);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-top-color: var(--accent); }
.product-card-icon { font-size: 36px; margin-bottom: 16px; }
.product-card h3 { font-size: 18px; color: var(--primary); margin-bottom: 12px; font-weight: 700; }
.product-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ========== 场景卡片 ========== */
.scene-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.scene-card {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.3s;
}
.scene-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.scene-card-img {
  height: 160px; background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: rgba(255,255,255,0.3);
}
.scene-card-body { padding: 20px; }
.scene-card h3 { font-size: 16px; color: var(--primary); margin-bottom: 8px; }
.scene-card p { font-size: 13px; color: var(--text-light); }

/* ========== 服务能力 ========== */
.service-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-feature {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px; background: #fff; border-radius: 6px;
}
.service-feature-icon { color: var(--accent); font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.service-feature span { font-size: 15px; color: var(--text-body); }

/* ========== 案例卡片 ========== */
.case-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case-card {
  background: #fff; border-radius: 8px; padding: 24px;
  box-shadow: var(--shadow); border-left: 4px solid var(--accent);
}
.case-card h3 { font-size: 16px; color: var(--primary); margin-bottom: 8px; }
.case-card .case-type { font-size: 12px; color: var(--accent); margin-bottom: 12px; font-weight: 600; }
.case-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }
.case-card .case-result { margin-top: 12px; font-size: 14px; color: var(--primary); font-weight: 600; }

/* ========== 知识库 ========== */
.knowledge-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.knowledge-item {
  padding: 20px; background: #fff; border-radius: 6px;
  border: 1px solid var(--border); transition: all 0.2s;
}
.knowledge-item:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.knowledge-item h4 { font-size: 15px; margin-bottom: 8px; }
.knowledge-item h4 a { color: var(--primary); }
.knowledge-item h4 a:hover { color: var(--accent); }
.knowledge-item p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* ========== 信任区 ========== */
.trust-section { text-align: center; }
.trust-items { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 24px; }
.trust-item { text-align: center; }
.trust-item .trust-num { font-size: 32px; font-weight: 700; color: var(--primary); }
.trust-item .trust-label { font-size: 14px; color: var(--text-light); margin-top: 4px; }

/* ========== 底部询盘 ========== */
.inquiry-section {
  background: var(--bg-light); padding: 48px 0; text-align: center;
}
.inquiry-section h2 { font-size: 22px; color: var(--primary); margin-bottom: 8px; }
.inquiry-section p { color: var(--text-light); margin-bottom: 20px; }

/* ========== 悬浮询价按钮 ========== */
.float-inquiry {
  position: fixed; z-index: 999;
  background: var(--accent); color: #fff; border: none;
  border-radius: 6px; padding: 12px 20px; font-size: 14px; font-weight: 600;
  cursor: pointer; box-shadow: 0 4px 16px rgba(221,107,32,0.4);
  transition: all 0.3s;
}
.float-inquiry:hover { background: var(--accent-hover); transform: translateY(-2px); }
.float-inquiry-pc { right: 24px; bottom: 30%; writing-mode: vertical-rl; letter-spacing: 4px; padding: 20px 12px; }
.float-inquiry-mobile { display: none; bottom: 0; left: 0; right: 0; width: 100%; border-radius: 0; text-align: center; padding: 14px; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 40px 0 20px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col p, .footer-col a { font-size: 13px; line-height: 2; color: rgba(255,255,255,0.6); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 12px; }

/* ========== 详情页通用 ========== */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; padding: 48px 0; text-align: center;
}
.page-banner h1 { font-size: 28px; margin-bottom: 8px; }
.page-banner p { opacity: 0.8; font-size: 15px; }

.breadcrumb { padding: 12px 0; font-size: 13px; color: var(--text-light); }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

.detail-content { padding: 40px 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }

.main-content h2 { font-size: 22px; color: var(--primary); margin: 32px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.main-content h3 { font-size: 18px; color: var(--primary); margin: 24px 0 12px; }
.main-content p { margin-bottom: 16px; line-height: 1.8; }
.main-content ul { margin-bottom: 16px; padding-left: 24px; }
.main-content li { margin-bottom: 8px; }

/* 参数表格 */
.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.spec-table th { background: var(--primary); color: #fff; padding: 12px 16px; text-align: left; font-weight: 600; }
.spec-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.spec-table tr:nth-child(even) td { background: var(--bg-light); }
.spec-table td:first-child { color: var(--secondary); font-weight: 500; }

/* FAQ */
.faq-section { margin-top: 40px; }
.faq-section h2 { font-size: 22px; color: var(--primary); margin-bottom: 20px; }
.faq-item { margin-bottom: 16px; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.faq-q { padding: 14px 20px; background: var(--bg-light); font-weight: 600; color: var(--primary); cursor: pointer; }
.faq-a { padding: 14px 20px; font-size: 14px; line-height: 1.7; color: var(--text-body); display: none; }
.faq-item.open .faq-a { display: block; }

/* 侧边栏 */
.sidebar { position: sticky; top: 80px; }
.sidebar-card { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.sidebar-card h3 { font-size: 16px; color: var(--primary); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.sidebar-card a { display: block; padding: 6px 0; font-size: 14px; color: var(--text-body); }
.sidebar-card a:hover { color: var(--accent); }

/* ========== 全国地域 ========== */
.region-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.region-item {
  padding: 12px 16px; background: #fff; border-radius: 4px;
  font-size: 14px; text-align: center; border: 1px solid var(--border);
  transition: all 0.2s;
}
.region-item:hover { border-color: var(--primary); color: var(--primary); }
.region-item:nth-child(odd) { background: var(--bg-light); }
.region-item a { color: var(--text-body); }
.region-item a:hover { color: var(--primary); }

.city-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.city-item { font-size: 13px; padding: 8px; text-align: center; border: 1px solid var(--border); border-radius: 4px; }
.city-item:nth-child(odd) { background: var(--bg-light); }
.city-item a { color: var(--text-body); }
.city-item a:hover { color: var(--primary); }

/* ========== 联系表单 ========== */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 14px; transition: border-color 0.2s;
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,54,93,0.1);
}

/* ========== 分页 ========== */
.pagination { text-align: center; margin-top: 32px; }
.pagination a, .pagination span {
  display: inline-block; padding: 8px 14px; margin: 0 4px;
  border: 1px solid var(--border); border-radius: 4px; font-size: 14px;
}
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .product-cards { grid-template-columns: repeat(2, 1fr); }
  .scene-cards { grid-template-columns: repeat(2, 1fr); }
  .service-features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .region-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-phone { display: none; }
  .menu-toggle { display: block; }
  
  /* 手机导航展开 */
  .header-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--primary); padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  
  .hero-banner { padding: 48px 0; }
  .hero-title { font-size: 24px; }
  .hero-subtitle { font-size: 16px; }
  
  .product-cards { grid-template-columns: 1fr; }
  .scene-cards { grid-template-columns: 1fr; }
  .service-features { grid-template-columns: 1fr; }
  .case-cards { grid-template-columns: 1fr; }
  .knowledge-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .city-grid { grid-template-columns: repeat(3, 1fr); }
  
  .section { padding: 40px 0; }
  .section-title { font-size: 22px; }
  
  .float-inquiry-pc { display: none; }
  .float-inquiry-mobile { display: block; }
  
  .spec-table { font-size: 13px; }
  .spec-table th, .spec-table td { padding: 8px 10px; }
}
