/* ============================================================
   冉于琪律师 个人官网 · 样式表
   设计基调：专业、可信、克制（律所蓝 + 暖金，衬线标题）
   ============================================================ */
:root {
  --navy: #0f2540;
  --navy-2: #16335a;
  --blue: #1f5fb0;
  --gold: #b8923f;
  --gold-soft: #d9bd86;
  --ink: #1c2530;
  --ink-soft: #4a5563;
  --line: #e3e8ef;
  --bg: #f6f8fb;
  --bg-2: #ffffff;
  --bg-soft: #eef3f9;
  --ok: #2f7d4f;
  --shadow: 0 6px 24px rgba(15, 37, 64, 0.08);
  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: "Songti SC", "SimSun", "Noto Serif SC", Georgia, serif;
  color: var(--navy);
  line-height: 1.3;
  margin: 0 0 0.5em;
  font-weight: 700;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--gold); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--ink-soft); }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); }
.brand .mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff; display: grid; place-items: center; font-family: serif; font-size: 18px;
}
.brand small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-soft); }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--ink-soft); font-size: 15px; }
.nav-links a:hover { color: var(--navy); }
@media (max-width: 720px){ .nav-links{ display:none; } }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 400px at 80% -10%, rgba(31,95,176,0.10), transparent),
              linear-gradient(180deg, #ffffff, #f3f7fc);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 64px;
}
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px){ .hero-grid{ grid-template-columns: 1fr; } }
.hero h1 { font-size: 40px; letter-spacing: 1px; }
.hero .role { color: var(--blue); font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.hero .lead { color: var(--ink-soft); font-size: 16.5px; max-width: 540px; }
.hero .tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--navy-2);
  padding: 6px 14px; border-radius: 999px; font-size: 14px;
}
.hero-cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: .2s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color:#fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* 信任徽章卡 */
.trust {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px; text-align: center;
}
.hero-avatar {
  width: 132px; height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 10px 28px rgba(13,34,64,0.18);
  margin: 0 auto 18px;
  display: block;
}
.profile-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--blue);
  box-shadow: 0 8px 20px rgba(13,34,64,0.14);
  margin-bottom: 16px;
}
@media (max-width: 860px){
  .hero-avatar, .profile-avatar { margin-left: auto; margin-right: auto; }
}
.trust h3 { font-size: 18px; margin-bottom: 14px; }
.trust ul { list-style: none; margin: 0; padding: 0; }
.trust li { position: relative; padding-left: 26px; margin: 12px 0; color: var(--ink-soft); }
.trust li::before {
  content: "✔"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 700;
}

/* ---------- 区块通用 ---------- */
section { padding: 60px 0; }
.section-head { text-align: center; margin-bottom: 38px; }
.section-head h2 { font-size: 30px; }
.section-head p { color: var(--ink-soft); margin: 6px 0 0; }

/* ---------- 简介 ---------- */
.about { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
@media (max-width: 860px){ .about-grid{ grid-template-columns:1fr; } }
.profile-card {
  background: var(--bg-soft); border-radius: var(--radius); padding: 28px;
}
.profile-card .name { font-family: serif; font-size: 26px; color: var(--navy); margin-bottom: 4px; }
.profile-card .firm { color: var(--blue); font-weight: 600; margin-bottom: 18px; }
.profile-card dl { display: grid; grid-template-columns: 84px 1fr; gap: 10px 12px; margin: 0; }
.profile-card dt { color: var(--ink-soft); }
.profile-card dd { margin: 0; color: var(--ink); }

/* ---------- 专业领域 ---------- */
.fields { background: var(--bg); }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px){ .field-grid{ grid-template-columns:1fr; } }
.field-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: .2s; position: relative; overflow: hidden;
}
.field-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--gold-soft); }
.field-card .idx {
  position: absolute; right: 18px; top: 14px; font-family: serif; font-size: 40px;
  color: var(--bg-soft); font-weight: 700;
}
.field-card h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.field-card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.field-card ul { list-style: none; padding: 0; margin: 14px 0 0; }
.field-card li { color: var(--ink-soft); padding: 5px 0 5px 20px; position: relative; font-size: 15px; }
.field-card li::before { content: "·"; position: absolute; left: 6px; color: var(--gold); font-weight: 700; }

/* ---------- 文章预览 ---------- */
.articles { background: #fff; border-top: 1px solid var(--line); }
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px){ .article-grid{ grid-template-columns:1fr; } }
.article-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 10px; background: #fff; transition: .2s;
}
.article-card:hover { box-shadow: var(--shadow); border-color: var(--gold-soft); }
.article-card .cat { font-size: 13px; color: var(--gold); font-weight: 600; }
.article-card h3 { font-size: 18px; margin: 0; }
.article-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0; flex: 1; }
.article-card .more { font-weight: 600; font-size: 14px; }

/* ---------- 联系 ---------- */
.contact { background: linear-gradient(180deg, #ffffff, #f3f7fc); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 860px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-box { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.contact-box h3 { font-size: 19px; }
.contact-box .row { display:flex; gap:12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.contact-box .row:last-child{ border-bottom:0; }
.contact-box .k { color: var(--ink-soft); min-width: 64px; }
.contact-box .v { color: var(--ink); font-weight: 600; }
.note { background: #fff8ec; border: 1px solid #f0e0bf; border-radius: 10px; padding: 14px 16px; color: #8a6d2f; font-size: 14px; margin-top: 16px; }

/* ---------- 律所环境画廊 ---------- */
.firm-gallery { background: #fff; border-top: 1px solid var(--line); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 860px){ .gallery-grid{ grid-template-columns: 1fr; } }
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f0f2f5;
}
.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform .45s ease, filter .35s ease;
}
.gallery-item:hover img { transform: scale(1.04); filter: brightness(.96); }
.gallery-caption {
  position: absolute; left: 0; bottom: 0; right: 0;
  background: linear-gradient(transparent, rgba(15,37,64,.82));
  padding: 28px 18px 14px;
  color: #fff;
}
.gallery-caption h4 { font-size: 17px; margin: 0 0 2px; font-family: -apple-system, "PingFang SC", sans-serif; color: #fff; }
.gallery-caption p { margin: 0; font-size: 13px; opacity: .85; line-height: 1.6; }

/* ---------- 页脚 ---------- */
.footer { background: var(--navy); color: #cdd8e8; padding: 40px 0 30px; }
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; }
@media (max-width: 720px){ .footer .container{ grid-template-columns:1fr; } }
.footer h4 { color: #fff; font-size: 16px; }
.footer p, .footer li { font-size: 14px; color: #b9c6da; }
.footer ul { list-style: none; padding: 0; margin: 8px 0 0; }
.footer li { padding: 4px 0; }
.disclaimer { font-size: 13px; color: #9fb0c8; border-top: 1px solid rgba(255,255,255,0.12); margin-top: 26px; padding-top: 18px; line-height: 1.7; }
.copy { text-align:center; color:#8395b0; font-size:12.5px; margin-top: 18px; }

/* ---------- 文章详情页 ---------- */
.article-page { background: #fff; }
.article-page .meta { color: var(--ink-soft); font-size: 14px; margin-bottom: 24px; }
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 { font-size: 24px; margin-top: 36px; }
.article-body h3 { font-size: 19px; margin-top: 28px; }
.article-body p { margin: 14px 0; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin: 8px 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article-body th { background: var(--bg-soft); color: var(--navy); }
.callout {
  background: var(--bg-soft); border-left: 4px solid var(--gold); border-radius: 8px;
  padding: 14px 18px; color: var(--ink-soft); font-size: 14.5px; margin: 22px 0;
}
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; font-weight: 600; }
