/* ============================================================
   锦智曜诚 · 全站样式
   配色方案 A：藏青 #16324F + 暖金 #C9A24B
   ============================================================ */
:root {
  --primary: #16324F;
  --primary-dark: #0F2540;
  --primary-light: #1E4A73;
  --secondary: #2E6CA4;
  --secondary-dark: #1F5588;
  --accent: #C9A24B;
  --accent-dark: #B08D3E;
  --bg: #F6F8FB;
  --bg-white: #FFFFFF;
  --text: #1F2937;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --success: #2E7D5B;
  --shadow-sm: 0 1px 3px rgba(22, 50, 79, 0.06);
  --shadow-md: 0 8px 24px rgba(22, 50, 79, 0.10);
  --shadow-lg: 0 20px 40px rgba(22, 50, 79, 0.14);
  --radius: 6px;
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Noto Serif SC", "Songti SC", "SimSun", serif; font-weight: 700; line-height: 1.3; color: var(--primary); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; cursor: pointer; border: none;
  transition: all .25s ease; font-family: inherit;
}
.btn-gold { background: var(--accent); color: var(--primary); }
.btn-gold:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--secondary); color: var(--secondary); }
.btn-outline:hover { background: var(--secondary); color: #fff; }
.btn-outline-gold { background: transparent; border: 1.5px solid var(--accent); color: var(--accent); }
.btn-outline-gold:hover { background: var(--accent); color: var(--primary); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--secondary-dark); }

/* ---------- 顶部导航 ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--border);
  transition: box-shadow .25s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  height: 38px; width: auto; object-fit: contain; display: block;
}
.logo-text { font-family: "Noto Serif SC", serif; font-size: 20px; font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.logo-sub { font-size: 11px; color: var(--text-muted); letter-spacing: 2px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 15px; color: var(--text); font-weight: 500; position: relative; padding: 6px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--accent);
}
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-phone { font-size: 14px; color: var(--primary); font-weight: 600; }
.nav-phone i { color: var(--accent); margin-right: 6px; }
.hamburger { display: none; background: none; border: none; font-size: 24px; color: var(--primary); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 110px 0 120px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(201,162,75,.15), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(46,108,164,.25), transparent 50%);
}
.hero .container { position: relative; z-index: 1; max-width: 900px; text-align: center; }
.hero-badge {
  display: inline-block; padding: 6px 18px; border: 1px solid rgba(201,162,75,.5);
  color: var(--accent); border-radius: 100px; font-size: 13px; letter-spacing: 2px; margin-bottom: 28px;
}
.hero h1 {
  color: #fff; font-size: 52px; line-height: 1.25; margin-bottom: 22px;
  letter-spacing: 2px;
}
.hero h1 .gold { color: var(--accent); }
.hero-sub { font-size: 18px; color: #B8C7D9; max-width: 680px; margin: 0 auto 40px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- 信任数字条 ---------- */
.stats-bar { background: #fff; border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 36px 10px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num { font-family: "Noto Serif SC", serif; font-size: 38px; font-weight: 700; color: var(--primary); }
.stat-num em { color: var(--accent); font-style: normal; }
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ---------- 通用 Section ---------- */
section { padding: 90px 0; }
section.gray { background: var(--bg); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag { color: var(--accent); font-size: 13px; letter-spacing: 3px; font-weight: 600; }
.section-head h2 { font-size: 36px; margin: 10px 0 14px; }
.section-head p { color: var(--text-muted); font-size: 16px; }

/* ---------- 业务卡片 ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 36px 28px; transition: all .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon {
  width: 56px; height: 56px; border-radius: 8px; background: rgba(46,108,164,.1);
  color: var(--secondary); display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 18px; }
.card-link { color: var(--secondary); font-size: 14px; font-weight: 600; }
.card-link:hover { color: var(--accent); }

/* ---------- 诉讼专区 (深色) ---------- */
.dark-band { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; }
.dark-band h2, .dark-band h3 { color: #fff; }
.dark-band .section-head p { color: #B8C7D9; }
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 40px; }
.process-step {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 24px 16px; text-align: center;
}
.process-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--secondary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-weight: 700;
}
.process-step h4 { color: #fff; font-size: 15px; margin-bottom: 6px; }
.process-step p { font-size: 12.5px; color: #B8C7D9; }

/* ---------- 案例 ---------- */
.case-card { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); transition: all .3s; }
.case-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.case-body { padding: 24px; }
.case-tag {
  display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 4px;
  background: rgba(46,108,164,.1); color: var(--secondary); margin-bottom: 12px;
}
.case-card h3 { font-size: 18px; margin-bottom: 8px; }
.case-card p { font-size: 14px; color: var(--text-muted); }

/* ---------- 新闻 ---------- */
.news-item {
  display: flex; gap: 20px; padding: 24px; background: #fff;
  border: 1px solid var(--border); border-radius: 8px; transition: all .25s;
}
.news-item:hover { box-shadow: var(--shadow-md); }
.news-date { color: var(--text-muted); font-size: 13px; }
.news-item h3 { font-size: 17px; margin: 6px 0; }
.news-item p { font-size: 14px; color: var(--text-muted); }

/* ---------- CTA Banner ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; text-align: center; padding: 80px 24px;
}
.cta-band h2 { color: #fff; font-size: 34px; margin-bottom: 14px; }
.cta-band p { color: #B8C7D9; margin-bottom: 30px; }

/* ---------- 页脚 ---------- */
footer.site-footer { background: var(--primary-dark); color: #B8C7D9; padding: 64px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-grid a { color: #B8C7D9; display: block; padding: 4px 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid p { line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; text-align: center;
  font-size: 13px; color: #8FA3B8;
}

/* ---------- 内页页头 ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 80px 0; text-align: center;
}
.page-hero h1 { color: #fff; font-size: 42px; margin-bottom: 12px; }
.page-hero p { color: #B8C7D9; max-width: 600px; margin: 0 auto; }
.breadcrumb { font-size: 13px; color: #8FA3B8; margin-bottom: 16px; }
.breadcrumb a { color: var(--accent); }

/* ---------- 表单 ---------- */
.form-card { background: #fff; padding: 40px; border-radius: 8px; border: 1px solid var(--border); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 15px; font-family: inherit; background: #fff;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--secondary); }

/* ---------- Cookie 弹窗 ---------- */
.cookie-banner {
  position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 999;
  background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg);
  padding: 20px 24px; display: none; align-items: center; gap: 20px; flex-wrap: wrap;
  border-top: 3px solid var(--accent);
}
.cookie-banner.show { display: flex; }
.cookie-banner p { font-size: 13.5px; color: var(--text-muted); flex: 1; min-width: 240px; }
.cookie-banner p a { color: var(--secondary); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }

/* ---------- 后台 ---------- */
.admin-body { background: #EEF1F5; }
.admin-login { max-width: 400px; margin: 80px auto; background: #fff; padding: 40px; border-radius: 10px; box-shadow: var(--shadow-md); }
.admin-login h1 { font-size: 24px; text-align: center; margin-bottom: 24px; }
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-side { background: var(--primary); color: #fff; padding: 24px 0; }
.admin-side .brand { padding: 0 24px 20px; font-family: "Noto Serif SC", serif; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 16px; }
.admin-side a { display: block; padding: 11px 24px; color: #B8C7D9; font-size: 14px; }
.admin-side a:hover, .admin-side a.active { background: rgba(255,255,255,.08); color: var(--accent); }
.admin-main { padding: 28px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-topbar h2 { font-size: 22px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.admin-table th { background: var(--bg); font-weight: 600; color: var(--text); }
.admin-table .actions button { margin-right: 8px; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tabs button {
  padding: 8px 18px; background: #fff; border: 1px solid var(--border); border-radius: 100px;
  cursor: pointer; font-size: 14px; color: var(--text-muted);
}
.admin-tabs button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.admin-stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.admin-stat { background: #fff; padding: 20px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.admin-stat .num { font-size: 28px; font-weight: 700; color: var(--primary); }
.admin-stat .label { font-size: 13px; color: var(--text-muted); }
.small-btn { padding: 6px 14px; font-size: 13px; border-radius: 4px; cursor: pointer; border: none; }
.small-btn.edit { background: var(--secondary); color: #fff; }
.small-btn.del { background: #DC2626; color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 968px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 16px 24px; gap: 14px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .nav-phone { display: none; }
  .hero { padding: 70px 0 80px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head h2 { font-size: 28px; }
  .page-hero h1 { font-size: 30px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { display: flex; overflow-x: auto; padding: 12px; }
  .admin-side .brand { border: none; padding: 8px 12px; }
  .admin-side a { padding: 8px 14px; white-space: nowrap; }
  .admin-stat-row { grid-template-columns: repeat(2,1fr); }
  .news-item { flex-direction: column; }
}
@media (max-width: 560px) {
  section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
}
