/* ============================================================
   元申律师事务所官网 — 审美升级版
   设计语言参考：中伦（zhonglun.com）/ Baker McKenzie
   只改视觉层，不碰HTML结构与内容
   ============================================================ */

:root {
  --navy: #0b1f3a;
  --navy-0: #061225;
  --navy-2: #12365f;
  --gold: #b08a3c;
  --gold-2: #d4b978;
  --gold-light: #f0e4c8;
  --ink: #172033;
  --ink-light: #2c3a52;
  --muted: #6b7a90;
  --muted-light: #8c9bb0;
  --line: #e2e7ef;
  --line-light: #eef2f7;
  --paper: #ffffff;
  --soft: #f7f8fb;
  --soft-2: #f0f2f6;
  --shadow: 0 4px 24px rgba(11, 31, 58, 0.08);
  --shadow-hover: 0 12px 40px rgba(11, 31, 58, 0.14);
  --shadow-strong: 0 20px 60px rgba(6, 18, 37, 0.18);
  --radius: 6px;
  --radius-lg: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  background: var(--paper);
  letter-spacing: 0.01em;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(120deg, rgba(176, 138, 60, 0.04), transparent 30%),
    linear-gradient(180deg, rgba(11, 31, 58, 0.02), transparent 50%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

/* ── Container ───────────────────────────────────────────── */

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* ── Top Bar ─────────────────────────────────────────────── */

.topbar {
  color: rgba(255, 255, 255, 0.7);
  background: var(--navy-0);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
}

.topbar a {
  color: rgba(255, 255, 255, 0.6);
}

.topbar a:hover {
  color: var(--gold-2);
}

/* ── Header ──────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line-light);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  transition: box-shadow var(--transition);
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(176, 138, 60, 0.5), transparent);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(145deg, var(--navy), var(--navy-2));
  border: 1.5px solid rgba(176, 138, 60, 0.6);
  transition: transform var(--transition);
}

.brand:hover .brand-mark {
  transform: scale(1.05);
}

.brand strong {
  display: block;
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand span {
  display: block;
  color: var(--muted-light);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

/* ── Navigation ──────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav a {
  position: relative;
  padding: 8px 16px;
  color: var(--ink-light);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav a::after {
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition), left var(--transition);
}

.nav a:hover {
  color: var(--gold);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
  left: 0;
}

.nav a.active {
  color: var(--gold);
  border-bottom-color: transparent;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  content: "";
  background: currentColor;
  transition: transform var(--transition);
}

/* ── Hero Section ────────────────────────────────────────── */
/* Hero 轮播幻灯片 */
.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s ease-in-out, transform 4s ease-out;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Hero半透明遮罩 */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(6, 18, 37, 0.55);
  pointer-events: none;
}

/* Hero文字 */
.hero-text {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 540px;
  padding: 72px 0 80px;
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 80%, transparent);
}

.hero::after {
  right: -140px;
  bottom: -240px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(209, 179, 107, 0.18);
  transform: rotate(32deg);
}

.hero-text {
  position: relative;
  z-index: 2;
}

/* ── Eyebrow Label ───────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 36px;
  height: 1.5px;
  content: "";
  background: linear-gradient(90deg, var(--gold-2), transparent);
}

/* ── Hero Typography ─────────────────────────────────────── */

.hero h1,
.page-hero h1 {
  max-width: 820px;
  margin: 18px 0 24px;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.animated-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.75em) rotateX(72deg);
  animation: titleRise 0.78s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--char-index, 0) * 0.035s);
  transform-origin: 50% 100%;
}

@keyframes titleRise {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

.hero p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin: 0 0 36px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 16.5px;
  line-height: 1.8;
}

/* ── Buttons ─────────────────────────────────────────────── */

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-actions .button {
  width: min(280px, 100%);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 28px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #081527;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(176, 138, 60, 0.25);
}

.button.primary:hover {
  box-shadow: 0 8px 28px rgba(176, 138, 60, 0.35);
  background: linear-gradient(135deg, #ddb85e, var(--gold-2));
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
}

.button.light {
  color: var(--navy);
  background: #fff;
  border-color: var(--line);
}

.button.light:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

/* ── Sections ────────────────────────────────────────────── */

.section {
  position: relative;
  padding: 88px 0;
}

.section.soft {
  background: var(--soft);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 40px;
}

.section-head h2,
.block h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  max-width: 980px;
  text-wrap: balance;
}

.section-head p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ── Grid Layouts ────────────────────────────────────────── */

.grid {
  display: grid;
  gap: 22px;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ── Cards ───────────────────────────────────────────────── */

.card {
  position: relative;
  min-height: 100%;
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  overflow: hidden;
}

.card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(176, 138, 60, 0.25);
  box-shadow: var(--shadow-hover);
}
.card img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  will-change: transform;
}
.card:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.tag {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 4px 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(176, 138, 60, 0.08);
  border-radius: 4px;
}

/* ── Split Layout ────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr);
  gap: 52px;
  align-items: center;
}

.nowrap {
  white-space: nowrap;
}

/* ── Feature Panel ───────────────────────────────────────── */

.feature-panel {
  position: relative;
  overflow: hidden;
  padding: 36px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(176, 138, 60, 0.12), transparent 40%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: var(--radius-lg);
}

.feature-panel::after {
  position: absolute;
  top: -60%;
  left: -40%;
  width: 40%;
  height: 220%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: rotate(18deg);
  animation: sheen 8s ease-in-out infinite;
}

@keyframes sheen {
  0%, 40% {
    transform: translateX(-40%) rotate(18deg);
  }
  70%, 100% {
    transform: translateX(400%) rotate(18deg);
  }
}

.feature-panel dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 0;
}

.feature-panel dt {
  color: var(--gold-2);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
}

.feature-panel dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* ── Visual Frame (Hero side) ────────────────────────────── */

.visual-frame {
  position: relative;
  min-height: 440px;
  perspective: 1200px;
}

.visual-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
}

.visual-card.primary {
  inset: 34px 0 0 56px;
  background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.03));
  transform: rotateY(-8deg) rotateX(3deg);
}

.visual-card.secondary {
  top: 0;
  left: 0;
  width: 58%;
  height: 48%;
  background: rgba(209, 179, 107, 0.12);
  transform: translateZ(30px);
}

.visual-card.tertiary {
  right: 18px;
  bottom: 26px;
  width: 46%;
  height: 28%;
  background: rgba(6, 18, 37, 0.65);
}

.image-transform {
  position: absolute;
  inset: 0;
  background: url("../images/hero-skyline.jpg") center / cover;
  filter: saturate(0.82) contrast(1.08);
  transform: scale(1.06);
  animation: imageDrift 10s ease-in-out infinite alternate;
}

.image-transform::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(145deg, rgba(6, 18, 37, 0.08), rgba(6, 18, 37, 0.6)),
    linear-gradient(90deg, transparent 0 46%, rgba(209, 179, 107, 0.2) 46% 48%, transparent 48%);
  mix-blend-mode: multiply;
}

.visual-label {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 2;
  max-width: 230px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.6;
}

.visual-label strong {
  display: block;
  color: var(--gold-2);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

@keyframes imageDrift {
  from {
    transform: scale(1.06) translate3d(-1.5%, -1.2%, 0);
    clip-path: polygon(0 0, 92% 0, 100% 100%, 8% 100%);
  }
  to {
    transform: scale(1.14) translate3d(1.5%, 1%, 0);
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  }
}

/* ── Reveal Animation ────────────────────────────────────── */

/* ── Reveal 动画系统 ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }
.reveal.delay-5 { transition-delay: 0.5s; }
.reveal.fade-left {
  transform: translateX(-40px);
}
.reveal.fade-left.is-visible {
  transform: translateX(0);
}
.reveal.fade-right {
  transform: translateX(40px);
}
.reveal.fade-right.is-visible {
  transform: translateX(0);
}
.reveal.scale-up {
  transform: scale(0.92);
}
.reveal.scale-up.is-visible {
  transform: scale(1);
}

/* ── 滚动进度指示器 ──────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  z-index: 999;
  width: 0%;
  transition: width 0.08s linear;
}

/* ── Page Hero (Sub-pages) ───────────────────────────────── */

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at 75% 25%, rgba(209, 179, 107, 0.15), transparent 30%),
    radial-gradient(ellipse at 15% 85%, rgba(18, 54, 95, 0.25), transparent 35%),
    linear-gradient(110deg, rgba(6, 18, 37, 0.97), rgba(18, 54, 95, 0.82)),
    url("../images/hero-3.jpg") center / cover no-repeat;
}

.page-hero::after {
  position: absolute;
  right: 8%;
  bottom: -42px;
  width: 240px;
  height: 240px;
  content: "";
  border: 1px solid rgba(209, 179, 107, 0.22);
  transform: rotate(24deg);
}

.page-hero .container {
  padding: 90px 0 80px;
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13.5px;
  letter-spacing: 0.02em;
}

/* ── Lists ───────────────────────────────────────────────── */

.list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.list li {
  padding: 10px 0 10px 18px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  border-left: 2px solid var(--gold);
  transition: border-color var(--transition), padding-left var(--transition);
}

.list li:hover {
  border-left-color: var(--navy);
  padding-left: 22px;
}

/* ── Lawyer Cards ────────────────────────────────────────── */

.lawyer {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
}

.avatar {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  color: var(--navy);
  font-weight: 700;
  font-size: 18px;
  background: linear-gradient(135deg, var(--soft-2), var(--soft));
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover .avatar {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(11, 31, 58, 0.1);
}

/* ── Article List ────────────────────────────────────────── */

.article-list {
  display: grid;
  gap: 18px;
}

.article-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.article-item:hover {
  transform: translateX(6px);
  border-color: rgba(176, 138, 60, 0.3);
  box-shadow: var(--shadow-hover);
}

.date {
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* ── Contact Grid ────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
}

.form {
  display: grid;
  gap: 16px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form input:focus,
.form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 138, 60, 0.1);
}

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

.map-placeholder {
  display: grid;
  min-height: 300px;
  place-items: center;
  color: var(--muted-light);
  background: var(--soft-2);
  border: 1px dashed #c8d0dc;
  border-radius: var(--radius-lg);
  font-size: 14px;
}

/* ── CTA Block ───────────────────────────────────────────── */

.cta {
  padding: 52px 48px;
  color: #fff;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(176, 138, 60, 0.15), transparent 50%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: var(--radius-lg);
}

.cta h2 {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
}

.cta p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.7;
}

/* ── Footer ──────────────────────────────────────────────── */

.site-footer {
  color: rgba(255, 255, 255, 0.65);
  background: var(--navy-0);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  padding: 56px 0 48px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-footer h2 {
  font-size: 18px;
  letter-spacing: 0.04em;
}

.site-footer a {
  display: block;
  padding: 3px 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  transition: color var(--transition), padding-left var(--transition);
}

.site-footer a:hover {
  color: var(--gold-2);
  padding-left: 4px;
}

.site-footer p {
  font-size: 14px;
  line-height: 1.8;
}

.copyright {
  padding: 18px 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Back to Top ─────────────────────────────────────────── */

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: none;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: var(--radius);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.back-to-top:hover {
  background: var(--navy-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.back-to-top.show {
  display: block;
}

/* ── Responsive: Tablet ──────────────────────────────────── */

@media (max-width: 920px) {
  .topbar .container,
  .section-head,
  .split,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .topbar .container {
    display: grid;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    padding: 12px 24px 20px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-hover);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .nav.open {
    display: grid;
  }

  .nav a {
    padding: 12px 0;
  }

  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .contact-grid,
  .footer-grid {
    display: grid;
  }

  .hero .container {
    flex-direction: column;
  }

  .section {
    padding: 64px 0;
  }
}

/* ── Responsive: Mobile ──────────────────────────────────── */

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 1200px);
  }

  .brand strong {
    font-size: 15px;
  }

  .brand span {
    display: none;
  }

  .hero .container {
    min-height: 520px;
    padding: 56px 0 64px;
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(28px, 8vw, 40px);
  }

  /* mobile hero全屏背景不变 */

  .section {
    padding: 52px 0;
  }

  .grid.cols-3,
  .grid.cols-4,
  .feature-panel dl,
  .article-item {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 32px 24px;
  }

  .cta h2 {
    font-size: 22px;
  }

  .page-hero .container {
    padding: 64px 0 52px;
  }

  .feature-panel {
    padding: 28px;
  }

  .feature-panel dt {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .hero-slide,
  .image-transform,
  .card:hover img {
    transform: none !important;
  }
}
