/*
 Theme Name: LAWLEE 李立律师
 Theme URI: https://lawlee.net
 Description: 墨绿(#122A20)+雾金(#B0894A)配色的律师个人博客主题，与视频号/小红书封面统一视觉，移动优先响应式。
 Version: 1.0.0
 Author: WorkBuddy
 Requires at least: 5.0
 Tested up to: 6.6
 License: MIT
 Text Domain: lawlee
 */

/* ===================== 配色与基础变量 ===================== */
:root {
  --green-900: #122A20;
  --green-800: #1A3A2E;
  --green-700: #234a39;
  --gold:       #B0894A;
  --gold-light: #C9A86A;
  --gold-pale:  #E8DCC4;
  --bg:        #FAF8F4;
  --surface:   #FFFFFF;
  --text:      #1F2A24;
  --text-muted:#6B7280;
  --border:    #E7E0D2;

  --maxw: 1140px;
  --readw: 720px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18,42,32,.08);
  --shadow-sm: 0 4px 14px rgba(18,42,32,.06);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text);
  background: var(--bg); line-height: 1.8; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ===================== 顶栏 ===================== */
.site-header {
  background: var(--green-900); color: #fff;
  position: sticky; top: 0; z-index: 50; border-bottom: 2px solid var(--gold);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo-mark {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold);
  display: grid; place-items: center; color: var(--gold); font-weight: 700; font-size: 18px; letter-spacing: 1px;
}
.brand .logo-text { line-height: 1.1; }
.brand .logo-text b { font-size: 18px; font-weight: 700; color: #fff; }
.brand .logo-text span { display: block; font-size: 11px; letter-spacing: 3px; color: var(--gold-light); }

.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav a { color: #e9e4d8; font-size: 15px; padding: 6px 0; position: relative; }
.nav a:hover, .nav a.active, .nav .current-menu-item > a { color: #fff; }
.nav a.active::after, .nav a:hover::after, .nav .current-menu-item > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--gold);
}

.menu-toggle {
  background: none; border: 1px solid var(--gold); color: var(--gold);
  width: 42px; height: 38px; border-radius: 8px; cursor: pointer;
  display: grid; gap: 4px; place-content: center;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--gold); }

.mobile-nav { display: none; background: var(--green-800); }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a {
  display: block; color: #e9e4d8; padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,.06); font-size: 15px;
}
.mobile-nav a:hover { color: var(--gold-light); background: rgba(0,0,0,.15); }

/* ===================== 首屏 Hero ===================== */
.hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(176,137,74,.18), transparent 60%),
    linear-gradient(135deg, var(--green-900), var(--green-800));
  color: #fff; padding: 56px 0 64px;
}
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero .eyebrow { color: var(--gold-light); letter-spacing: 4px; font-size: 13px; text-transform: uppercase; margin: 0 0 14px; }
.hero h1 { font-size: 30px; line-height: 1.35; margin: 0 0 16px; font-weight: 700; }
.hero h1 .hl { color: var(--gold-light); }
.hero p.lede { color: #d9e2dc; font-size: 16px; margin: 0 0 24px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px;
  border-radius: 999px; font-size: 15px; font-weight: 500; cursor: pointer;
  border: 1px solid transparent; transition: all .2s;
}
.btn-gold { background: var(--gold); color: #1a1206; }
.btn-gold:hover { background: var(--gold-light); color: #1a1206; }
.btn-ghost { border-color: var(--gold); color: var(--gold-light); background: transparent; }
.btn-ghost:hover { background: rgba(176,137,74,.12); color: #fff; }

.hero-photo {
  justify-self: center; width: 240px; height: 240px; border-radius: 18px;
  border: 3px solid var(--gold); box-shadow: 0 20px 50px rgba(0,0,0,.35);
  overflow: hidden; background: #0e2018;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===================== 通用区块 ===================== */
.section { padding: 56px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: 24px; font-weight: 700; margin: 0 0 6px; position: relative; padding-left: 16px; }
.section-title::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px; background: var(--gold); border-radius: 3px; }
.section-sub { color: var(--text-muted); margin: 0 0 28px; padding-left: 16px; }

.intro-grid { display: grid; gap: 28px; }
.intro-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.intro-card h3 { margin: 0 0 12px; font-size: 18px; color: var(--green-800); }
.intro-card p { margin: 0 0 12px; color: #333; }

.cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-pale); }
.card .num { width: 34px; height: 34px; border-radius: 9px; background: var(--green-900); color: var(--gold-light); display: grid; place-items: center; font-weight: 700; margin-bottom: 12px; }
.card h4 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--text-muted); font-size: 14px; }

.feat-list { display: grid; gap: 16px; }
.feat { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.feat .tick { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-pale); color: var(--green-900); display: grid; place-items: center; font-weight: 700; }
.feat b { display: block; margin-bottom: 2px; }
.feat span { color: var(--text-muted); font-size: 14px; }

.case { border-left: 4px solid var(--gold); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.case h4 { margin: 0 0 6px; font-size: 17px; color: var(--green-800); }
.case p { margin: 0; color: #444; font-size: 14.5px; }

.post-list { display: grid; gap: 18px; }
.post { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.post .meta { font-size: 13px; color: var(--text-muted); letter-spacing: .5px; }
.post h3 { margin: 0; font-size: 19px; line-height: 1.4; }
.post h3 a { color: var(--text); }
.post h3 a:hover { color: var(--green-800); }
.post p { margin: 0; color: #555; font-size: 14.5px; }
.post .more { color: var(--gold); font-size: 14px; font-weight: 500; }
.post .more:hover { color: var(--gold-light); }

/* ===================== 文章详情 / 页面 ===================== */
.article-wrap { max-width: var(--readw); margin: 0 auto; padding: 44px 20px 64px; }
.article-wrap .cat { color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.article-wrap h1 { font-size: 28px; line-height: 1.4; margin: 8px 0 14px; }
.article-wrap .byline { color: var(--text-muted); font-size: 14px; border-bottom: 1px solid var(--border); padding-bottom: 18px; margin-bottom: 26px; }
.article-wrap .body p { margin: 0 0 20px; }
.article-wrap .body h2 { font-size: 21px; margin: 34px 0 14px; padding-left: 14px; position: relative; }
.article-wrap .body h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; background: var(--gold); border-radius: 3px; }
.article-wrap blockquote { margin: 24px 0; padding: 16px 22px; background: #fff; border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; color: #444; }

.page-wrap { max-width: 900px; margin: 0 auto; padding: 44px 20px 64px; }
.page-wrap h1 { font-size: 28px; margin: 0 0 20px; }
.page-wrap .entry-content p { margin: 0 0 20px; }

.related { margin-top: 48px; }
.related h3 { font-size: 20px; margin: 0 0 18px; padding-left: 14px; position: relative; }
.related h3::before { content:""; position:absolute; left:0; top:4px; bottom:4px; width:5px; background:var(--gold); border-radius:3px; }

.archive-head { background: linear-gradient(135deg,var(--green-900),var(--green-800)); color:#fff; padding:40px 0; }
.archive-head h1 { margin:0; font-size:26px; }
.archive-head p { margin:6px 0 0; color:#cfd9d2; }

.pagination { max-width: var(--readw); margin: 34px auto; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 4px; border: 1px solid var(--border); border-radius: 8px; color: var(--green-800); }
.pagination .page-numbers.current { background: var(--gold); color: #1a1206; border-color: var(--gold); }

/* ===================== 页脚 ===================== */
.site-footer { background: var(--green-900); color: #cfd9d2; padding: 44px 0 26px; }
.footer-grid { display: grid; gap: 26px; }
.footer-grid h4 { color: var(--gold-light); font-size: 15px; margin: 0 0 12px; letter-spacing: 1px; }
.footer-grid p { margin: 0 0 8px; font-size: 14px; color: #b9c4bd; }
.footer-grid a { color: #b9c4bd; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding-top: 18px; font-size: 13px; color: #8a988f; text-align: center; }

/* ===================== 响应式 ===================== */
@media (min-width: 768px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
  .hero h1 { font-size: 40px; }
  .hero-grid { grid-template-columns: 1.3fr .9fr; }
  .intro-grid { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .feat-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
