/* =========================================================
   周荣律师个人主页
   视觉来源：原小程序 WXSS 的酒红 / 陶土红 / 暖金 / 米白体系
   说明：单文件样式，无外部字体与框架依赖，便于静态部署
   ========================================================= */

:root {
  --wine: #6d1421;
  --wine-deep: #3a060e;
  --wine-soft: #8c2b34;
  --terracotta: #c0492f;
  --gold: #c9a24b;
  --gold-light: #e7d3a3;
  --cream: #f5f1ea;
  --paper: #fffdf9;
  --paper-soft: #fbf7f0;
  --ink: #2d2a26;
  --ink-soft: #4a443e;
  --muted: #8a8079;
  --line: #e7ded2;
  --success: #2f6b4f;
  --shadow: 0 18px 50px rgba(58, 6, 14, 0.08);
  --shadow-soft: 0 8px 26px rgba(58, 6, 14, 0.06);
  --max-width: 1200px;
  --radius: 20px;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

h1, h2, h3, p, dl, dd, figure, blockquote {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  color: var(--paper);
  background: var(--terracotta);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 18px;
  color: var(--paper);
  background: var(--wine);
  border-radius: 0 0 10px 10px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ========== 页眉导航 ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(109, 20, 33, 0.08);
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(58, 6, 14, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max-width), calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--gold-light);
  background: var(--wine);
  border: 1px solid rgba(201, 162, 75, 0.55);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.08em;
}

.brand-text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.site-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--terracotta);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--wine);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav .nav-cta {
  padding: 9px 18px;
  color: var(--paper);
  background: var(--wine);
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-nav .nav-cta:hover {
  background: var(--terracotta);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--wine);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ========== 首屏 ========== */

.hero {
  position: relative;
  display: flex;
  min-height: min(820px, calc(100vh - 76px));
  overflow: hidden;
  align-items: center;
  color: var(--paper);
  background: var(--wine-deep);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("../assets/photo-banner.jpg");
  background-position: center 34%;
  background-size: cover;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(35, 4, 10, 0.96) 0%, rgba(58, 6, 14, 0.88) 40%, rgba(58, 6, 14, 0.48) 72%, rgba(58, 6, 14, 0.2) 100%),
    linear-gradient(0deg, rgba(35, 4, 10, 0.78) 0%, transparent 48%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: end;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0 96px;
  gap: 60px;
}

.hero-copy {
  max-width: 740px;
  animation: rise-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-light);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: var(--gold);
  content: "";
}

.hero h1 {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: clamp(64px, 8vw, 112px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
}

.hero h1 span {
  margin-left: 12px;
  color: var(--gold-light);
  font-size: 0.3em;
  font-weight: 400;
  letter-spacing: 0.2em;
  vertical-align: 0.5em;
}

.hero-lead {
  margin-top: 30px;
  color: #fff7ea;
  font-family: var(--serif);
  font-size: clamp(23px, 2.3vw, 34px);
  line-height: 1.65;
  letter-spacing: 0.03em;
}

.hero-sub {
  max-width: 620px;
  margin-top: 18px;
  color: rgba(255, 253, 249, 0.76);
  font-size: 15px;
  line-height: 1.9;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  margin-top: 26px;
  gap: 10px;
}

.hero-chips li {
  padding: 7px 14px;
  color: rgba(255, 253, 249, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(231, 211, 163, 0.28);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 34px;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.25;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--wine-deep);
  background: var(--gold-light);
}

.button-primary:hover {
  background: #f3e4bd;
}

.button-primary span,
.button-primary small {
  display: block;
}

.button-primary small {
  margin-left: 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.72;
}

.button-ghost {
  color: var(--paper);
  background: transparent;
  border-color: rgba(255, 253, 249, 0.3);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 253, 249, 0.58);
}

.button-outline {
  color: var(--wine);
  background: transparent;
  border-color: rgba(109, 20, 33, 0.3);
}

.button-outline:hover {
  background: rgba(109, 20, 33, 0.06);
}

.hero-meta {
  margin-top: 22px;
  color: rgba(255, 253, 249, 0.52);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.hero-card {
  padding: 24px;
  background: rgba(35, 4, 10, 0.54);
  border: 1px solid rgba(231, 211, 163, 0.26);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: rise-in 0.8s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(231, 211, 163, 0.2);
}

.seal {
  display: inline-grid;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  place-items: center;
  color: var(--wine-deep);
  background: var(--gold-light);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 24px;
}

.hero-card-name {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.06em;
}

.hero-card-role {
  margin-top: 2px;
  color: var(--gold-light);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.hero-card-list {
  padding: 12px 0 4px;
}

.hero-card-list div {
  display: grid;
  grid-template-columns: 64px 1fr;
  padding: 8px 0;
  gap: 12px;
  font-size: 12px;
}

.hero-card-list dt {
  color: rgba(255, 253, 249, 0.46);
}

.hero-card-list dd {
  color: rgba(255, 253, 249, 0.86);
  line-height: 1.65;
}

.hero-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 16px;
  color: var(--gold-light);
  border-top: 1px solid rgba(231, 211, 163, 0.2);
  font-size: 12px;
}

.hero-card-link span {
  transition: transform 0.2s ease;
}

.hero-card-link:hover span {
  transform: translateX(4px);
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 54px;
  place-items: start center;
  padding-top: 11px;
  border: 1px solid rgba(255, 253, 249, 0.24);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  width: 4px;
  height: 9px;
  background: var(--gold-light);
  border-radius: 999px;
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(16px); opacity: 1; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== 数据带 ========== */

.stats-band {
  position: relative;
  z-index: 2;
  width: min(var(--max-width), calc(100% - 48px));
  margin: -34px auto 0;
  padding: 0 0 6px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat {
  padding: 28px 20px;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat-value {
  color: var(--wine);
  font-family: var(--serif);
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-value small {
  margin-left: 3px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
}

.stat-value sup {
  color: var(--terracotta);
  font-family: var(--sans);
  font-size: 11px;
  vertical-align: super;
}

.stat-label {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.stats-note {
  padding: 11px 8px 0;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

/* ========== 通用板块 ========== */

.section {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 46px;
}

.section-head-row {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: end;
  gap: 32px;
}

.section-kicker {
  margin-bottom: 18px;
  color: var(--terracotta);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section h2 {
  color: var(--wine);
  font-family: var(--serif);
  font-size: clamp(34px, 4.3vw, 58px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0.01em;
}

.section-intro {
  padding-bottom: 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.section-footnote {
  margin-top: 24px;
  padding: 14px 18px;
  color: var(--muted);
  background: rgba(255, 253, 249, 0.6);
  border-left: 2px solid var(--gold);
  font-size: 11px;
}

.nowrap {
  white-space: nowrap;
}

.mobile-break {
  display: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 26px;
  padding-bottom: 4px;
  color: var(--wine);
  border-bottom: 1px solid rgba(109, 20, 33, 0.28);
  font-size: 13px;
  gap: 14px;
}

.text-link span {
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

/* ========== 概览 ========== */

.overview-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  align-items: start;
  gap: 70px;
}

.overview-lead {
  padding-top: 6px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 2.05;
}

.overview-lead p + p {
  margin-top: 20px;
}

.overview-lead p:first-child {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.9;
}

.overview-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pillar {
  min-height: 280px;
  padding: 24px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.pillar-no {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--paper);
  background: var(--terracotta);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 13px;
}

.pillar h3 {
  margin-top: 32px;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
}

.pillar p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

/* ========== 个人与团队 ========== */

.about-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  align-items: start;
  gap: 58px;
}

.portrait-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  object-fit: cover;
  object-position: center top;
}

.portrait-card figcaption {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line);
}

.portrait-card figcaption span {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 20px;
}

.portrait-card figcaption small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.about-body {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 2.05;
}

.about-body p + p {
  margin-top: 16px;
}

.about-lead {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.9;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.fact-grid div {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact-grid .fact-wide {
  grid-column: 1 / -1;
}

.fact-grid dt {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.fact-grid dd {
  margin-top: 5px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.fact-grid dd a:hover {
  color: var(--terracotta);
}

.team-panel {
  display: grid;
  grid-template-columns: 220px 1fr;
  margin-top: 62px;
  padding: 36px 40px;
  color: var(--paper);
  background:
    radial-gradient(circle at 86% 12%, rgba(201, 162, 75, 0.17), transparent 30%),
    var(--wine);
  border-radius: var(--radius);
  gap: 14px 36px;
}

.team-panel-head {
  grid-row: span 2;
}

.team-label {
  color: var(--gold-light);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.team-lead {
  margin-top: 8px;
  color: rgba(255, 253, 249, 0.58);
  font-size: 13px;
}

.team-lead strong {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
}

.team-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-chips li {
  padding: 6px 13px;
  color: var(--gold-light);
  border: 1px solid rgba(231, 211, 163, 0.28);
  border-radius: 999px;
  font-size: 11px;
}

.team-note {
  color: rgba(255, 253, 249, 0.66);
  font-size: 13px;
  line-height: 1.9;
}

.philosophy {
  position: relative;
  margin-top: 40px;
  padding: 34px 38px 32px 48px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0 16px 16px 0;
}

.philosophy::before {
  position: absolute;
  top: 2px;
  left: 16px;
  color: rgba(201, 162, 75, 0.38);
  content: "“";
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
}

.philosophy p {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.7;
}

.philosophy footer {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

/* ========== 专业领域 ========== */

.direction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.direction-card {
  position: relative;
  min-height: 220px;
  padding: 28px 28px 26px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.direction-card::after {
  position: absolute;
  right: -34px;
  bottom: -48px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(201, 162, 75, 0.2);
  border-radius: 50%;
  content: "";
  transition: transform 0.35s ease;
}

.direction-card:hover {
  border-color: rgba(192, 73, 47, 0.35);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.direction-card:hover::after {
  transform: scale(1.18);
}

.direction-card-wide {
  grid-column: 1 / -1;
  min-height: 190px;
}

.direction-no {
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.direction-card h3 {
  margin-top: 18px;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
}

.direction-card p {
  max-width: 520px;
  margin-top: 11px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.95;
}

/* ========== 案例 ========== */

.cases {
  padding-bottom: 0;
}

.case-tabs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  gap: 28px;
}

.case-tab {
  position: relative;
  padding: 0 2px 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.case-tab span {
  margin-left: 4px;
  color: var(--terracotta);
  font-size: 10px;
}

.case-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--terracotta);
  content: "";
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.case-tab:hover,
.case-tab.is-active {
  color: var(--wine);
}

.case-tab.is-active::after {
  transform: scaleX(1);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.case-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  padding: 26px 26px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--terracotta);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.case-tag {
  color: var(--terracotta);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.case-card h3 {
  margin-top: 10px;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.55;
}

.case-desc {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.95;
}

.case-result {
  margin-top: auto;
  padding-top: 18px;
  color: var(--success);
  font-size: 12.5px;
  line-height: 1.8;
}

.case-result span {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 7px;
  color: var(--success);
  background: #edf5ef;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.case-panel[hidden] {
  display: none;
}

/* ========== 优势 ========== */

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.advantage-card {
  position: relative;
  padding: 30px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 16px 16px;
}

.advantage-index {
  position: absolute;
  top: 24px;
  right: 24px;
  color: rgba(109, 20, 33, 0.14);
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
}

.advantage-card h3 {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}

.advantage-sub {
  margin-top: 5px;
  color: var(--terracotta);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.advantage-card > p:last-child {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 2;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 54px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  gap: 56px;
}

.audience-column h3 {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}

.audience-list,
.scene-list {
  margin-top: 18px;
}

.audience-list li,
.scene-list li {
  position: relative;
  padding: 12px 0 12px 22px;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  line-height: 1.8;
}

.audience-list li::before {
  position: absolute;
  top: 19px;
  left: 2px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  content: "";
}

.scene-list li::before {
  position: absolute;
  top: 15px;
  left: 1px;
  color: var(--terracotta);
  content: "✓";
  font-size: 11px;
}

/* ========== 认可与数据 ========== */

.recognition-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.recognition-score {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 34px;
  color: var(--paper);
  background:
    linear-gradient(160deg, rgba(201, 162, 75, 0.14), transparent 42%),
    var(--wine);
}

.score-value {
  font-family: var(--serif);
  font-size: 74px;
  font-weight: 500;
  line-height: 1;
}

.score-value small {
  margin-left: 4px;
  font-family: var(--sans);
  font-size: 20px;
}

.score-value sup {
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 12px;
}

.score-label {
  margin-top: 10px;
  color: var(--gold-light);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.score-note {
  margin-top: 28px;
  padding-top: 18px;
  color: rgba(255, 253, 249, 0.5);
  border-top: 1px solid rgba(231, 211, 163, 0.2);
  font-size: 10px;
  line-height: 1.8;
}

.recognition-main {
  padding: 36px 42px;
}

.recognition-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  gap: 22px;
}

.recognition-numbers strong {
  display: block;
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
}

.recognition-numbers strong small {
  font-family: var(--sans);
  font-size: 12px;
}

.recognition-numbers strong sup {
  font-family: var(--sans);
  font-size: 9px;
}

.recognition-numbers span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.recognition-list {
  padding-top: 12px;
}

.recognition-list li {
  position: relative;
  padding: 11px 0 11px 18px;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}

.recognition-list li:last-child {
  border-bottom: 0;
}

.recognition-list li::before {
  position: absolute;
  top: 19px;
  left: 2px;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  content: "";
}

.recognition-list span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

/* ========== 素材 ========== */

.material-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.material-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.material-frame {
  overflow: hidden;
  background: var(--paper-soft);
}

.material-frame img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.material-card:hover .material-frame img {
  transform: scale(1.035);
}

.material-portrait .material-frame img {
  object-position: center top;
}

.material-banner .material-frame img {
  object-position: center;
}

.material-qr .material-frame {
  display: grid;
  place-items: center;
  background: #f0efe9;
}

.material-qr .material-frame img {
  width: 220px;
  height: 220px;
  object-fit: contain;
}

.material-card figcaption {
  display: flex;
  flex: 1;
  align-items: flex-end;
  justify-content: space-between;
  padding: 18px 20px 20px;
  gap: 14px;
}

.material-card h3 {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}

.material-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.material-card a {
  flex-shrink: 0;
  padding-bottom: 1px;
  color: var(--terracotta);
  border-bottom: 1px solid rgba(192, 73, 47, 0.3);
  font-size: 10px;
}

.palette {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  margin-top: 18px;
  padding: 24px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  gap: 28px;
}

.palette h3 {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}

.palette-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.swatches li {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 2px 8px;
}

.swatches span {
  display: block;
  width: 24px;
  height: 24px;
  grid-row: span 2;
  background: var(--swatch);
  border: 1px solid rgba(45, 42, 38, 0.08);
  border-radius: 50%;
}

.swatches b {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
}

.swatches code {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

/* ========== 联系方式 ========== */

.contact {
  width: 100%;
  margin-top: 112px;
  padding: 92px 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 12% 18%, rgba(201, 162, 75, 0.14), transparent 26%),
    radial-gradient(circle at 88% 82%, rgba(192, 73, 47, 0.18), transparent 30%),
    var(--wine-deep);
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  gap: 80px;
}

.contact .section-kicker {
  color: var(--gold-light);
}

.contact h2 {
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 500;
  line-height: 1.45;
}

.contact h2 span {
  white-space: nowrap;
}

.contact-lead {
  max-width: 520px;
  margin-top: 24px;
  color: rgba(255, 253, 249, 0.62);
  font-size: 14px;
  line-height: 2;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
  gap: 12px;
}

.contact .button-primary {
  color: var(--wine-deep);
  background: var(--gold-light);
}

.contact .button-outline {
  color: var(--paper);
  border-color: rgba(255, 253, 249, 0.3);
}

.contact .button-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.contact-note {
  max-width: 520px;
  margin-top: 20px;
  color: rgba(255, 253, 249, 0.4);
  font-size: 10px;
  line-height: 1.8;
}

.contact-card {
  padding: 28px 30px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.contact-list div {
  display: grid;
  grid-template-columns: 70px 1fr;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}

.contact-list dt {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.contact-list dd {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.contact-list dd a:hover {
  color: var(--terracotta);
}

.copy-inline {
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

.copy-inline span {
  margin-left: 6px;
  color: var(--terracotta);
  font-size: 9px;
  font-weight: 400;
}

.contact-qr {
  display: flex;
  align-items: center;
  margin-top: 20px;
  padding: 14px;
  background: var(--paper-soft);
  border: 1px dashed rgba(201, 162, 75, 0.55);
  border-radius: 12px;
  gap: 16px;
}

.contact-qr img {
  width: 86px;
  height: 86px;
  flex-shrink: 0;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-qr p {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 16px;
}

.contact-qr span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
  gap: 7px;
}

.contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  color: var(--wine);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.contact-links a:hover {
  color: var(--terracotta);
}

/* ========== 页脚 ========== */

.site-footer {
  padding: 46px 0 30px;
  color: rgba(255, 253, 249, 0.62);
  background: #2a050b;
  font-size: 11.5px;
}

.footer-inner {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 253, 249, 0.1);
  gap: 12px;
}

.footer-brand .brand-mark {
  color: var(--wine-deep);
  background: var(--gold-light);
}

.footer-brand strong {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.footer-brand p {
  margin-top: 2px;
  font-size: 10.5px;
}

.footer-legal {
  padding: 20px 0;
  color: rgba(255, 253, 249, 0.68);
  line-height: 1.9;
}

.footer-placeholder {
  margin-top: 8px;
  color: rgba(231, 211, 163, 0.55);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 253, 249, 0.1);
  gap: 24px;
}

/* ========== 提示条 ========== */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 300;
  max-width: calc(100% - 40px);
  padding: 10px 18px;
  color: var(--paper);
  background: var(--wine);
  border: 1px solid rgba(231, 211, 163, 0.35);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(58, 6, 14, 0.28);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ========== 中等屏幕 ========== */

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px;
  }

  .overview-grid {
    gap: 40px;
  }

  .overview-pillars {
    grid-template-columns: 1fr;
  }

  .pillar {
    min-height: auto;
  }

  .pillar h3 {
    margin-top: 18px;
  }

  .about-grid {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 36px;
  }

  .contact-shell {
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 44px;
  }

  .material-frame img {
    height: 230px;
  }
}

/* ========== 移动端导航与布局 ========== */

@media (max-width: 900px) {
  html {
    scroll-padding-top: 72px;
  }

  .nav-shell {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    display: flex;
    max-height: calc(100vh - 68px);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px 28px;
    overflow-y: auto;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(58, 6, 14, 0.12);
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 13px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav .nav-cta {
    margin-top: 16px;
    padding: 12px 18px;
    color: var(--paper);
    text-align: center;
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(35, 4, 10, 0.94), rgba(58, 6, 14, 0.7)),
      linear-gradient(0deg, rgba(35, 4, 10, 0.94), transparent 70%);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 66px 0 78px;
    gap: 34px;
  }

  .hero-card {
    max-width: 430px;
  }

  .scroll-cue {
    display: none;
  }

  .stats-band {
    margin-top: -26px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .stat:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .section {
    padding-top: 82px;
  }

  .section-head-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }

  .section-intro {
    max-width: 560px;
    padding-bottom: 0;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .overview-pillars {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .portrait-card {
    max-width: 420px;
  }

  .portrait-card img {
    aspect-ratio: 1 / 0.92;
  }

  .team-panel {
    grid-template-columns: 1fr;
    padding: 30px 28px;
  }

  .team-panel-head {
    grid-row: auto;
  }

  .advantage-grid {
    grid-template-columns: 1fr;
  }

  .recognition-grid {
    grid-template-columns: 1fr;
  }

  .recognition-score {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: end;
    padding: 32px;
    gap: 0 18px;
  }

  .score-value {
    grid-row: span 2;
  }

  .score-label {
    align-self: end;
  }

  .score-note {
    grid-column: 1 / -1;
    margin-top: 22px;
  }

  .material-grid {
    grid-template-columns: 1fr 1fr;
  }

  .material-banner {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .material-banner .material-frame img {
    height: 300px;
  }

  .palette {
    grid-template-columns: 1fr;
  }

  .contact {
    margin-top: 82px;
    padding: 72px 0;
  }

  .contact-shell {
    grid-template-columns: 1fr;
    gap: 42px;
  }

}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .nav-shell,
  .hero-inner,
  .stats-band,
  .section,
  .contact-shell,
  .footer-inner {
    width: min(100% - 32px, var(--max-width));
  }

  .brand-text small {
    display: none;
  }

  .hero-inner {
    padding: 50px 0 64px;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .hero h1 {
    margin-top: 18px;
    font-size: 58px;
  }

  .hero h1 span {
    margin-left: 6px;
    font-size: 0.28em;
  }

  .hero-lead {
    margin-top: 22px;
    font-size: 22px;
  }

  .hero-sub {
    font-size: 13px;
  }

  .hero-chips li {
    padding: 6px 11px;
    font-size: 10.5px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .button {
    min-height: 48px;
    padding: 10px 16px;
    font-size: 12px;
  }

  .button-primary small {
    display: none;
  }

  .hero-card {
    padding: 20px;
  }

  .stats-band {
    margin-top: -20px;
  }

  .stat {
    padding: 20px 10px;
  }

  .stat-value {
    font-size: 32px;
  }

  .stats-note {
    text-align: left;
  }

  .section {
    padding-top: 68px;
  }

  .section h2 {
    font-size: clamp(28px, 8.2vw, 32px);
  }

  .overview-lead p:first-child {
    font-size: 18px;
  }

  .overview-pillars {
    grid-template-columns: 1fr;
  }

  .pillar {
    min-height: auto;
  }

  .about-lead {
    font-size: 19px;
  }

  .fact-grid {
    grid-template-columns: 1fr;
  }

  .philosophy {
    padding: 28px 22px 26px 38px;
  }

  .philosophy p {
    font-size: 18px;
    line-height: 1.75;
  }

  .mobile-break {
    display: inline;
  }

  .direction-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .direction-card {
    min-height: auto;
  }

  .case-tabs {
    gap: 18px;
  }

  .case-tab {
    font-size: 12px;
  }

  .case-card {
    min-height: auto;
  }

  .case-result {
    margin-top: 18px;
  }

  .audience-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .recognition-main {
    padding: 26px 22px;
  }

  .recognition-numbers {
    gap: 12px;
  }

  .recognition-numbers strong {
    font-size: 29px;
  }

  .material-grid {
    grid-template-columns: 1fr;
  }

  .material-banner {
    grid-column: auto;
    grid-row: auto;
  }

  .material-frame img,
  .material-banner .material-frame img {
    height: 250px;
  }

  .swatches {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact {
    padding: 58px 0;
  }

  .contact h2 {
    font-size: clamp(24px, 7.6vw, 30px);
  }

  .contact-card {
    padding: 22px 20px;
  }

  .contact-list div {
    grid-template-columns: 64px 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ========== 动效与打印 ========== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .scroll-cue,
  .hero-actions,
  .contact-actions,
  .toast {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .hero {
    min-height: auto;
    color: #000;
    background: #fff;
  }

  .hero-media,
  .hero-shade {
    display: none;
  }

  .hero-card,
  .team-panel,
  .recognition-score,
  .contact {
    color: #000;
    background: #fff;
  }

  .section,
  .contact-shell {
    width: 100%;
    padding-top: 28px;
  }
}
