/* ===== 焦梁律师 - 主样式表 ===== */
:root {
  --gold: #c9a962;
  --gold-light: #e0cc91;
  --gold-dark: #a6853a;
  --navy: #0f1923;
  --navy-light: #1a2a3a;
  --white: #f8f7f4;
  --gray: #8b9197;
  --gray-light: #e5e2db;
  --danger: #c0392b;
  --radius: 6px;
  --shadow: 0 2px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);
  --font-sans: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-serif: 'Noto Serif SC', 'SimSun', 'STSong', serif;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: #2c2c2c;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-dark); }

/* ===== 顶部导航 ===== */
.nav { position: fixed; top: 0; width: 100%; z-index: 100; background: rgba(15,25,35,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(201,169,98,0.2); padding: 0 2rem; transition: var(--transition); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-brand { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: var(--gold); letter-spacing: 2px; }
.nav-brand span { color: var(--white); font-size: 0.8rem; font-family: var(--font-sans); margin-left: 0.5rem; opacity: 0.7; }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { color: rgba(255,255,255,0.75); font-size: 0.875rem; letter-spacing: 1px; text-transform: uppercase; padding: 0.25rem 0; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--gold); transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; color: var(--gold); font-size: 1.5rem; cursor: pointer; }

/* 语言切换 */
.nav-lang { margin-left: 2rem; }
.lang-switch { color: rgba(255,255,255,0.6); font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; padding: 0.25rem 0.5rem; border: 1px solid rgba(255,255,255,0.2); border-radius: 3px; transition: var(--transition); }
.lang-switch:hover { color: var(--gold); border-color: var(--gold); }

/* 微信按钮 */
.wechat-btn { cursor: pointer; }

/* ===== 英雄区 ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background: linear-gradient(135deg, var(--navy) 0%, #1a2535 40%, #0f1923 100%); overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 800px; height: 800px; background: radial-gradient(circle, rgba(201,169,98,0.06) 0%, transparent 70%); border-radius: 50%; }
.hero::after { content: ''; position: absolute; bottom: -10%; left: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(201,169,98,0.04) 0%, transparent 70%); border-radius: 50%; }
.hero-pattern { position: absolute; inset: 0; opacity: 0.03; background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(201,169,98,0.3) 2px, rgba(201,169,98,0.3) 3px), repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(201,169,98,0.3) 2px, rgba(201,169,98,0.3) 3px); }
.hero-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 8rem 2rem 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-text h2 { font-family: var(--font-serif); font-size: 3.5rem; font-weight: 900; color: var(--white); line-height: 1.15; margin-bottom: 1rem; }
.hero-text h2 em { font-style: normal; color: var(--gold); }
.hero-text .subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.6); margin-bottom: 0.75rem; letter-spacing: 2px; }
.hero-text .location { font-size: 1rem; color: var(--white); margin-bottom: 1.5rem; font-weight: 500; }
.hero-text .tags { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.hero-text .tag { background: rgba(201,169,98,0.12); border: 1px solid rgba(201,169,98,0.25); color: var(--gold-light); padding: 0.35rem 1rem; border-radius: 50px; font-size: 0.8rem; letter-spacing: 0.5px; }
.hero-text .cta { display: flex; gap: 1rem; }
.hero-text .btn { display: inline-block; padding: 0.75rem 2rem; border-radius: var(--radius); font-size: 0.875rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; transition: var(--transition); cursor: pointer; }
.btn-primary { background: var(--gold); color: var(--navy); border: 2px solid var(--gold); }
.btn-primary:hover { background: var(--gold-light); color: var(--navy); }
.btn-outline { border: 2px solid rgba(201,169,98,0.4); color: var(--gold-light); background: transparent; }
.btn-outline:hover { border-color: var(--gold); background: rgba(201,169,98,0.08); color: var(--gold); }
.btn-baike { background: linear-gradient(135deg, #2932E1 0%, #4E6EF2 100%); color: #fff; border: none; box-shadow: 0 4px 16px rgba(41,50,225,0.35); }
.btn-baike:hover { background: linear-gradient(135deg, #1e27c8 0%, #3f5ce0 100%); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(41,50,225,0.45); }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-portrait { width: 320px; height: 320px; border-radius: 50%; border: 4px solid var(--gold); box-shadow: 0 0 80px rgba(201,169,98,0.15); object-fit: cover; background: var(--navy-light); }
.hero-badge { position: absolute; bottom: 1rem; right: 2rem; background: var(--navy); border: 1px solid var(--gold); color: var(--gold); padding: 0.75rem 1.5rem; border-radius: var(--radius); font-size: 0.8rem; letter-spacing: 1px; box-shadow: var(--shadow-lg); }

/* ===== 数据条 ===== */
.stats-bar { background: var(--navy); border-top: 1px solid rgba(201,169,98,0.15); border-bottom: 1px solid rgba(201,169,98,0.15); }
.stats-inner { max-width: 1200px; margin: 0 auto; padding: 3rem 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item .stat-num { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 900; color: var(--gold); line-height: 1; }
.stat-item .stat-label { color: rgba(255,255,255,0.55); font-size: 0.8rem; margin-top: 0.5rem; letter-spacing: 1px; text-transform: uppercase; }

/* ===== 通用段落 ===== */
.section { padding: 6rem 2rem; }
.section-dark { background: #f7f5f0; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-family: var(--font-serif); font-size: 2.25rem; font-weight: 900; color: var(--navy); margin-bottom: 0.75rem; }
.section-header p { color: var(--gray); font-size: 1rem; max-width: 600px; margin: 0 auto; }
.section-header .divider { width: 60px; height: 3px; background: var(--gold); margin: 1rem auto 0; }

/* ===== 业务领域 ===== */
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.practice-card { background: #fff; border: 1px solid var(--gray-light); border-radius: var(--radius); padding: 2.5rem 2rem; transition: var(--transition); text-align: center; }
.practice-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.practice-icon { font-size: 2.5rem; margin-bottom: 1.25rem; }
.practice-card h3 { font-family: var(--font-serif); font-size: 1.25rem; color: var(--navy); margin-bottom: 0.75rem; }
.practice-card p { color: var(--gray); font-size: 0.9rem; line-height: 1.6; }

/* ===== 案例卡片 ===== */
.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.case-card { background: #fff; border: 1px solid var(--gray-light); border-radius: var(--radius); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case-card-image { height: 180px; background: linear-gradient(135deg, var(--navy-light), var(--navy)); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 3rem; position: relative; }
.case-card-image .case-tag { position: absolute; top: 1rem; left: 1rem; background: var(--gold); color: var(--navy); padding: 0.2rem 0.75rem; border-radius: 50px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px; }
.case-card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.case-card-body h3 { font-family: var(--font-serif); font-size: 1.15rem; color: var(--navy); margin-bottom: 0.75rem; line-height: 1.5; }
.case-card-body p { color: var(--gray); font-size: 0.875rem; line-height: 1.6; flex: 1; }
.case-card-body .case-meta { margin-top: 1rem; font-size: 0.75rem; color: var(--gold-dark); letter-spacing: 0.5px; }

/* ===== 文章列表 ===== */
.articles-list { display: flex; flex-direction: column; gap: 1.5rem; }
.article-card { background: #fff; border: 1px solid var(--gray-light); border-radius: var(--radius); padding: 1.75rem 2rem; transition: var(--transition); display: flex; gap: 2rem; align-items: flex-start; }
.article-card:hover { transform: translateX(4px); box-shadow: var(--shadow); border-left: 3px solid var(--gold); }
.article-date { font-size: 0.75rem; color: var(--gold-dark); white-space: nowrap; padding-top: 0.25rem; letter-spacing: 0.5px; }
.article-info h3 { font-family: var(--font-serif); font-size: 1.1rem; color: var(--navy); margin-bottom: 0.5rem; }
.article-info p { color: var(--gray); font-size: 0.85rem; line-height: 1.6; }

/* ===== 照片集 ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--gray-light); cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,25,35,0.8) 0%, transparent 50%); opacity: 0; transition: var(--transition); display: flex; align-items: flex-end; padding: 1.5rem; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-size: 0.85rem; letter-spacing: 0.5px; }

/* ===== 关于我 ===== */
.about-grid { display: grid; grid-template-columns: 350px 1fr; gap: 4rem; align-items: start; }
.about-sidebar { text-align: center; }
.about-portrait { width: 220px; height: 220px; border-radius: 50%; border: 3px solid var(--gold); object-fit: cover; margin: 0 auto 1.5rem; box-shadow: var(--shadow); }
.about-sidebar h3 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--navy); }
.about-sidebar .role { color: var(--gold-dark); font-size: 0.9rem; margin: 0.25rem 0 1rem; }
.about-sidebar .info-list { list-style: none; text-align: left; font-size: 0.85rem; color: var(--gray); }
.about-sidebar .info-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--gray-light); display: flex; gap: 0.75rem; }
.about-sidebar .info-list .info-icon { flex-shrink: 0; }
.about-content h2 { font-family: var(--font-serif); font-size: 1.75rem; color: var(--navy); margin-bottom: 1.5rem; }
.about-content p { margin-bottom: 1.25rem; line-height: 1.8; color: #444; }
.about-content .timeline { margin-top: 3rem; }
.about-content .timeline h3 { font-family: var(--font-serif); font-size: 1.25rem; color: var(--navy); margin-bottom: 1.5rem; }
.timeline-item { display: flex; gap: 1.5rem; padding-bottom: 2rem; position: relative; }
.timeline-item::before { content: ''; position: absolute; left: 0.4rem; top: 0.6rem; bottom: 0; width: 2px; background: var(--gray-light); }
.timeline-item:last-child::before { display: none; }
.timeline-year { flex-shrink: 0; width: 1rem; height: 1rem; background: var(--gold); border-radius: 50%; position: relative; z-index: 1; margin-top: 0.25rem; }
.timeline-body .time-label { font-size: 0.75rem; color: var(--gold-dark); letter-spacing: 0.5px; }
.timeline-body h4 { font-size: 0.95rem; color: var(--navy); margin: 0.2rem 0 0.3rem; }
.timeline-body p { font-size: 0.85rem; color: var(--gray); margin: 0; }

/* ===== 联系CTA ===== */
.cta-section { background: linear-gradient(135deg, var(--navy) 0%, #1a2535 100%); padding: 5rem 2rem; text-align: center; }
.cta-section h2 { font-family: var(--font-serif); font-size: 2rem; color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.6); margin-bottom: 2rem; font-size: 1rem; }
.cta-section .btn { margin: 0 0.5rem; }

/* ===== 页脚 ===== */
.footer { background: var(--navy); color: rgba(255,255,255,0.4); padding: 3rem 2rem; font-size: 0.8rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer a { color: rgba(255,255,255,0.5); }
.footer a:hover { color: var(--gold); }

/* ===== 文章正文排版 ===== */
.content { text-align: justify; }
.content p { text-indent: 2em; margin-bottom: 1.2rem; }
.content h2 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--navy); margin: 2.5rem 0 1.2rem; padding-top: 1rem; border-top: 1px solid var(--gray-light); }
.content h2:first-of-type { border-top: none; }
.content h3 { font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy); margin: 2rem 0 1rem; }
.content ul, .content ol { margin: 1rem 0 1.2rem 2em; }
.content li { margin-bottom: 0.6rem; line-height: 1.9; }
.content blockquote { border-left: 3px solid var(--gold); background: rgba(201,169,98,0.06); padding: 0.8rem 1.2rem; margin: 1.2rem 0; color: #555; }
.content strong { color: var(--navy); }
.content a { color: var(--gold-dark); text-decoration: underline; }

/* 英文文章不首行缩进 */
html[lang="en"] .content p { text-indent: 0; }

/* ===== Hero 社交入口 ===== */
.social-links { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; max-width: 360px; }
.social-link-item { display: flex; align-items: center; gap: 1rem; padding: 0.6rem 0.9rem; border-radius: 12px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); transition: var(--transition); }
.social-link-item img { width: 40px; height: 40px; flex-shrink: 0; }
.social-link-text { display: flex; flex-direction: column; gap: 0.15rem; }
.social-link-name { font-size: 1rem; font-weight: 600; color: var(--white); line-height: 1.3; }
.social-link-desc { font-size: 0.8rem; color: rgba(255,255,255,0.6); line-height: 1.3; }
.social-link-item:hover { transform: translateY(-2px); border-color: var(--gold); background: rgba(255,255,255,0.12); text-decoration: none; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero-text h2 { font-size: 2.5rem; }
  .hero-text .tags { justify-content: center; }
  .hero-text .cta { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-portrait { width: 200px; height: 200px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .practice-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; position: fixed; top: 64px; left: 0; right: 0; background: rgba(15,25,35,0.98); flex-direction: column; padding: 2rem; gap: 1.5rem; }
  .nav-links.open { display: flex; }
  .nav-lang { margin-left: 0; margin-top: 1rem; }
  .nav-toggle { display: block; }
  .article-card { flex-direction: column; gap: 0.5rem; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
}
