/* ========== 重置与基础 ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #2D2D2D;
  background: #FFFFFF;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ========== 色彩变量 ========== */
:root {
  --primary: #D9001B;
  --primary-dark: #B80016;
  --primary-light: #F01B34;
  --primary-bg: #FFF5F5;
  --gold: #C9A961;
  --gold-light: #D8BC7E;
  --bg: #FFFFFF;
  --bg-white: #FFFFFF;
  --bg-gray: #F7F7F8;
  --dark: #1A1A1A;
  --gray: #666666;
  --gray-light: #EEEEEE;
  --text: #2D2D2D;
}

/* ========== 通用容器 ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 600px;
  margin-bottom: 48px;
}
.title-center { text-align: center; }
.title-center .section-desc { margin-left: auto; margin-right: auto; }

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 0, 27, 0.3);
}
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ========== 顶部导航 ========== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #FFFFFF;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 44px; height: 44px;
  background: var(--primary);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif SC', serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--gold);
}
.logo-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
}
.logo-sub { font-size: 0.7rem; color: var(--gray); letter-spacing: 0.15em; }
.nav-menu { display: flex; gap: 40px; }
.nav-menu a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.3s;
  position: relative;
  padding: 8px 0;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-phone { display: flex; align-items: center; gap: 10px; color: var(--primary); font-size: 0.95rem; font-weight: 600; }
.nav-phone svg { width: 18px; height: 18px; }
.menu-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 28px; height: 28px; }

/* ========== Hero 区域 ========== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF5F5 100%);
  padding-top: 80px;
  padding-bottom: 100px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -100px; top: 50%;
  transform: translateY(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(217,0,27,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content { max-width: 700px; color: var(--text); position: relative; z-index: 1; }
.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(217,0,27,0.3);
  color: var(--primary);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin-bottom: 28px;
  border-radius: 2px;
  background: rgba(217,0,27,0.04);
}
.hero h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 24px;
  color: var(--text);
}
.hero h1 .highlight { color: var(--primary); }
.hero-desc { font-size: 1.15rem; color: var(--gray); margin-bottom: 40px; line-height: 1.8; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  position: relative;
  margin-top: 80px;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid var(--gray-light);
}
.hero-stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 28px 24px; text-align: center; border-right: 1px solid var(--gray-light); }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.2rem; font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 0.9rem; color: var(--gray); }

/* ========== 业务领域 ========== */
.practice-section { background: #FFFFFF; position: relative; }
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.practice-card {
  background: var(--bg-white);
  padding: 36px 28px 28px;
  border-radius: 8px;
  border: 1px solid var(--gray-light);
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  cursor: pointer;
  display: block;
}
.practice-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.practice-card:hover { border-color: transparent; box-shadow: 0 16px 48px rgba(217, 0, 27, 0.1); transform: translateY(-6px); }
.practice-card:hover::before { transform: scaleX(1); }
.practice-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--primary-bg) 0%, #FFE8E8 100%);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: all 0.35s ease;
}
.practice-card:hover .practice-icon { background: var(--primary); }
.practice-icon svg { width: 28px; height: 28px; color: var(--primary); transition: color 0.35s ease; }
.practice-card:hover .practice-icon svg { color: #fff; }
.practice-card h3 { font-family: 'Noto Serif SC', serif; font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.practice-card p { font-size: 0.9rem; color: var(--gray); line-height: 1.7; margin-bottom: 16px; }
.practice-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.practice-tag { font-size: 0.75rem; padding: 3px 10px; background: var(--bg-gray); color: var(--gray); border-radius: 4px; font-weight: 400; }
.practice-more { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; color: var(--primary); font-weight: 600; transition: gap 0.3s; }
.practice-card:hover .practice-more { gap: 12px; }

/* ========== 关于我们 ========== */
.about { background: var(--bg-gray); color: var(--text); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { border-radius: 8px; overflow: hidden; height: 480px; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-content .section-tag { color: var(--primary); }
.about-content h2 { font-family: 'Noto Serif SC', serif; font-size: 2.2rem; font-weight: 700; margin-bottom: 24px; line-height: 1.3; color: var(--text); }
.about-content p { color: var(--gray); margin-bottom: 16px; line-height: 1.9; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.about-feature { display: flex; gap: 12px; align-items: flex-start; }
.about-feature .check {
  width: 24px; height: 24px;
  background: var(--primary-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
}
.about-feature .check svg { width: 14px; height: 14px; color: var(--primary); }
.about-feature h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.about-feature p { font-size:0.85rem; color: var(--gray); margin: 0; }

/* ========== 律师团队 ========== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { background: var(--bg-white); border-radius: 4px; overflow: hidden; transition: all 0.3s ease; cursor: pointer; display:block; }
.team-card:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.1); transform: translateY(-4px); }
.team-photo { aspect-ratio: 3 / 4; overflow: hidden; position: relative; background: #f0ece6; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.5s ease; }
.team-card:hover .team-photo img { transform: scale(1.05); }
.team-info { padding: 24px; }
.team-info h3 { font-family: 'Noto Serif SC', serif; font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; }
.team-title { font-size: 0.85rem; color: var(--primary); font-weight: 500; margin-bottom: 12px; }
.team-specialty { font-size: 0.85rem; color: var(--gray); line-height: 1.6; }
.team-more { text-align: center; margin-top: 48px; }

/* ========== 新闻动态 ========== */
.news { background: var(--bg-gray); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: var(--bg-white); border-radius: 4px; overflow: hidden; transition: all 0.3s ease; cursor: pointer; display:block; }
.news-card:hover { box-shadow: 0 12px 36px rgba(0,0,0,0.08); transform: translateY(-4px); }
.news-img { height: 200px; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-body { padding: 24px; }
.news-date { font-size: 0.8rem; color: var(--primary); font-weight: 600; margin-bottom: 10px; letter-spacing: 0.05em; }
.news-card h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.1rem; font-weight: 600;
  line-height: 1.5; margin-bottom: 12px;
  color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card p {
  font-size: 0.9rem; color: var(--gray); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ========== 联系我们 ========== */
.contact { background: #FFFFFF; color: var(--text); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h2 { font-family: 'Noto Serif SC', serif; font-size: 2.2rem; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.contact-info > p { color: var(--gray); margin-bottom: 36px; line-height: 1.8; }
.contact-items { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item-icon {
  width: 48px; height: 48px;
  background: var(--primary-bg);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { width: 22px; height: 22px; color: var(--primary); }
.contact-item h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.contact-item p { font-size: 0.9rem; color: var(--gray); }
.contact-form { background: var(--bg-gray); border-radius: 8px; padding: 40px; border: 1px solid var(--gray-light); }
.contact-form h3 { font-family: 'Noto Serif SC', serif; font-size: 1.4rem; font-weight: 600; margin-bottom: 24px; color: var(--text); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; color: var(--gray); margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: #FFFFFF;
  border: 1px solid #DDD;
  border-radius: 4px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #AAA; }
.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(217,0,27,0.1);
}
.form-group select option { color: var(--text); background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .btn { width: 100%; justify-content: center; }

/* ========== 页脚 ========== */
.footer { background: #111; color: rgba(255,255,255,0.6); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .logo-text { color: #fff; font-size: 1.2rem; }
.footer-brand p { margin-top: 16px; font-size: 0.9rem; line-height: 1.8; max-width: 320px; color: rgba(255,255,255,0.5); }
.footer-col h4 { color: #fff; font-size: 1rem; font-weight: 500; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: 0.9rem; color: rgba(255,255,255,0.5); transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom { padding: 24px 0; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.35); }

/* ========== Toast ========== */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--dark);
  color: #fff;
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 0.95rem;
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ========== 内页通用 ========== */
.page-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #3a0a0e 100%);
  color: #fff;
  padding: 140px 0 70px;
  text-align: center;
}
.page-hero h1 { font-family: 'Noto Serif SC', serif; font-size: 2.4rem; font-weight: 700; }
.breadcrumb { margin-top: 14px; font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--gold); }
.content-layout { display:grid; grid-template-columns: 280px 1fr; gap: 40px; align-items:start; }
.lawyer-single { max-width: 900px; margin: 0 auto; }
.lawyer-photo { max-width: 300px; float: right; margin: 0 0 20px 24px; border-radius: 6px; }
.article-body img.lawyer-photo { max-width: 300px; margin: 0 0 20px 24px; }
.side-nav { background:#fff; border:1px solid var(--gray-light); border-radius:8px; overflow:hidden; position:sticky; top:100px; }
.side-nav a { display:block; padding:14px 20px; border-bottom:1px solid var(--gray-light); color:var(--text); font-size:.95rem; }
.side-nav a:hover, .side-nav a.active { background:var(--primary-bg); color:var(--primary); }
.article-body { background:#fff; border:1px solid var(--gray-light); border-radius:8px; padding:40px; }
/* 正文图片：永远不超出容器、保持比例，防止手机端被拉长变形 */
.article-body img { border-radius:6px; margin:20px auto; max-width:100%; height:auto; display:block; }
.article-body video, .article-body iframe { max-width:100%; height:auto; }
.article-body h2,.article-body h3 { font-family:'Noto Serif SC',serif; margin:28px 0 14px; }
.article-body p { margin-bottom:14px; color:#333; line-height:1.9; }
/* ===== 公众号风格正文排版（标题/引用/分割线/图片说明） ===== */
.article-body section { max-width:100%; box-sizing:border-box; }
.article-body h1 { font-size:1.5rem; line-height:1.4; margin:28px 0 16px; font-weight:700; }
.article-body h2 { font-size:1.3rem; padding-left:12px; border-left:4px solid var(--primary); }
.article-body h3 { font-size:1.12rem; }
.article-body blockquote { margin:20px 0; padding:14px 18px; background:var(--primary-bg); border-left:4px solid var(--primary); border-radius:0 6px 6px 0; color:#444; line-height:1.8; }
.article-body blockquote p { margin-bottom:0; color:#444; }
.article-body hr { border:none; border-top:1px dashed var(--gray); margin:32px auto; width:60%; }
.article-body ul, .article-body ol { margin:0 0 14px; padding-left:24px; line-height:1.9; color:#333; }
.article-body li { margin-bottom:6px; }
.article-body a { color:var(--primary); text-decoration:underline; }
.article-body table { max-width:100%; border-collapse:collapse; display:block; overflow-x:auto; }
.article-body figure { margin:20px 0; }
.article-body figcaption, .article-body p.img-caption { text-align:center; color:var(--gray); font-size:.85rem; margin-top:-10px; }
.article-body p[style*="center"] img, .article-body section img { margin-left:auto; margin-right:auto; }
.article-meta { color:var(--gray); font-size:.88rem; margin-bottom:24px; padding-bottom:18px; border-bottom:1px solid var(--gray-light); }
.pagination { display:flex; gap:8px; justify-content:center; margin-top:48px; }
.pagination a, .pagination span { min-width:40px; height:40px; padding:0 12px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--gray-light); border-radius:4px; font-size:.9rem; }
.pagination .current { background:var(--primary); color:#fff; border-color:var(--primary); }

/* ========== 响应式 ========== */
@media (max-width: 992px) {
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.4rem; }
  .nav-menu { display: none; }
  .menu-toggle { display: block; }
  .nav-phone { display: none; }
  .hero { padding-bottom: 60px; }
  .hero::before { width: 300px; height: 300px; right: -150px; }
  .content-layout { grid-template-columns:1fr; }
  .side-nav { position:static; }
}
@media (max-width: 576px) {
  .practice-grid, .team-grid, .news-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .practice-card { padding: 20px 16px; }
  .practice-icon { width: 44px; height: 44px; margin-bottom: 14px; }
  .practice-icon svg { width: 22px; height: 22px; }
  .practice-card h3 { font-size: 1rem; margin-bottom: 8px; }
  .practice-card p { font-size: 0.8rem; margin-bottom: 10px; line-height: 1.5; }
  .practice-tags { gap: 4px; margin-bottom: 10px; }
  .practice-tag { font-size: 0.68rem; padding: 2px 6px; }
  .practice-more { font-size: 0.8rem; }
  .team-info { padding: 14px; }
  .team-info h3 { font-size: 1rem; }
  .team-title { font-size: 0.75rem; }
  .team-specialty { font-size: 0.75rem; }
  .news-body { padding: 16px; }
  .news-card h3 { font-size: 0.9rem; }
  .news-card p { font-size: 0.78rem; }
  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-bottom: 28px; }
  .footer-brand { grid-column: span 2; }
  .footer { padding: 50px 0 0; }
  .footer-brand p { max-width: 100%; font-size: 0.85rem; margin-top: 12px; }
  .footer-col h4 { font-size: 0.9rem; margin-bottom: 12px; }
  .footer-col ul li { margin-bottom: 8px; }
  .footer-col ul li a { font-size: 0.82rem; }
  .footer-bottom { font-size: 0.72rem; padding: 18px 16px; line-height: 1.6; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .section-title { font-size: 1.8rem; }
  .hero { min-height: auto; padding-top: 100px; padding-bottom: 40px; overflow: visible; flex-direction: column; justify-content: center; }
  .hero::before { display: none; }
  .hero-content { max-width: 100%; }
  .hero h1 { font-size: 1.9rem; line-height: 1.35; }
  .hero-desc { font-size: 1rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .hero-stats { margin-top: 40px; }
  .stat-item { padding: 20px 12px; }
  .stat-num { font-size: 1.6rem; }
  .about-features { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .about-img { height: 280px; }
  .contact-form { padding: 24px; }
  .article-body { padding:24px; }
  .lawyer-photo { float: none; display: block; margin: 0 auto 20px; max-width: 100%; }
}

/* ========== 移动端展开菜单 ========== */
@media (max-width: 992px) {
  .nav-menu.open {
    display: flex;
    position: absolute;
    top: 80px; left: 0; right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
  }
  .nav-menu.open a { padding: 12px 0; border-bottom: 1px solid var(--gray-light); }
  .nav-menu.open a::after { display:none; }
}

.logo-img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}
