/* ==========================================================================
   达聚网杭州站 全局样式
   设计原则：SEO/AI 收录优先（语义化 + 结构化数据），其次内容丰富与呈现
   ========================================================================== */

:root {
  --primary: #0b5ed7;
  --primary-dark: #0a4fb3;
  --primary-light: #e8f1fd;
  --accent: #f59e0b;
  --text: #1f2937;
  --text-light: #4b5563;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f6f9fd;
  --border: #e5eaf1;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(15, 42, 85, .08);
  --shadow-lg: 0 8px 28px rgba(15, 42, 85, .12);
  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

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

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

/* ---------- 顶栏 ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #38bdf8);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 20px; flex-shrink: 0;
}
.brand-name { font-size: 20px; font-weight: 700; color: var(--text); line-height: 1.2; }
.brand-sub { font-size: 12px; color: var(--muted); line-height: 1.2; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--text-light);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--primary-light); color: var(--primary); text-decoration: none; }
.main-nav a.active { background: var(--primary); color: #fff; }
.nav-home-link {
  border: 1px solid var(--primary);
  color: var(--primary) !important;
  white-space: nowrap;
}
.nav-home-link:hover { background: var(--primary-light) !important; }

.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; cursor: pointer; font-size: 18px; color: var(--text); }

/* ---------- 面包屑 ---------- */
.breadcrumb { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.breadcrumb .container { padding: 10px 20px; font-size: 13px; color: var(--muted); overflow-x: auto; white-space: nowrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; color: #c3ccd8; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #0b5ed7 0%, #1e7ff0 55%, #38bdf8 100%);
  color: #fff;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.hero h1 { font-size: 40px; font-weight: 800; line-height: 1.3; max-width: 760px; position: relative; z-index: 1; }
.hero p.lead { font-size: 18px; margin-top: 16px; max-width: 720px; opacity: .95; position: relative; z-index: 1; }
.hero-badges { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.hero-badge {
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
}
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; position: relative; z-index: 1; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .15s, box-shadow .15s;
  text-decoration: none !important;
}
.btn-primary { background: #fff; color: var(--primary-dark); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-blue { background: var(--primary); color: #fff; }
.btn-blue:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ---------- 数据条 ---------- */
.stats-bar { background: #fff; border-bottom: 1px solid var(--border); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  padding: 26px 0;
  gap: 12px;
}
.stat-item { text-align: center; }
.stat-num { font-size: 30px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- 通用分区 ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 30px; font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 680px; margin-left: auto; margin-right: auto; }
.section-head .tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ---------- 卡片网格 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .18s, box-shadow .18s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--primary); text-decoration: none; }
.card p { color: var(--text-light); font-size: 14.5px; flex-grow: 1; }
.card .card-link { margin-top: 14px; font-weight: 600; font-size: 14px; }
.card .card-link::after { content: " →"; }

/* ---------- 时间线 ---------- */
.timeline { max-width: 860px; margin: 0 auto; position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--primary-light);
}
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -34px; top: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px var(--primary-light);
}
.tl-item h3 { font-size: 17px; font-weight: 700; }
.tl-item p { color: var(--text-light); font-size: 14.5px; margin-top: 4px; }

/* ---------- 对比/表格 ---------- */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 14.5px; }
.data-table th { background: var(--primary); color: #fff; text-align: left; padding: 12px 16px; font-weight: 600; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:nth-child(even) td { background: var(--bg-soft); }
.data-table tr:last-child td { border-bottom: none; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--primary);
  transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 20px 16px; color: var(--text-light); font-size: 14.5px; }

/* ---------- 文章 ---------- */
.article-list { display: flex; flex-direction: column; gap: 18px; }
.article-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: box-shadow .18s;
}
.article-item:hover { box-shadow: var(--shadow-lg); }
.article-item h3 { font-size: 18px; font-weight: 700; }
.article-item h3 a { color: var(--text); }
.article-item h3 a:hover { color: var(--primary); text-decoration: none; }
.article-item .meta { font-size: 13px; color: var(--muted); margin: 6px 0 8px; }
.article-item p { color: var(--text-light); font-size: 14.5px; }

.prose { max-width: 860px; margin: 0 auto; }
.prose h2 { font-size: 24px; font-weight: 800; margin: 36px 0 14px; padding-left: 14px; border-left: 4px solid var(--primary); }
.prose h3 { font-size: 19px; font-weight: 700; margin: 28px 0 10px; }
.prose p { margin-bottom: 14px; color: var(--text-light); }
.prose ul, .prose ol { margin: 0 0 16px 22px; color: var(--text-light); }
.prose li { margin-bottom: 6px; }
.prose blockquote {
  border-left: 4px solid var(--accent);
  background: #fffbeb;
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 18px 0;
  color: var(--text-light);
}
.prose .lead { font-size: 17px; color: var(--text); }

/* ---------- CTA ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), #38bdf8);
  color: #fff;
  border-radius: 16px;
  padding: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cta-banner h2 { font-size: 26px; font-weight: 800; }
.cta-banner p { opacity: .95; margin-top: 6px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0f1f38; color: #c7d2e0; padding: 52px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-bottom: 32px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer a { color: #c7d2e0; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  text-align: center;
  color: #93a3b8;
  font-size: 13px;
  line-height: 2;
}
.footer-bottom a { color: #93a3b8; }
.footer-links { margin-top: 6px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }

/* ---------- 页面头部（内页） ---------- */
.page-head {
  background: linear-gradient(135deg, #0b5ed7, #1e7ff0);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.page-head h1 { font-size: 34px; font-weight: 800; }
.page-head p { opacity: .95; margin-top: 10px; max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- 服务详情特色块 ---------- */
.highlight-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.highlight-box p { color: var(--text); font-weight: 500; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; border-radius: 8px; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 30px; }
  .hero { padding: 52px 0 44px; }
  .section { padding: 48px 0; }
  .section-head h2 { font-size: 25px; }
  .cta-banner { padding: 28px 22px; }
  .page-head h1 { font-size: 27px; }
}
