/* =========================================================
   龚安义律师网站 - 深圳律师 广东知恒律师事务所
   响应式CSS - 兼容安卓/iOS/PC
   ========================================================= */

:root {
  --primary: #9f1d35;
  --primary-dark: #7a1428;
  --primary-light: #c0344f;
  --gold: #c8a96a;
  --gold-light: #dfc08a;
  --bg: #f4f6f9;
  --bg-white: #ffffff;
  --bg-dark: #1a1a2e;
  --text-dark: #1e2a3a;
  --text-body: #3d4a5c;
  --text-light: #6b7a8d;
  --border: #e5e8ef;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "微软雅黑", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ─── 顶部公告栏 ─── */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
  padding: 8px 0;
  display: flex;
  align-items: center;
}
.top-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
}
.top-bar span { display: flex; align-items: center; gap: 6px; }
.top-bar i { font-size: 11px; }

/* ─── 导航 ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--bg-white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-emblem {
  width: 42px; height: 42px;
  background: var(--primary);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.logo-emblem::before {
  content: "律";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 17px;
  font-weight: 700;
}
.logo-text h1 { font-size: 18px; color: var(--primary); font-weight: 700; line-height: 1.3; }
.logo-text p { font-size: 12px; color: var(--text-light); }
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}
.nav a {
  padding: 6px 13px;
  border-radius: 6px;
  font-size: 14.5px;
  color: var(--text-dark);
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.nav a:hover, .nav a.active {
  background: var(--primary);
  color: white;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background var(--transition);
}
.hamburger:hover { background: var(--bg); }
.hamburger span {
  width: 24px; height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ─── Hero 首页横幅 ─── */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1a0a10 0%, #3d0c1c 40%, #6b1428 100%);
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800"><circle cx="400" cy="400" r="350" fill="none" stroke="rgba(200,169,106,0.06)" stroke-width="80"/><circle cx="400" cy="400" r="200" fill="none" stroke="rgba(200,169,106,0.04)" stroke-width="60"/></svg>') center/contain no-repeat;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 80px 0 60px;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.avatar-wrapper { flex-shrink: 0; }
.avatar-circle {
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
.hero-text { color: white; }
.hero-text h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.title-badge {
  color: var(--gold-light);
  font-size: 15px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.motto {
  background: rgba(255,255,255,0.07);
  border-left: 3px solid var(--gold);
  padding: 14px 20px;
  border-radius: 0 8px 8px 0;
  color: rgba(255,255,255,0.88);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 520px;
}
.motto i { color: var(--gold); font-size: 13px; margin: 0 4px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(159,29,53,0.4);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(159,29,53,0.5);
}
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px;
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  transition: background var(--transition), border-color var(--transition);
  backdrop-filter: blur(4px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  color: white;
  border-color: rgba(255,255,255,0.5);
}
.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  z-index: 3;
  line-height: 0;
}
.hero-wave svg { width: 100%; display: block; }

/* ─── 统计数字栏 ─── */
.stats-bar {
  background: white;
  padding: 36px 0;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}
.stats-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 40px;
  text-align: center;
}
.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.stat-num sup { font-size: 18px; }
.stat-label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
  white-space: nowrap;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── Section 通用 ─── */
.section { padding: 72px 0; }
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin-bottom: 14px;
}
.section-line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  max-width: 100px;
}
.section-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
}
.section-desc {
  text-align: center;
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 40px;
}
.section-line-left {
  width: 36px; height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin-bottom: 14px;
}

/* ─── 业务卡片 ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}
.service-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.service-card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, #fff5f7 0%, #fff 100%);
}
.featured-badge {
  position: absolute;
  top: -1px; right: 18px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 1px;
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-icon i { color: white; font-size: 22px; }
.service-card h3 { font-size: 18px; color: var(--text-dark); margin-bottom: 10px; font-weight: 600; }
.service-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.card-link {
  font-size: 13.5px;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.card-link:hover { gap: 8px; }

.center-btn { text-align: center; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 28px;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.btn-outline:hover { background: var(--primary); color: white; }

/* ─── 律师简介预览 ─── */
.about-preview { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 52px;
  align-items: center;
}
.portrait-frame {
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid white;
}
.portrait-badge {
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  margin-top: -4px;
}
.about-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.about-header h2 { font-size: 22px; color: var(--text-dark); font-weight: 700; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag {
  background: rgba(159,29,53,0.08);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.about-intro { font-size: 15px; color: var(--text-body); line-height: 1.8; margin-bottom: 14px; }
.highlights { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 28px; }
.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-body);
}
.highlight-item i { color: var(--primary); margin-top: 3px; flex-shrink: 0; }

/* ─── CTA联系引导 ─── */
.contact-cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  text-align: center;
}
.cta-content { padding: 20px 0; }
.cta-icon { font-size: 44px; color: rgba(255,255,255,0.4); margin-bottom: 16px; display: block; }
.cta-content h2 { font-size: 28px; color: white; margin-bottom: 10px; font-weight: 700; }
.cta-content p { color: rgba(255,255,255,0.85); font-size: 16px; margin-bottom: 28px; }
.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 32px;
  background: white;
  color: var(--primary);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.3); color: var(--primary-dark); }

/* ─── 页脚 ─── */
.footer { background: #0f1623; color: rgba(255,255,255,0.8); padding: 56px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 700;
  color: white;
}
.logo-emblem-sm {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  display: inline-block;
}
.logo-emblem-sm::before {
  content: "律";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 13px; font-weight: 700;
}
.footer-col p { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.55); }
.footer-col h4 { color: white; font-size: 15px; margin-bottom: 16px; font-weight: 600; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }
.contact-list { gap: 12px !important; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}
.contact-list li i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.footer-bottom {
  padding: 20px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--gold); }
.footer-disclaimer { font-size: 12px; }

/* ─── 页面Hero（内页通用）─── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 52px 20px;
  text-align: center;
  color: white;
}
.breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb .sep { opacity: 0.5; }
.page-hero h1 { font-size: clamp(22px, 4vw, 32px); font-weight: 700; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 15px; }

/* ─── 联系页 ─── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info-items { display: flex; flex-direction: column; gap: 24px; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.contact-info-icon {
  width: 42px; height: 42px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon i { color: white; font-size: 16px; }
.contact-info-item h4 { font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 5px; }
.contact-info-item p { font-size: 14px; color: var(--text-body); line-height: 1.6; }

/* 微信二维码 */
.wechat-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1.5px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.wechat-section h3 {
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-weight: 700;
}
.wechat-section .sub {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 24px;
}
.qr-wrapper {
  display: inline-block;
  background: white;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  border: 3px solid var(--primary);
  margin-bottom: 18px;
}
.qr-wrapper img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  display: block;
}
.wechat-tip {
  font-size: 13.5px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.wechat-tip i { color: #07c160; font-size: 16px; }

/* ─── 关于我 ─── */
.about-full-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}
.about-sidebar-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid white;
  max-width: 220px;   /* 限制最大显示宽度 */
}
.about-sidebar-img img {
  width: 100%;
  height: auto;       /* 自然高度，不强制比例 */
  object-fit: cover;
  object-position: top center;
}
.credential-badge {
  background: var(--primary);
  color: white;
  padding: 14px 18px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.credential-badge .num {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 3px;
  font-weight: 400;
  word-break: break-all;
}
.about-content h2 { font-size: 22px; color: var(--text-dark); font-weight: 700; margin-bottom: 20px; }
.about-content p { font-size: 15px; color: var(--text-body); line-height: 1.85; margin-bottom: 16px; }
.exp-list { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.exp-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}
.exp-year {
  flex-shrink: 0;
  background: var(--primary);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  align-self: flex-start;
  white-space: nowrap;
}
.exp-desc { font-size: 14px; color: var(--text-body); line-height: 1.7; }
.clients-section { margin-top: 28px; }
.clients-section h4 { font-size: 16px; font-weight: 600; color: var(--text-dark); margin-bottom: 12px; }
.client-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.client-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-body);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
}

/* ─── 业务领域 ─── */
.services-full { padding: 60px 0; }
.service-section {
  margin-bottom: 56px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.service-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.service-section-icon {
  width: 50px; height: 50px;
  background: var(--primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.service-section-icon i { color: white; font-size: 20px; }
.service-section-header h2 { font-size: 22px; color: var(--text-dark); font-weight: 700; }
.service-items { display: flex; flex-direction: column; gap: 14px; }
.service-item {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}
.service-item:hover { box-shadow: var(--shadow-sm); }
.service-item-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 7px;
  flex-shrink: 0;
}
.service-item h4 { font-size: 15px; color: var(--text-dark); font-weight: 600; margin-bottom: 5px; }
.service-item p { font-size: 13.5px; color: var(--text-light); line-height: 1.6; }

/* ─── 法律法规 ─── */
.search-bar-wrap { margin-bottom: 28px; }
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  max-width: 460px;
}
.search-bar:focus-within { border-color: var(--primary); background: white; }
.search-bar i { color: var(--text-light); }
.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14.5px;
  color: var(--text-dark);
  outline: none;
}
.law-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.law-tab {
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--text-body);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.law-tab:hover { border-color: var(--primary); color: var(--primary); }
.law-tab.active { background: var(--primary); color: white; border-color: var(--primary); }
.law-panel { display: none; }
.law-panel.active { display: block; }
.law-category-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  padding: 10px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.law-category-title i { color: var(--primary); }
.law-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.law-item:hover { box-shadow: var(--shadow-sm); border-color: var(--primary); }
.law-badge {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
.badge-law { background: rgba(159,29,53,0.08); color: var(--primary); }
.badge-judicial { background: rgba(30,100,200,0.08); color: #1e64c8; }
.badge-admin { background: rgba(40,140,80,0.08); color: #288c50; }
.badge-new { background: rgba(200,100,0,0.08); color: #c86400; }
.law-info { flex: 1; }
.law-info h4 { font-size: 15px; color: var(--text-dark); font-weight: 600; margin-bottom: 4px; }
.law-info p { font-size: 13px; color: var(--text-light); line-height: 1.5; }
.law-link {
  flex-shrink: 0;
  padding: 7px 16px;
  background: var(--primary);
  color: white;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}
.law-link:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); }

/* ─── 法律新闻 ─── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.news-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card-meta {
  padding: 18px 20px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.news-cat-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(159,29,53,0.08);
  color: var(--primary);
}
.news-date { font-size: 12px; color: var(--text-light); margin-left: auto; }
.news-card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.news-card-body h3 {
  font-size: 16px;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 10px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.news-card-body p {
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.7;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  margin-bottom: 16px;
}
.news-read-more {
  font-size: 13.5px;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.news-read-more:hover { gap: 8px; }
.news-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}
.news-empty i { font-size: 48px; opacity: 0.3; margin-bottom: 16px; display: block; }
.news-empty p { font-size: 15px; }

/* 新闻详情页 */
.news-detail { max-width: 800px; margin: 0 auto; }
.news-detail-header { margin-bottom: 32px; }
.news-detail-title {
  font-size: clamp(20px, 3vw, 28px);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 14px;
}
.news-detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-light);
  padding-bottom: 18px;
  border-bottom: 2px solid var(--border);
}
.news-detail-content {
  font-size: 16px;
  line-height: 2;
  color: var(--text-body);
}
.news-detail-content h2 {
  font-size: 20px;
  color: var(--text-dark);
  margin: 32px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}
.news-detail-content h3 {
  font-size: 17px;
  color: var(--text-dark);
  margin: 24px 0 10px;
  font-weight: 600;
}
.news-detail-content p { margin-bottom: 16px; }
.news-detail-content ul, .news-detail-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.news-detail-content li { margin-bottom: 8px; }
.news-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 24px;
}
.news-back:hover { color: var(--primary-dark); }

/* ─── 法律文本全文页 ─── */
.law-full-content {
  max-width: 860px;
  margin: 0 auto;
  background: white;
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.law-full-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 8px;
}
.law-full-meta {
  text-align: center;
  color: var(--text-light);
  font-size: 13.5px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}
.law-full-text {
  font-size: 15px;
  line-height: 2;
  color: var(--text-body);
}
.law-full-text h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 28px 0 12px;
  text-align: center;
}
.law-full-text .article {
  margin-bottom: 18px;
  padding-left: 4px;
}
.law-full-text .article-num {
  font-weight: 700;
  color: var(--primary);
  margin-right: 4px;
}

/* ─── 返回按钮 ─── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 20px;
  transition: color var(--transition);
}
.back-btn:hover { color: var(--primary); }

/* ─── 移动端响应式 ─── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-portrait { max-width: 280px; margin: 0 auto; }
  .about-full-grid { grid-template-columns: 1fr; }
  .about-sidebar-img { max-width: 260px; margin: 0 auto; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .top-bar { display: none; }
  .hamburger { display: flex; }
  .nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    z-index: 998;
    border-top: 2px solid var(--primary);
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 12px 16px; border-radius: 8px; font-size: 15px; }
  .hero-content { flex-direction: column; text-align: center; padding-top: 50px; padding-bottom: 50px; gap: 28px; }
  .avatar-circle { width: 140px; height: 140px; }
  .motto { text-align: left; }
  .hero-buttons { justify-content: center; }
  .stats-bar .container { gap: 0; }
  .stat-item { padding: 8px 20px; }
  .stat-num { font-size: 28px; }
  .stat-divider { height: 36px; }
  .section { padding: 48px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .law-item { flex-wrap: wrap; gap: 10px; }
  .law-link { width: 100%; justify-content: center; }
  .law-full-content { padding: 24px 18px; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { text-align: center; justify-content: center; }
  .section-title { font-size: 18px; }
  .qr-wrapper img { width: 160px; height: 160px; }
}

/* ─── 辅助类 ─── */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.hidden { display: none !important; }
.bg-white { background: white; }
.bg-gray { background: var(--bg); }
