/* ============================================
   丁亮亮律师网站 - 全站共享样式
   移动端优先 · 专业法律网站设计
   ============================================ */

/* --- CSS Reset --- */
.biz *,.biz *::before,.biz *::after { box-sizing: border-box; margin: 0; padding: 0; }
.biz html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
.biz body { font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; line-height: 1.7; color: #2d3748; background: #ffffff; }
.biz img,.biz svg { max-width: 100%; display: block; }
.biz a { color: inherit; text-decoration: none; }
.biz ul { list-style: none; }

/* --- CSS Variables --- */
:root {
  --primary: #1a365d;
  --primary-light: #2a4a7f;
  --primary-dark: #0f2440;
  --accent: #c5a572;
  --accent-light: #d4b88a;
  --accent-dark: #a8884f;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --bg-dark: #1a365d;
  --text: #2d3748;
  --text-light: #718096;
  --text-muted: #a0aec0;
  --border: #e2e8f0;
  --border-dark: #cbd5e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 14px;
  --max-width: 1180px;
  --header-height: 64px;
}

/* --- Layout Container --- */
.biz .container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ============================================
   Header / Navigation
   ============================================ */
.biz .site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.biz .header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: var(--header-height);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.biz .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
  white-space: nowrap;
}
.biz .logo-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; flex-shrink: 0;
}
.biz .header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  padding: 7px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s;
}
.biz .header-phone:hover { background: var(--accent-dark); }
.biz .header-phone svg { width: 16px; height: 16px; }

/* Desktop Nav */
.biz .main-nav { display: none; }
.biz .main-nav ul { display: flex; gap: 4px; }
.biz .main-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--text);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.biz .main-nav a:hover,.biz .main-nav a.active { background: var(--bg-alt); color: var(--primary); }

/* Mobile menu toggle */
.biz .menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
}
.biz .menu-toggle span { display: block; width: 18px; height: 2px; background: var(--primary); margin: 0 auto; transition: 0.3s; }
.biz .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.biz .menu-toggle.open span:nth-child(2) { opacity: 0; }
.biz .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.biz .mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  padding: 8px 0;
}
.biz .mobile-nav.open { display: block; }
.biz .mobile-nav a {
  display: block;
  padding: 12px 24px;
  font-size: 16px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.biz .mobile-nav a:last-child { border-bottom: none; }
.biz .mobile-nav a.active,.biz .mobile-nav a:hover { background: var(--bg-alt); color: var(--primary); }
.biz .mobile-nav .nav-phone-btn {
  margin: 12px 20px;
  padding: 12px;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  border-bottom: none;
}

@media (min-width: 769px) {
.biz .main-nav { display: block; }
.biz .menu-toggle { display: none; }
}

/* ============================================
   Hero Banner
   ============================================ */
.biz .hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
  padding: 48px 0 44px;
  position: relative;
  overflow: hidden;
}
.biz .hero::before {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(197,165,114,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.biz .hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.biz .hero h1 {
  font-size: 22px;
  line-height: 1.5;
  margin-bottom: 12px;
  font-weight: 700;
}
.biz .hero .hero-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  line-height: 1.6;
}
.biz .hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.biz .hero-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(197,165,114,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.biz .hero-phone-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(197,165,114,0.45); }
.biz .hero-phone-btn svg { width: 22px; height: 22px; }
.biz .hero-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

@media (min-width: 641px) {
.biz .hero { padding: 64px 0; }
.biz .hero h1 { font-size: 32px; }
.biz .hero .hero-subtitle { font-size: 18px; }
.biz .hero-phone-btn { font-size: 22px; padding: 16px 36px; }
}
@media (min-width: 1025px) {
.biz .hero h1 { font-size: 36px; }
.biz .hero-cta { flex-direction: row; align-items: center; }
}

/* ============================================
   Main Content
   ============================================ */
.biz .main-content { padding: 40px 0 60px; }
.biz .main-content > .container > section { margin-bottom: 48px; }
.biz .main-content > .container > section:last-child { margin-bottom: 0; }

.biz .section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}
@media (min-width: 641px) { .section-title { font-size: 26px; } }

/* Intro paragraph */
.biz .intro-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg-alt);
  padding: 20px 24px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 8px;
}
@media (min-width: 641px) { .intro-text { font-size: 17px; padding: 24px 28px; } }

/* Service list */
.biz .service-list { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 641px) { .biz .service-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1025px) { .biz .service-list { grid-template-columns: repeat(4, 1fr); } }

.biz .service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.biz .service-card:hover { box-shadow: var(--shadow-lg); border-color: var(--accent-light); }
.biz .service-card .service-icon {
  width: 48px; height: 48px;
  background: var(--bg-alt);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.biz .service-card h3 { font-size: 18px; color: var(--primary); margin-bottom: 10px; }
.biz .service-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }
.biz .service-card .service-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 14px;
}
.biz .service-card .service-link:hover { color: var(--accent); }

/* Feature list */
.biz .feature-list { display: grid; gap: 16px; }
@media (min-width: 641px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }

.biz .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.biz .feature-check {
  width: 24px; height: 24px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; flex-shrink: 0;
  margin-top: 2px;
}
.biz .feature-item p { font-size: 15px; color: var(--text); line-height: 1.6; }

/* Contact info block */
.biz .contact-block {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.biz .contact-block h2 { color: #fff; }
.biz .contact-block .contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 16px;
}
.biz .contact-block .contact-row:last-child { margin-bottom: 0; }
.biz .contact-block .contact-label { color: rgba(255,255,255,0.6); width: 80px; flex-shrink: 0; font-size: 14px; }
.biz .contact-block .contact-value { color: #fff; font-weight: 500; }
.biz .contact-block .contact-value a { color: var(--accent-light); }
.biz .contact-block .contact-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

/* FAQ Section */
.biz .faq-list { display: grid; gap: 12px; }
.biz .faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.biz .faq-item summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  transition: background 0.2s;
}
.biz .faq-item summary::-webkit-details-marker { display: none; }
.biz .faq-item summary::before {
  content: "+";
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
  font-weight: 400;
  line-height: 1;
}
.biz .faq-item[open] summary::before { transform: rotate(45deg); }
.biz .faq-item summary:hover { background: var(--bg-alt); }
.biz .faq-item .faq-answer {
  padding: 0 20px 16px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
}

/* Case summary */
.biz .case-summary {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.biz .case-summary p { font-size: 15px; line-height: 1.8; margin-bottom: 12px; }
.biz .case-summary p:last-child { margin-bottom: 0; }
.biz .case-disclaimer {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fff8e8;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  color: var(--text-light);
}
.biz .case-disclaimer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.biz .case-disclaimer a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* ============================================
   About Page
   ============================================ */
.biz .about-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}
.biz .about-hero h1 { font-size: 24px; margin-bottom: 8px; }
.biz .about-hero p { font-size: 15px; color: rgba(255,255,255,0.8); }
@media (min-width: 641px) { .about-hero h1 { font-size: 30px; } .about-hero p { font-size: 17px; } }

.biz .about-section {
  margin-bottom: 40px;
}
.biz .about-section h2 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
@media (min-width: 641px) { .about-section h2 { font-size: 24px; } }
.biz .about-section p { font-size: 15px; line-height: 1.9; margin-bottom: 12px; color: var(--text); }
.biz .about-section ul { padding-left: 0; }
.biz .about-section ul li {
  font-size: 15px;
  line-height: 1.9;
  padding: 6px 0 6px 28px;
  position: relative;
  color: var(--text);
}
.biz .about-section ul li::before {
  content: "\2713";
  position: absolute;
  left: 0; top: 6px;
  color: var(--accent);
  font-weight: 700;
}

/* Profile photo */
.biz .profile-photo {
  width: 180px; height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-alt) 0%, #e8ecf1 100%);
  border: 4px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  overflow: hidden;
  position: relative;
}
.biz .profile-photo svg { width: 80px; height: 80px; color: var(--border-dark); }
.biz .profile-photo .photo-label {
  position: absolute;
  bottom: -28px; left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
@media (min-width: 641px) {
.biz .profile-photo { width: 220px; height: 220px; }
}

/* ============================================
   Practice Area Detail Pages
   ============================================ */
.biz .practice-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 36px 0;
}
.biz .practice-hero h1 { font-size: 22px; margin-bottom: 6px; }
.biz .practice-hero .breadcrumb { font-size: 13px; color: rgba(255,255,255,0.6); }
.biz .practice-hero .breadcrumb a { color: rgba(255,255,255,0.8); }
@media (min-width: 641px) { .practice-hero h1 { font-size: 28px; } }

.biz .practice-section { margin-bottom: 40px; }
.biz .practice-section h2 {
  font-size: 19px;
  color: var(--primary);
  margin-bottom: 16px;
}
@media (min-width: 641px) { .practice-section h2 { font-size: 22px; } }
.biz .practice-section p { font-size: 15px; line-height: 1.9; margin-bottom: 12px; }
.biz .practice-section ul li {
  font-size: 15px;
  line-height: 1.9;
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.biz .practice-section ul li:last-child { border-bottom: none; }
.biz .practice-section ul li::before {
  content: "\25B8";
  position: absolute;
  left: 4px; top: 8px;
  color: var(--accent);
}

/* CTA box at bottom of practice pages */
.biz .practice-cta {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-top: 40px;
}
.biz .practice-cta h2 { color: #fff; margin-bottom: 12px; }
.biz .practice-cta p { font-size: 15px; color: rgba(255,255,255,0.85); margin-bottom: 16px; }
.biz .practice-cta .btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 700;
  transition: background 0.2s;
}
.biz .practice-cta .btn-phone:hover { background: var(--accent-dark); }

/* Other practice areas links */
.biz .other-practices {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.biz .other-practices h2 { font-size: 18px; color: var(--primary); margin-bottom: 16px; }
.biz .other-practices-grid { display: grid; gap: 12px; }
@media (min-width: 641px) { .other-practices-grid { grid-template-columns: repeat(2, 1fr); } }
.biz .other-practice-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.biz .other-practice-link:hover { border-color: var(--accent-light); box-shadow: var(--shadow); }
.biz .other-practice-link .op-icon { font-size: 24px; flex-shrink: 0; }
.biz .other-practice-link .op-text { font-size: 15px; color: var(--primary); font-weight: 600; }
.biz .other-practice-link .op-arrow { margin-left: auto; color: var(--accent); }

/* ============================================
   Consultation Page
   ============================================ */
.biz .consult-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.biz .consult-card h3 { font-size: 17px; color: var(--primary); margin-bottom: 12px; }
.biz .consult-card p { font-size: 15px; line-height: 1.8; margin-bottom: 8px; }
.biz .consult-card .highlight { color: var(--accent-dark); font-weight: 600; }

/* ============================================
   Contact Page
   ============================================ */
.biz .contact-grid { display: grid; gap: 24px; }
@media (min-width: 641px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.biz .contact-info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.biz .contact-info-card h2,.biz .contact-info-card h3 { font-size: 20px; color: var(--primary); margin-bottom: 20px; }
.biz .contact-info-row {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.biz .contact-info-row:last-child { border-bottom: none; }
.biz .contact-info-row .ci-label {
  width: 90px;
  flex-shrink: 0;
  font-size: 14px;
  color: var(--text-light);
}
.biz .contact-info-row .ci-value { font-size: 15px; color: var(--text); font-weight: 500; }
.biz .contact-info-row .ci-value a { color: var(--accent-dark); font-weight: 700; }

.biz .contact-map-placeholder {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}
.biz .contact-map-placeholder svg { width: 64px; height: 64px; color: var(--border-dark); margin-bottom: 12px; }
.biz .contact-map-placeholder p { font-size: 14px; color: var(--text-light); }
.biz .contact-map-img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.biz .contact-big-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--accent);
  color: #fff;
  padding: 20px 32px;
  border-radius: 30px;
  font-size: 24px;
  font-weight: 700;
  margin: 24px auto;
  max-width: 320px;
  box-shadow: 0 4px 15px rgba(197,165,114,0.3);
}

/* ============================================
   Global Footer
   ============================================ */
.biz .site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 0;
  margin-top: 0;
}
.biz .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.biz .footer-nav a { font-size: 14px; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.biz .footer-nav a:hover { color: var(--accent-light); }
.biz .footer-contact { font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.biz .footer-contact strong { color: #fff; }
.biz .footer-contact a { color: var(--accent-light); }
.biz .footer-disclaimer {
  background: rgba(0,0,0,0.2);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.biz .footer-disclaimer p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.5); }
.biz .footer-disclaimer strong { color: rgba(255,255,255,0.7); }
.biz .footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ============================================
   Mobile Sticky Call Bar
   ============================================ */
.biz .mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  text-align: center;
  z-index: 998;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}
.biz .mobile-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.biz .mobile-call-bar svg { width: 20px; height: 20px; }
@media (max-width: 768px) {
.biz .mobile-call-bar { display: block; }
.biz body { padding-bottom: 60px; }
}

/* ============================================
   Utility
   ============================================ */
.biz .text-center { text-align: center; }
.biz .mt-40 { margin-top: 40px; }
