:root {
  --primary: #1a365d;
  --primary-light: #2c5282;
  --accent: #c9a227;
  --accent-light: #f6e05e;
  --text: #1a202c;
  --text-muted: #4a5568;
  --bg: #f7fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --danger: #c53030;
  --success: #276749;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--primary);
  font-size: 1.1rem;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.phone-top {
  display: none;
  align-items: center;
  gap: 6px;
  color: var(--danger);
  font-weight: 700;
  font-size: 1rem;
}

.menu-toggle {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.main-nav {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.main-nav.open {
  display: block;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  border-bottom: 1px solid var(--border);
}

.main-nav a {
  display: block;
  padding: 14px 16px;
  color: var(--text);
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--bg);
  color: var(--primary);
  text-decoration: none;
}

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .main-nav {
    display: block !important;
    position: static;
    box-shadow: none;
    border-top: none;
    max-height: none;
    overflow: visible;
    background: transparent;
  }
  .main-nav ul {
    display: flex;
    gap: 6px;
  }
  .main-nav li {
    border-bottom: none;
  }
  .main-nav a {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
  }
  .phone-top { display: flex; }
}

/* Hero */
.hero {
  background-color: var(--primary);
  background-image: url('../images/hero-shenzhen-bay.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 48px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,30,55,0.32) 0%, rgba(12,30,55,0.22) 45%, rgba(12,30,55,0.42) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(201,162,39,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  display: grid;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 820px;
  padding: 26px 30px;
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(8,22,42,0.58) 0%, rgba(8,22,42,0.40) 55%, rgba(8,22,42,0.0) 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  backdrop-filter: blur(6px);
}

.hero h1 {
  font-size: 1.7rem;
  line-height: 1.28;
  margin: 0 0 16px;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.hero h1 .highlight {
  color: var(--accent-light);
}

.hero-subtitle {
  font-size: 1.05rem;
  opacity: 0.95;
  margin-bottom: 24px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #1a202c;
}

.btn-primary:hover {
  background: #d4af37;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}

@media (min-width: 768px) {
  .hero h1 { font-size: 2.0rem; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 2.4rem; }
}

/* Section styles */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--white);
}

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

.section-label {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.7rem;
  color: var(--primary);
  margin: 0 0 12px;
  font-weight: 800;
}

.section-desc {
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .section-title { font-size: 2rem; }
}

/* Cards */
.cards-grid {
  display: grid;
  gap: 20px;
}

.area-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .area-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .area-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-weight: 600;
  color: var(--primary-light);
}

/* Practice areas */
/* Lawyer intro */
.intro-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.intro-content h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0 0 16px;
}

.intro-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.intro-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.intro-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text);
}

.intro-features li::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--success);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.intro-photo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-photo img {
  width: 240px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

@media (min-width: 1024px) {
  .intro-grid { grid-template-columns: 1fr auto; }
}

/* Philosophy banner */
.philosophy {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}

.philosophy h2 {
  font-size: 1.7rem;
  margin: 0 0 16px;
  font-weight: 800;
}

.philosophy p {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 800px;
  margin: 0 auto;
}

/* QR section */
.qr-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .qr-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .qr-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Article lists */
.article-list {
  display: grid;
  gap: 16px;
}

.article-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  display: block;
  transition: box-shadow 0.2s;
}

.article-item:hover {
  box-shadow: var(--shadow);
  text-decoration: none;
}

.article-item h4 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 1.05rem;
}

.article-item p {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.article-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: #718096;
}

.article-tag {
  background: #ebf8ff;
  color: var(--primary-light);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* Classic cases list */
.case-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.case-list li {
  border-bottom: 1px solid var(--border);
}

.case-list a.case-link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 4px;
  text-decoration: none;
  color: inherit;
}

.case-list a.case-link:hover .case-title {
  color: var(--accent);
}

.case-title {
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  min-width: 220px;
}

.case-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section-more {
  display: inline-block;
  margin-top: 14px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.section-more:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .case-list a.case-link { flex-direction: column; gap: 4px; }
  .case-title { min-width: 0; }
}

/* Persona / badge strip */
.persona-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

.persona-strip .p-chip {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* Article detail */
.article-detail {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.article-detail h1 {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0 0 12px;
  line-height: 1.35;
}

.article-detail .lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  border-left: 4px solid var(--accent);
  padding-left: 16px;
  margin-bottom: 24px;
}

.article-detail h2 {
  font-size: 1.2rem;
  color: var(--primary);
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.article-detail p {
  margin-bottom: 14px;
}

.article-detail ul, .article-detail ol {
  padding-left: 22px;
  margin-bottom: 18px;
}

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

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

/* FAQ */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 18px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 18px 18px;
  color: var(--text-muted);
}

/* 首页 FAQ：「查看更多」折叠逻辑（仅常显前 N 条，其余默认隐藏） */
.faq-list .faq-item.extra {
  display: none;
}
.faq-list.expanded .faq-item.extra {
  display: block;
}
.faq-toggle-wrap {
  text-align: center;
  margin-top: 1.5rem;
}
.faq-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 26px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--white);
  border: 1px solid var(--primary);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.faq-toggle-btn:hover {
  background: var(--primary);
  color: var(--white);
}
.faq-toggle-arrow {
  font-size: 0.9rem;
  transition: transform 0.2s;
}
.faq-list.expanded + .faq-toggle-wrap .faq-toggle-arrow {
  transform: rotate(180deg);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 24px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin: 0 0 16px;
  color: var(--primary);
}

.contact-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.contact-row .icon {
  width: 40px;
  height: 40px;
  background: #ebf8ff;
  color: var(--primary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-row h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-row p, .contact-row a {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 700;
}

.contact-row a.phone-link {
  color: var(--danger);
  font-size: 1.3rem;
}

.map-embed {
  border-radius: 10px;
  overflow: hidden;
  height: 340px;
  border: 1px solid var(--border);
  background: #edf2f7;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-caption {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

/* Footer */
.site-footer {
  background: #0f2744;
  color: rgba(255,255,255,0.75);
  padding: 40px 0 100px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

.footer-brand h3 {
  color: var(--white);
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.footer-links h4 {
  color: var(--white);
  margin: 0 0 12px;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 32px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  gap: 10px;
  z-index: 999;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}

.floating-cta .btn {
  flex: 1;
  padding: 12px 10px;
  font-size: 0.95rem;
}

.floating-cta .btn-phone {
  background: var(--danger);
  color: var(--white);
}

.floating-cta .btn-wechat {
  background: #07c160;
  color: var(--white);
}

@media (min-width: 1024px) {
  .floating-cta { display: none; }
}

/* Breadcrumb */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* Pagination / more */
.text-center {
  text-align: center;
}

.mt-4 { margin-top: 24px; }

/* Mobile tweaks */
@media (max-width: 640px) {
  .hero { padding: 36px 0 48px; }
  .hero h1 { font-size: 1.6rem; }
  .section { padding: 42px 0; }
  .section-title { font-size: 1.4rem; }
  .card { padding: 18px; }
}
