.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  min-height: 72px;
  padding: 24px var(--space-page) 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(222, 216, 207, .55);
}
.brand-link { font-family: var(--font-heading); letter-spacing: .12em; font-size: 18px; }
.desktop-nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 32px); color: var(--color-muted); font-size: 14px; }
.desktop-nav a, .language-switcher a, .mobile-menu a { transition: color 180ms ease, text-decoration-color 180ms ease; cursor: pointer; }
.desktop-nav a:hover, .language-switcher a:hover, .mobile-menu a:hover { color: var(--color-text); }
.language-switcher, .mobile-language-switcher {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(58px, auto));
  align-items: center;
  gap: 0;
  color: var(--color-muted);
}
.language-switcher { margin-left: 10px; }
.language-switcher a, .mobile-menu .mobile-language-switcher a {
  min-width: 58px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  line-height: 1;
  letter-spacing: .03em;
  text-align: center;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.menu-button { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; flex-direction: column; gap: 7px; }
.menu-button span { width: 22px; height: 1px; background: var(--color-text); display: block; }
.mobile-menu { position: fixed; z-index: 19; inset: 72px 0 auto 0; padding: 20px var(--space-page) 30px; background: var(--color-bg); border-bottom: 1px solid var(--color-line); }
.mobile-menu a { display: block; padding: 12px 0; color: var(--color-muted); }
.mobile-language-switcher { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--color-line); }
.home-shell, .page-shell, .portal-shell { max-width: var(--content-max); margin: 0 auto; padding: clamp(42px, 7vw, 96px) var(--space-page) 96px; }
.home-template .home-shell { padding-top: clamp(34px, 5.4vw, 72px); }
.portal-template { min-height: 100vh; display: flex; flex-direction: column; }
.portal-shell { width: 100%; flex: 1; display: flex; align-items: center; padding-top: clamp(22px, 4vh, 42px); padding-bottom: clamp(18px, 3.5vh, 36px); }
.portal-hero { width: 100%; display: grid; grid-template-columns: minmax(380px, 450px) minmax(300px, 410px); gap: clamp(44px, 6vw, 82px); align-items: center; justify-content: center; }
.portal-copy { min-width: 0; max-width: 450px; transform: translateY(clamp(22px, 3.5vh, 34px)); }
.portal-copy h1 { margin: 0; font-size: clamp(58px, 6.1vw, 84px); line-height: 1; }
.portal-lede { max-width: 450px; margin: 20px 0 0; color: var(--color-muted); font-size: clamp(16px, 1.45vw, 20px); line-height: 1.72; }
.portal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.portal-actions .button-primary,
.portal-actions .button-quiet { min-height: 40px; padding: 0 20px; border-color: rgba(31, 31, 31, .72); font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.portal-actions .button-primary { border-color: rgba(31, 31, 31, .92); }
.portal-actions .button-quiet { color: rgba(31, 31, 31, .84); border-color: rgba(91, 82, 70, .46); }
.portal-gallery-link { display: inline-block; max-width: 100%; margin-top: 20px; border-bottom: 1px solid rgba(139, 122, 99, .28); color: rgba(139, 122, 99, .84); font-size: 13px; line-height: 1.82; letter-spacing: .02em; overflow-wrap: anywhere; transition: color 180ms ease, border-color 180ms ease; }
.portal-gallery-link:hover { color: rgba(31, 31, 31, .84); border-color: rgba(31, 31, 31, .38); }
.portal-figure { width: min(410px, 31vw); max-width: 100%; margin: 0; justify-self: end; transform: translateY(clamp(10px, 1.7vh, 16px)); }
.portal-image-frame { width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid rgba(139, 122, 99, .28); background: var(--color-surface); }
.portal-image-frame img { object-position: 50% 50%; }
.portal-figure figcaption { margin-top: 12px; color: rgba(118, 113, 106, .82); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.hero-book { min-height: clamp(560px, calc(100vh - 240px), 650px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 460px); gap: clamp(38px, 6vw, 92px); align-items: center; }
.hero-title { margin: 0; max-width: 740px; font-size: clamp(38px, 7vw, 82px); line-height: 1.16; }
.hero-sub { margin: 30px 0 0; color: var(--color-muted); letter-spacing: .06em; }
.hero-figure { width: min(460px, 100%); justify-self: end; border: 1px solid var(--color-line); }
.home-template .hero-figure img { object-position: 56% 50%; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.button-primary, .button-quiet { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid var(--color-text); font-size: 14px; transition: background 180ms ease, color 180ms ease, border-color 180ms ease; cursor: pointer; }
.button-primary { background: var(--color-text); color: var(--color-bg); }
.button-primary:hover { background: var(--color-accent); border-color: var(--color-accent); }
.button-quiet:hover { color: var(--color-accent); border-color: var(--color-accent); }
.entry-strip { margin-top: clamp(34px, 5vw, 62px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.text-entry { min-height: 150px; padding: 28px 26px; border-right: 1px solid var(--color-line); transition: background 180ms ease; cursor: pointer; }
.text-entry:last-child { border-right: 0; }
.text-entry:hover { background: rgba(255, 253, 248, .6); }
.text-entry span { display: block; margin-bottom: 18px; font-family: var(--font-heading); font-size: 28px; }
.text-entry p { margin: 0; color: var(--color-muted); font-size: 14px; }
.page-intro { margin-bottom: clamp(44px, 7vw, 84px); }
.gallery-page { padding-top: clamp(18px, 3vw, 42px); }
.gallery-page .page-intro { margin-bottom: clamp(26px, 3.8vw, 46px); }
.narrow { max-width: 760px; }
.page-intro h1 { margin: 0; font-size: clamp(50px, 9vw, 112px); line-height: 1; }
.page-intro p:not(.eyebrow) { max-width: 620px; color: var(--color-muted); font-size: clamp(17px, 2vw, 22px); }
.gallery-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(22px, 2.6vw, 32px);
  row-gap: clamp(46px, 6vw, 62px);
}
.gallery-card { display: block; margin: 0; }
.gallery-card picture { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--color-line); background: var(--color-surface); }
.gallery-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 260ms ease, filter 260ms ease; }
.gallery-card:hover img { transform: scale(1.012); filter: saturate(.96) contrast(1.02); }
.gallery-caption { margin-top: 16px; padding-top: 13px; border-top: 1px solid rgba(222, 216, 207, .72); }
.gallery-caption h2 { margin: 0; font-family: var(--font-body); font-size: 15px; font-weight: 500; letter-spacing: .04em; }
.gallery-caption p { margin: 8px 0 0; color: var(--color-muted); font-size: 14px; line-height: 1.65; }
.story-list { max-width: 960px; border-top: 1px solid var(--color-line); }
.story-row { display: grid; grid-template-columns: 150px minmax(140px, 190px) 1fr; gap: clamp(24px, 4vw, 42px); align-items: center; padding: 34px 0; border-bottom: 1px solid var(--color-line); }
.story-thumb { display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--color-line); background: var(--color-surface); }
.story-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-row h2 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 46px); }
.story-row p { margin: 0 0 18px; color: var(--color-muted); }
.story-date, .story-place { color: var(--color-muted); letter-spacing: .05em; }
.story-detail { display: grid; grid-template-columns: minmax(260px, 440px) minmax(0, 660px); gap: clamp(36px, 7vw, 96px); align-items: center; }
.story-photo { border: 1px solid var(--color-line); }
.story-copy h1 { margin: 0 0 28px; font-size: clamp(38px, 6vw, 72px); line-height: 1.12; }
.story-copy p { color: var(--color-muted); }
.story-actions { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.text-block { border-top: 1px solid var(--color-line); padding-top: 34px; }
.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 6vw, 84px); }
.text-block h2 { margin-top: 0; font-size: 30px; }
ul { margin: 0; padding-left: 20px; color: var(--color-muted); line-height: 2; }
.quiet-list, .link-list { max-width: 760px; border-top: 1px solid var(--color-line); }
.link-list a { display: flex; justify-content: space-between; align-items: center; min-height: 58px; border-bottom: 1px solid var(--color-line); color: var(--color-muted); transition: color 180ms ease, padding 180ms ease; cursor: pointer; }
.link-list a:hover { color: var(--color-text); padding-left: 8px; }
.link-list .link-note { cursor: default; }
.link-list .link-note:hover { color: var(--color-muted); padding-left: 0; }
.social-link-list .link-item { gap: clamp(18px, 4vw, 56px); align-items: center; }
.link-main { display: grid; gap: 6px; min-width: 180px; color: var(--color-text); }
.link-main small { color: var(--color-muted); font-size: 13px; letter-spacing: .04em; }
.link-copy { max-width: 360px; color: var(--color-muted); font-size: 14px; line-height: 1.7; text-align: right; }
.account-block { margin-top: clamp(34px, 6vw, 64px); }
.account-list { list-style: none; margin: 0; padding: 0; color: var(--color-muted); line-height: 2.1; }
.account-list a { border-bottom: 1px solid transparent; transition: color 180ms ease, border-color 180ms ease; }
.account-list a:hover { color: var(--color-text); border-color: currentColor; }
.rights-copy p { margin: 0 0 18px; color: var(--color-muted); }
.site-footer { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-page) 36px; color: var(--color-muted); display: grid; gap: 12px; }
.portal-template .site-footer { padding-bottom: clamp(18px, 3vh, 28px); gap: 8px; }
.portal-template .signature { color: rgba(139, 122, 99, .84); font-size: 26px; }
.portal-template .footer-line { color: rgba(118, 113, 106, .7); font-size: 12px; }
.signature { font-family: var(--font-heading); font-style: italic; letter-spacing: .08em; color: var(--color-accent); font-size: 28px; }
.footer-line { font-size: 13px; letter-spacing: .08em; }
.site-footer nav { display: flex; gap: 18px; font-size: 13px; }
.site-footer a:hover { color: var(--color-text); }
@media (max-width: 820px) {
  .desktop-nav { display: none; }
  .menu-button { display: inline-flex; }
  .hero-book, .story-detail, .two-column { grid-template-columns: 1fr; }
  .portal-shell { align-items: flex-start; padding: 24px clamp(22px, 6vw, 32px) 30px; }
  .portal-hero { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .portal-copy { width: 100%; max-width: min(520px, calc(100vw - 44px)); margin: 0 auto; transform: none; }
  .portal-copy .eyebrow { margin-bottom: 10px; font-size: 11px; }
  .portal-copy h1 { font-size: clamp(42px, 12vw, 56px); line-height: 1; }
  .portal-lede { max-width: 22em; margin-top: 14px; font-size: 15px; line-height: 1.68; }
  .portal-actions { width: 100%; max-width: calc(100vw - 44px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
  .portal-actions .button-primary,
  .portal-actions .button-quiet { width: 100%; min-width: 0; min-height: 38px; padding: 0 8px; font-size: 13px; white-space: nowrap; }
  .portal-gallery-link { margin-top: 12px; font-size: 13px; line-height: 1.75; }
  .portal-figure { width: 100%; max-width: 520px; justify-self: center; transform: none; }
  .portal-figure figcaption { margin-top: 9px; font-size: 11px; }
  .home-shell { padding-top: clamp(22px, 4vw, 34px); }
  .home-template .home-shell { padding-left: clamp(22px, 6vw, 32px); padding-right: clamp(22px, 6vw, 32px); }
  .hero-book { min-height: auto; gap: clamp(18px, 4.5vw, 30px); align-items: start; }
  .home-template .hero-copy { width: 100%; max-width: 430px; margin-left: auto; margin-right: auto; }
  .hero-sub { margin-top: 18px; font-size: 15px; line-height: 1.72; letter-spacing: .04em; }
  .hero-actions { width: 100%; margin-top: 22px; gap: 12px; }
  .button-primary, .button-quiet { min-height: 42px; }
  .home-template .hero-figure {
    justify-self: center;
    width: 100%;
    overflow: hidden;
    max-width: 330px;
    margin: clamp(6px, 2vw, 14px) auto 0;
    aspect-ratio: 4 / 5;
  }
  .home-template .hero-figure img {
    width: 100%;
    max-width: 100%;
    transform: none;
    object-fit: contain;
    object-position: center center;
  }
  .entry-strip { grid-template-columns: 1fr; margin-top: 20px; }
  .home-template .text-entry { min-height: 96px; padding: 16px 24px; }
  .home-template .text-entry span { margin-bottom: 10px; font-size: 24px; }
  .home-template .text-entry p { line-height: 1.58; }
  .gallery-grid { grid-template-columns: 1fr; max-width: 420px; row-gap: 36px; }
  .social-link-list .link-item { align-items: flex-start; flex-direction: column; gap: 8px; min-height: auto; padding: 18px 0; }
  .link-main { min-width: 0; }
  .link-copy { max-width: none; text-align: left; }
  .text-entry { border-right: 0; border-bottom: 1px solid var(--color-line); }
  .text-entry:last-child { border-bottom: 0; }
  .story-row { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .story-thumb { max-width: 260px; }
}
@supports (-webkit-touch-callout: none) {
  @media (max-width: 820px) {
    .home-template .hero-figure img { transform: none; object-position: center center; }
  }
}
@media (max-width: 430px) {
  .site-header { min-height: 64px; padding: 18px clamp(22px, 6vw, 28px) 16px; }
  .mobile-menu { inset-top: 64px; }
  .home-shell, .page-shell { padding-top: 24px; }
  .portal-shell { padding-top: 18px; padding-bottom: 22px; }
  .portal-hero { gap: 14px; }
  .portal-copy h1 { font-size: clamp(40px, 12vw, 48px); }
  .portal-actions { margin-top: 15px; }
  .portal-actions .button-primary,
  .portal-actions .button-quiet { min-height: 36px; font-size: 12px; }
  .portal-figure { width: 100%; }
  .home-template .home-shell { padding-left: clamp(22px, 6vw, 28px); padding-right: clamp(22px, 6vw, 28px); }
  .eyebrow { margin-bottom: 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button-primary, .button-quiet { width: 100%; padding-left: 18px; padding-right: 18px; }
  .portal-actions .button-primary,
  .portal-actions .button-quiet { width: 100%; padding-left: 8px; padding-right: 8px; }
  .home-template .hero-figure { max-width: 100%; aspect-ratio: 4 / 5; }
  .page-intro h1 { font-size: 48px; }
  .story-copy h1 { font-size: 36px; }
  footer.site-footer { padding-bottom: 28px; }
}

.douyin-page { padding-top: clamp(34px, 5.5vw, 78px); }
.douyin-page .page-intro { margin-bottom: clamp(30px, 4.8vw, 56px); }
.douyin-page .page-intro h1 { font-size: clamp(48px, 8vw, 104px); }
.douyin-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 36px);
  row-gap: clamp(46px, 5.6vw, 64px);
}
.douyin-card { display: block; scroll-margin-top: 96px; }
.douyin-cover-link, .douyin-cover-static { display: block; }
.douyin-cover-link { cursor: pointer; }
.douyin-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
}
.douyin-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}
.douyin-cover-link:hover .douyin-cover img,
.douyin-cover-link:focus-visible .douyin-cover img { transform: scale(1.015); }
.douyin-badge {
  position: absolute;
  z-index: 2;
  left: 5%;
  bottom: 1.8%;
  width: auto;
  max-width: 58%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .42em .72em;
  border: 1px solid rgba(42, 38, 31, .16);
  border-radius: 999px;
  background: rgba(250, 248, 241, .86);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
  color: rgba(32, 29, 24, .82);
  font-size: clamp(10px, 1.1vw, 13px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .08em;
  white-space: nowrap;
  box-sizing: border-box;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.douyin-badge::before {
  content: "";
  flex: 0 0 .45em;
  width: .45em;
  height: .45em;
  margin-right: .42em;
  border-radius: 50%;
  background: rgba(32, 29, 24, .45);
}
.douyin-badge::after {
  content: none;
}
.douyin-template[data-lang="en"] .douyin-badge,
.douyin-template[data-lang="ja"] .douyin-badge {
  letter-spacing: .07em;
}
@media (max-width: 820px) {
  .douyin-badge {
    max-width: 62%;
    padding: .38em .64em;
    font-size: 10px;
    letter-spacing: .06em;
  }
  .douyin-template[data-lang="en"] .douyin-badge,
  .douyin-template[data-lang="ja"] .douyin-badge {
    font-size: 9px;
    letter-spacing: .045em;
  }
  .douyin-badge::before {
    flex-basis: .42em;
    width: .42em;
    height: .42em;
    margin-right: .38em;
  }
}
.douyin-caption { margin-top: 14px; }
.douyin-caption h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .02em;
}
.douyin-caption p {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.douyin-template[data-lang="zh"] .douyin-caption p,
.douyin-template[data-lang="ja"] .douyin-caption p {
  line-break: anywhere;
  word-break: break-all;
}
.douyin-card-actions { margin-top: 16px; }
.douyin-watch-link { min-height: 38px; padding: 0 16px; font-size: 13px; }
.douyin-detail {
  display: grid;
  grid-template-columns: minmax(260px, 440px) minmax(0, 640px);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
}
.douyin-detail-cover { width: 100%; max-width: 440px; }
.douyin-detail-copy h1 { margin: 0 0 20px; font-size: clamp(40px, 6vw, 78px); line-height: 1.08; }
.douyin-detail-copy p { color: var(--color-muted); }
.douyin-meta { margin: 0 0 26px; letter-spacing: .08em; font-size: 13px; text-transform: uppercase; }
.douyin-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 32px; }
@media (max-width: 820px) {
  .douyin-page {
    padding-left: 24px;
    padding-right: 24px;
    max-width: 100%;
    overflow-x: hidden;
  }
  .douyin-page .page-intro {
    width: min(100%, calc(100vw - 48px));
    max-width: min(760px, calc(100vw - 48px));
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: anywhere;
  }
  .douyin-page .page-intro p {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  body[data-lang="zh"] .douyin-page .page-intro p:not(.eyebrow),
  body[data-lang="ja"] .douyin-page .page-intro p:not(.eyebrow) {
    line-break: anywhere;
    word-break: break-all;
  }
  .douyin-grid {
    grid-template-columns: 1fr;
    width: min(100%, calc(100vw - 48px));
    max-width: min(430px, calc(100vw - 48px));
    row-gap: 40px;
  }
  .douyin-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
  }
  .douyin-caption {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .douyin-caption p {
    width: min(100%, calc(100vw - 48px));
    max-width: 100%;
    min-width: 0;
    white-space: normal;
  }
  .douyin-cover-link,
  .douyin-cover-static {
    width: 100%;
    max-width: 100%;
  }
  .douyin-cover {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
  }
  .douyin-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }
  .douyin-detail { grid-template-columns: 1fr; }
  .douyin-detail-cover {
    width: min(100%, calc(100vw - 48px));
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 430px) {
  .douyin-actions { align-items: stretch; flex-direction: column; }
  .douyin-actions .inline-link { text-align: center; }
  .douyin-page .page-intro h1 {
    font-size: clamp(38px, 12vw, 46px);
    overflow-wrap: anywhere;
  }
}

@media (max-width: 820px) {
  .douyin-page .douyin-hero {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }
  .douyin-page .douyin-hero__inner {
    box-sizing: border-box;
    width: min(100%, calc(100vw - 64px));
    max-width: 342px;
    margin-left: auto;
    margin-right: auto;
  }
  .douyin-page .douyin-hero .eyebrow,
  .douyin-page .douyin-hero h1,
  .douyin-page .douyin-hero p:not(.eyebrow) {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
  }
  .douyin-page .douyin-hero p:not(.eyebrow) {
    margin-top: 18px;
    line-height: 1.78;
  }
  body[data-lang="zh"] .douyin-page .douyin-hero p:not(.eyebrow),
  body[data-lang="ja"] .douyin-page .douyin-hero p:not(.eyebrow) {
    line-break: loose;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

@media (max-width: 430px) {
  .douyin-page .douyin-hero h1 {
    font-size: clamp(40px, 11.2vw, 44px);
    line-height: 1.08;
  }
}
