/* ===========================
   高翠平律师网站 - 样式表
   =========================== */

/* CSS 变量 */
:root {
  --primary: #0a2463;
  --primary-light: #0a2463;
  --accent: #d4af37;
  --accent-light: #f0d78c;
  --bg-light: #f7f8fc;
  --bg-white: #ffffff;
  --text-dark: #1a1a2e;
  --text-body: #4a4a5a;
  --text-light: #7a7a8a;
  --border: #e8eaef;
  --shadow: rgba(10, 36, 99, 0.08);
  --shadow-lg: rgba(10, 36, 99, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

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

body {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   导航栏
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  box-shadow: 0 2px 12px var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  color: var(--text-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

.mobile-menu {
  display: none;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}

.mobile-menu a:last-child { border-bottom: none; }

/* ===========================
   通用 Section
   =========================== */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
}

.section-cta {
  text-align: center;
  margin-top: 40px;
}

/* ===========================
   按钮
   =========================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,58,92,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1.05rem;
}

/* ===========================
   Hero 区域
   =========================== */
.hero {
  background: linear-gradient(135deg, #0a2463 0%, #0f2439 60%, #1a2a4a 100%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.2);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--accent);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  color: #fff;
}

.hero p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-actions .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.hero-actions .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

.hero-visual {
  flex-shrink: 0;
}

.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 32px;
  width: 280px;
  backdrop-filter: blur(8px);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.hero-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.hero-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin: 0;
}

/* ===========================
   专业领域
   =========================== */
.expertise-section {
  background: var(--bg-light);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.expertise-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-lg);
  border-color: var(--accent);
}

.expertise-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.expertise-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.expertise-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===========================
   核心优势
   =========================== */
.advantages-section {
  background: var(--bg-white);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

.advantage-item {
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}

.adv-num {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(26,58,92,0.07);
  line-height: 1;
  margin-bottom: 12px;
  font-family: Georgia, serif;
}

.advantage-item h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.advantage-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===========================
   博客
   =========================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--shadow);
}

.blog-tag {
  display: inline-block;
  background: rgba(26,58,92,0.07);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.blog-card h3 {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.5;
}

.blog-card h3 a {
  color: var(--text-dark);
}

.blog-card h3 a:hover {
  color: var(--primary);
}

.blog-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ===========================
   咨询入口
   =========================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #0f2439 100%);
  padding: 80px 0;
}

.cta-box {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 16px;
}

.cta-box > p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  margin-bottom: 32px;
  line-height: 1.8;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.cta-phone {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
}

.cta-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
}

/* ===========================
   页脚
   =========================== */
.site-footer {
  background: #0d1b2a;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col p,
.footer-col li {
  font-size: 0.88rem;
  line-height: 1.8;
}

.footer-col li a {
  color: rgba(255,255,255,0.6);
  display: block;
  padding: 4px 0;
}

.footer-col li a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* 裸 <footer> 标签通用居中样式 */
footer {
  background: #0d1b2a;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
}

footer p {
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  margin: 0;
}

/* ===========================
   响应式
   =========================== */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
  
  .hero .container { flex-direction: column; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { gap: 24px; }
  .hero-visual { display: none; }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .cta-actions {
    flex-direction: column;
  }

  .section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
}

/* ===========================
   页面通用内容样式（子页面共用）
   =========================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0f2439 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #fff;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
}

.page-content {
  padding: 60px 0;
}

.content-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 32px;
}

.content-card h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}

.content-card h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin: 24px 0 10px;
}

.content-card p {
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 12px;
}

.content-card ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.content-card ul li {
  list-style: disc;
  color: var(--text-body);
  padding: 4px 0;
  line-height: 1.7;
}

/* ===========================
   联系页面
   =========================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--border);
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info-item:last-child { margin-bottom: 0; }

.contact-info-item .ci-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* 表单 */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 8px;
}

.form-success {
  display: none;
  background: #e8f5e9;
  border: 1px solid #4caf50;
  border-radius: var(--radius-sm);
  padding: 16px;
  color: #2e7d32;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ========== 文章详情页专用样式 v2 ========== */
.article-title {
  font-family: "Source Han Sans CN Bold", "Microsoft YaHei Bold", sans-serif;
  font-size: 30px;
  color: #0a2463;
  text-align: center;
  letter-spacing: 3px;
  font-weight: 700;
  margin: 20px 0;
}

.article-author {
  font-size: 19px;
  color: #333333;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.chapter-title {
  font-family: "Source Han Sans CN Bold", "Microsoft YaHei Bold", sans-serif;
  font-size: 23px;
  color: #194075;
  font-weight: 600;
  margin: 25px 0 15px;
  padding-left: 8px;
  border-left: 3px solid #194075;
}

.item-title {
  font-size: 17px;
  font-weight: 500;
  color: #0a2463;
  margin: 15px 0 8px;
}

.article-content {
  font-size: 15px;
  margin: 10px 0;
  line-height: 1.9;
}

.key-word {
  color: #9E2B25;
  font-weight: 500;
}

.contact-box {
  font-size: 15px;
  text-align: center;
  margin: 35px 0 20px;
  padding: 15px;
  border-top: 1px solid #eee;
}

.disclaimer {
  font-size: 12px;
  color: #666666;
  text-align: center;
  margin-top: 20px;
  line-height: 1.6;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  .article-title {
    font-size: 24px;
    letter-spacing: 2px;
  }
  .article-author {
    font-size: 16px;
  }
  .chapter-title {
    font-size: 20px;
  }
  .item-title {
    font-size: 16px;
  }
  .article-content {
    font-size: 14px;
  }
}

/* 作者简介模块 */
.author-bio { margin-top: 40px; padding: 24px 28px; background: linear-gradient(135deg, #f8f4eb 0%, #fef9ef 100%); border-radius: 8px; border-left: 4px solid #d4af37; }
.author-bio-inner { display: flex; gap: 16px; align-items: flex-start; }
.author-photo { flex-shrink: 0; width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.author-info { flex: 1; }
.author-name { font-size: 16px; font-weight: bold; color: #0a2463; margin-bottom: 6px; }
.author-desc { font-size: 14px; line-height: 1.8; color: #555; margin: 0; }
.author-phone { color: #0a2463; font-weight: bold; text-decoration: none; background: #d4af37; padding: 1px 8px; border-radius: 4px; }
@media (max-width: 768px) {
  .author-bio-inner { flex-direction: column; align-items: center; text-align: center; }
}
