/* 青灰木色 · lawyer-slate-wood · Criminal-defense-03 移植 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --qg-50: #f4f6f7;
  --qg-100: #e3e8ea;
  --qg-200: #c9d2d6;
  --qg-300: #a4b3ba;
  --qg-400: #78909c;
  --qg-500: #5c7a8a;
  --qg-600: #4a6372;
  --qg-700: #3e525e;
  --qg-800: #36454f;
  --qg-900: #2f3b44;
  --nuo: #FAF9F6;
  --wood-50: #f8f5f1;
  --wood-100: #efe8df;
  --wood-200: #e0d0c0;
  --wood-300: #d4c4b0;
  --wood-400: #b8a088;
  --wood-500: #a0866e;
  --white: #ffffff;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  --shadow: 0 10px 30px rgba(47, 59, 68, 0.08);
  --shadow-lg: 0 18px 40px rgba(47, 59, 68, 0.14);
  --font-sans: "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-serif: "Noto Serif SC", Georgia, "Times New Roman", serif;
  --nav-h: 4rem;
  --mobile-bar-h: 84px;
  --wrap: 72rem;
}

@media (min-width: 768px) {
  :root { --nav-h: 5rem; }
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--qg-800);
  background: var(--nuo);
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: var(--mobile-bar-h);
}

@media (min-width: 768px) {
  body { padding-bottom: 72px; }
}

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

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--qg-800);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .wrap { padding-left: 2rem; padding-right: 2rem; }
}

@media (min-width: 1024px) {
  .wrap { padding-left: 3rem; padding-right: 3rem; }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* —— Buttons —— */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  background: var(--qg-700);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--qg-800); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--qg-400);
  color: var(--qg-700);
  font-size: 0.9375rem;
  font-weight: 500;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--qg-600); color: var(--qg-900); }

.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s;
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.18); }

.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-transparent {
  background: transparent;
  border-bottom-color: transparent;
}
.site-header.is-transparent .nav-logo-text { color: var(--white); }
.site-header.is-transparent .nav-logo-bg { background: rgba(255,255,255,0.15); }
.site-header.is-transparent .nav-link { color: rgba(255,255,255,0.9); }
.site-header.is-transparent .nav-link:hover,
.site-header.is-transparent .nav-link.is-active { color: var(--white); }
.site-header.is-transparent .nav-menu-btn { color: var(--white); }
.site-header.is-transparent .nav-phone {
  background: var(--qg-700);
  color: var(--white);
}

.site-header.is-scrolled {
  background: rgba(250,249,246,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--qg-100);
  box-shadow: 0 1px 0 rgba(47,59,68,0.04);
}
.site-header.is-scrolled .nav-logo-text { color: var(--qg-800); }
.site-header.is-scrolled .nav-logo-bg { background: var(--qg-600); }
.site-header.is-scrolled .nav-link { color: var(--qg-500); }
.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link.is-active { color: var(--qg-900); }
.site-header.is-scrolled .nav-menu-btn { color: var(--qg-800); }
.site-header.is-scrolled .nav-phone {
  background: var(--qg-700);
  color: var(--white);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-h);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .nav-inner { padding: 0 2rem; }
}
@media (min-width: 1024px) {
  .nav-inner { padding: 0 3rem; }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.nav-logo-img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  object-fit: cover;
}
.nav-logo-bg {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--qg-600);
  transition: background 0.3s;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .nav-logo-bg { width: 2.5rem; height: 2.5rem; }
  .nav-logo-bg i { font-size: 1.25rem; }
}
.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color 0.3s;
}
@media (min-width: 768px) {
  .nav-logo-text { font-size: 1.125rem; }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}
@media (min-width: 1024px) {
  .nav-desktop { gap: 2rem; }
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.25s;
}
@media (min-width: 1024px) {
  .nav-link { font-size: 1rem; }
}
.nav-link.is-cta {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: var(--qg-700);
  color: var(--white) !important;
}
.nav-link.is-cta:hover { background: var(--qg-800); color: var(--white) !important; }

.nav-phone {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.25s;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .nav-phone { display: inline-flex; }
}

.nav-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1.25rem;
  transition: color 0.3s;
}
@media (min-width: 768px) {
  .nav-menu-btn { display: none; }
}

.mobile-menu {
  background: rgba(250,249,246,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--qg-100);
}
.mobile-menu[hidden] { display: none !important; }
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem 1rem;
}
.mobile-nav-link {
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--qg-600);
  border-bottom: 1px solid var(--qg-100);
}
.mobile-nav-link.is-active { color: var(--qg-800); }
.mobile-nav-phone {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--qg-700);
  color: var(--white);
  font-weight: 500;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { min-height: 720px; }
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-fallback-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--qg-900) 0%, var(--qg-700) 45%, var(--qg-600) 100%);
}
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(47,59,68,0.72), rgba(54,69,79,0.6), rgba(47,59,68,0.82));
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 3rem;
}
.hero-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .hero-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
  }
}
.hero-copy { flex: 1; }
.hero h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .hero h1 { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 3.75rem; }
}
.hero-tagline {
  margin-top: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
}
@media (min-width: 768px) {
  .hero-tagline { font-size: 1.75rem; }
}
.hero-profile {
  margin-top: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
@media (min-width: 768px) {
  .hero-profile { gap: 1.5rem; }
}
.hero-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 0.5rem;
  border: 2px solid var(--wood-300);
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
}
@media (min-width: 768px) {
  .hero-avatar { width: 6rem; height: 6rem; }
}
.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-meta {
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  line-height: 1.7;
}
@media (min-width: 768px) {
  .hero-meta { font-size: 1rem; }
}
.hero-meta span { color: rgba(255,255,255,0.55); }
.hero-lead {
  margin-top: 1.5rem;
  max-width: 36rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  line-height: 1.75;
}
@media (min-width: 768px) {
  .hero-lead { font-size: 1rem; }
}
.hero-ctas {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 0.15rem;
  transition: color 0.25s;
}
.hero-about-link:hover { color: var(--white); }

.hero-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .hero-aside {
    flex-direction: row;
    align-items: center;
  }
}
@media (min-width: 1024px) {
  .hero-aside {
    flex-direction: column;
    align-items: flex-end;
  }
}
.hero-wechat-block {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-qr-btn {
  width: 6rem;
  height: 6rem;
  padding: 0.35rem;
  border-radius: 0.5rem;
  border: 2px solid rgba(255,255,255,0.3);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .hero-qr-btn { width: 7rem; height: 7rem; }
}
.hero-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.25rem;
}
.hero-qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--qg-500);
  font-size: 0.625rem;
}
.hero-qr-placeholder i { font-size: 2rem; }
.hero-wechat-text { color: var(--white); }
.hero-wechat-label { font-size: 0.875rem; color: rgba(255,255,255,0.55); }
.hero-wechat-id { font-size: 1rem; font-weight: 500; }
.hero-phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
}
.hero-phone-pill i { font-size: 1.125rem; }
.hero-phone-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
}
.hero-phone-num {
  display: block;
  font-size: 1rem;
  font-weight: 500;
}

/* —— Bio —— */
.bio-section {
  padding: 4rem 0;
  background: var(--nuo);
}
@media (min-width: 768px) {
  .bio-section { padding: 6rem 0; }
}
.bio-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .bio-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 4rem;
  }
}
.bio-photo {
  width: 100%;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .bio-photo { width: 45%; }
}
.bio-photo-frame {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--wood-100);
  aspect-ratio: 3 / 4;
}
.bio-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bio-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--wood-100), var(--qg-100));
  color: var(--qg-500);
  font-family: var(--font-serif);
  font-size: 1.5rem;
}
.bio-copy { flex: 1; }
.bio-lead {
  margin-top: 1.5rem;
  color: var(--qg-600);
  font-size: 0.9375rem;
  line-height: 1.8;
}
.bio-firm {
  margin-top: 1rem;
  color: var(--qg-500);
  font-size: 0.9375rem;
}
.bio-stats {
  margin-top: 2.5rem;
  display: flex;
  gap: 2rem;
}
.bio-stat-val {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--qg-700);
}
.bio-stat-lbl {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--qg-400);
}

/* —— Section heads —— */
.section-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--qg-300);
  color: var(--qg-600);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.section-badge-light {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
}
.section-eyebrow {
  color: var(--qg-400);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--qg-800);
  line-height: 1.3;
}
@media (min-width: 768px) {
  .section-title { font-size: 1.875rem; }
}
@media (min-width: 1024px) {
  .section-title { font-size: 2.25rem; }
}
.section-title-light { color: var(--white); }
.section-desc {
  margin-top: 0.75rem;
  color: var(--qg-500);
  font-size: 0.9375rem;
  max-width: 36rem;
}
.section-desc-light { color: rgba(255,255,255,0.6); }
.section-head { margin-bottom: 2.5rem; }
.section-head-center { text-align: center; }
.section-head-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .section-head-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.section-cta {
  margin-top: 2rem;
  text-align: center;
}
.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.5rem;
  color: var(--qg-700);
  font-weight: 500;
  border-bottom: 2px solid var(--qg-400);
  padding-bottom: 0.15rem;
  transition: color 0.25s, border-color 0.25s;
}
.link-underline:hover {
  color: var(--qg-900);
  border-color: var(--qg-600);
}
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--qg-600);
  font-size: 0.9375rem;
  transition: color 0.25s;
  white-space: nowrap;
}
.link-more:hover { color: var(--qg-800); }

/* —— Services —— */
.services-section {
  padding: 4rem 0;
  background: var(--wood-50);
}
@media (min-width: 768px) {
  .services-section { padding: 6rem 0; }
}
.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .svc-grid { grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
}
.svc-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  height: 100%;
  transition: box-shadow 0.3s, transform 0.3s;
}
@media (min-width: 768px) {
  .svc-card { padding: 2rem; }
}
.svc-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.svc-ico {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: var(--qg-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--qg-600);
  font-size: 1.5rem;
  transition: background 0.25s;
}
@media (min-width: 768px) {
  .svc-ico { width: 3.5rem; height: 3.5rem; font-size: 1.75rem; }
}
.svc-card:hover .svc-ico { background: var(--qg-100); }
.svc-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--qg-800);
}
@media (min-width: 768px) {
  .svc-card h3 { font-size: 1.25rem; }
}
.svc-card p {
  color: var(--qg-500);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* —— Cases / News cards —— */
.cases-home,
.news-home {
  padding: 4rem 0;
  background: var(--nuo);
}
@media (min-width: 768px) {
  .cases-home,
  .news-home { padding: 6rem 0; }
}
.case-grid,
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .case-grid,
  .news-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (min-width: 1024px) {
  .case-grid,
  .news-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.list-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--qg-100);
  padding: 1.5rem;
  transition: box-shadow 0.3s, border-color 0.3s;
  height: 100%;
}
@media (min-width: 768px) {
  .list-card { padding: 1.75rem; }
}
.list-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--qg-200);
}
.list-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
  color: var(--qg-800);
  transition: color 0.25s;
}
.list-card:hover h3 { color: var(--qg-600); }
.list-card p {
  color: var(--qg-500);
  font-size: 0.875rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-card-date {
  font-size: 0.75rem;
  color: var(--qg-400);
  margin-bottom: 0.75rem;
}
.list-card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--qg-400);
  transition: color 0.25s;
}
.list-card:hover .list-card-more { color: var(--qg-600); }
.tag-anon {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--qg-50);
  color: var(--qg-600);
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

/* News list stack (single column) */
.news-list-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.news-row-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--qg-100);
  padding: 1.5rem;
  transition: box-shadow 0.3s, border-color 0.3s;
}
@media (min-width: 768px) {
  .news-row-card { padding: 2rem; }
}
.news-row-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--qg-200);
}
.news-row-body h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  transition: color 0.25s;
}
@media (min-width: 768px) {
  .news-row-body h3 { font-size: 1.25rem; }
}
.news-row-card:hover h3 { color: var(--qg-600); }
.news-row-body p {
  color: var(--qg-500);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* —— Steps —— */
.steps-section {
  padding: 4rem 0;
  background: var(--qg-800);
}
@media (min-width: 768px) {
  .steps-section { padding: 6rem 0; }
}
.steps-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
}
.step-item {
  flex: 1 1 16.5rem;
  max-width: 22rem;
  min-width: 0;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem;
}
@media (min-width: 768px) {
  .step-item { padding: 2rem; }
}
.step-item h3,
.step-item p {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--wood-300);
  color: var(--qg-800);
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
@media (min-width: 768px) {
  .step-num { width: 3rem; height: 3rem; }
}
.step-item h3 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .step-item h3 { font-size: 1.25rem; }
}
.step-item p {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  line-height: 1.7;
}
.steps-cta {
  margin-top: 2.5rem;
  text-align: center;
}
.steps-cta .btn-primary {
  background: var(--wood-300);
  color: var(--qg-800);
}
.steps-cta .btn-primary:hover {
  background: var(--wood-400);
}

/* —— CTA band —— */
.cta-band {
  padding: 4rem 0;
  background: var(--wood-100);
}
@media (min-width: 768px) {
  .cta-band { padding: 6rem 0; }
}
.cta-band-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .cta-band-grid {
    flex-direction: row;
    gap: 4rem;
  }
}
.cta-band-copy { flex: 1; }
.cta-band-desc {
  margin: 1rem 0 2rem;
  color: var(--qg-500);
  font-size: 0.9375rem;
  line-height: 1.75;
  max-width: 28rem;
}
.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.cta-band-media {
  width: 100%;
  border-radius: var(--radius-2xl);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .cta-band-media { width: 45%; flex-shrink: 0; }
}
.cta-band-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.cta-band-media-fallback {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--qg-200), var(--wood-200), var(--nuo));
}

/* —— Page hero —— */
.page-hero {
  position: relative;
  background: var(--qg-800);
  padding: 5.5rem 0 3rem;
  color: var(--white);
  overflow: hidden;
}
@media (min-width: 768px) {
  .page-hero { padding: 6.5rem 0 4rem; }
}
.page-hero.has-img { color: var(--white); }
.page-hero-bg {
  position: absolute;
  inset: 0;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero-fallback {
  background: linear-gradient(145deg, var(--qg-900), var(--qg-700));
}
.page-hero.has-img .page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(47,59,68,0.65);
}
.page-hero-inner,
.page-hero > .wrap {
  position: relative;
  z-index: 2;
  text-align: center;
}
.page-hero h1 {
  color: var(--white);
  font-size: 1.875rem;
  margin-top: 0.75rem;
}
@media (min-width: 768px) {
  .page-hero h1 { font-size: 2.5rem; }
}
@media (min-width: 1024px) {
  .page-hero h1 { font-size: 3rem; }
}
.page-hero-desc {
  margin-top: 1rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.9375rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
}
.crumbs a { color: rgba(255,255,255,0.7); }
.crumbs a:hover { color: var(--white); }
.crumb-sep { opacity: 0.5; }
.crumb-current {
  color: rgba(255,255,255,0.9);
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-body {
  padding: 3rem 0 4rem;
  background: var(--nuo);
}
@media (min-width: 768px) {
  .page-body { padding: 4rem 0 5rem; }
}

/* —— About —— */
.about-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .about-layout {
    flex-direction: row;
    gap: 4rem;
  }
}
.about-aside {
  width: 100%;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .about-aside { width: 380px; }
}
.about-photo {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--wood-100);
  margin-bottom: 1.5rem;
  aspect-ratio: 3 / 4;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--wood-100), var(--qg-100));
  color: var(--qg-500);
  font-family: var(--font-serif);
  font-size: 1.5rem;
}
.about-info-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--qg-100);
  padding: 1.5rem;
}
.about-info-card h2 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}
.about-dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--qg-50);
}
.about-dl dt { color: var(--qg-400); flex-shrink: 0; }
.about-dl dd { color: var(--qg-700); font-weight: 500; text-align: right; }
.about-info-card .btn-primary { margin-top: 1.25rem; }
.about-main { flex: 1; min-width: 0; }
.about-section { margin-bottom: 2.5rem; }
.about-section h2 {
  font-size: 1.375rem;
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--qg-600);
}
.honor-list { display: flex; flex-direction: column; gap: 0.75rem; }
.honor-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--qg-100);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}
.honor-item img {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 0.35rem;
}

/* —— Contact —— */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .contact-cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .contact-cards { grid-template-columns: 1fr; }
}
.contact-tile {
  background: var(--white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--qg-100);
  padding: 1.75rem;
  text-align: center;
  transition: box-shadow 0.3s;
}
.contact-tile:hover { box-shadow: var(--shadow); }
.contact-tile-ico {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--qg-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--qg-600);
  font-size: 1.5rem;
}
.contact-tile h2 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.meta-val { color: var(--qg-600); font-size: 1rem; }
.meta-hint {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--qg-400);
}
.contact-lead {
  margin-bottom: 1.25rem;
  color: var(--qg-500);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.contact-form-wrap,
.form-consult-page {
  background: var(--white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--qg-100);
  padding: 1.75rem;
}
@media (min-width: 768px) {
  .contact-form-wrap,
  .form-consult-page { padding: 2.25rem; }
}
.form-consult-page {
  max-width: 36rem;
  margin: 0 auto;
  border-color: var(--qg-200);
  box-shadow: var(--shadow);
}
.form-consult-lead {
  margin-bottom: 1.5rem;
  color: var(--qg-600);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.form-consult-lead a { color: var(--qg-700); text-decoration: underline; }
.contact-extra { margin-top: 2.5rem; }

/* —— Forms —— */
.sw-form h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}
.form-sub {
  color: var(--qg-500);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}
.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block;
  font-size: 0.875rem;
  color: var(--qg-700);
  margin-bottom: 0.35rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--qg-200);
  border-radius: 0.5rem;
  background: var(--qg-50);
  transition: border-color 0.2s, background 0.2s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--qg-500);
  background: var(--white);
}
.form-field textarea { min-height: 6rem; resize: vertical; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.form-check input { width: auto; margin-top: 0.2rem; }
.form-check label { margin-bottom: 0; }
.form-check a { color: var(--qg-600); text-decoration: underline; }
.form-btn { width: 100%; margin-top: 0.5rem; }
.form-disclaimer {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--qg-400);
  line-height: 1.6;
}
.consult-error {
  background: #fef2f2;
  color: #b91c1c;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.form-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--qg-100);
  padding: 1.25rem;
}
.form-sidebar .sw-form h3 {
  padding-left: 0.65rem;
  border-left: 3px solid var(--qg-600);
}

/* —— Detail —— */
.detail-shell {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .detail-shell {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
  }
}
.detail-main { flex: 1; min-width: 0; }
.detail-aside {
  width: 100%;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .detail-aside { width: 20rem; }
}
.detail-panel {
  background: var(--white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--qg-100);
  padding: 1.5rem;
}
@media (min-width: 768px) {
  .detail-panel { padding: 2rem; }
}
.alert-soft {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--wood-50);
  border-radius: 0.5rem;
  color: var(--qg-600);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}
.meta-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  background: var(--qg-50);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.meta-card img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.5rem;
  object-fit: cover;
}
.meta-card strong {
  display: block;
  font-family: var(--font-serif);
  color: var(--qg-800);
}
.meta-card span {
  font-size: 0.8125rem;
  color: var(--qg-500);
}
.detail-practice {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--qg-500);
}
.detail-practice a {
  color: var(--qg-700);
  text-decoration: underline;
}
.result-box {
  background: var(--wood-50);
  border-left: 3px solid var(--wood-500);
  padding: 1rem 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin-bottom: 1.5rem;
}
.result-box strong {
  display: block;
  font-size: 0.875rem;
  color: var(--qg-700);
  margin-bottom: 0.35rem;
}
.result-box p {
  color: var(--qg-600);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--qg-400);
  margin-bottom: 1.25rem;
}
.article-lead {
  font-size: 1.0625rem;
  color: var(--qg-600);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--qg-100);
}

/* FAQ */
.faq-section { margin-top: 2.5rem; }
.faq-section h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.faq-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--qg-100);
}
.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.faq-item p {
  color: var(--qg-500);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Related */
.related-section {
  padding: 3rem 0 4rem;
  background: var(--wood-50);
}
.related-section > .wrap > h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.related-lawyer {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  border: 1px solid var(--qg-100);
  margin-bottom: 1.5rem;
}
.related-lawyer img {
  width: 4rem;
  height: 4rem;
  border-radius: 0.5rem;
  object-fit: cover;
}
.related-lawyer-name {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--qg-800);
}
.related-lawyer p {
  font-size: 0.8125rem;
  color: var(--qg-500);
  margin-top: 0.25rem;
}
.related-block { margin-top: 1.5rem; }
.related-block h2,
.related-block h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}
.related-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.related-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid var(--qg-100);
  border-radius: 0.5rem;
  transition: border-color 0.25s;
}
.related-item:hover { border-color: var(--qg-300); }
.related-item span {
  font-size: 0.9375rem;
  color: var(--qg-700);
}

/* Privacy */
.privacy-wrap {
  background: var(--white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--qg-100);
  padding: 1.5rem;
  max-width: 48rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .privacy-wrap { padding: 2.5rem; }
}

/* Thanks / 404 */
.thanks-page,
.error-page {
  padding: 6rem 0 4rem;
  background: var(--nuo);
  min-height: 60vh;
}
.thanks-inner,
.error-inner {
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
}
.thanks-icon,
.error-icon {
  font-size: 3rem;
  color: var(--qg-600);
  margin-bottom: 1rem;
}
.thanks-lead,
.error-lead {
  margin: 1rem 0 1.75rem;
  color: var(--qg-500);
  line-height: 1.7;
}
.thanks-actions,
.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.thanks-wechat {
  margin: 1.5rem auto;
  max-width: 20rem;
  background: var(--white);
  border: 1px solid var(--qg-100);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
}
.thanks-wechat img {
  margin: 0 auto 1rem;
  border-radius: 0.5rem;
}
.thanks-hours {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--qg-100);
}
.thanks-hours h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.thanks-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--qg-400);
}
.off-hours-tip {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--wood-500);
}
.error-practices-label {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--qg-500);
}
.error-practices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.error-practices a {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1px solid var(--qg-200);
  font-size: 0.8125rem;
  color: var(--qg-600);
}

/* —— Prose —— */
.prose {
  color: var(--qg-600);
  font-size: 0.975rem;
  line-height: 1.85;
}
.prose h2, .prose h3, .prose h4 {
  color: var(--qg-800);
  margin: 1.75rem 0 0.75rem;
}
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol {
  margin: 0 0 1rem 1.25rem;
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.35rem; }
.prose a { color: var(--qg-600); text-decoration: underline; }
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1rem 0;
}
.prose blockquote {
  border-left: 3px solid var(--wood-300);
  padding-left: 1rem;
  color: var(--qg-500);
  margin: 1rem 0;
}

/* —— Pager —— */
.pager {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  list-style: none;
}
.pagination li a,
.pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid var(--qg-200);
  background: var(--white);
  color: var(--qg-600);
  font-size: 0.875rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.pagination li a:hover {
  border-color: var(--qg-500);
  color: var(--qg-800);
}
.pagination li.active span,
.pagination .active > a {
  background: var(--qg-700);
  border-color: var(--qg-700);
  color: var(--white);
}
.pagination li.disabled span {
  opacity: 0.45;
  cursor: not-allowed;
}

/* —— Trust bar —— */
.trust-bar {
  background: var(--qg-800);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 0;
}
.trust-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .trust-inner {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: rgba(255,255,255,0.85);
}
.trust-item i {
  font-size: 1.25rem;
  color: var(--wood-300);
  margin-top: 0.15rem;
}
.trust-item strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
}
.trust-item span {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.15rem;
}
.trust-item a { color: rgba(255,255,255,0.75); }

/* —— Footer —— */
.site-footer {
  background: var(--qg-800);
  color: var(--white);
  padding: 3rem 0 2rem;
}
@media (min-width: 768px) {
  .site-footer { padding: 4rem 0 2.5rem; }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.footer-ico {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.footer-firm,
.footer-license,
.footer-phone,
.footer-addr {
  font-size: 0.875rem;
  color: var(--qg-200);
  margin-bottom: 0.35rem;
  line-height: 1.6;
}
.footer-phone a:hover { color: var(--white); }
.footer-disclaimer-inline {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--qg-400);
  line-height: 1.6;
}
.footer-col-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--qg-100);
  margin-bottom: 1.25rem;
}
.footer-nav-links,
.footer-practices {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-nav-links a,
.footer-practices a {
  font-size: 0.875rem;
  color: var(--qg-200);
  transition: color 0.2s;
}
.footer-nav-links a:hover,
.footer-practices a:hover { color: var(--white); }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--qg-200);
  margin-bottom: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.footer-contact-item:hover { color: var(--white); }
.footer-hours {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--qg-300);
  margin-top: 0.5rem;
}
.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--qg-700);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-copy,
.footer-beian {
  font-size: 0.75rem;
  color: var(--qg-400);
}
.footer-tech {
  font-size: 0.7rem;
  color: var(--qg-400);
  opacity: 0.85;
}
.footer-tech a {
  color: var(--qg-300);
  text-decoration: underline;
}
.footer-tech a:hover { color: var(--white); }

/* —— PC convert / Mobile bar —— */
.pc-convert {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(250,249,246,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--qg-100);
  box-shadow: 0 -4px 20px rgba(47,59,68,0.06);
}
@media (min-width: 768px) {
  .pc-convert { display: block; }
}
.pc-convert-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.pc-convert-text strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--qg-800);
}
.pc-convert-text span {
  font-size: 0.75rem;
  color: var(--qg-500);
}
.pc-convert-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.pc-convert-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--qg-700);
  font-weight: 500;
  font-size: 0.9375rem;
}

.mobile-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--white);
  border-top: 1px solid var(--qg-200);
  height: 4rem;
  align-items: stretch;
  justify-content: space-around;
  padding: 0 0.25rem;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@media (min-width: 768px) {
  .mobile-bar { display: none; }
}
.mobile-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  color: var(--qg-400);
  font-size: 0.6875rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
}
.mobile-bar-item i { font-size: 1.25rem; }
.mobile-bar-item.mobile-cta {
  color: var(--qg-700);
  font-weight: 600;
}
.mobile-bar-item.mobile-cta i {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--qg-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

/* —— Wechat modal —— */
.wechat-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(47,59,68,0.55);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.wechat-modal.is-open {
  display: flex;
}
.wechat-modal-box {
  position: relative;
  background: var(--nuo);
  border-radius: var(--radius-2xl);
  padding: 2rem 1.5rem 1.5rem;
  width: 100%;
  max-width: 22rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.wechat-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: var(--qg-500);
  cursor: pointer;
  font-size: 1.25rem;
}
.wechat-modal-icon {
  font-size: 2.5rem;
  color: var(--qg-600);
  margin-bottom: 0.5rem;
}
.wechat-modal-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--qg-800);
  margin-bottom: 0.35rem;
}
.wechat-modal-desc {
  font-size: 0.8125rem;
  color: var(--qg-500);
  margin-bottom: 1.25rem;
}
.wechat-qr {
  margin: 0 auto 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--qg-100);
}
.wechat-id-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.wechat-id-label {
  font-size: 0.8125rem;
  color: var(--qg-500);
}
.wechat-id-value {
  font-size: 0.9375rem;
  color: var(--qg-800);
}
.wechat-id-row button {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--qg-300);
  background: var(--white);
  color: var(--qg-700);
  font-size: 0.8125rem;
  cursor: pointer;
}
.wechat-id-hint {
  font-size: 0.75rem;
  color: var(--qg-500);
  margin-bottom: 1rem;
}
.wechat-id-hint strong {
  color: #b45309;
}
.wechat-modal-dismiss {
  width: 100%;
  padding: 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--qg-200);
  background: var(--white);
  color: var(--qg-600);
  cursor: pointer;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  body:has(#wechat-modal img) .wechat-id-row,
  body:has(#wechat-modal img) .wechat-id-hint { display: none !important; }
}

/* —— Scroll reveal —— */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}
