/* =========================================================
   广东莞升律师事务所 · 演示官网样式
   GuanSheng Law Firm —— style.css
   风格：深蓝 + 金色 · 高端严谨 · 响应式
   ========================================================= */

/* ---------- 变量 ---------- */
:root {
  --navy-900: #0b1622;
  --navy-800: #0d1b2a;
  --navy-700: #12263a;
  --navy-600: #1b3a52;
  --gold: #c9a227;
  --gold-light: #e0c05c;
  --gold-dark: #a8861d;
  --cream: #f6f1e6;
  --cream-2: #efe7d6;
  --text: #22303c;
  --text-light: #5b6a79;
  --white: #ffffff;
  --border: rgba(13, 27, 42, 0.12);

  --font-serif: "Songti SC", "Noto Serif SC", "SimSun", Georgia, serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  --shadow-sm: 0 4px 16px rgba(13, 27, 42, 0.08);
  --shadow-md: 0 12px 32px rgba(13, 27, 42, 0.12);
  --shadow-lg: 0 24px 60px rgba(13, 27, 42, 0.18);

  --radius: 14px;
  --header-h: 76px;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

::selection { background: var(--gold); color: var(--navy-900); }

/* 向下滚动滚动条 */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--navy-600); border-radius: 8px; }

/* ---------- 导航 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, height 0.35s ease;
}

.site-header.scrolled {
  background: rgba(13, 27, 42, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  height: 64px;
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 18px; font-family: var(--font-serif); letter-spacing: 1px; }
.brand-text small { font-size: 11px; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; }

.main-nav { display: flex; gap: 4px; }

.main-nav a {
  position: relative;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: color 0.25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active { color: var(--gold-light); }
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 100px;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(27, 58, 82, 0.9), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
}

.hero-bg svg { width: 100%; height: 100%; }

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 48px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--gold-light);
  border: 1px solid rgba(201, 162, 39, 0.5);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 22px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.hero-sub {
  max-width: 560px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 34px;
}

.hero-sub span {
  color: var(--gold-light);
  font-weight: 600;
}

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

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags li {
  font-size: 13px;
  padding: 5px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-art svg {
  width: min(320px, 80%);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
  animation: floatY 6s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.hero-scroll span {
  width: 4px;
  height: 9px;
  background: var(--gold);
  border-radius: 4px;
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- 通用 Section ---------- */
.section { padding: 110px 0; }

.section-head { text-align: center; margin-bottom: 64px; }

.section-eyebrow {
  font-size: 13px;
  letter-spacing: 5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 44px);
  color: var(--navy-800);
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.section-sub { color: var(--text-light); font-size: 16px; }

/* ---------- 关于我们 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 162, 39, 0.5);
}

.about-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: var(--gold);
  margin-bottom: 20px;
}

.about-card-icon svg { width: 30px; height: 30px; }

.about-card h3 { font-size: 19px; color: var(--navy-800); margin-bottom: 10px; font-family: var(--font-serif); }
.about-card p { font-size: 14.5px; color: var(--text-light); }

.about-note {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 26px 30px;
  color: var(--text);
  font-size: 15.5px;
  line-height: 2;
}

/* ---------- 首页 · 关于我们模块 ---------- */
.about-section {
  position: relative;
  background:
    radial-gradient(640px 420px at 92% -6%, rgba(201, 162, 39, 0.06), transparent 60%),
    var(--white);
  overflow: hidden;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 64px;
  align-items: start;
}

/* 左侧：律所简介 */
.about-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-800);
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: 2px;
  margin-bottom: 22px;
}

.label-line {
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  flex: 0 0 auto;
}

.about-label .label-text { color: var(--navy-800); }

.about-left p {
  font-size: 15.5px;
  line-height: 2.05;
  color: var(--text);
  margin-bottom: 20px;
}

.about-left p strong { color: var(--navy-800); font-weight: 600; }

.about-left .btn { margin-top: 8px; }

/* 右侧：四大优势卡 */
.about-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.advantage-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.advantage-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.advantage-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 162, 39, 0.5);
}

.advantage-card:hover::before { transform: scaleX(1); }

.adv-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: var(--gold);
  margin-bottom: 16px;
  transition: transform 0.35s ease;
}

.advantage-card:hover .adv-icon { transform: translateY(-3px); }
.adv-icon svg { width: 27px; height: 27px; }

.advantage-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--navy-800);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.advantage-card p { font-size: 13.6px; color: var(--text-light); line-height: 1.8; }

/* ---------- 价值观 ---------- */
.values {
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(27, 58, 82, 0.85), transparent 60%),
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: var(--white);
}

.section-head--light .section-title { color: var(--white); }
.section-head--light .section-sub { color: rgba(255, 255, 255, 0.7); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.value-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 46px 34px 36px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.value-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.value-card:hover { transform: translateY(-8px); background: rgba(255, 255, 255, 0.08); border-color: rgba(201, 162, 39, 0.5); }
.value-card:hover::before { transform: scaleX(1); }

.value-num {
  font-size: 44px;
  font-weight: 700;
  font-family: var(--font-serif);
  color: rgba(201, 162, 39, 0.35);
  display: block;
  margin-bottom: 10px;
}

.value-card h3 {
  font-size: 24px;
  font-family: var(--font-serif);
  color: var(--gold-light);
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.value-card p { color: rgba(255, 255, 255, 0.78); font-size: 15px; }

/* ---------- 业务领域 ---------- */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.practice-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.practice-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 162, 39, 0.55);
}

.practice-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
  margin-bottom: 18px;
  transition: background 0.3s ease, color 0.3s ease;
}

.practice-card:hover .practice-icon { background: var(--navy-800); color: var(--gold-light); }
.practice-icon svg { width: 28px; height: 28px; }

.practice-card h3 { font-size: 17.5px; color: var(--navy-800); margin-bottom: 8px; font-family: var(--font-serif); }
.practice-card p { font-size: 13.8px; color: var(--text-light); }

.practice-card--alt {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  color: var(--white);
}

.practice-card--alt h3 { color: var(--white); }
.practice-card--alt p { color: rgba(255, 255, 255, 0.7); }
.practice-card--alt .practice-icon { background: rgba(255, 255, 255, 0.1); color: var(--gold-light); }

/* ---------- 数据统计 ---------- */
.stats {
  background:
    radial-gradient(900px 400px at 90% 10%, rgba(27, 58, 82, 0.9), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  padding: 84px 0;
  color: var(--white);
}

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

.stat .stat-num {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
}

.stat .stat-suffix {
  font-size: 20px;
  color: var(--gold);
  margin-left: 4px;
}

.stat p { margin-top: 8px; color: rgba(255, 255, 255, 0.72); font-size: 15px; letter-spacing: 1px; }

/* ---------- 律师团队 ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 24px 28px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }

.team-photo {
  width: 108px;
  height: 108px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-avatar svg { width: 64px; height: 64px; }

.team-card h3 { font-size: 20px; color: var(--navy-800); font-family: var(--font-serif); margin-bottom: 4px; }

.team-role {
  display: inline-block;
  font-size: 13px;
  color: var(--gold-dark);
  background: rgba(201, 162, 39, 0.12);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.team-bio { font-size: 14px; color: var(--text-light); }

.team-note { text-align: center; color: var(--text-light); margin-top: 44px; font-size: 15px; }

/* ---------- 法律资讯 ---------- */
#news { background: var(--cream); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.news-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 30px 26px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(201, 162, 39, 0.5); }

.news-date { font-size: 12.5px; letter-spacing: 2px; color: var(--gold); }

.news-card h3 {
  font-size: 18.5px;
  color: var(--navy-800);
  font-family: var(--font-serif);
  margin: 10px 0;
  line-height: 1.55;
}

.news-card p { font-size: 14px; color: var(--text-light); margin-bottom: 14px; }

.news-more { font-size: 14px; color: var(--navy-600); font-weight: 600; }

.news-card:hover .news-more { color: var(--gold-dark); }

/* ---------- 联系我们 ---------- */
.contact {
  background: radial-gradient(1000px 500px at 0% 100%, rgba(27, 58, 82, 0.08), transparent 60%), var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 26px; }

.contact-item { display: flex; gap: 16px; align-items: flex-start; }

.contact-icon {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--navy-800);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg { width: 24px; height: 24px; }

.contact-item h4 { font-size: 16px; color: var(--navy-800); margin-bottom: 2px; }
.contact-item p { font-size: 14.5px; color: var(--text-light); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 34px 32px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--navy-800);
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group label span { color: #c0392b; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.form-group .error { border-color: #c0392b !important; box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12) !important; }

.form-tip { margin-top: 14px; font-size: 12.5px; color: var(--text-light); }

.form-tip.success { color: #1e7e34; font-weight: 600; }
.form-tip.error { color: #c0392b; font-weight: 600; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--navy-900);
}

.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(201, 162, 39, 0.4); }

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: transparent;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

.btn-block { width: 100%; border: 0; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: linear-gradient(160deg, #08111c, var(--navy-900));
  color: rgba(255, 255, 255, 0.8);
  padding-top: 70px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr;
  gap: 44px;
  padding-bottom: 48px;
}

.footer-brand .brand-mark { margin-bottom: 14px; }

.footer-brand p { font-size: 15px; line-height: 1.9; }

.footer-slogan { color: var(--gold-light); font-family: var(--font-serif); }

.footer-quick h4 {
  font-size: 16px;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.footer-quick ul { display: flex; flex-direction: column; gap: 10px; }

.footer-quick ul a { font-size: 14.5px; transition: color 0.25s ease, padding-left 0.25s ease; }
.footer-quick ul a:hover { color: var(--gold-light); padding-left: 6px; }

.footer-quick p { font-size: 13.5px; color: rgba(255, 255, 255, 0.55); line-height: 1.9; }

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

/* ---------- 滚动渐入动画 ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

[data-animate].in-view {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { display: none; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(13, 27, 42, 0.98);
    padding: 18px 24px 28px;
    gap: 6px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: var(--shadow-lg);
  }

  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }

  .main-nav a { padding: 14px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 16px; }
  .main-nav a::after { display: none; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .section { padding: 80px 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-layout { gap: 40px; }
  .about-right { grid-template-columns: 1fr; }
  .practice-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .values-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .brand-text strong { font-size: 16px; }
  .brand-text small { font-size: 10px; letter-spacing: 2px; }
}

/* ---------- 减少动态偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-animate] { opacity: 1; transform: none; transition: none; }
  .hero-art svg { animation: none; }
}