/* ======================================
   刑事律师吕灵兮 · 纯刑事辩护个人网站
   现代大气 · 蓝色专业风
   ====================================== */

:root {
  --primary: #1a4da8;          /* 深蓝 */
  --primary-dark: #123a7d;
  --primary-light: #2f6bd0;
  --accent: #e8b84b;           /* 金色点缀 */
  --bg-light: #f5f8fc;
  --text-dark: #1c2733;
  --text-mid: #4a5b6d;
  --text-light: #8a9bac;
  --white: #ffffff;
  --shadow: 0 10px 40px rgba(26,77,168,0.08);
  --shadow-hover: 0 18px 50px rgba(26,77,168,0.16);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* 阅读进度条 */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 1000; transition: width .1s;
}

/* ============ 导航栏 ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  padding: 16px 0;
  transition: all .35s ease;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(26,77,168,.1);
  padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(26,77,168,.3)); }
.logo-text {
  display: flex; flex-direction: column;
  font-size: 1.3rem; font-weight: 700; color: #fff;
  line-height: 1.2; letter-spacing: 1px;
}
.logo-sub { font-size: .68rem; font-weight: 400; color: rgba(255,255,255,.75); letter-spacing: 2px; }
.navbar.scrolled .logo-text { color: var(--text-dark); }
.navbar.scrolled .logo-sub { color: var(--text-mid); }

.nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: nowrap; }
.nav-links a {
  text-decoration: none; color: #fff; font-size: .95rem;
  font-weight: 500; position: relative; transition: color .3s;
  padding: 4px 0; white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width .3s;
}
.nav-links a:hover::after { width: 100%; }
.navbar.scrolled .nav-links a { color: var(--text-dark); }

.nav-cta {
  background: var(--primary); color: #fff !important;
  padding: 10px 22px !important; border-radius: 40px;
  font-weight: 600 !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

.nav-admin {
  border: 1px solid rgba(255,255,255,.45);
  padding: 8px 16px !important; border-radius: 40px;
  font-size: .85rem !important; opacity: .95;
  color: var(--accent,#e8b84b) !important;
}
.nav-admin::after { display: none; }
.navbar.scrolled .nav-admin { border-color: rgba(26,77,168,.4); }
.nav-admin:hover { background: rgba(255,255,255,.12); border-color: var(--accent); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
  width: 26px; height: 2.5px; background: #fff; border-radius: 2px;
  transition: all .3s;
}
.navbar.scrolled .hamburger span { background: var(--text-dark); }

/* ============ 首屏 Hero ============ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px; color: #fff; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255,255,255,.08), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(232,184,75,.1), transparent 50%),
    linear-gradient(135deg, #0f2f63 0%, #1a4da8 55%, #2f6bd0 100%);
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; }

.hero-tag {
  display: inline-block; padding: 8px 18px; border: 1px solid rgba(255,255,255,.3);
  border-radius: 40px; font-size: .85rem; letter-spacing: 2px;
  color: rgba(255,255,255,.9); margin-bottom: 26px;
  background: rgba(255,255,255,.08);
}
.hero h1 { font-size: 3.4rem; font-weight: 800; line-height: 1.2; letter-spacing: 1px; }
.hero h1 .dot { color: var(--accent); }
.hero-desc { margin: 26px 0 34px; font-size: 1.05rem; color: rgba(255,255,255,.82); max-width: 560px; }

.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 14px 30px; border-radius: 44px;
  font-size: .98rem; font-weight: 600; cursor: pointer;
  text-decoration: none; border: none; transition: all .3s; letter-spacing: .5px;
}
.btn-primary { background: var(--accent); color: #16325a; box-shadow: 0 6px 20px rgba(232,184,75,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(232,184,75,.45); }
.btn-outline {
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-block { width: 100%; }

/* 统计数字 */
.hero-stats {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
  margin-top: 48px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stats .num { font-size: 2.2rem; font-weight: 800; color: #fff; }
.hero-stats .unit { font-size: 1.1rem; font-weight: 700; color: var(--accent); margin-left: 2px; }
.hero-stats p { font-size: .82rem; color: rgba(255,255,255,.7); margin-top: 4px; }

/* 名片卡 */
.hero-card { display: flex; justify-content: center; }
.portrait {
  width: 320px; padding: 46px 40px 40px; text-align: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  border-radius: 24px; backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
}
.avatar-img {
  width: 130px; height: 130px; margin: 0 auto 24px; border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 5px rgba(255,255,255,.15);
  background: rgba(255,255,255,.2);
}
.avatar-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.card-name { font-size: 1.8rem; font-weight: 800; letter-spacing: 4px; }
.card-title { font-size: .8rem; color: rgba(255,255,255,.7); margin-top: 6px; letter-spacing: 1px; }

/* ============ 通用区块 ============ */
.section { padding: 96px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: 4px;
  color: var(--primary); margin-bottom: 12px;
}
.section-head h2 { font-size: 2.4rem; font-weight: 800; color: var(--text-dark); }
.section-head p { color: var(--text-mid); margin-top: 10px; font-size: 1rem; }

/* 简介 */
.about { background: var(--bg-light); }
.about-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.about-item {
  background: #fff; padding: 36px 30px; border-radius: var(--radius);
  box-shadow: var(--shadow); border-top: 4px solid var(--primary);
  transition: all .35s;
}
.about-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.about-item h3 { font-size: 1.2rem; color: var(--primary); margin-bottom: 14px; }
.about-item p { color: var(--text-mid); font-size: .97rem; }

/* 专业领域 */
.practice-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; }
.pq-card {
  background: var(--bg-light); padding: 34px 26px; border-radius: var(--radius);
  border: 1px solid #e3ecf7; transition: all .35s;
}
.pq-card:hover { background: #fff; transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--primary-light); }
.pq-icon { font-size: 2.6rem; margin-bottom: 16px; }
.pq-card h3 { font-size: 1.15rem; margin-bottom: 12px; color: var(--text-dark); }
.pq-card p { font-size: .92rem; color: var(--text-mid); }

/* 案例 */
.cases { background: var(--bg-light); }
.case-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 26px;
}
.case-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all .35s; display: flex; flex-direction: column;
}
.case-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.case-top {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; padding: 28px 26px 22px; position: relative; overflow: hidden;
}
.case-top::after {
  content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px;
  border-radius: 50%; background: rgba(255,255,255,.12);
}
.case-type {
  display: inline-block; font-size: .75rem; padding: 4px 12px;
  background: rgba(255,255,255,.2); border-radius: 20px; letter-spacing: 1px;
}
.case-title { font-size: 1.25rem; font-weight: 700; margin-top: 14px; }
.case-body { padding: 24px 26px; flex: 1; display: flex; flex-direction: column; }
.case-desc { font-size: .92rem; color: var(--text-mid); flex: 1; }
.case-result {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid #eef3f9;
  display: flex; align-items: center; gap: 8px;
}
.case-result .label { font-size: .8rem; color: var(--text-light); }
.case-result .value { font-size: .95rem; font-weight: 700; color: var(--primary); }

/* 文章 */
.articles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.article-card {
  background: #fff; padding: 30px 28px; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid #eef3f9; transition: all .35s;
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.article-tag {
  display: inline-block; align-self: flex-start; font-size: .75rem;
  padding: 4px 12px; background: rgba(26,77,168,.1); color: var(--primary);
  border-radius: 20px; font-weight: 600; margin-bottom: 16px;
}
.article-card h3 { font-size: 1.15rem; line-height: 1.5; margin-bottom: 10px; }
.article-date { font-size: .8rem; color: var(--text-light); margin-bottom: 12px; }
.article-card p:not(.article-date) { font-size: .92rem; color: var(--text-mid); flex: 1; }
.read-more { display: inline-block; margin-top: 18px; color: var(--primary); font-weight: 600; font-size: .9rem; text-decoration: none; }
.read-more:hover { color: var(--primary-dark); }

/* 咨询 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info { background: var(--bg-light); border-radius: var(--radius); padding: 36px; }
.contact-info h3 { font-size: 1.3rem; margin-bottom: 24px; color: var(--text-dark); }
.ci { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.ic { font-size: 1.4rem; flex-shrink: 0; }
.ci strong { display: block; font-size: .95rem; }
.ci p { color: var(--text-mid); font-size: .9rem; }
.privacy-note { margin-top: 24px; padding: 14px 16px; font-size: .85rem; color: var(--text-mid); background: rgba(26,77,168,.06); border-radius: 10px; }

.contact-form {
  background: #fff; border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow); border: 1px solid #eef3f9;
}
.contact-form h3 { font-size: 1.3rem; margin-bottom: 24px; color: var(--text-dark); }
.form-group { margin-bottom: 18px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid #dde7f2; border-radius: 10px;
  font-size: .95rem; font-family: inherit; color: var(--text-dark);
  background: #fbfdff; transition: border .3s, box-shadow .3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,77,168,.12);
}
.form-group textarea { resize: vertical; }
.form-tip { margin-top: 14px; font-size: .88rem; text-align: center; color: var(--primary); min-height: 22px; }
.form-tip.success { color: #1a9d6c; }

/* 页脚 */
.footer { background: #12263f; color: #a9bcd0; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 60px; padding: 60px 24px; }
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand .logo span { font-size: 1.2rem; font-weight: 700; }
.footer-brand p { font-size: .9rem; line-height: 1.8; max-width: 320px; }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.footer-links h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer-links a { display: block; color: #a9bcd0; text-decoration: none; font-size: .88rem; margin-bottom: 10px; transition: color .3s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; text-align: center; }
.footer-bottom p { font-size: .8rem; color: #7a8ba0; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(4,1fr); }
  .hero-card { margin-top: 20px; }
  .about-grid, .case-grid, .articles-grid { grid-template-columns: repeat(2,1fr); }
  .practice-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 280px;
    background: #fff; flex-direction: column; gap: 20px; padding: 90px 30px;
    box-shadow: -10px 0 30px rgba(0,0,0,.1); transition: right .4s; z-index: 998;
  }
  .nav-links.open { right: 0; }
  .nav-links a { color: var(--text-dark); font-size: 1.05rem; }
  .nav-cta { margin-top: 10px; }
  .hamburger { display: flex; z-index: 999; }
  .hamburger span { background: #fff; }
  .navbar.scrolled .hamburger span { background: var(--text-dark); }
  .hero { padding-top: 100px; }
  .hero h1 { font-size: 2.4rem; }
  .hero-stats { grid-template-columns: repeat(2,1fr); gap: 24px; }
  .about-grid, .case-grid, .articles-grid, .practice-grid,
  .contact-grid, .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(3,1fr); gap: 20px; }
  .section { padding: 70px 0; }
  .section-head h2 { font-size: 1.9rem; }
}

/* ======================================
   办案动态板块
   ====================================== */
.dynamics { background: var(--bg-light); }

/* 统计摘要 */
.dyn-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; max-width: 760px; margin: 0 auto 40px;
}
.dyn-stat-item {
  background: var(--white); border-radius: var(--radius);
  padding: 22px 16px; text-align: center; box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}
.dyn-stat-item b {
  display: block; font-size: 2rem; font-weight: 800; color: var(--primary);
}
.dyn-stat-item span { font-size: .86rem; color: var(--text-mid); }

/* 筛选 */
.dyn-filter {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-bottom: 44px;
}
.filter-btn {
  padding: 9px 22px; border-radius: 999px; border: 1px solid #d6e0ec;
  background: var(--white); color: var(--text-mid); font-size: .95rem;
  cursor: pointer; transition: all .25s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(26,77,168,.24);
}

/* 时间线 */
.dyn-timeline { max-width: 860px; margin: 0 auto; }

.dyn-month {
  position: relative; margin-bottom: 20px; padding-left: 26px;
}
.dyn-month::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: #d9e3f0;
}
.dyn-month h4 {
  font-size: 1.05rem; color: var(--primary); font-weight: 700;
  margin-bottom: 14px; position: relative;
}
.dyn-month h4::before {
  content: ""; position: absolute; left: -26px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 50%; background: var(--primary);
  border: 3px solid #fff; box-shadow: 0 0 0 2px var(--primary);
}
.dyn-item {
  position: relative; display: flex; gap: 16px; align-items: flex-start;
  padding: 12px 0;
}
.dyn-item::before {
  content: ""; position: absolute; left: -26px; top: 24px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--primary-light);
}
.dyn-date {
  min-width: 60px; text-align: center; padding-top: 2px;
}
.dyn-day {
  font-size: 1.35rem; font-weight: 800; color: var(--text-dark); line-height: 1;
}
.dyn-card {
  flex: 1; background: var(--white); border-radius: 12px;
  padding: 14px 18px; box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-light);
  transition: transform .25s, box-shadow .25s;
}
.dyn-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.dyn-tag {
  display: inline-block; font-size: .76rem; color: var(--primary);
  background: rgba(26,77,168,.08); padding: 2px 10px;
  border-radius: 999px; margin-bottom: 6px;
}
.dyn-title { font-size: .98rem; color: var(--text-dark); line-height: 1.5; }

.dyn-more-wrap { text-align: center; margin-top: 40px; }
.dyn-empty { text-align: center; color: var(--text-light); padding: 40px 0; }

@media (max-width: 768px) {
  .dyn-stats { grid-template-columns: 1fr 1fr; }
  .dyn-filter { gap: 10px; }
  .filter-btn { padding: 8px 16px; font-size: .88rem; }
  .dyn-date { min-width: 44px; }
  .dyn-day { font-size: 1.1rem; }
}

/* ======================================
   亲办案例板块升级
   ====================================== */
/* 案例统计卡（复用动态统计卡样式） */
.case-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; max-width: 760px; margin: 0 auto 40px;
}

/* 案例筛选栏 */
.case-filter {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-bottom: 42px;
}
.case-filter .filter-btn {
  font-size: .86rem; padding: 8px 16px;
}

/* 案例卡片中的收录角标 */
.case-badge {
  display: inline-block; font-size: .72rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  background: var(--accent); color: #4a3600;
  margin-bottom: 10px;
}

/* 案例卡片罪名行 */
.case-crime {
  font-size: .9rem; color: var(--text-mid); margin-bottom: 8px;
}
.case-crime b { color: var(--text-dark); font-weight: 600; }

/* 案例结果行 */
.case-result-row {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid #eef3f9;
  display: flex; align-items: center; gap: 8px;
}
.case-result-row .label { font-size: .8rem; color: var(--text-light); }
.case-result-row .value {
  font-size: .95rem; font-weight: 700; color: var(--primary);
}

/* 案例加载更多 */
.case-more-wrap { text-align: center; margin-top: 42px; }

@media (max-width: 768px) {
  .case-stats { grid-template-columns: 1fr 1fr; }
  .case-filter { gap: 8px; }
  .case-filter .filter-btn { padding: 7px 12px; font-size: .82rem; }
}

/* ======================================
   案例详情弹窗
   ====================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1001;
  background: rgba(15, 25, 40, .62);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
  backdrop-filter: blur(3px);
}
.modal-overlay.show { opacity: 1; visibility: visible; }

.modal {
  background: #fff; border-radius: 18px;
  width: 100%; max-width: 780px; max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  transform: translateY(24px) scale(.97);
  transition: transform .3s;
  overflow: hidden;
}
.modal-overlay.show .modal { transform: translateY(0) scale(1); }

.modal-header {
  padding: 22px 30px 16px; border-bottom: 1px solid #eef3f9;
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h2 { font-size: 1.3rem; color: var(--primary); }
.modal-close {
  position: absolute; top: 14px; right: 18px; z-index: 5;
  border: none; background: rgba(26,77,168,.08); color: var(--primary);
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  transition: all .2s;
}
.modal-close:hover { background: var(--primary); color: #fff; }

.modal-body {
  padding: 20px 30px 30px; overflow-y: auto;
  line-height: 1.85;
}
.modal-title-row h3.modal-case-title {
  font-size: 1.25rem; font-weight: 700; color: var(--text-dark);
  line-height: 1.5; padding-right: 30px;
}
.modal-rec {
  display: inline-block; margin: 12px 0 0; font-size: .8rem;
  color: #6b5200; background: #fdf6e3; padding: 5px 12px;
  border-radius: 999px; border: 1px solid #f0e3c0;
}
.modal-meta {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px;
}
.modal-meta-item {
  font-size: .86rem; padding: 5px 14px; border-radius: 999px;
  background: rgba(26,77,168,.07); color: var(--primary);
  border: 1px solid #dce7f5;
}
.modal-detail { margin-top: 18px; }
.modal-sec { margin-bottom: 20px; }
.modal-sec-head {
  font-size: 1rem; font-weight: 700; color: var(--primary);
  margin-bottom: 8px; padding-bottom: 6px;
  border-left: 4px solid var(--accent); padding-left: 12px;
}
.modal-sec-body {
  font-size: .96rem; color: var(--text-mid);
  white-space: normal; word-break: break-word;
}
.modal-empty { color: var(--text-light); padding: 20px 0; }

.case-detail-btn {
  margin-top: 16px; align-self: flex-start;
  border: none; background: var(--primary); color: #fff;
  font-size: .9rem; padding: 9px 20px; border-radius: 999px;
  cursor: pointer; transition: all .25s; letter-spacing: .5px;
}
.case-detail-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }

@media (max-width: 768px) {
  .modal { max-height: 92vh; }
  .modal-body { padding: 16px 20px 24px; }
  .modal-meta-item { font-size: .78rem; }
}

/* ======================================
   法律观点 · 原创文章升级
   ====================================== */
#articlesGrid .article-card { cursor: pointer; }
.article-summary { font-size: .9rem; color: var(--text-mid); flex: 1; }
.read-more-btn {
  align-self: flex-start; margin-top: 16px;
  border: none; background: transparent; color: var(--primary);
  font-size: .9rem; font-weight: 600; cursor: pointer; padding: 0;
  border-bottom: 1px solid transparent; transition: all .2s;
}
.read-more-btn:hover { border-bottom-color: var(--primary); }

/* 文章阅读弹窗 */
.modal-article { max-width: 860px; max-height: 90vh; }
.article-modal-body { padding: 32px 44px 40px; }
.article-meta {
  display: inline-block; font-size: .8rem; color: var(--text-light);
  background: #f2f6fb; padding: 4px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.article-modal-body h2.article-title {
  font-size: 1.7rem; font-weight: 800; color: var(--text-dark);
  line-height: 1.4; margin-bottom: 14px; padding-bottom: 14px;
  border-bottom: 2px solid var(--accent);
}
.article-modal-body p.article-p {
  font-size: 1.02rem; line-height: 1.95; color: #37424e;
  margin-bottom: 14px; text-align: justify;
}
.article-modal-body p.article-p strong { color: var(--text-dark); }
.article-footer {
  margin-top: 26px; padding-top: 16px; border-top: 1px solid #eef3f9;
  font-size: .85rem; color: var(--text-light); text-align: center;
}
@media (max-width: 768px) {
  .article-modal-body { padding: 22px 22px 30px; }
  .article-modal-body h2.article-title { font-size: 1.35rem; }
  .article-modal-body p.article-p { font-size: .96rem; line-height: 1.85; }
}

/* 案例完整详情（全文弹窗） */
.case-full { margin-top: 18px; }
.case-full-block { margin-bottom: 22px; }
.case-full-head {
  font-size: 1.02rem; font-weight: 700; color: var(--primary);
  padding-left: 12px; margin-bottom: 10px;
  border-left: 4px solid var(--accent);
  line-height: 1.6;
}
.case-full-p {
  font-size: .98rem; line-height: 1.9; color: #37424e;
  text-align: justify; margin-bottom: 10px;
}
.case-full-p:last-child { margin-bottom: 0; }
