/* ============================================================
   白峰律师个人品牌官网 — 设计系统
   深海军蓝 + 金色点缀（律师行业信任感）
   ============================================================ */

:root {
  --navy: #0f2a47;
  --navy-2: #163a5f;
  --blue: #1e4d7b;
  --gold: #c9a227;
  --gold-light: #e3c451;
  --bg: #f6f8fb;
  --bg-2: #eef3f9;
  --card: #ffffff;
  --text: #1f2d3d;
  --muted: #5b6b7d;
  --border: #e3e9f0;
  --green: #1e7d4f;
  --shadow-sm: 0 1px 3px rgba(15, 42, 71, .08);
  --shadow: 0 6px 24px rgba(15, 42, 71, .10);
  --shadow-lg: 0 16px 48px rgba(15, 42, 71, .16);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1160px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans CN", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { line-height: 1.3; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.5px; }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head .eyebrow {
  display: inline-block; color: var(--gold); font-weight: 700;
  letter-spacing: 2px; font-size: 13px; margin-bottom: 12px;
}
.section-head p { color: var(--muted); margin-top: 14px; font-size: 16px; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--navy); }
.brand .logo-img {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.brand .name { font-size: 17px; line-height: 1.15; }
.brand .name small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .5px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: inline-block; padding: 9px 14px; border-radius: 8px;
  color: var(--text); font-weight: 600; font-size: 15px;
}
.nav-links a:hover, .nav-links a.active { background: var(--bg-2); color: var(--navy); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: .2s; white-space: nowrap;
}
.btn-primary { background: var(--gold); color: #2a2200; }
.btn-primary:hover { background: var(--gold-light); color: #2a2200; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: var(--navy); color: #fff; }
.btn-ghost:hover { background: var(--navy-2); transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--navy); cursor: pointer; }

/* ---------------- 首页 Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 420px at 80% -10%, rgba(201,162,39,.20), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--blue) 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5; pointer-events: none;
}
.hero-inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 64px 0 72px; max-width: 820px; margin: 0 auto;
}
.hero h1 { color: #fff; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.35; }
.hero h1 .accent { color: var(--gold-light); font-weight: 900; }
.hero-lead { color: rgba(255,255,255,.88); font-size: 16px; line-height: 1.8; margin: 18px 0 14px; max-width: 720px; }
.hero-stats-inline {
  color: rgba(255,255,255,.75); font-size: 14px;
  padding: 10px 22px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  display: inline-block; margin-bottom: 18px;
}
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 22px; }
.hero-tags span {
  padding: 7px 18px; border-radius: 999px;
  border: 1px solid rgba(201,162,39,.45); color: var(--gold-light);
  font-size: 14px; font-weight: 600; background: rgba(201,162,39,.10);
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero .btn-light { background: #fff; color: var(--navy); }
.hero .btn-light:hover { background: #f0f3f8; }
.hero .btn-gold { background: var(--gold); color: #2a2200; }
.hero .btn-gold:hover { background: var(--gold-light); }
.hero-trust {
  color: rgba(255,255,255,.6); font-size: 13px; margin-top: 18px;
  display: flex; gap: 18px; flex-wrap: wrap; justify-content: center;
}
.hero-trust span::before { content: "✓ "; color: var(--gold-light); }

/* ---------------- 数据带 ---------------- */
.metrics { background: var(--navy); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 28px 18px; color: #fff;
  border-right: 1px solid rgba(255,255,255,.10);
}
.metric-card:last-child { border-right: 0; }
.metric-num {
  font-size: clamp(16px, 2.2vw, 22px); font-weight: 800;
  color: var(--gold-light); margin-bottom: 6px;
}
.metric-label { font-size: 13px; color: rgba(255,255,255,.75); }
.metric-note { font-size: 11px; color: rgba(255,255,255,.45); margin-top: 4px; }

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

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: .22s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d4dde8; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card ul { list-style: none; margin: 14px 0 0; }
.card ul li { padding: 6px 0 6px 22px; position: relative; font-size: 14.5px; color: var(--text); }
.card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.card .more { margin-top: auto; padding-top: 16px; font-weight: 700; color: var(--blue); font-size: 14px; }

/* ---------------- 优势条目 ---------------- */
.adv { display: flex; gap: 16px; align-items: flex-start; }
.adv .badge-num {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #2a2200; font-weight: 900; display: grid; place-items: center; font-size: 16px;
}
.adv h4 { margin-bottom: 4px; }
.adv p { color: var(--muted); font-size: 14.5px; }

/* ---------------- 案例卡片 ---------------- */
.case-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px;
}
.case-card .tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--blue);
  background: var(--bg-2); padding: 4px 11px; border-radius: 999px;
}
.case-card h3 { font-size: 17px; }
.case-card .court { color: var(--muted); font-size: 13.5px; }
.case-card .result { font-size: 15px; }
.case-card .result b { color: var(--green); }
.case-card .fact-block { font-size: 13.5px; color: var(--text); background: var(--bg); border-left: 3px solid var(--gold); padding: 10px 12px; border-radius: 0 8px 8px 0; }
.case-card .fact-block span { color: var(--muted); }

/* ---------------- 当事人评价 ---------------- */
.testimonial { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; }
.testimonial .quote { font-size: 15px; line-height: 1.75; color: var(--text); margin: 0; }
.testimonial .quote::before { content: "\201C"; color: var(--gold); font-size: 30px; font-weight: 700; line-height: 0; margin-right: 4px; vertical-align: -6px; }
.testimonial .who { font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 12px; }
.testimonial .who b { color: var(--navy); }

/* ---------------- 文章卡片（律师观点） ---------------- */
.views-list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.article-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 30px; box-shadow: var(--shadow-sm); transition: .22s;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d4dde8; }
.post-cat {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  margin-bottom: 14px; color: var(--blue); background: var(--bg-2);
}
.article-card h3 { font-size: 20px; line-height: 1.4; margin-bottom: 10px; }
.article-card h3 a { color: var(--navy); }
.article-card h3 a:hover { color: var(--blue); }
.post-meta { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.post-excerpt { color: var(--text); font-size: 15px; line-height: 1.85; }
.post-more { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--blue); font-size: 14.5px; }
.post-more:hover { color: var(--navy); }

/* ---------------- 作者与摘要块 ---------------- */
.author-block {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted); border-top: 1px solid var(--border);
  padding-top: 16px; margin-top: 16px;
}
.author-block .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }

.summary-block {
  background: var(--bg-2); border: 1px solid var(--border); border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 18px 22px; margin-bottom: 30px;
  font-size: 15.5px; color: var(--text);
}

.data-note { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* ---------------- 服务清单 ---------------- */
.service-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.service-list li {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start;
}
.service-list li::before { content: "▸"; color: var(--gold); font-weight: 800; }

.business-section { padding: 40px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 90px; }
.business-section:last-child { border-bottom: 0; }
.business-section .head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.business-section .head .idx { font-size: 30px; font-weight: 900; color: var(--gold); }

/* ---------------- FAQ 手风琴 ---------------- */
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 18px 22px; font-size: 16.5px; font-weight: 700; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--font);
}
.faq-q .plus { color: var(--gold); font-size: 22px; font-weight: 400; transition: .2s; flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 18px; color: var(--text); font-size: 15px; line-height: 1.85; }

/* ---------------- 内页页头 ---------------- */
.page-hero { background: linear-gradient(150deg, var(--navy), var(--blue)); color: #fff; padding: 56px 0; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.85); margin-top: 12px; max-width: 720px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: rgba(255,255,255,.9); }

/* ---------------- 关于我 ---------------- */
.about-hero { display: grid; grid-template-columns: 340px 1fr; gap: 36px; align-items: start; }
.about-hero-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.about-hero-img .caption { text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; }

.timeline { list-style: none; border-left: 3px solid var(--gold); margin-left: 8px; }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--navy); border: 3px solid var(--gold-light); }
.timeline .yr { font-weight: 800; color: var(--navy); }
.timeline p { color: var(--muted); font-size: 14.5px; }

/* ---------------- 图片墙（荣誉/锦旗） ---------------- */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.photo-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.photo-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: .22s; }
.photo-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.photo-item img { width: 100%; height: 260px; object-fit: cover; }
.photo-item .cap { padding: 12px 14px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------------- 表格 ---------------- */
.tbl { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tbl th, .tbl td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.tbl th { background: var(--bg-2); color: var(--navy); font-weight: 700; }
.tbl tr:last-child td { border-bottom: 0; }

/* ---------------- 联系页 ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.info-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; }
.info-card .row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--bg-2); }
.info-card .row:last-child { border-bottom: 0; }
.info-card .ic { font-size: 20px; flex-shrink: 0; }
.info-card .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.info-card .v { font-weight: 600; color: var(--navy); margin-top: 2px; }

.steps { counter-reset: s; list-style: none; display: grid; gap: 14px; }
.step { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; }
.step .n { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; }
.step .n::before { counter-increment: s; content: counter(s); }
.step h4 { margin-bottom: 2px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------------- CTA 横幅 ---------------- */
.cta-band { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; border-radius: var(--radius); padding: 44px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); margin: 12px auto 24px; max-width: 640px; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,.78); font-size: 14px; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer ul { list-style: none; }
.site-footer ul li { padding: 5px 0; }
.footer-brand .name { color: #fff; font-weight: 800; font-size: 18px; }
.footer-brand p { font-size: 13.5px; margin-top: 10px; }
.footer-meta { font-size: 12.5px; color: rgba(255,255,255,.55); line-height: 1.9; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; font-size: 12.5px; color: rgba(255,255,255,.55); }
.disclaimer { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); padding: 14px 18px; font-size: 12.5px; color: rgba(255,255,255,.65); margin-top: 18px; }
.footer-links { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-links h4 { color: var(--gold); font-size: 14px; margin-bottom: 10px; }
.footer-links ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-links li { padding: 3px 0; white-space: nowrap; }
.footer-links a { color: rgba(255,255,255,.65); font-size: 13px; }
.footer-links a:hover { color: var(--gold); }

/* ---------------- 返回顶部 ---------------- */
#toTop { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; border: 0; font-size: 20px; cursor: pointer; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s; z-index: 90; }
#toTop.show { opacity: 1; pointer-events: auto; }

/* ---------------- 悬浮联系 ---------------- */
.fixed-cta { position: fixed; right: 16px; bottom: 80px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.fixed-cta a { padding: 12px 20px; color: #fff; border-radius: 50px; font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.fixed-cta .fc-phone { background: #1a3a5c; }
.fixed-cta .fc-book { background: #c9a84c; }

/* ---------------- 文章内容页 ---------------- */
.article-body { max-width: 860px; margin: 0 auto; line-height: 1.9; }
.article-body h2 { margin: 40px 0 16px; }
.article-body h3 { margin: 30px 0 12px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  background: var(--bg-2); border-left: 4px solid var(--gold);
  padding: 14px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0; color: var(--text); font-size: 15px;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .about-hero { grid-template-columns: 1fr; }
  .about-hero-img { max-width: 340px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,.10); }
  .metric-card:nth-child(3), .metric-card:nth-child(4) { border-bottom: none; }
  .photo-grid, .photo-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 12px 20px; gap: 4px; box-shadow: var(--shadow);
  }
  .nav-links.open a { width: 100%; }
  .section { padding: 54px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 22px; }
  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-card { border-bottom: 1px solid rgba(255,255,255,.10); }
  .metric-card:last-child { border-bottom: none; }
  .hero-inner { padding: 48px 0 56px; }
  .photo-grid, .photo-grid.cols-3 { grid-template-columns: 1fr; }
  .fixed-cta { right: 10px; bottom: 76px; }
  .fixed-cta a { padding: 10px 14px; font-size: 13px; }
}
