/* 常州紫鸟广告科技有限公司 — 官网样式表 */

:root {
  --brand: #5b2ea6;
  --brand-dark: #3d1c74;
  --brand-light: #7c4dd0;
  --brand-soft: #f3eefc;
  --accent: #e8a33d;
  --ink: #1a1626;
  --body: #4a4458;
  --muted: #7b7490;
  --line: #e6e2ee;
  --bg: #ffffff;
  --bg-alt: #faf8fd;
  --radius: 14px;
  --shadow: 0 2px 4px rgba(26, 22, 38, .04), 0 12px 32px rgba(61, 28, 116, .07);
  --maxw: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-light); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: 2.3rem; letter-spacing: -.5px; }
h2 { font-size: 1.75rem; letter-spacing: -.3px; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  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; color: var(--ink); font-weight: 700; font-size: 1.05rem; letter-spacing: -.2px; }
.logo:hover { color: var(--ink); }
.logo svg { flex: none; }
.logo small { display: block; font-size: .65rem; font-weight: 500; letter-spacing: 1.4px; color: var(--muted); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--body); font-size: .95rem; font-weight: 500;
}
.nav-links a:hover { background: var(--brand-soft); color: var(--brand); }
.nav-links a.active { color: var(--brand); font-weight: 600; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 10px; cursor: pointer; color: var(--ink); font-size: 1.1rem;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 100px;
  font-weight: 600; font-size: .98rem; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(91, 46, 166, .25); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { color: var(--brand-dark); transform: translateY(-1px); }

/* ---------- 首页 Hero ---------- */
.hero { background: linear-gradient(160deg, #f7f4fe 0%, #ffffff 62%); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 84px 0 76px; }
.hero h1 { font-size: 2.85rem; margin-bottom: .5em; }
.hero h1 span { color: var(--brand); }
.hero-lead { font-size: 1.12rem; color: var(--body); margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 30px; box-shadow: var(--shadow);
}
.hero-card h3 { font-size: .95rem; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; margin-bottom: 18px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.hero-stats div strong { display: block; font-size: 1.55rem; color: var(--brand); font-weight: 700; line-height: 1.2; }
.hero-stats div span { font-size: .88rem; color: var(--muted); }

/* ---------- 页面头部（内页） ---------- */
.page-head { background: linear-gradient(160deg, #f7f4fe 0%, #ffffff 100%); border-bottom: 1px solid var(--line); padding: 62px 0 54px; }
.page-head h1 { margin-bottom: .35em; }
.page-head p { color: var(--muted); font-size: 1.05rem; max-width: 680px; margin: 0; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d9d1ee; }
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--brand);
}
.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .95rem; margin-bottom: 16px;
}

.tick { list-style: none; padding: 0; margin: 0; }
.tick li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.tick li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.tick li:last-child { margin-bottom: 0; }

/* ---------- 业务详情块 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split + .split { margin-top: 72px; }
.split .visual {
  border-radius: 18px; background: linear-gradient(150deg, var(--brand) 0%, var(--brand-light) 100%);
  min-height: 280px; display: flex; align-items: center; justify-content: center; padding: 32px;
  box-shadow: var(--shadow);
}
.split .visual svg { width: 100%; height: auto; max-width: 300px; }

/* ---------- 信息表 ---------- */
.info-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-table th, .info-table td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: .96rem; vertical-align: top; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { width: 200px; background: var(--bg-alt); color: var(--ink); font-weight: 600; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* ---------- 联系方式 ---------- */
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.contact-item:last-child { margin-bottom: 0; }
.contact-item .ci-icon {
  flex: none; width: 42px; height: 42px; border-radius: 11px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.contact-item h3 { font-size: 1rem; margin-bottom: .15em; }
.contact-item p { margin: 0; color: var(--body); }
.contact-item a { font-weight: 600; }

.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--brand-light); box-shadow: 0 0 0 3px rgba(124, 77, 208, .14);
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* ---------- CTA 区 ---------- */
.cta {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 55%, var(--brand-light) 100%);
  color: #fff; text-align: center; padding: 72px 0;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .85); max-width: 620px; margin: 0 auto 28px; font-size: 1.05rem; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: #b9b2cc; padding: 58px 0 26px; font-size: .93rem; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .5px; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 44px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.site-footer a { color: #b9b2cc; }
.site-footer a:hover { color: #fff; }
.footer-brand p { margin-bottom: .6em; }
.footer-brand .fb-name { color: #fff; font-weight: 600; font-size: 1.02rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: .87rem; color: #8d86a3;
}

/* ---------- 法务页排版 ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal h2:first-child { margin-top: 0; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: .92rem; border-left: 3px solid var(--brand); padding-left: 14px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner, .split, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .split + .split { margin-top: 48px; }
  .hero-inner { padding: 56px 0; gap: 36px; }
}

@media (max-width: 720px) {
  h1 { font-size: 1.85rem; }
  .hero h1 { font-size: 2.05rem; }
  h2 { font-size: 1.45rem; }
  .section { padding: 54px 0; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; border-radius: 8px; }
  .info-table th { width: 130px; white-space: normal; }
}
