/* =========================================================
   庞力衡律师 个人独立网站 — 共享样式
   设计基调：墨蓝（专业/稳健）+ 鎏金（尊贵/权威）+ 留白
   字体：标题衬线（中文宋体系），正文无衬线（中文黑体系）
   ========================================================= */

:root {
  --ink: #14213d;          /* 主墨蓝 */
  --ink-2: #1f3a5f;        /* 次蓝 */
  --navy-soft: #f4f6fa;    /* 浅蓝底 */
  --gold: #b8881f;         /* 鎏金 */
  --gold-soft: #d8b35a;
  --paper: #ffffff;
  --text: #1f2733;
  --text-2: #5b6675;
  --line: #e3e8ef;
  --maxw: 1140px;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(20, 33, 61, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-name, .serif {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  color: var(--ink);
  line-height: 1.3;
  font-weight: 700;
}

a { color: var(--ink-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

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

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .monogram {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ink), var(--ink-2));
  color: var(--gold-soft); display: flex; align-items: center; justify-content: center;
  font-family: "Noto Serif SC", serif; font-size: 20px; font-weight: 700;
}
.brand-name { font-size: 19px; letter-spacing: 1px; }
.brand-sub { font-size: 12px; color: var(--text-2); letter-spacing: 2px; }

.nav-links { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-links a { font-size: 15px; color: var(--text); position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--gold); transition: width .25s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none; width: 40px; height: 40px; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle-label span { width: 22px; height: 2px; background: var(--ink); display: block; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(184,136,31,0.10), transparent 60%),
    linear-gradient(160deg, #14213d 0%, #1f3a5f 100%);
  color: #fff; padding: 84px 0 76px;
}
.hero .container { display: flex; align-items: center; gap: 56px; flex-wrap: wrap; justify-content: space-between; }
.hero-portrait {
  width: 220px; height: 220px; border-radius: 20px; flex: none;
  background: linear-gradient(135deg, #2a3f63, #3a5680);
  border: 2px solid var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: "Noto Serif SC", serif; font-size: 56px; color: var(--gold-soft);
  object-fit: cover;
  object-position: center 20%;
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}
.hero-text { flex: 1; min-width: 280px; }
.hero h1 { color: #fff; font-size: 38px; margin-bottom: 6px; }
.hero .role { color: var(--gold-soft); font-size: 17px; letter-spacing: 1px; margin-bottom: 18px; }
.hero p.lead { color: #d7e0ee; font-size: 16px; max-width: 640px; }
.hero .tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero .tags span {
  border: 1px solid rgba(216,179,90,0.5); color: var(--gold-soft);
  padding: 5px 14px; border-radius: 30px; font-size: 13px;
}
.btn {
  display: inline-block; padding: 11px 26px; border-radius: 30px;
  font-size: 15px; font-weight: 600; transition: all .2s; cursor: pointer;
}
.btn-gold { background: var(--gold); color: #fff; border: 1px solid var(--gold); }
.btn-gold:hover { background: #a3781a; color: #fff; }
.btn-ghost { border: 1px solid rgba(255,255,255,0.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ---------- 通用区块 ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--navy-soft); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .eyebrow { color: var(--gold); letter-spacing: 3px; font-size: 13px; font-weight: 600; }
.section-head h2 { font-size: 30px; margin: 8px 0 10px; }
.section-head .desc { color: var(--text-2); max-width: 720px; margin: 0 auto; }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(20,33,61,0.12); }
.card .ico {
  width: 44px; height: 44px; border-radius: 10px; background: var(--navy-soft);
  color: var(--gold); display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px; font-family: serif;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 14.5px; }

/* ---------- 文章/案例列表 ---------- */
.list-item {
  display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.list-item:last-child { border-bottom: none; }
.list-date {
  flex: none; width: 64px; text-align: center; color: var(--gold);
  font-family: "Noto Serif SC", serif;
}
.list-date .d { font-size: 24px; display: block; color: var(--ink); }
.list-date .m { font-size: 12px; color: var(--text-2); }
.list-body h3 { font-size: 18px; margin-bottom: 6px; }
.list-body p { color: var(--text-2); font-size: 14.5px; }
.cat-tag {
  display: inline-block; font-size: 12px; color: var(--gold);
  border: 1px solid var(--gold-soft); border-radius: 4px; padding: 1px 8px; margin-right: 8px;
}

/* ---------- 关于页 ---------- */
.profile { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.profile-portrait {
  width: 180px; height: 180px; border-radius: 16px; flex: none;
  background: linear-gradient(135deg, #2a3f63, #3a5680);
  border: 2px solid var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: "Noto Serif SC", serif; font-size: 66px; color: var(--gold-soft);
  object-fit: cover;
  object-position: center 20%;
}
.profile-info { flex: 1; min-width: 300px; }
.profile-info h1 { font-size: 30px; margin-bottom: 6px; }
.profile-info .role { color: var(--gold); font-size: 16px; margin-bottom: 16px; }

.timeline { border-left: 2px solid var(--line); padding-left: 24px; margin-top: 8px; }
.timeline li { list-style: none; position: relative; margin-bottom: 18px; }
.timeline li::before {
  content: ""; position: absolute; left: -31px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--gold); border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--gold-soft);
}
.timeline .yr { font-family: "Noto Serif SC", serif; color: var(--ink); font-weight: 700; }
.timeline .tt { color: var(--text-2); font-size: 14.5px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud span {
  background: var(--navy-soft); border: 1px solid var(--line); color: var(--ink-2);
  padding: 7px 14px; border-radius: 6px; font-size: 14px;
}

.honor-list li, .duty-list li { list-style: none; padding: 10px 0 10px 22px; position: relative; border-bottom: 1px dashed var(--line); }
.honor-list li::before, .duty-list li::before { content: "◆"; color: var(--gold); position: absolute; left: 0; top: 10px; font-size: 11px; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(160deg, #14213d, #1f3a5f); color: #fff; text-align: center;
  padding: 60px 0;
}
.cta h2 { color: #fff; }
.cta p { color: #cdd8e8; max-width: 640px; margin: 12px auto 26px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0f1830; color: #b9c4d6; padding: 46px 0 26px; font-size: 14px; }
.site-footer a { color: #cdd8e8; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 14px; font-family: "Noto Serif SC", serif; }
.footer-col p { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid #243352; margin-top: 30px; padding-top: 18px; text-align: center; color: #7e8ba3; font-size: 12.5px; }

/* ---------- 面包屑/小屏 ---------- */
.breadcrumb { font-size: 13px; color: var(--text-2); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-2); }

@media (max-width: 860px) {
  .nav-toggle-label { display: flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; background: #fff;
    flex-direction: column; gap: 0; padding: 0 24px; max-height: 0; overflow: hidden;
    transition: max-height .3s; border-bottom: 1px solid var(--line);
  }
  .nav-toggle:checked ~ .nav-links { max-height: 360px; }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 14px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .hero .container { justify-content: center; }
  .hero-portrait { width: 170px; height: 170px; order: -1; margin: 0 auto 8px; }
  .hero-text { text-align: center; }
  .hero .tags { justify-content: center; }
  .hero .btn-gold, .hero .btn-ghost { margin: 0 auto; }
  .section { padding: 48px 0; }
}
