/* sircatx.cn — Apple-inspired personal field journal */
:root {
  --apple-bg-white: #fff;
  --apple-bg-dark: #1d1d1f;
  --apple-bg-gray: #f5f5f7;
  --apple-bg-elevated: #fbfbfd;
  --apple-text: #1d1d1f;
  --apple-secondary: #6e6e73;
  --apple-tertiary: #86868b;
  --apple-blue: #06c;
  --apple-blue-hover: #0077ed;
  --apple-border: #d2d2d7;
  --apple-radius: 20px;
  --apple-shadow: 0 2px 8px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.08);
  --apple-shadow-hover: 0 4px 12px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.12);
  --apple-font-display: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --apple-font-text: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

/* 等运行时完成 Hero 增强后再显示描述与统计，避免布局闪动。 */
#hero:not(.hero-content-ready) h1 + p,
#hero:not(.hero-content-ready) .flex.gap-12.flex-wrap {
  visibility: hidden;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #a1a1a6 var(--apple-bg-gray);
}

::selection {
  color: #fff;
  background: var(--apple-blue-hover);
}

html {
  scroll-padding-top: 72px;
}

section {
  scroll-margin-top: 72px;
}

body {
  color: var(--apple-text);
  background: var(--apple-bg-white) !important;
  overflow-x: hidden;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 16px;
  z-index: 100;
  padding: 9px 14px;
  color: #fff;
  background: var(--apple-blue);
  border-radius: 980px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-70px);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:where(a, button):focus-visible {
  outline: 3px solid rgba(0,102,204,.38);
  outline-offset: 3px;
}

.site-brand {
  cursor: pointer;
}

.site-brand:focus-visible {
  outline: 3px solid rgba(0,102,204,.38);
  outline-offset: 4px;
  border-radius: 4px;
}

#root > div {
  color: var(--apple-text) !important;
  background: var(--apple-bg-white) !important;
  font-family: var(--apple-font-text) !important;
}

#root > div > .max-w-\[1275px\] {
  max-width: 1200px;
  padding-inline: 24px;
}

nav {
  color: var(--apple-text);
  background: rgba(251,251,253,.78) !important;
  border-color: rgba(0,0,0,.08) !important;
  backdrop-filter: saturate(180%) blur(20px) !important;
}

nav > div {
  max-width: 1024px !important;
  height: 48px !important;
  padding-inline: 22px !important;
}

nav .font-mono {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--apple-text) !important;
  font-family: var(--apple-font-display) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: -.015em;
  text-decoration: none;
}

nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: rgba(29,29,31,.78) !important;
  font-size: 12px !important;
  font-weight: 400;
}

nav a:hover,
nav a.text-white {
  color: #000 !important;
}

#hero {
  width: 100vw;
  min-height: min(940px, 100svh);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 142px max(24px, calc((100vw - 980px) / 2)) 86px !important;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,.48) 64%, #000 100%),
    url("https://images.unsplash.com/photo-1531297484001-80022131f5a1?w=1920&q=85") center / cover no-repeat,
    linear-gradient(180deg, #1d1d1f, #000);
  border-radius: 0;
}

#hero > div {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center;
  width: 100%;
  gap: 30px !important;
}

#hero .z-10 {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

#hero .z-10 > * {
  animation: hero-rise .75s cubic-bezier(.2,.7,.2,1) both;
}

#hero .z-10 > .font-mono {
  animation-delay: .04s;
}

#hero .z-10 > h1 {
  animation-delay: .12s;
}

#hero .z-10 > h1 + p {
  animation-delay: .2s;
}

#hero .hero-actions {
  animation-delay: .28s;
}

#hero .gap-12 {
  animation-delay: .36s;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#hero .z-10 > .font-mono {
  margin-bottom: 14px !important;
  color: rgba(255,255,255,.72) !important;
  font-family: var(--apple-font-text) !important;
  font-size: 14px !important;
  letter-spacing: .04em;
}

#hero h1 {
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 900px;
  margin-inline: auto !important;
  margin-bottom: 20px !important;
  color: #fff;
  text-align: center !important;
  font-family: var(--apple-font-display);
  font-size: clamp(54px, 7vw, 84px) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: .02em !important;
  text-shadow: 0 2px 28px rgba(0,0,0,.35);
}

#hero .hero-line {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  white-space: nowrap;
}

#hero .hero-line-accent {
  display: block;
  color: transparent !important;
  background: linear-gradient(90deg, #2997ff, #5ac8fa) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

#hero h1 + p {
  max-width: 620px;
  margin-bottom: 22px !important;
  color: rgba(255,255,255,.76) !important;
  font-size: clamp(18px, 2vw, 22px) !important;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 19px;
  border: 1px solid transparent;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.hero-action-primary {
  color: #fff;
  background: var(--apple-blue);
}

.hero-action-primary:hover {
  background: var(--apple-blue-hover);
  transform: translateY(-1px);
}

.hero-action-secondary {
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22) !important;
  backdrop-filter: blur(12px);
}

.hero-action-secondary:hover {
  color: #fff;
  background: rgba(255,255,255,.18);
  transform: translateY(-1px);
}

#hero :where(a, button):focus-visible {
  outline-color: rgba(255,255,255,.82);
}

#hero .gap-12 {
  justify-content: center;
  gap: 48px !important;
}

#hero .gap-12 > div {
  min-width: 110px;
}

#hero .gap-12 .font-mono {
  color: #fff;
  font-family: var(--apple-font-display) !important;
  font-size: 28px !important;
  font-weight: 600 !important;
}

#hero .gap-12 .text-\[\#666\] {
  color: rgba(255,255,255,.54) !important;
  font-size: 12px !important;
}

#hero .max-w-\[500px\] {
  display: none !important;
}

section:not(#hero) {
  position: relative;
  padding-block: 112px !important;
  border-color: transparent !important;
}

#travel,
#about {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-inline: max(24px, calc((100vw - 1200px) / 2));
  background: var(--apple-bg-gray);
}

#travel {
  padding-inline: 24px;
}

#travel > .max-w-\[1275px\] {
  max-width: 1600px !important;
}

#projects,
#billiards {
  background: var(--apple-bg-white);
}

section .mb-12 {
  margin-bottom: 48px !important;
  text-align: center;
}

#travel .mb-12 {
  margin-bottom: 8px !important;
}

section .mb-12 > .font-mono {
  margin-bottom: 12px !important;
  color: var(--apple-secondary) !important;
  font-family: var(--apple-font-text) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: .04em !important;
}

section h2 {
  color: var(--apple-text) !important;
  font-family: var(--apple-font-display) !important;
  font-size: clamp(44px, 5vw, 64px) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: .03em !important;
}

section h2 + p,
section .text-\[\#999\] {
  color: var(--apple-secondary) !important;
  font-size: 17px !important;
}

section .grid {
  gap: 20px !important;
}

section .grid > .group {
  position: relative;
  background: var(--apple-bg-elevated) !important;
  border-color: rgba(0,0,0,.04) !important;
  border-radius: var(--apple-radius) !important;
  box-shadow: var(--apple-shadow);
}

section .grid > .group:hover {
  background: #fff !important;
  border-color: rgba(0,0,0,.06) !important;
  box-shadow: var(--apple-shadow-hover);
  transform: translateY(-4px) !important;
}

.home-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity .7s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms),
    transform .7s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms);
}

.home-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home-reveal.is-visible.reveal-settled {
  opacity: 1;
  transform: none;
  transition:
    background .3s ease,
    border-color .3s ease,
    box-shadow .3s ease,
    transform .3s ease;
}

#billiards .grid > .group {
  cursor: default !important;
}

section .grid > .group img {
  filter: saturate(.88) contrast(1.02);
}

section .grid > .group:hover img {
  filter: saturate(1) contrast(1.03);
}

section .grid > .group .from-\[\#1a1a1a\] {
  --tw-gradient-from: rgba(29,29,31,.84) !important;
}

section .grid > .group h3 {
  color: var(--apple-text);
  font-family: var(--apple-font-display);
  font-weight: 600 !important;
}

section .grid > .group .text-\[\#666\] {
  color: var(--apple-tertiary) !important;
}

section .grid > .group span {
  color: var(--apple-secondary) !important;
  border-color: var(--apple-border) !important;
  border-radius: 980px !important;
}

section .grid > .group .text-\[\#fb8147\],
section .grid > .group .font-mono.text-\[\#fb8147\] {
  color: var(--apple-blue) !important;
}

/* Projects — roomy Apple-style bento tiles. */
#projects .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
  max-width: 1080px;
  margin-inline: auto;
}

#projects .grid > .group {
  min-height: 390px;
  overflow: hidden;
  background: var(--apple-bg-gray) !important;
  border: 0 !important;
  border-radius: 28px !important;
  box-shadow: none;
}

#projects .grid > .group::after {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  display: grid;
  width: 38px;
  height: 38px;
  color: var(--apple-text);
  font-size: 19px;
  content: "↗";
  background: rgba(255,255,255,.88);
  border-radius: 50%;
  place-items: center;
  transition: transform .25s ease, background .25s ease;
}

#projects .grid > .group:hover {
  background: var(--apple-bg-gray) !important;
  box-shadow: none;
  transform: scale(1.012) !important;
}

#projects .grid > .group:hover::after {
  background: #fff;
  transform: rotate(8deg);
}

#projects .grid > .group > .h-32 {
  height: 220px !important;
  font-size: 0 !important;
  background-position: center !important;
  background-size: cover !important;
}

#projects .grid > .group:nth-child(1) > .h-32 {
  background:
    linear-gradient(180deg, rgba(15,38,68,.02), rgba(15,38,68,.25)),
    url("https://images.unsplash.com/photo-1485660545907-f87803d3c49c?auto=format&fit=crop&w=1600&q=86")
    center 52% / cover no-repeat !important;
}

#projects .grid > .group:nth-child(2) > .h-32 {
  background:
    linear-gradient(180deg, rgba(4,18,22,.04), rgba(4,18,22,.34)),
    url("https://images.unsplash.com/photo-1575553939928-d03b21323afe?auto=format&fit=crop&w=1400&q=86")
    center 54% / cover no-repeat !important;
}

#projects .grid > .group:nth-child(3) > .h-32 {
  background: url("/assets/project-510k.webp?v=4")
    center / cover no-repeat !important;
}

#projects .grid > .group:nth-child(n+2) > .h-32 {
  height: auto !important;
  aspect-ratio: 16 / 9;
}

#projects .grid > .group:nth-child(1) {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: calc((100% - 20px) / 2) minmax(0, 1fr);
  min-height: 0;
}

#projects .grid > .group:nth-child(1) > .h-32 {
  height: auto !important;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

#projects .grid > .group > .p-5 {
  display: flex;
  flex-direction: column;
  padding: 24px !important;
}

#projects .grid > .group h3 {
  font-size: 24px !important;
  letter-spacing: .01em;
}

#projects .grid > .group h3 + p {
  min-height: 42px;
  margin-top: 5px;
  color: var(--apple-secondary) !important;
  font-size: 15px !important;
  line-height: 1.5;
}

#projects .grid > .group .font-mono:last-child {
  margin-top: auto;
  padding-top: 12px;
  color: var(--apple-blue) !important;
  font-family: var(--apple-font-text) !important;
  font-size: 14px !important;
}

.travel-layout {
  display: block;
  max-width: 980px;
  margin-inline: auto;
}

#china-map {
  height: 720px !important;
  margin-top: 0;
  filter: none;
}

.travel-city-panel {
  position: relative;
  z-index: 4;
  display: block;
  max-width: 980px;
  height: auto;
  margin: -81px auto 0 !important;
  padding-top: 0;
  overflow: visible;
}

.travel-city-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  color: var(--apple-blue);
  font-family: var(--apple-font-text);
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,.52);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  cursor: pointer;
  transition: background .25s ease, box-shadow .25s ease;
}

.travel-city-panel:not(.is-open) .travel-city-toggle:hover {
  background: rgba(255,255,255,.68);
  box-shadow: var(--apple-shadow);
}

.travel-city-panel.is-open .travel-city-toggle {
  background: rgba(255,255,255,.96);
  border-color: rgba(0,0,0,.06);
}

.travel-toggle-action {
  color: var(--apple-secondary) !important;
  font-size: 13px;
}

.travel-city-grid {
  display: none !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding-top: 12px;
}

.travel-city-panel.is-open .travel-city-grid {
  display: grid !important;
}

#travel .mt-8 > div:first-child {
  color: var(--apple-blue) !important;
  font-family: var(--apple-font-text) !important;
  font-weight: 600 !important;
}

#travel .mt-8 > div:last-child > div {
  min-width: 0;
  padding: 12px !important;
  background: rgba(255,255,255,.86) !important;
  border-color: rgba(0,0,0,.06) !important;
  border-radius: 16px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}

#travel .mt-8 > div:last-child > div:hover {
  box-shadow: var(--apple-shadow);
  transform: translateY(-2px);
}

#travel .travel-city-grid svg,
#travel .travel-city-grid > div > span {
  color: var(--apple-blue) !important;
}

#travel .mt-8 > div:last-child > div > div > div:first-child {
  color: var(--apple-text) !important;
}

#travel .mt-8 > div:last-child > div > div > div:last-child {
  color: var(--apple-tertiary) !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#billiards {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-inline: max(24px, calc((100vw - 1200px) / 2));
  color: #fff;
  background: linear-gradient(180deg, #1d1d1f, #000);
}

#billiards h2,
#billiards h3 {
  color: #fff !important;
}

#billiards h2 + p {
  color: #a1a1a6 !important;
}

#billiards .mb-12 > .font-mono {
  color: #86868b !important;
}

#billiards .grid > .group {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  color: #fff;
  background: #171719 !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 28px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}

#billiards .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  max-width: 960px;
  margin-inline: auto;
  gap: 20px !important;
}

#billiards .grid > .group::before {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  padding: 6px 10px;
  color: rgba(255,255,255,.78);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .08em;
  background: rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 980px;
  backdrop-filter: blur(12px);
}

#billiards .grid > .group:first-child::before {
  content: "BREAK · 01";
}

#billiards .grid > .group:nth-child(2)::before {
  content: "BREAK · 02";
}

#billiards .grid > .group:hover {
  background: #1d1d20 !important;
  border-color: rgba(255,255,255,.18) !important;
  box-shadow: 0 28px 70px rgba(0,0,0,.32);
  transform: translateY(-5px) !important;
}

#billiards .grid > .group:first-child .h-32 {
  background:
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.4)),
    url("https://images.unsplash.com/photo-1599685315659-bc876da49fe5?auto=format&fit=crop&w=1400&q=86")
    center 54% / cover no-repeat !important;
}

#billiards .grid > .group:nth-child(2) .h-32 {
  background:
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.42)),
    url("https://images.unsplash.com/photo-1545062080-a71640ea75a1?auto=format&fit=crop&w=1400&q=86")
    center 52% / cover no-repeat !important;
}

#billiards .grid > .group .h-32 {
  height: 240px !important;
  font-size: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background-size: cover !important;
}

#billiards .grid > .group .p-5 {
  padding: 28px !important;
}

#billiards .grid > .group h3 {
  font-size: 22px !important;
  letter-spacing: .01em;
}

#billiards .grid > .group h3 + p {
  margin-top: 5px;
  color: #86868b !important;
  font-size: 14px !important;
}

#billiards .grid > .group span {
  color: #a1a1a6 !important;
  border-color: #424245 !important;
}

.about-heading {
  margin-bottom: 48px;
  text-align: center;
}

.about-kicker,
.about-name {
  color: var(--apple-blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.about-heading h2 {
  margin-top: 10px;
  font-family: var(--apple-font-display);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: .02em;
}

.about-heading p {
  margin-top: 12px;
  color: var(--apple-secondary) !important;
  font-size: 19px;
}

.about-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  max-width: 1040px;
  margin-inline: auto;
  overflow: hidden;
  background: var(--apple-bg-white);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,.03), 0 20px 60px rgba(0,0,0,.08);
}

.about-intro {
  padding: clamp(40px, 6vw, 72px);
}

.about-intro h3 {
  margin-top: 22px;
  color: var(--apple-text);
  font-family: var(--apple-font-display);
  font-size: clamp(42px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: .02em;
}

.about-line {
  display: block;
  white-space: nowrap;
}

.about-line-primary {
  color: var(--apple-text);
}

.about-line-accent {
  color: transparent;
  background: linear-gradient(90deg, #06c, #5ac8fa);
  -webkit-background-clip: text;
  background-clip: text;
}

.about-intro p {
  max-width: 520px;
  margin-top: 28px;
  color: var(--apple-secondary) !important;
  font-size: 17px;
  line-height: 1.7;
}

.about-intro strong {
  color: var(--apple-text);
  font-weight: 600;
}

.about-quote {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 16px 16px 16px 0;
  padding: clamp(36px, 5vw, 56px);
  overflow: hidden;
  background: linear-gradient(145deg, #eef6ff 0%, #f5f5f7 70%);
  border-radius: 22px;
}

.about-quote-audio {
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}

.about-quote-audio:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,102,204,.08);
}

.about-quote-audio:focus-visible {
  outline: 3px solid rgba(0,102,204,.32);
  outline-offset: 3px;
}

.about-audio-hint {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding-inline: 12px;
  color: var(--apple-blue);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,102,204,.08);
  border-radius: 980px;
  box-shadow: 0 4px 14px rgba(0,0,0,.05);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .25s ease, transform .25s ease;
}

.about-quote-audio.is-playing .about-audio-hint {
  display: inline-flex;
  background: rgba(255,255,255,.94);
  animation: about-audio-hint-in .25s cubic-bezier(.2,.7,.2,1) both;
}

@keyframes about-audio-hint-in {
  from {
    opacity: 0;
    transform: translateY(5px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.about-quote-player {
  display: none;
}

.about-quote > span {
  position: absolute;
  top: 8px;
  right: 24px;
  color: rgba(0,102,204,.1);
  font-family: Georgia, serif;
  font-size: 132px;
  line-height: 1;
}

.about-quote p {
  position: relative;
  color: var(--apple-text) !important;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.65;
}

.about-quote cite {
  margin-top: 24px;
  color: var(--apple-tertiary);
  font-size: 13px;
  font-style: normal;
}

.about-actions {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px;
  padding: 0 16px 40px clamp(40px, 6vw, 72px);
  flex-wrap: wrap;
}

.about-visits {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 42px;
  margin-left: auto;
  padding-inline: 17px;
  color: var(--apple-blue);
  background: rgba(0,102,204,.08);
  border: 1px solid transparent;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.about-visits[hidden] {
  display: none;
}

.about-visits strong {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-variant-numeric: tabular-nums;
  font-weight: inherit;
}

.about-actions a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding-inline: 17px;
  color: var(--apple-blue) !important;
  background: rgba(0,102,204,.08);
  border: 1px solid transparent;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .25s ease, transform .25s ease;
}

.about-actions a:hover {
  background: rgba(0,102,204,.14);
  transform: translateY(-1px);
}

footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-inline: max(24px, calc((100vw - 1200px) / 2));
  background: var(--apple-bg-gray);
  border-color: var(--apple-border) !important;
}

footer p {
  color: var(--apple-tertiary) !important;
}

footer span {
  color: var(--apple-text) !important;
}

@media (max-width: 1067px) {
  #hero h1 {
    font-size: 64px !important;
  }
}

@media (max-width: 900px) {
  .travel-city-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 733px) {
  #root > div > .max-w-\[1275px\],
  nav > div {
    padding-inline: 20px !important;
  }

  nav .gap-8 {
    max-width: calc(100vw - 110px);
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  nav .gap-8::-webkit-scrollbar {
    display: none;
  }

  nav a {
    flex: 0 0 auto;
    min-width: 44px;
    padding-inline: 10px;
  }

  #hero,
  #travel,
  #billiards,
  #about,
  footer {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
  }

  #hero {
    min-height: 760px;
    padding: 120px 20px 72px !important;
    border-radius: 0;
  }

  #hero h1 {
    max-width: 100%;
    font-size: clamp(40px, 11.7vw, 46px) !important;
    line-height: 1.04 !important;
    text-align: center !important;
  }

  #hero .hero-line + .hero-line {
    margin-top: 5px;
  }

  #hero h1 + p {
    font-size: 18px !important;
  }

  #hero .gap-12 {
    gap: 24px !important;
  }

  section:not(#hero) {
    padding-block: 80px !important;
  }

  section h2 {
    font-size: 44px !important;
  }

  #projects .grid,
  #billiards .grid {
    grid-template-columns: 1fr !important;
  }

  #billiards .grid {
    width: 100%;
    max-width: 310px;
    margin-inline: auto;
    gap: 14px !important;
  }

  #billiards .grid > .group {
    min-height: 0;
    border-radius: 22px !important;
  }

  #projects .grid > .group:nth-child(1) {
    grid-column: auto;
    display: flex !important;
    flex-direction: column;
    min-height: 0;
  }

  #projects .grid > .group:nth-child(1) > .h-32 {
    width: 100%;
    height: auto !important;
    min-height: 0;
    aspect-ratio: 16 / 10;
    flex: none;
  }

  #projects .grid > .group:nth-child(1) > .p-5 {
    min-height: 0;
    padding: 24px !important;
  }

  #projects .grid > .group:nth-child(1) h3 + p {
    min-height: 0;
    margin-bottom: 18px;
  }

  #projects .grid > .group:nth-child(1) .font-mono {
    margin-top: 0 !important;
  }

  #projects .grid > .group > .h-32 {
    height: 220px !important;
  }

  #billiards .grid > .group .h-32 {
    height: 160px !important;
  }

  #billiards .grid > .group .p-5 {
    padding: 20px !important;
  }

  #billiards .grid > .group h3 {
    font-size: 19px !important;
  }

  #billiards .grid > .group::before {
    top: 14px;
    left: 14px;
    padding: 5px 9px;
  }

  #travel > div {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  #travel .mb-12 {
    margin-bottom: 4px !important;
  }

  #china-map {
    width: calc(100% + 32px) !important;
    height: 440px !important;
    margin: -4px -16px 0;
  }

  .travel-city-panel {
    margin-top: -36px !important;
  }

  #travel .mt-8 > div:last-child {
    grid-template-columns: 1fr !important;
  }

  .about-heading {
    margin-bottom: 32px;
  }

  #about {
    padding-inline: 16px;
  }

  #halo-about-content {
    padding-inline: 0 !important;
  }

  .about-heading h2 {
    font-size: 42px !important;
  }

  .about-heading p {
    margin-top: 9px;
    font-size: 17px;
  }

  .about-card {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .about-intro {
    padding: 34px 26px 30px;
  }

  .about-intro h3 {
    margin-top: 16px;
    font-size: clamp(32px, 9.4vw, 37px);
    line-height: 1.08;
  }

  .about-line + .about-line {
    margin-top: 5px;
  }

  .about-intro p {
    margin-top: 22px;
    font-size: 16px;
  }

  .about-quote {
    margin: 0 12px 12px;
    padding: 30px 24px;
    border-radius: 18px;
  }

  .about-quote > span {
    top: 2px;
    right: 18px;
    font-size: 104px;
  }

  .about-quote p {
    font-size: 17px;
  }

  .about-audio-hint {
    right: 16px;
    bottom: 14px;
    min-height: 32px;
    padding-inline: 11px;
  }

  .about-actions {
    gap: 8px;
    padding: 12px 12px 28px 24px;
  }

  .about-actions a {
    min-height: 44px;
    padding-inline: 14px;
    font-size: 13px;
  }

  .about-visits {
    height: 40px;
    margin-left: auto;
    padding-inline: 14px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #hero .z-10 > * {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
  .home-reveal {
    opacity: 1;
    transform: none;
    transition: none !important;
  }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
