/* === 崔慧慧律师 · 建设工程法律服务 === */
/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0f2b46;
  --primary-light: #1a3d5c;
  --accent: #e67e22;
  --accent-light: #f0a050;
  --accent-dark: #c96a15;
  --text: #2d3748;
  --text-light: #4a5568;
  --text-muted: #718096;
  --bg: #ffffff;
  --bg-light: #f7f8fa;
  --bg-dark: #0b1e33;
  --border: #e2e8f0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --max-width: 1080px;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.75;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 0 20px;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

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

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* === Hero === */
.hero {
  padding: 140px 20px 80px;
  background: 
    linear-gradient(150deg, var(--primary) 0%, #0d2338 40%, var(--primary-light) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(230,126,34,0.03) 3px, rgba(230,126,34,0.03) 6px),
    radial-gradient(ellipse at 80% 20%, rgba(230,126,34,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(230,126,34,0.2);
  border: 1px solid rgba(230,126,34,0.35);
  border-radius: 50px;
  padding: 6px 20px;
  font-size: 0.9rem;
  margin-bottom: 24px;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 1.15rem;
  font-weight: 400;
  opacity: 0.85;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.hero-sub {
  font-size: 1rem;
  opacity: 0.7;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-light);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(230,126,34,0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
  color: white;
}

/* === Section Common === */
.section {
  padding: 80px 20px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 48px;
}

/* === Practice Areas === */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.practice-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.25s;
}

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

.practice-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

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

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

/* === About === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}

.about-photo {
  background: var(--bg-light);
  border-radius: var(--radius);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border: 1px solid var(--border);
}

.about-text h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.cred-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.cred-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
}

/* === Credentials === */
.cred-section {
  background: var(--bg-light);
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

.cred-item {
  padding: 24px 16px;
}

.cred-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.cred-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* === Knowledge Base === */
.kb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.kb-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s;
}

.kb-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.kb-card .tag {
  display: inline-block;
  background: #fef5e7;
  color: var(--accent-dark);
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
  font-weight: 500;
}

.kb-card h4 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.5;
}

.kb-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.kb-card .date {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.kb-more {
  text-align: center;
  margin-top: 36px;
}

/* === Contact === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.contact-emoji {
  font-size: 1.2rem;
  min-width: 28px;
}

.contact-item .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-item .value {
  font-size: 0.95rem;
  color: var(--text);
}

.contact-qr {
  text-align: center;
}

.contact-qr .qr-placeholder {
  width: 180px;
  height: 180px;
  margin: 0 auto 12px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* === Footer === */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 32px 20px;
  font-size: 0.85rem;
}

.footer a {
  color: rgba(255,255,255,0.8);
}

/* === Article Page === */
.article-page {
  padding: 120px 20px 80px;
}

.article-inner {
  max-width: 760px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 36px;
}

.article-header .tag {
  display: inline-block;
  background: #fef5e7;
  color: var(--accent-dark);
  font-size: 0.8rem;
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
  font-weight: 500;
}

.article-header h1 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-header .meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.article-body {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
}

.article-body h2 {
  font-size: 1.3rem;
  color: var(--primary);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.article-body h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 24px 0 12px;
}

.article-body p {
  margin-bottom: 16px;
}

.article-body ul, .article-body ol {
  margin: 12px 0 20px 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body strong {
  color: var(--primary);
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .hero { padding: 100px 20px 60px; }
  .hero h1 { font-size: 1.6rem; }

  .practice-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .kb-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
