/* ============================================================
   智欣联创新版官网 - 全站公共样式
   配色：品牌红 #C8102E + 皇家蓝 #0B2C6F / #1E66D0 + 点缀金
   ============================================================ */
:root {
  --red: #C8102E;
  --red-dark: #A00D26;
  --red-light: #FDF2F4;
  --blue: #0B2C6F;
  --blue-2: #1E66D0;
  --blue-light: #EDF3FC;
  --gold: #C99A3F;
  --gold-light: #FBF3E1;
  --ink: #17202F;
  --ink-2: #47506A;
  --ink-3: #8C94A8;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FB;
  --line: #E7EAF1;
  --grad-main: linear-gradient(120deg, #C8102E 0%, #8E1B55 46%, #0B2C6F 100%);
  --grad-blue: linear-gradient(135deg, #0B2C6F 0%, #1E66D0 100%);
  --grad-red: linear-gradient(135deg, #C8102E 0%, #E44D66 100%);
  --grad-gold: linear-gradient(135deg, #C99A3F 0%, #E8C374 100%);
  --shadow-card: 0 8px 24px rgba(11, 44, 111, 0.07);
  --shadow-card-hover: 0 16px 40px rgba(11, 44, 111, 0.15);
  --radius: 12px;
  --radius-sm: 7px;
  --maxw: 1200px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

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

/* ---------- 顶部联系条 ---------- */
.topbar {
  background: linear-gradient(90deg, #071B45 0%, #0B2C6F 58%, #14407E 100%);
  color: rgba(255,255,255,.82);
  font-size: 13px;
  line-height: 1;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.topbar .tb-left span { margin-right: 26px; display: inline-flex; align-items: center; }
.topbar .tb-left i { margin-right: 6px; }
.topbar a { color: rgba(255,255,255,.82); }
.topbar a:hover { color: #fff; }
.topbar .tb-right span { color: #E9C987; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 8px; }
.topbar .tb-right span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad-gold); }

/* ---------- 主导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 14px rgba(11,44,107,.08);
}
.site-header .container { display: flex; align-items: center; height: var(--header-h); gap: 36px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand .logo-img { height: 48px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 6px; flex: 1; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: block; padding: 26px 16px; font-size: 15.5px; font-weight: 500; color: var(--ink);
}
.main-nav > li > a .en { display: block; font-size: 10px; color: var(--ink-3); letter-spacing: 1px; text-transform: uppercase; line-height: 1; margin-top: 3px; font-weight: 400; }
.main-nav > li > a:hover, .main-nav > li.active > a { color: var(--red); }
.main-nav > li.active > a::after, .main-nav > li > a:hover::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 14px; height: 3px;
  border-radius: 3px; background: var(--grad-main);
}
.main-nav > li.has-sub:hover .sub-nav { display: block; }
.sub-nav {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; min-width: 190px; border-radius: 0 0 10px 10px;
  box-shadow: 0 16px 34px rgba(10,46,107,.14); overflow: hidden; z-index: 50;
}
.sub-nav a { display: block; padding: 11px 20px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.sub-nav a:hover { background: var(--blue-light); color: var(--blue); }

.header-cta { flex-shrink: 0; display: flex; align-items: center; gap: 14px; }
.header-cta .hotline { text-align: right; line-height: 1.25; }
.header-cta .hotline .label { font-size: 11px; color: var(--ink-3); }
.header-cta .hotline .num { font-size: 20px; font-weight: 800; color: var(--red); letter-spacing: .5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; border-radius: 999px;
  padding: 11px 26px; font-size: 15px; font-weight: 600;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad-red); color: #fff; box-shadow: 0 8px 18px rgba(200,16,46,.28); }
.btn-primary:hover { color: #fff; }
.btn-blue { background: var(--grad-blue); color: #fff; box-shadow: 0 8px 18px rgba(21,96,189,.28); }
.btn-blue:hover { color: #fff; }
.btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-line { background: #fff; border: 1.5px solid var(--line); color: var(--blue); }
.btn-line:hover { border-color: var(--blue-2); color: var(--blue-2); }
.btn-sm { padding: 7px 16px; font-size: 13px; }

/* ---------- 内页横幅 ---------- */
.page-banner {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(118deg, #071B45 0%, #0B2C6F 46%, #1E66D0 100%);
  padding: 68px 0 62px;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(200,16,46,.4), transparent 46%),
    radial-gradient(circle at 12% 85%, rgba(30,102,208,.5), transparent 42%),
    radial-gradient(circle at 88% 90%, rgba(201,154,63,.22), transparent 36%);
}
.page-banner::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 340px; height: 340px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255,255,255,.04), 0 0 0 130px rgba(255,255,255,.03);
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { font-size: 34px; font-weight: 700; letter-spacing: 1px; }
.page-banner .sub { margin-top: 8px; font-size: 15px; color: rgba(255,255,255,.75); letter-spacing: .5px; }
.page-banner .crumbs { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.65); }
.page-banner .crumbs a { color: rgba(255,255,255,.85); }
.page-banner .crumbs a:hover { color: #fff; }

/* ---------- 通用区块 ---------- */
.section { padding: 78px 0; }
.section.soft { background: var(--bg-soft); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.sec-head .tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--red); font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
}
.sec-head .tag::before, .sec-head .tag::after { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold)); }
.sec-head .tag::after { background: linear-gradient(90deg, var(--gold), transparent); }
.sec-head h2 { font-size: 32px; font-weight: 700; color: var(--ink); margin-top: 8px; letter-spacing: 1px; }
.sec-head h2 .dot { color: var(--red); }
.sec-head p { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; }
.sec-head.left { text-align: left; margin-left: 0; }
.sec-head.left .tag::before { display: none; }

/* ---------- 通用卡片 ---------- */
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); border-color: rgba(200,16,46,.25); }

/* ---------- 表格/标签 ---------- */
.pill {
  display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 999px;
  font-size: 12.5px; background: var(--red-light); color: var(--red); font-weight: 600;
}
.pill.blue { background: var(--blue-light); color: var(--blue-2); }

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 46px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; padding: 0 6px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--ink-2); background: #fff; border: 1px solid var(--line);
}
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination .cur { background: var(--grad-red); color: #fff; border-color: transparent; font-weight: 700; box-shadow: 0 6px 14px rgba(200,16,46,.25); }
.pagination .disabled { color: #C4C9D4; cursor: not-allowed; background: var(--bg-soft); }

/* ---------- 页脚 ---------- */
.site-footer { background: linear-gradient(180deg, #050F2B 0%, #0A224F 70%, #0C2960 100%); color: rgba(255,255,255,.72); margin-top: 0; position: relative; }
.site-footer::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, #C8102E 0%, #8E1B55 34%, #1E66D0 70%, #E8C374 100%); }
.footer-main { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.15fr; gap: 44px; }
.footer-grid .f-title { color: #fff; font-size: 16.5px; font-weight: 700; margin-bottom: 18px; position: relative; padding-bottom: 12px; }
.footer-grid .f-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 2px; background: var(--grad-gold); }
.footer-brand .desc { font-size: 13.5px; line-height: 1.9; color: rgba(255,255,255,.6); margin-top: 14px; }
.footer-brand .logo-row { display: flex; align-items: center; gap: 10px; }
.footer-brand .logo-chip { display: inline-flex; align-items: center; background: #fff; border-radius: 10px; padding: 8px 14px; box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.footer-brand .logo-chip img { height: 42px; width: auto; display: block; }
.f-links li { margin-bottom: 11px; font-size: 14px; }
.f-links a { color: rgba(255,255,255,.66); transition: color .2s, padding-left .2s; }
.f-links a:hover { color: #fff; padding-left: 4px; }
.f-contact li { display: flex; gap: 10px; margin-bottom: 13px; font-size: 14px; color: rgba(255,255,255,.72); line-height: 1.6; }
.f-contact li i { color: var(--red); flex-shrink: 0; margin-top: 4px; }
.f-contact .strong { color: #fff; font-size: 19px; font-weight: 800; letter-spacing: .5px; }
.footer-qr { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.footer-qr .qr-box { width: 92px; height: 92px; background: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: 11px; text-align: center; line-height: 1.4; flex-direction: column; }
.footer-qr .qr-box svg { width: 46px; height: 46px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 18px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: #fff; }
.footer-links-inline a { margin: 0 8px; }

/* ---------- 友情链接区 ---------- */
.link-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.link-cloud a {
  padding: 8px 18px; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13.5px; color: var(--ink-2); transition: all .2s;
}
.link-cloud a:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(200,16,46,.12); }

/* ---------- 移动端 ---------- */
.nav-toggle { display: none; }
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; margin-left: auto; align-items: center;
  }
  .nav-toggle span { width: 18px; height: 2px; background: var(--blue); border-radius: 2px; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; padding: 12px 20px 20px; box-shadow: 0 20px 30px rgba(10,46,107,.12); }
  .main-nav.open > li > a { padding: 13px 6px; border-bottom: 1px solid var(--line); }
  .main-nav > li > a::after { display: none !important; }
  .header-cta .hotline { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .page-banner h1 { font-size: 25px; }
  .sec-head h2 { font-size: 24px; }
  .brand .logo-img { height: 38px; }
  .footer-brand .logo-chip img { height: 34px; }
}
