/* ============================================================
   罗仁才律师 · 反舞弊与刑事辩护 | 网站样式
   ============================================================ */
:root {
  --navy: #16243c;
  --navy-light: #1f3457;
  --gold: #b8963e;
  --gold-light: #d4b36a;
  --ink: #2b2b2b;
  --gray: #5c6670;
  --bg: #f7f8fa;
  --white: #ffffff;
  --line: #e4e7ec;
  --serif: "Songti SC", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部条 ---------- */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  font-size: 13px;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px; }
.topbar a { color: var(--gold-light); }
.topbar a:hover { color: #fff; }

/* ---------- 导航 ---------- */
.site-header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-family: var(--serif); font-weight: 700; font-size: 22px;
}
.brand-name { color: #fff; line-height: 1.25; }
.brand-name b { font-family: var(--serif); font-size: 19px; letter-spacing: 2px; display: block; }
.brand-name span { font-size: 12px; color: var(--gold-light); letter-spacing: 1px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: rgba(255,255,255,.82); font-size: 15px; letter-spacing: 1px; padding: 6px 0; border-bottom: 2px solid transparent; transition: .2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; border-bottom-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 20px; padding: 4px 12px; border-radius: 6px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 60%, #2a4370 100%);
  color: #fff;
  padding: 92px 0 84px;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -140px; top: -140px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,150,62,.28), transparent 70%);
}
.hero .container { position: relative; z-index: 2; }
.hero-kicker { color: var(--gold-light); letter-spacing: 4px; font-size: 14px; margin-bottom: 18px; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 22px;
  letter-spacing: 2px;
}
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero p.sub { color: rgba(255,255,255,.78); font-size: 16.5px; max-width: 640px; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 44px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,.16); }
.stat b { display: block; font-family: var(--serif); font-size: 34px; color: var(--gold-light); }
.stat span { font-size: 13.5px; color: rgba(255,255,255,.65); letter-spacing: 1px; }

.btn {
  display: inline-block; padding: 13px 34px; border-radius: 4px;
  font-size: 15px; letter-spacing: 2px; transition: .25s; cursor: pointer;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-light); color: var(--navy); }
.btn-outline { border: 1px solid rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); }

/* ---------- 区块通用 ---------- */
.section { padding: 76px 0; }
.section.alt { background: var(--white); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .cn { font-family: var(--serif); font-size: 30px; color: var(--navy); letter-spacing: 3px; }
.section-head .en { font-size: 13px; color: var(--gold); letter-spacing: 5px; text-transform: uppercase; margin-top: 6px; }
.section-head p { color: var(--gray); font-size: 15px; max-width: 640px; margin: 16px auto 0; }

/* ---------- 服务卡片 ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 26px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 34px 30px; transition: .28s; position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transform: scaleX(0); transform-origin: left; transition: .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(22,36,60,.12); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card .icon { font-size: 30px; margin-bottom: 16px; }
.card h3 { font-family: var(--serif); font-size: 19px; color: var(--navy); margin-bottom: 12px; letter-spacing: 1px; }
.card p { font-size: 14.5px; color: var(--gray); }
.card ul { margin-top: 12px; }
.card ul li { font-size: 14px; color: var(--ink); padding: 4px 0 4px 18px; position: relative; }
.card ul li::before { content: "▪"; color: var(--gold); position: absolute; left: 0; }

/* ---------- 双栏（关于） ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-family: var(--serif); font-size: 28px; color: var(--navy); margin-bottom: 20px; letter-spacing: 2px; }
.split p { color: var(--gray); font-size: 15.5px; margin-bottom: 14px; }
.timeline { border-left: 2px solid var(--gold); padding-left: 26px; }
.timeline li { position: relative; padding: 0 0 22px 0; }
.timeline li::before { content: ""; position: absolute; left: -33px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 3px solid var(--bg); }
.timeline b { display: block; font-family: var(--serif); color: var(--navy); font-size: 16px; }
.timeline span { font-size: 13.5px; color: var(--gray); }

/* ---------- 数字亮点 ---------- */
.numbers { background: var(--navy); color: #fff; }
.numbers .section-head .cn { color: #fff; }
.numbers .section-head .en { color: var(--gold-light); }
.num-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.num-grid .num b { display: block; font-family: var(--serif); font-size: 40px; color: var(--gold-light); }
.num-grid .num span { font-size: 14px; color: rgba(255,255,255,.7); letter-spacing: 1px; }

/* ---------- 文章列表 ---------- */
.article-list { max-width: 860px; margin: 0 auto; }
.article-item {
  display: flex; gap: 22px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 26px 28px; margin-bottom: 20px; transition: .25s;
}
.article-item:hover { box-shadow: 0 10px 26px rgba(22,36,60,.1); border-color: transparent; transform: translateY(-2px); }
.article-item .date { flex-shrink: 0; text-align: center; background: var(--navy); color: #fff; border-radius: 8px; padding: 10px 14px; min-width: 64px; }
.article-item .date b { display: block; font-family: var(--serif); font-size: 20px; color: var(--gold-light); }
.article-item .date span { font-size: 12px; color: rgba(255,255,255,.7); }
.article-item h3 { font-family: var(--serif); font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.article-item h3 a:hover { color: var(--gold); }
.article-item p { font-size: 14px; color: var(--gray); }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; }
.contact-info h3 { font-family: var(--serif); font-size: 22px; color: var(--navy); margin-bottom: 18px; }
.contact-info li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.contact-info li b { color: var(--navy); min-width: 72px; }
.contact-info li a { color: var(--navy-light); }
.contact-info li a:hover { color: var(--gold); }
.contact-tip { background: #f3efe4; border-left: 4px solid var(--gold); padding: 16px 18px; font-size: 14px; color: var(--gray); border-radius: 0 8px 8px 0; margin-top: 20px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.65); padding: 46px 0 26px; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 34px; }
.footer-grid h4 { color: #fff; font-family: var(--serif); font-size: 16px; margin-bottom: 14px; letter-spacing: 1px; }
.footer-grid li { padding: 4px 0; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; text-align: center; font-size: 12.5px; color: rgba(255,255,255,.4); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--navy); flex-direction: column; padding: 18px 24px; gap: 4px;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-toggle { display: block; }
  .hero { padding: 64px 0; }
  .hero-stats { gap: 26px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .article-item { flex-direction: column; gap: 10px; }
}
