/* ============================================================
   中网互联 cdwzzz.com - 成都网站制作 全站公共样式
   ============================================================ */
:root {
  --primary: #1a56db;
  --primary-dark: #123a94;
  --primary-light: #e8effc;
  --accent: #ff7a00;
  --accent-light: #fff3e8;
  --dark: #1c2333;
  --gray: #5c6470;
  --gray-light: #8a92a0;
  --line: #e6eaf0;
  --bg: #ffffff;
  --bg-gray: #f5f7fa;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(28, 35, 51, .08);
  --shadow-hover: 0 16px 40px rgba(26, 86, 219, .18);
  --max: 1200px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--dark); background: var(--bg); line-height: 1.7; font-size: 15px;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.35; }

/* ---------- 顶部信息条 ---------- */
.topbar { background: var(--dark); color: #c6cdd8; font-size: 12.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a { color: #ffd08a; }
.topbar .tb-right { display: flex; gap: 18px; }

/* ---------- 导航 ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #4f8bff);
  color: #fff; font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.logo-text b { font-size: 20px; letter-spacing: 1px; display: block; line-height: 1.2; }
.logo-text span { font-size: 11px; color: var(--gray-light); letter-spacing: 2px; }
.nav-links { display: flex; gap: 6px; }
.nav-links > li { position: relative; }
.nav-links a { display: block; padding: 10px 16px; font-size: 15.5px; border-radius: 8px; color: var(--dark); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--primary-light); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-weight: 700; color: var(--accent); font-size: 16px; }
.nav-phone small { display: block; font-size: 11px; color: var(--gray-light); font-weight: 400; line-height: 1; }

/* 下拉菜单 */
.dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all .25s;
}
.nav-links li:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { padding: 9px 14px; font-size: 14px; border-radius: 8px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 12px 30px; border-radius: 30px;
  font-size: 15.5px; font-weight: 600; cursor: pointer; transition: all .25s;
  border: none; text-align: center;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), #3d7bff); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-accent { background: linear-gradient(135deg, #ff8f1f, var(--accent)); color: #fff; }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,122,0,.35); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border: 1.5px solid var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ---------- Banner / Hero ---------- */
.hero {
  position: relative; color: #fff; padding: 110px 0 130px;
  background: linear-gradient(135deg, #0d2f77 0%, #1a56db 55%, #3d7bff 100%);
  overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.06);
}
.hero::before { width: 480px; height: 480px; top: -160px; right: -100px; }
.hero::after { width: 320px; height: 320px; bottom: -140px; left: 6%; }
.hero-inner { position: relative; z-index: 2; max-width: 780px; }
.hero-tag {
  display: inline-block; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35);
  padding: 5px 16px; border-radius: 20px; font-size: 13px; margin-bottom: 22px; letter-spacing: 1px;
}
.hero h1 { font-size: 44px; letter-spacing: 1px; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #ffc46b; }
.hero p.lead { font-size: 17px; color: #dbe6ff; margin-bottom: 34px; max-width: 620px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 56px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats b { font-size: 34px; display: block; color: #fff; }
.hero-stats span { font-size: 13.5px; color: #b9c8ea; }

/* 内页统一 banner */
.page-banner {
  position: relative; color: #fff; padding: 70px 0;
  background: linear-gradient(120deg, #0d2f77, #1a56db);
  overflow: hidden;
}
.page-banner::after { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,.06); right: -80px; top: -160px; }
.page-banner h1 { font-size: 34px; margin-bottom: 10px; position: relative; z-index: 2; }
.page-banner .crumb { position: relative; z-index: 2; font-size: 13.5px; color: #b9c8ea; }
.page-banner .crumb a:hover { color: #fff; }
.page-banner .sub { position: relative; z-index: 2; color: #dbe6ff; font-size: 15px; }

/* ---------- 通用 section ---------- */
.section { padding: 80px 0; }
.section.bg-gray { background: var(--bg-gray); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.sec-head .kicker { color: var(--primary); font-size: 14px; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; }
.sec-head h2 { font-size: 32px; margin: 8px 0 12px; }
.sec-head p { color: var(--gray); font-size: 15.5px; }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); padding: 32px 28px;
  border: 1px solid var(--line); transition: all .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card h3 { font-size: 18.5px; margin: 16px 0 10px; }
.card p { color: var(--gray); font-size: 14.5px; }
.icon-box {
  width: 58px; height: 58px; border-radius: 14px; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary);
}
.icon-box.orange { background: var(--accent-light); color: var(--accent); }

/* 服务卡片带编号 */
.service-card { position: relative; overflow: hidden; }
.service-card .num {
  position: absolute; right: 18px; top: 8px; font-size: 52px; font-weight: 800;
  color: rgba(26,86,219,.08); font-family: Arial, sans-serif;
}
.service-card .tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.service-card .tags span {
  font-size: 12px; color: var(--primary); background: var(--primary-light);
  padding: 3px 10px; border-radius: 12px;
}

/* ---------- 案例卡片 ---------- */
.case-card { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: all .3s; display: block; }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.case-cover {
  height: 200px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 30px; font-weight: 700; letter-spacing: 2px; text-align: center; padding: 20px;
}
.cover-1 { background: linear-gradient(135deg, #1a56db, #4f8bff); }
.cover-2 { background: linear-gradient(135deg, #d63b1a, #ff8f1f); }
.cover-3 { background: linear-gradient(135deg, #0f8a5f, #2fc98c); }
.cover-4 { background: linear-gradient(135deg, #6a3bd6, #a97bff); }
.cover-5 { background: linear-gradient(135deg, #0d7ea8, #3ec3e8); }
.cover-6 { background: linear-gradient(135deg, #c22222, #ff6a5c); }
.case-body { padding: 20px 22px; }
.case-body h3 { font-size: 17px; margin-bottom: 6px; }
.case-body p { color: var(--gray); font-size: 13.5px; }
.case-meta { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.case-meta span { font-size: 12px; background: var(--bg-gray); color: var(--gray); padding: 3px 10px; border-radius: 12px; }

/* ---------- 新闻卡片 ---------- */
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .3s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-card .thumb { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 40px; color: #fff; }
.news-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.news-body h3 { font-size: 16.5px; line-height: 1.5; margin-bottom: 8px; }
.news-body h3 a:hover { color: var(--primary); }
.news-body p { color: var(--gray); font-size: 13.5px; flex: 1; }
.news-date { color: var(--gray-light); font-size: 12.5px; margin-top: 12px; }

/* ---------- 列表页布局 ---------- */
.list-layout { display: grid; grid-template-columns: 1fr 300px; gap: 30px; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 22px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.side-box h3 { font-size: 17px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); display: inline-block; }
.side-list li a { display: flex; justify-content: space-between; padding: 8px 0; color: var(--gray); font-size: 14px; border-bottom: 1px dashed var(--line); }
.side-list li:last-child a { border: none; }
.side-list li a:hover { color: var(--primary); }
.side-contact { background: linear-gradient(135deg, #0d2f77, #1a56db); color: #fff; border: none; }
.side-contact h3 { color: #fff; border-color: rgba(255,255,255,.4); }
.side-contact p { font-size: 14px; color: #dbe6ff; margin: 6px 0; }
.side-contact b { font-size: 18px; color: #ffc46b; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.data th { background: var(--primary); color: #fff; padding: 14px 18px; font-size: 15px; text-align: left; }
table.data td { padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--gray); }
table.data tr:hover td { background: var(--primary-light); }
table.data td b { color: var(--dark); }

/* ---------- 详情页文章 ---------- */
.article { background: #fff; padding: 40px 44px; border-radius: var(--radius); border: 1px solid var(--line); }
.article h2 { font-size: 24px; margin: 34px 0 16px; padding-left: 12px; border-left: 4px solid var(--primary); }
.article h2:first-of-type { margin-top: 26px; }
.article h3 { font-size: 18px; margin: 22px 0 10px; color: var(--primary-dark); }
.article p { color: #3a4150; margin-bottom: 14px; font-size: 15px; }
.article ul.points li, .article ol.points li {
  position: relative; padding-left: 26px; margin-bottom: 10px; color: #3a4150; font-size: 15px;
}
.article ul.points li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: 700;
}
.article ol.points { counter-reset: pt; }
.article ol.points li::before {
  counter-increment: pt; content: counter(pt) ".";
  position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700;
}
.article blockquote {
  background: var(--primary-light); border-left: 4px solid var(--primary);
  padding: 16px 20px; border-radius: 8px; color: var(--primary-dark); margin: 18px 0; font-size: 14.5px;
}
.article-meta { display: flex; gap: 22px; color: var(--gray-light); font-size: 13.5px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }

/* ---------- 流程步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 18px; text-align: center; position: relative; transition: all .3s;
}
.step:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.step .step-num {
  width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #3d7bff); color: #fff;
  font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 12.8px; color: var(--gray); }

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.faq-item summary {
  padding: 18px 24px; font-size: 16px; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--primary); transition: transform .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 24px 20px; color: var(--gray); font-size: 14.5px; }

/* ---------- CTA 条 ---------- */
.cta-band {
  background: linear-gradient(120deg, #0d2f77, #1a56db); color: #fff;
  border-radius: 18px; padding: 44px 48px; display: flex;
  align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 26px; margin-bottom: 8px; }
.cta-band p { color: #c9d8fa; font-size: 15px; }
.cta-band .cta-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-band .phone-big { font-size: 24px; font-weight: 800; color: #ffc46b; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 40px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px; text-align: center; }
.contact-card .icon-box { margin: 0 auto 16px; }
.contact-card h3 { font-size: 17px; margin-bottom: 8px; }
.contact-card p { color: var(--gray); font-size: 15px; }
.contact-card b { color: var(--primary); font-size: 19px; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: block; font-size: 14px; font-weight: 600; margin: 16px 0 6px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14.5px; font-family: inherit; outline: none; transition: border .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--primary); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.form-note { color: var(--gray-light); font-size: 12.5px; margin-top: 10px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--dark); color: #9aa3b2; padding: 60px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 44px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer a:hover { color: #fff; }
.footer li { margin-bottom: 9px; }
.footer .f-about p { margin: 12px 0; line-height: 1.8; }
.footer .f-contact p { margin-bottom: 8px; }
.footer .f-contact b { color: #ffc46b; font-size: 16px; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bar a { color: #9aa3b2; }

/* ---------- 浮动咨询 ---------- */
.float-consult {
  position: fixed; right: 18px; bottom: 90px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px;
}
.float-consult a {
  width: 56px; height: 56px; border-radius: 50%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #fff; font-size: 10.5px;
  box-shadow: 0 8px 20px rgba(0,0,0,.18); line-height: 1.3;
}
.float-consult .fc-qq { background: #12b7f5; }
.float-consult .fc-wx { background: #2aae67; }
.float-consult .fc-tel { background: var(--accent); }
.float-consult .fc-top { background: var(--gray); font-size: 11px; }
.float-consult span { font-size: 16px; }

/* ---------- 面包屑条 ---------- */
.breadcrumb-bar { background: var(--bg-gray); border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--gray); padding: 10px 0; }
.breadcrumb-bar a:hover { color: var(--primary); }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .list-layout { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links, .nav-phone { display: none; }
  .topbar .tb-right span:last-child { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 90px; }
  .hero h1 { font-size: 28px; }
  .sec-head h2 { font-size: 25px; }
  .article { padding: 26px 20px; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 30px 24px; }
}
