/* 非雨文化科技 — DESIGN.md #1b6f67
   Typography/spatial: frontend-design · Breakpoints/clamp: responsive-design
   A11y/focus/touch: Web Interface Guidelines */

:root {
  --color-brand: #1b6f67;
  --color-brand-hover: #155a54;
  --color-brand-muted: rgba(27, 111, 103, 0.12);
  --color-brand-border: rgba(27, 111, 103, 0.25);
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-band: #f4f7f6;
  --color-text: #1a1a1a;
  --color-text-muted: #5c5c5c;
  --color-border: rgba(0, 0, 0, 0.08);
  --font-sans: "Plus Jakarta Sans", "Noto Sans SC", system-ui, sans-serif;
  --font-ui: "Plus Jakarta Sans", "Noto Sans SC", system-ui, sans-serif;
  /* 版心略放宽，大屏留白更稳（responsive-design: 一致 container） */
  --max: 76rem;
  --wrap-pad: clamp(1.125rem, 4.5vw, 2.75rem);
  /* 正文行长：约 60–72 字宽，中英文混排用 ch + 上限 */
  --prose: min(65ch, 100%);
  --prose-heading: min(36rem, 100%);
  --radius: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4rem;
  /* 固定顶栏占位：条高 + 刘海（锚点滚动、抽屉导航与 Hero 顶距共用） */
  --header-offset: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  /* 流体字号 / 行高（ui-ux-pro-max: body ≥16px, leading 1.5–1.75） */
  --text-body: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --leading-body: 1.68;
  --leading-heading: 1.14;
  /* 区块纵向节奏 */
  --section-y: clamp(3.75rem, 9vw, 6.25rem);
  --stack-md: clamp(1rem, 2.5vw, 1.35rem);
  /* 每「屏」最低高度：vh → svh（移动地址栏）→ dvh */
  --screen-min: 100vh;
  --screen-min: 100svh;
  --screen-min: 100dvh;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text);
  background: var(--color-bg);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* Touch & theme (Web Interface Guidelines) */
.site {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(27, 111, 103, 0.12);
  color-scheme: only light;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.site::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 勿把 .header 写进此处：会覆盖 .header 的 position:fixed 与 z-index，导致菜单叠在正文下像「透明」 */
.site main,
.site .footer {
  position: relative;
  z-index: 1;
}

/* 主栏禁止横向撑出视口（避免左右拖动） */
main#main {
  overflow-x: hidden;
  max-width: 100%;
}

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

/* 移动抽屉打开时：顶栏改为实底，避免 backdrop-filter 与下层叠在一起发「透」 */
html.nav-menu-open .header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(250, 250, 250, 0.98);
}

/* 抽屉背后的遮罩：在正文之上、顶栏之下，点击关闭 */
.nav-scrim {
  display: none;
}

@media (max-width: 899px) {
  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 180;
    background: rgba(26, 26, 26, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.28s var(--ease),
      visibility 0.28s var(--ease);
  }

  .nav-scrim.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.65rem 1rem;
  background: var(--color-brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus-visible {
  left: 1rem;
  top: 1rem;
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

.wrap {
  width: min(100% - 2 * var(--wrap-pad), var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: env(safe-area-inset-top, 0px);
  padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
  min-height: var(--header-offset);
  height: auto;
  box-sizing: border-box;
  background: rgba(250, 250, 250, 0.88);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
}

.header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.header__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2 * var(--wrap-pad), var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 1 1 auto;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-text);
  min-height: 44px;
  padding: 0.25rem 0;
  min-width: 0;
}

/* 顶栏：圆形标（Logo.png）+ 文字，不放 Combined 大图 */
.brand__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  line-height: 1.2;
}

.brand__line1 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46vw;
}

@media (min-width: 640px) {
  .brand__line1 {
    max-width: none;
  }
}

.brand__line2 {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

@media (max-width: 420px) {
  .brand__line2 {
    display: none;
  }
}

.nav-toggle {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  cursor: pointer;
  color: var(--color-text);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

.nav-toggle .bars {
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 2vw, 1.5rem);
}

@media (max-width: 899px) {
  .nav {
    position: fixed;
    top: var(--header-offset);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem max(var(--wrap-pad), env(safe-area-inset-left, 0px)) calc(2rem + env(safe-area-inset-bottom, 0px))
      max(var(--wrap-pad), env(safe-area-inset-right, 0px));
    max-height: calc(100svh - var(--header-offset));
    max-height: calc(100dvh - var(--header-offset));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* 实色底，避免被父级毛玻璃或层叠误伤成「透明」 */
    background-color: #ffffff;
    background: #ffffff;
    border-top: 1px solid var(--color-border);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.1);
    isolation: isolate;
    transform: translateX(100%);
    transition: transform 0.28s var(--ease);
    overscroll-behavior: contain;
    will-change: transform;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav-toggle {
    position: relative;
    z-index: 3;
  }

  .brand {
    position: relative;
    z-index: 3;
  }

  .nav a {
    padding: 0.65rem 0;
    font-size: 1rem;
  }
}

.nav a {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--color-brand);
}

.nav a:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 4px;
  border-radius: 4px;
}

.nav .lang {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--color-brand-border);
  color: var(--color-brand);
}

.nav .lang:hover {
  background: var(--color-brand-muted);
}

.nav .lang:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
}

/* —— Hero —— */
.hero {
  min-height: var(--screen-min);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-offset) + clamp(2.5rem, 9vw, 5rem));
  padding-bottom: clamp(3.5rem, 11vw, 5.75rem);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* 勿用 width:100% 覆盖 .wrap，否则会顶满视口两侧 */
.hero .wrap {
  align-self: center;
  flex-shrink: 0;
  max-width: 100%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 60% at 100% 0%, var(--color-brand-muted), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(27, 111, 103, 0.06), transparent 50%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(2.25rem, 5.5vw, 4.5rem);
  align-items: start;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: start;
    gap: clamp(2.5rem, 6vw, 5rem);
  }

  /* 主文案列控制行长，避免宽屏一行过长 */
  .hero__grid > div:first-child {
    max-width: min(44rem, 100%);
    justify-self: start;
  }

  .hero__grid > .hero__brandplate {
    justify-self: end;
    width: 100%;
    max-width: min(22rem, 100%);
  }

  .hero__brandplate {
    transform: rotate(-0.75deg);
    transition: transform 0.35s var(--ease);
  }

  .hero__grid:hover .hero__brandplate {
    transform: rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__brandplate,
  .hero__grid:hover .hero__brandplate {
    transform: none !important;
  }
}

/* Display serif: zh / en (frontend-design pairing) */
html[lang="zh-Hans"] .hero__title,
html[lang="zh-Hans"] .section h2 {
  font-family: "Noto Serif SC", "Source Han Serif SC", serif;
  font-weight: 700;
}

html[lang="zh-Hans"] .hero__title {
  max-width: min(28ch, 100%);
}

html[lang="en"] .hero__title,
html[lang="en"] .section h2 {
  font-family: "Fraunces", "Noto Serif SC", Georgia, serif;
  font-weight: 600;
}

html[lang="en"] .hero__title {
  max-width: min(20ch, 100%);
}

@media (min-width: 640px) {
  html[lang="en"] .hero__title {
    max-width: 28ch;
  }
}

.hero__title {
  font-size: clamp(2.05rem, 1.1rem + 4.2vw, 3.55rem);
  line-height: var(--leading-heading);
  letter-spacing: -0.028em;
  margin: 0 0 var(--stack-md);
  text-wrap: balance;
  font-feature-settings: "kern" 1, "liga" 1;
}

.hero__lede {
  margin: 0 0 var(--stack-md);
  font-size: clamp(1.03rem, 0.92rem + 0.45vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: var(--prose);
  line-height: 1.7;
}

.hero__lede + .hero__lede {
  margin-top: 0.15rem;
}

.hero__actions {
  margin-top: clamp(1.35rem, 3vw, 1.85rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--color-brand);
  color: #fff;
}

.btn--primary:hover {
  background-color: var(--color-brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(27, 111, 103, 0.22);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--color-brand);
  border: 1px solid var(--color-brand-border);
}

.btn--ghost:hover {
  background-color: var(--color-brand-muted);
  border-color: var(--color-brand);
}

@media (prefers-reduced-motion: reduce) {
  .btn--primary:hover,
  .btn--primary:active {
    transform: none;
    box-shadow: none;
  }
}

/* Hero 右侧：仅 Combined 主视觉 */
.hero__brandplate {
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: 0 20px 50px rgba(27, 111, 103, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__combined-logo {
  width: min(240px, 58vw);
  height: auto;
  display: block;
  object-fit: contain;
}

/* 页脚：仅花字，体量小 */
.footer__mark {
  margin-bottom: 1.25rem;
}

.footer__script {
  width: min(200px, 70%);
  height: auto;
  margin-inline: auto;
  display: block;
  opacity: 0.85;
}

/* —— Sections —— */
.section {
  min-height: var(--screen-min);
  padding-block: var(--section-y);
  text-align: start;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section .wrap {
  text-align: start;
  align-self: center;
  flex-shrink: 0;
  max-width: 100%;
}

/* 内容超出视窗时改为自上向下排布，避免 flex 居中把长版顶出奇怪留白 */
.section--scroll {
  justify-content: flex-start;
}

/* 滚动进入（由 main.js 添加 html.js-reveal + section.is-inview；尊重 reduced-motion） */
@media (prefers-reduced-motion: no-preference) {
  html.js-reveal main > section.section:not(.is-inview) .wrap {
    opacity: 0;
    transform: translate3d(0, 1.35rem, 0);
  }

  html.js-reveal main > section.section .wrap {
    transition:
      opacity 0.75s var(--ease),
      transform 0.75s var(--ease);
  }

  html.js-reveal main > section.section.is-inview .wrap {
    opacity: 1;
    transform: none;
  }
}

.section__label {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin: 0 0 clamp(1.2rem, 2.8vw, 1.65rem);
  padding-bottom: 0.65rem;
  width: fit-content;
  max-width: 100%;
  border-bottom: 1px solid var(--color-brand-border);
  text-align: start;
}

.section h2 {
  font-size: clamp(1.62rem, 1.35rem + 1.35vw, 2.42rem);
  letter-spacing: -0.022em;
  margin: 0 0 clamp(1.1rem, 2.4vw, 1.45rem);
  line-height: 1.22;
  text-wrap: balance;
  max-width: var(--prose-heading);
  font-feature-settings: "kern" 1, "liga" 1;
  text-align: start;
}

/* Anchor scroll under fixed header (Web Interface Guidelines) */
.section[id] {
  scroll-margin-top: calc(var(--header-offset) + 0.75rem);
}

.section__prose {
  margin: 0;
  color: var(--color-text-muted);
  max-width: var(--prose);
  line-height: 1.7;
}

.section__prose + .section__prose {
  margin-top: var(--stack-md);
}

.section__prose--meta {
  margin-top: 1.25rem;
  font-size: 0.9rem;
}

.link-inline {
  color: var(--color-brand-hover);
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.link-inline:hover {
  text-decoration: underline;
}

.link-inline:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Alternating band — rhythm & depth (frontend-design, restrained) */
.section--band {
  background: var(--color-band);
  border-block: 1px solid var(--color-border);
}

/* Capability cards — container query */
.cap-wrap {
  container-type: inline-size;
  container-name: cap;
  margin-top: clamp(1.75rem, 4vw, 2.35rem);
}

.cap-grid {
  display: grid;
  gap: clamp(0.85rem, 2vw, 1.15rem);
}

@container cap (min-width: 640px) {
  .cap-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.cap-card {
  padding: clamp(1.35rem, 3vw, 1.65rem);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.cap-card:hover {
  border-color: var(--color-brand-border);
  box-shadow: 0 12px 32px rgba(27, 111, 103, 0.08);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .cap-card:hover {
    transform: none;
  }
}

.cap-card h3 {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--color-brand);
}

.cap-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: clamp(1.5rem, 3.5vw, 2rem);
  max-width: min(42rem, 100%);
}

.tag {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--color-brand-muted);
  color: var(--color-brand-hover);
  border: 1px solid transparent;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.tag:hover {
  border-color: var(--color-brand-border);
  background: rgba(27, 111, 103, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .tag:hover {
    transform: none;
  }
}

/* Edge list */
.edge-list {
  margin: clamp(1.5rem, 3.5vw, 2rem) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.2rem);
  max-width: min(40rem, 100%);
}

.edge-list li {
  padding-left: 1.25rem;
  border-left: 3px solid var(--color-brand);
  font-size: 0.98rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.edge-list--mt {
  margin-top: 2rem;
}

/* Team */
.team-grid {
  display: grid;
  gap: clamp(0.85rem, 2vw, 1.1rem);
  margin-top: clamp(1.75rem, 4vw, 2.35rem);
}

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

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

.face {
  padding: clamp(1.1rem, 2.5vw, 1.35rem);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.face:hover {
  border-color: var(--color-brand-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.face__role {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 0.35rem;
}

.face__name {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
}

.face__en {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* 联系：全站同款 .wrap + 邮件卡片限宽 */
.section--contact {
  padding-bottom: clamp(4rem, 11vw, 6rem);
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-band) 100%);
  border-top: 1px solid var(--color-border);
}

/* 类名保留以兼容 HTML，视觉与正文一致左齐 */
.section__prose--center {
  text-align: start;
  margin-inline: 0;
  max-width: var(--prose);
}

/* 与其它章节同一 .wrap 左缘；卡片单独限宽避免过宽 */
.contact-cta {
  margin-top: clamp(1.75rem, 4vw, 2.35rem);
  max-width: min(40rem, 100%);
  padding: clamp(1.75rem, 4vw, 2.35rem) clamp(1.35rem, 4vw, 2rem);
  background: var(--color-surface);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 56px rgba(27, 111, 103, 0.07), 0 2px 0 rgba(255, 255, 255, 0.8) inset;
  text-align: start;
}

.contact-cta__mail {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.8vw, 1.45rem);
  letter-spacing: 0.01em;
  color: var(--color-brand);
  text-decoration: none;
  word-break: break-all;
  line-height: 1.35;
}

.contact-cta__mail:hover {
  color: var(--color-brand-hover);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.contact-cta__mail:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 4px;
  border-radius: 6px;
}

.contact-cta__note {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Footer */
.footer {
  padding: clamp(2.5rem, 6vw, 3.5rem) max(0px, env(safe-area-inset-left, 0px)) calc(clamp(2.75rem, 7vw, 4rem) + env(safe-area-inset-bottom, 0px))
    max(0px, env(safe-area-inset-right, 0px));
  border-top: 1px solid var(--color-border);
  text-align: center;
}

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

.footer .poem {
  margin-top: 0.5rem;
  font-style: italic;
  color: var(--color-text-muted);
}

/* Subtle entrance (respects reduced motion via global media query zeroing transitions) */
@media (prefers-reduced-motion: no-preference) {
  .hero__anim {
    opacity: 0;
    transform: translateY(12px);
    animation: rise 0.7s var(--ease) forwards;
  }

  .hero__anim:nth-child(1) {
    animation-delay: 0.04s;
  }

  .hero__anim:nth-child(2) {
    animation-delay: 0.1s;
  }

  .hero__anim:nth-child(3) {
    animation-delay: 0.16s;
  }

  .hero__anim:nth-child(4) {
    animation-delay: 0.22s;
  }

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

/* —— 手机 / 窄屏（≤899px）：节奏、触控与 Hero 单列 —— */
@media (max-width: 899px) {
  .section {
    min-height: 0;
    justify-content: flex-start;
    padding-block: clamp(2.5rem, 10vw, 4.25rem);
  }

  .hero {
    padding-top: calc(var(--header-offset) + clamp(1.65rem, 7vw, 3.5rem));
    padding-bottom: clamp(2.25rem, 9vw, 4.5rem);
  }

  .hero__grid {
    gap: clamp(1.65rem, 5vw, 2.35rem);
  }

  .hero__grid > .hero__brandplate {
    justify-self: center;
    width: 100%;
    max-width: min(18rem, 100%);
  }

  .hero__combined-logo {
    width: min(200px, 72vw);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  html[lang="zh-Hans"] .section__label {
    letter-spacing: 0.14em;
  }

  .tag {
    padding: 0.5rem 0.9rem;
    font-size: 0.875rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .nav a {
    padding-block: 0.75rem;
  }

  .nav a + a {
    border-top: 1px solid var(--color-border);
  }

  .nav .lang {
    margin-top: 0.35rem;
    align-self: flex-start;
    min-height: 44px;
  }
}
