/* 岗鉴 · 小米/发布会式 Bento：浅灰底、白卡片、大圆角、柔阴影 */

@font-face {
  font-family: "Amdo Classic";
  src: url("amdo_classic_1.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg-page: #e8e8ed;
  --bg-tile: #ffffff;
  --bg-deep: #f5f5f7;
  --border: rgba(0, 0, 0, 0.06);
  --border-tile: rgba(0, 0, 0, 0.04);
  --text: #1a1a1c;
  --text-muted: #6b6b70;
  --accent: #0071e3;
  --accent-sky: #7dd3fc;
  --accent-pink: #e879a9;
  --accent-soft: #6366f1;
  --powder: #bae6fd;
  /* 蓝色：与主色 accent 一致，全站 Lucide 等线图标统一用色 */
  --icon-powder-blue: var(--accent);
  --icon-powder-blue-hover: #0077ed;
  --focus-ring: rgba(0, 113, 227, 0.45);
  --tile-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(0, 0, 0, 0.06);
  --tile-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.06), 0 20px 48px rgba(0, 0, 0, 0.08);
  --chip-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.05);
  --chip-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.06), 0 16px 40px rgba(0, 113, 227, 0.08);
  --sans: "Amdo Classic", -apple-system, BlinkMacSystemFont, "Segoe UI", "Outfit", system-ui, sans-serif;
  /* Adobe 思源宋体（开源 OFL）；Google Fonts 发行名为 Noto Serif SC */
  --serif: "Amdo Classic", "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --tibetan: "Amdo Classic", "Noto Sans Tibetan", sans-serif;
  --bento-radius: 32px;
  --chip-radius: 24px;
  --max: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
  --chip-logo-size: 3.5rem;
  --chip-brand-padding: 0.5rem;
  /* 栅格 logo contain 留白区：透明（与 PNG 透明底一致） */
  --chip-logo-canvas: transparent;
}

@supports (color: color-mix(in srgb, white, black)) {
  :root {
    --icon-powder-blue-hover: color-mix(in srgb, var(--accent) 82%, #000 18%);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0.75rem;
  font-size: 93.75%;
}

@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;
  min-height: 100vh;
  font-family: var(--tibetan), var(--serif);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
  background-color: var(--bg-page);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

strong,
b {
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
}

/* 标签 / 分类小字：保持无衬线，与正文宋体区分 */
.project-chip-label,
.bento-link-label,
.bento-stat-unit,
.bento-section-scope {
  font-family: var(--sans);
}

.page-brochure {
  background-color: var(--bg-page);
}

::selection {
  background: rgba(96, 165, 250, 0.35);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s;
}

a:hover {
  color: #0077ed;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 1000;
  padding: 0.65rem 1.1rem;
  font-family: var(--tibetan), var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: #ffffff;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-pink) 100%);
  border-radius: 8px;
  transition: transform 0.2s var(--ease);
  box-shadow: var(--tile-shadow);
}

.skip-link:focus {
  left: clamp(1rem, 4vw, 2rem);
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 极淡纸纹 */
.noise--light {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.018;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 主内容区 — 宣传册 Bento */
main.brochure-main {
  position: relative;
  z-index: 1;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.brochure-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(0.75rem, 3vw, 1.25rem);
}

/* 12 列不对称网格 + dense 填洞 */
.bento-brochure {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  grid-auto-flow: dense;
}

@media (min-width: 960px) {
  .bento-brochure {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(72px, auto);
    gap: 1.15rem 1.15rem;
  }

  .bento-tile--hero {
    grid-column: 1 / span 8;
    grid-row: span 2;
    min-height: 300px;
  }

  .bento-tile--edu {
    grid-column: 9 / span 4;
    grid-row: span 2;
  }

  .bento-tile--role {
    grid-column: 1 / span 6;
  }

  .bento-tile--honors {
    grid-column: 7 / span 6;
  }

  .bento-tile--stat {
    grid-column: span 4;
  }

  .bento-tile--projects {
    grid-column: 1 / -1;
  }

  .bento-tile--split {
    grid-column: span 6;
  }

  .bento-tile--community-wrap {
    grid-column: 1 / -1;
  }

  .bento-tile--footer {
    grid-column: 1 / -1;
  }
}

/* 磁贴基底 — 产品页式白卡片浮在灰底上 */
.bento-tile {
  position: relative;
  background: var(--bg-tile);
  border-radius: var(--bento-radius);
  border: 1px solid var(--border-tile);
  box-shadow: var(--tile-shadow);
  padding: 1.65rem 1.75rem;
  transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

@media (hover: hover) {
  .bento-tile:hover {
    box-shadow: var(--tile-shadow-hover);
  }

  .bento-tile--footer:hover {
    box-shadow: var(--tile-shadow);
  }
}

/* 首屏 */
.bento-tile--hero {
  position: relative;
  z-index: 0;
  padding: 1.75rem 1.75rem 2rem;
  overflow: hidden;
}

.bento-hero-layout {
  display: grid;
  gap: 1.35rem;
  align-items: start;
}

@media (max-width: 639px) {
  .bento-hero-photo {
    order: -1;
  }
}

@media (min-width: 640px) {
  .bento-hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 38%);
    gap: 1.5rem;
    align-items: center;
  }
}

.bento-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.bento-hero-photo {
  margin: 0;
  position: relative;
  z-index: 1;
}

.bento-hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 380px);
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--tile-shadow);
}

/* 教育与职业：左上个人标识 + 文案贴底 */
.bento-tile--edu {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.bento-edu-top {
  flex: 0 0 auto;
  align-self: flex-start;
}

.bento-edu-mark {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.bento-edu-bottom {
  margin-top: auto;
  align-self: stretch;
  min-width: 0;
}

.bento-edu-bottom .bento-kicker {
  margin-top: 0;
}

.bento-kicker {
  font-family: var(--tibetan);
  font-size: 0.9rem;
  line-height: 1.78;
  color: var(--accent-soft);
  margin: 0 0 0.75rem;
}

/* 版块标签/标题前的语义图标（非产品 logo 区） */
.bento-kicker--with-icon,
.bento-headline--with-icon {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.bento-section-icon {
  flex-shrink: 0;
  width: 1.1em;
  height: 1.1em;
  color: var(--icon-powder-blue);
  display: block;
}

.bento-headline--with-icon > .bento-section-icon {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--icon-powder-blue);
  margin-top: 0.08em;
}

.bento-hero-name {
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  color: var(--text);
}

.bento-hero-spec {
  margin: 0.9rem 0 0;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.bento-body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.88;
  color: var(--text-muted);
}

.bento-hero-roles {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  max-width: 38em;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bento-hero-roles li {
  margin: 0;
  padding: 0.35rem 0 0.4rem;
  font-size: 0.9375rem;
  line-height: 1.82;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.bento-hero-roles li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bento-hero-roles li::before {
  content: "";
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  margin-right: 0.55rem;
  margin-bottom: 0.1rem;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--icon-powder-blue);
  opacity: 0.9;
}

.bento-body--link-callout {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.65rem;
}

.bento-link-label {
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--accent);
}

.inline-link--doc {
  font-weight: 400;
  color: var(--accent);
  border-bottom-width: 2px;
  border-bottom-color: rgba(0, 113, 227, 0.45);
}

.inline-link--doc:hover {
  color: #0058b0;
  border-bottom-color: var(--accent);
}

.inline-link-ext {
  font-size: 0.85em;
  color: var(--icon-powder-blue);
  font-weight: 400;
}

.bento-body strong {
  color: var(--text);
}

.bento-headline {
  font-size: clamp(1.5rem, 1.8vw + 1rem, 2rem);
  font-weight: 400;
  line-height: 1.48;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.bento-tile--edu .bento-headline {
  font-size: clamp(1.3rem, 1.45vw + 0.82rem, 1.72rem);
}

.bento-headline--sm {
  font-size: clamp(1.25rem, 1.2vw + 0.85rem, 1.5rem);
}

.bento-headline--xs {
  font-size: 1.125rem;
  line-height: 1.46;
  margin-bottom: 0.5rem;
}

.bento-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 2.1;
}

.bento-tile--honors .bento-body + .bento-list {
  margin-top: 0.85rem;
}

.bento-tile--honors .bento-inline-photo img {
  max-height: min(200px, 28vh);
  /* 主体在画面下半部：垂直锚点下移，裁切时多保留下方 */
  object-position: center 62%;
}

/* 与右侧「荣誉」配图同宽同高（同列宽下的通栏图） */
.bento-tile--role .bento-inline-photo img {
  max-height: min(200px, 28vh);
  object-fit: cover;
  object-position: center center;
}

.bento-inline-photo {
  margin: 1rem 0 0;
  border-radius: 16px;
  overflow: hidden;
}

.bento-inline-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: cover;
}

/* 数据格 — 规格条式大数字，右侧语义图标 */
.bento-tile--stat {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  min-height: 140px;
}

.bento-stat-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.bento-stat-icon {
  flex-shrink: 0;
  width: 2.65rem;
  height: 2.65rem;
  color: var(--icon-powder-blue);
  opacity: 0.95;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-stat-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.bento-stat-num {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--text);
}

.bento-stat-unit {
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--icon-powder-blue);
  margin-top: 0.35rem;
}

.bento-stat-desc {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.82;
  color: var(--text-muted);
}

/* 数据格可点击：整卡外链，避免全局 a 色覆盖正文 */
a.bento-stat-tile--link {
  text-decoration: none;
  color: inherit;
}

a.bento-stat-tile--link:visited {
  color: inherit;
}

@media (hover: hover) {
  a.bento-stat-tile--link:hover {
    border-color: rgba(0, 113, 227, 0.12);
  }
}

/* 磁贴内标题条（Bento：标题与 chip 同卡） */
.bento-inset-head {
  padding-bottom: 1.1rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.bento-section-merged {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  text-align: left;
  font-weight: inherit;
}

.bento-section-merged-row {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  line-height: 1.42;
}

.bento-section-scope {
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--accent);
}

.bento-section-sep {
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-muted);
  opacity: 0.45;
  line-height: 0;
  position: relative;
  top: 0.06em;
  user-select: none;
}

.bento-section-merged-strong {
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  font-weight: 400;
  color: var(--text);
}

.bento-section-merged-lead {
  display: block;
  max-width: 44rem;
  margin: 0;
  padding-top: 0.1rem;
  font-size: 0.9375rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.88;
  color: var(--text-muted);
}

.bento-section-em {
  font-style: normal;
  font-weight: 400;
  color: var(--text);
}

/* 项目区 — 内嵌 chip 矩阵 */
.bento-tile--projects {
  padding: 1.5rem 1.5rem 1.45rem;
}

/* 社区 — 单张大磁贴内含三格 */
.bento-tile--community-wrap {
  padding: 1.35rem 1.3rem 1.3rem;
}

.bento-community-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

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

.bento-comm-card {
  padding: 1.1rem 1.2rem;
  border-radius: var(--chip-radius);
  background: #fafafb;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  min-height: 0;
}

.bento-comm-card .bento-body {
  margin: 0;
}

/* 左栏：彩色 / 位图 logo；右栏：黑色线图标 */
.bento-projects {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 520px) {
  .bento-projects {
    grid-template-columns: minmax(0, 1fr) minmax(13.5rem, 0.42fr);
  }
}

.bento-projects-col {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
  min-width: 0;
}

.bento-projects-col--primary {
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .bento-projects-col--primary {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .bento-projects-col--primary {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bento-projects-col--logo-black {
  grid-template-columns: 1fr;
}

.project-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 1rem 1rem;
  min-height: 5.5rem;
  border-radius: var(--chip-radius);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--chip-shadow);
  text-decoration: none;
  color: inherit;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.project-chip--external:hover {
  background: #fbfdff;
  border-color: rgba(0, 113, 227, 0.14);
  box-shadow: var(--chip-shadow-hover);
  transform: translateY(-3px);
}

.project-chip--static {
  cursor: default;
  border-style: dashed;
  opacity: 0.95;
}

.project-chip-label {
  font-size: 0.625rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--icon-powder-blue);
  margin-bottom: 0.4rem;
}

.project-chip-name {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.72;
  margin: 0;
  color: var(--text);
}

.project-chip-arrow {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 0.85rem;
  height: 0.85rem;
  opacity: 0.4;
  background: currentColor;
  color: var(--icon-powder-blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M7 17L17 7M7 7h10v10'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M7 17L17 7M7 7h10v10'/%3E%3C/svg%3E") center / contain no-repeat;
}

.project-chip--external:hover .project-chip-arrow {
  opacity: 0.95;
}

.project-chip--has-logo.project-chip--external:hover .project-chip-arrow {
  transform: translateY(-50%);
}

/* Logo：左图标 + 右标题（参考笔记本 Bento 规格条） */
.project-chip--has-logo {
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 2.2rem 0.85rem 0.85rem;
  min-height: 4.5rem;
}

.project-chip-brand {
  flex-shrink: 0;
  width: var(--chip-logo-size);
  height: var(--chip-logo-size);
  padding: var(--chip-brand-padding);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22%;
  background: transparent;
  box-shadow: none;
  outline: none;
  overflow: hidden;
}

.project-chip--external.project-chip--has-logo:hover .project-chip-brand {
  box-shadow: none;
}

/* 第三方矢量图标（Lucide MIT，内联 SVG）— 与栅格 logo 同槽同内边距 */
.project-chip-brand--icon {
  padding: var(--chip-brand-padding);
  color: var(--icon-powder-blue);
}

.project-chip-icon-svg {
  display: block;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.project-chip--external.project-chip--has-logo:hover .project-chip-brand--icon {
  color: var(--icon-powder-blue-hover);
}

/* 翻译平台 / Office：线图标黑色 */
.project-chip--has-logo.project-chip--icon-black .project-chip-brand--icon {
  color: #1a1a1c;
}

.project-chip--external.project-chip--has-logo.project-chip--icon-black:hover .project-chip-brand--icon {
  color: #000000;
}

.project-chip--has-logo .project-chip-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  background-color: var(--chip-logo-canvas);
  -webkit-user-drag: none;
  user-select: none;
}

.project-chip-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 0.72rem 1.05rem 1rem 0.92rem;
  box-sizing: border-box;
  flex: 1;
  min-height: 0;
  background: transparent;
}

.project-chip--has-logo .project-chip-footer {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: transparent;
  justify-content: center;
}

.project-chip--has-logo .project-chip-label {
  margin-bottom: 0.28rem;
}

.project-chip-footer .project-chip-name {
  margin: 0;
  padding-right: 1.75rem;
}

.project-chip--has-logo .project-chip-footer .project-chip-name {
  padding-right: 0;
}

.project-chip--has-logo .project-chip-arrow {
  top: 50%;
  right: 0.72rem;
  transform: translateY(-50%);
  z-index: 2;
  opacity: 0.4;
}

/* 纯文字：居中 / 右对齐 */
.project-chip--text-balance {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.1rem 1rem 1.05rem;
  min-height: 6rem;
}

.project-chip--text-balance .project-chip-label {
  margin-bottom: 0.38rem;
}

.project-chip--text-end {
  align-items: flex-end;
  text-align: right;
  padding: 1rem 1.15rem 1rem 1rem;
}

.project-chip--text-end .project-chip-label {
  margin-bottom: 0.35rem;
}

.project-chip--text-end .project-chip-name {
  max-width: 100%;
}

.inline-link {
  border-bottom: 1px solid rgba(0, 113, 227, 0.35);
  transition: border-color 0.2s, color 0.2s;
}

.inline-link:hover {
  border-bottom-color: var(--accent);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 400;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 113, 227, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: #f5f5f7;
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text);
}

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

.btn-primary:focus-visible {
  outline-color: var(--accent);
}

/* 页脚磁贴 — 工作台实拍作背景 */
.bento-tile--footer {
  text-align: center;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bento-tile--footer.site-footer {
  margin: 0;
  position: relative;
  isolation: isolate;
  background: var(--bg-page);
}

.bento-tile--footer.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/workspace.jpeg") center / cover no-repeat;
  z-index: 0;
}

.bento-tile--footer.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(245, 245, 247, 0.82) 0%,
    rgba(15, 23, 42, 0.78) 55%,
    rgba(15, 23, 42, 0.88) 100%
  );
  z-index: 1;
}

.footer-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 1.5rem 2.75rem;
}

.footer-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  display: block;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35), var(--tile-shadow);
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.68;
  margin: 0 0 0.35rem;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.footer-note {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.92;
  color: rgba(255, 255, 255, 0.82);
}

.footer-copy {
  margin: 1.25rem 0 0;
  font-size: 0.75rem;
  line-height: 1.82;
  color: rgba(255, 255, 255, 0.55);
}

/* 入场动画（由 JS 添加 .visible） */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 同区块内错开入场（Bento 整页顺序） */
.bento-brochure > .fade-up:nth-child(1) {
  transition-delay: 0.02s;
}
.bento-brochure > .fade-up:nth-child(2) {
  transition-delay: 0.05s;
}
.bento-brochure > .fade-up:nth-child(3) {
  transition-delay: 0.08s;
}
.bento-brochure > .fade-up:nth-child(4) {
  transition-delay: 0.11s;
}
.bento-brochure > .fade-up:nth-child(5) {
  transition-delay: 0.14s;
}
.bento-brochure > .fade-up:nth-child(6) {
  transition-delay: 0.17s;
}
.bento-brochure > .fade-up:nth-child(7) {
  transition-delay: 0.2s;
}
.bento-brochure > .fade-up:nth-child(8) {
  transition-delay: 0.23s;
}
.bento-brochure > .fade-up:nth-child(9) {
  transition-delay: 0.26s;
}
.bento-brochure > .fade-up:nth-child(10) {
  transition-delay: 0.29s;
}
.bento-brochure > .fade-up:nth-child(11) {
  transition-delay: 0.32s;
}
.bento-brochure > .fade-up:nth-child(12) {
  transition-delay: 0.35s;
}
.bento-brochure > .fade-up:nth-child(13) {
  transition-delay: 0.38s;
}
.bento-brochure > .fade-up:nth-child(14) {
  transition-delay: 0.41s;
}
.bento-brochure > .fade-up:nth-child(15) {
  transition-delay: 0.44s;
}
.bento-brochure > .fade-up:nth-child(16) {
  transition-delay: 0.47s;
}
.bento-brochure > .fade-up:nth-child(17) {
  transition-delay: 0.5s;
}
.bento-brochure > .fade-up:nth-child(18) {
  transition-delay: 0.53s;
}
