:root {
  color-scheme: light;
  --ink: #182620;
  --ink-soft: #294036;
  --muted: #68736b;
  --paper: #f6f0e3;
  --paper-strong: #eee3cf;
  --surface: #fffdf8;
  --jade: #356454;
  --jade-deep: #244d42;
  --jade-soft: #e2ece5;
  --cinnabar: #a33b2f;
  --cinnabar-deep: #7f2d25;
  --cinnabar-soft: #f5dfd8;
  --gold: #b78b42;
  --gold-soft: #efe3c8;
  --line: rgba(39, 57, 48, 0.14);
  --line-strong: rgba(39, 57, 48, 0.25);
  --shadow: 0 28px 80px rgba(36, 52, 44, 0.13);
  --shadow-soft: 0 12px 38px rgba(36, 52, 44, 0.08);
  --scroll-progress: 0;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 18px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5f0e5;
  --ink-soft: #dce7df;
  --muted: #aebbb2;
  --paper: #131a17;
  --paper-strong: #1d2822;
  --surface: #18201c;
  --jade: #8db4a0;
  --jade-deep: #b8d2c3;
  --jade-soft: rgba(145, 183, 157, 0.16);
  --cinnabar: #ef8576;
  --cinnabar-deep: #ffb0a4;
  --cinnabar-soft: rgba(255, 139, 123, 0.14);
  --gold: #dfba6c;
  --gold-soft: rgba(227, 189, 105, 0.16);
  --line: rgba(244, 241, 232, 0.14);
  --line-strong: rgba(244, 241, 232, 0.25);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 12px 38px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html[data-app-pending="true"] {
  background: #f1ecdf;
}

html[data-theme="dark"][data-app-pending="true"] {
  background: #0d1310;
}

html[data-app-pending="true"] #app {
  visibility: hidden;
}

html[data-language-pending="true"] {
  background: #f1ecdf;
}

html[data-theme="dark"][data-language-pending="true"] {
  background: #0d1310;
}

html[data-language-pending="true"] body {
  visibility: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(163, 59, 47, 0.075), transparent 23rem),
    radial-gradient(circle at 92% 4%, rgba(53, 100, 84, 0.13), transparent 30rem),
    linear-gradient(135deg, rgba(255, 253, 248, 0.74), rgba(246, 240, 227, 0.9)),
    #f1ecdf;
  font-family: var(--sans);
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 8% 12%, rgba(239, 133, 118, 0.08), transparent 23rem),
    radial-gradient(circle at 92% 4%, rgba(141, 180, 160, 0.12), transparent 30rem),
    linear-gradient(135deg, rgba(19, 26, 23, 0.96), rgba(12, 18, 15, 0.98)),
    #0d1310;
}

body,
button,
input,
select {
  font: inherit;
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select {
  background: rgba(20, 25, 22, 0.92);
  color: var(--ink);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 12px max(18px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(248, 251, 247, 0.9);
  backdrop-filter: blur(18px) saturate(150%);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold), var(--jade));
  box-shadow: 0 0 18px rgba(163, 59, 47, 0.22);
  transform: scaleX(var(--scroll-progress));
  transform-origin: left center;
  transition: transform 80ms linear;
}

.site-header.is-scrolled {
  border-bottom-color: color-mix(in srgb, var(--line-strong) 74%, var(--gold));
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: 0 16px 42px rgba(36, 52, 44, 0.1);
}

:root[data-theme="dark"] .site-header {
  background: rgba(16, 21, 19, 0.9);
}

:root[data-theme="dark"] .site-header.is-scrolled {
  background: color-mix(in srgb, #101714 86%, transparent);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup strong {
  font-size: 14px;
  line-height: 1.15;
}

.brand-lockup small {
  max-width: 280px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  object-fit: contain;
}

:root[data-theme="dark"] .brand-mark {
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.28));
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav-item {
  position: relative;
  display: inline-flex;
}

.main-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 8px;
  color: #46524e;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

:root[data-theme="dark"] .main-nav a {
  color: #c4ccc6;
}

.main-nav a:hover,
.main-nav a.active,
.nav-item.active > a {
  background: var(--jade-soft);
  color: var(--ink);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 40;
  min-width: 220px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-dropdown::before {
  position: absolute;
  inset: -10px 0 auto;
  height: 10px;
  content: "";
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown a {
  justify-content: flex-start;
  min-height: 36px;
  border-radius: 6px;
  padding: 8px 10px;
}

.site-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.language-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.language-control select {
  width: auto;
  min-height: 34px;
  padding: 5px 30px 5px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.theme-toggle:hover {
  background: var(--jade-soft);
}

.theme-glyph {
  position: relative;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #26312e;
  box-shadow: inset -4px -4px 0 rgba(255, 255, 255, 0.92);
}

:root[data-theme="dark"] .theme-glyph {
  background: #f2c94c;
  box-shadow: 0 0 0 4px rgba(242, 201, 76, 0.18);
}

.site-switcher {
  position: fixed;
  top: 82px;
  left: max(18px, calc((100vw - 1180px) / 2 - 92px), env(safe-area-inset-left));
  z-index: 68;
  display: grid;
  gap: 7px;
  padding: 6px;
  border: 1px solid rgba(39, 57, 48, 0.14);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 18px 46px rgba(36, 52, 44, 0.12);
  backdrop-filter: saturate(180%) blur(18px);
}

.site-switcher-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(246, 240, 227, 0.9);
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.site-switcher-link img {
  display: block;
  width: 25px;
  height: 25px;
  border-radius: 8px;
}

.site-switcher-link::after {
  content: attr(data-site-name);
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  min-width: max-content;
  max-width: 220px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-4px, -50%);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.site-switcher-link:hover,
.site-switcher-link:focus-visible {
  border-color: rgba(163, 59, 47, 0.32);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(163, 59, 47, 0.08);
  transform: translateY(-1px);
}

.site-switcher-link:hover::after,
.site-switcher-link:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.site-switcher-link:focus-visible,
.scroll-top-button:focus-visible {
  outline: 3px solid rgba(163, 59, 47, 0.24);
  outline-offset: 3px;
}

.scroll-top-button {
  position: fixed;
  right: max(18px, calc((100vw - 1180px) / 2 - 62px), env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(163, 59, 47, 0.22);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 18px 46px rgba(36, 52, 44, 0.14);
  backdrop-filter: saturate(180%) blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.96);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.scroll-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top-button:hover {
  border-color: rgba(163, 59, 47, 0.42);
  color: var(--cinnabar);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(163, 59, 47, 0.08), 0 18px 46px rgba(36, 52, 44, 0.16);
  transform: translateY(-2px) scale(1);
}

.scroll-top-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:root[data-theme="dark"] .site-switcher {
  border-color: var(--line);
  background: rgba(24, 32, 28, 0.9);
  box-shadow: var(--shadow);
}

:root[data-theme="dark"] .scroll-top-button {
  border-color: rgba(239, 133, 118, 0.28);
  color: var(--ink);
  background: rgba(24, 32, 28, 0.9);
  box-shadow: var(--shadow);
}

:root[data-theme="dark"] .site-switcher-link {
  background: rgba(19, 26, 23, 0.94);
}

:root[data-theme="dark"] .site-switcher-link:hover,
:root[data-theme="dark"] .site-switcher-link:focus-visible {
  border-color: rgba(239, 133, 118, 0.42);
  background: rgba(239, 133, 118, 0.12);
}

:root[data-theme="dark"] .scroll-top-button:hover {
  border-color: rgba(239, 133, 118, 0.46);
  color: #ffb0a4;
  background: rgba(239, 133, 118, 0.12);
}

:root[data-theme="dark"] .site-switcher-link::after {
  border-color: var(--line);
  background: rgba(24, 32, 28, 0.98);
  color: var(--ink);
}

.hero-section,
.tool-hero,
.content-section,
.tool-panel,
.result-region {
  width: min(1180px, calc(100vw - 36px));
  margin-inline: auto;
  scroll-margin-top: 92px;
}

.hero-section {
  min-height: clamp(620px, 82vh, 820px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: 42px;
  align-items: center;
  padding: 46px 0 34px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0 0 12px;
  color: var(--cinnabar);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.15;
}

h4 {
  margin: 22px 0 8px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-copy p,
.tool-hero p,
.section-heading p,
.prose-section p {
  color: var(--muted);
  font-size: 18px;
}

.hero-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 32px 0 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 22px;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 4px rgba(111, 138, 117, 0.16);
}

.primary-button,
.secondary-button,
.text-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 760;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.primary-button {
  padding: 11px 16px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 30px rgba(38, 49, 46, 0.18);
}

:root[data-theme="dark"] .primary-button {
  background: #f4f1e8;
  color: #141916;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(38, 49, 46, 0.22);
}

.primary-button:active,
.secondary-button:active,
.theme-toggle:active,
.scroll-top-button:active {
  transform: translateY(1px) scale(0.985);
}

.secondary-button {
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

:root[data-theme="dark"] .secondary-button,
:root[data-theme="dark"] .theme-toggle {
  background: rgba(20, 25, 22, 0.86);
}

.secondary-button:hover {
  background: var(--jade-soft);
}

.text-button {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--cinnabar);
}

.button-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 250, 241, 0.16);
  font-size: 13px;
  line-height: 1;
}

.secondary-button .button-icon {
  background: var(--gold-soft);
  color: #5b4520;
}

:root[data-theme="dark"] .secondary-button .button-icon {
  color: #f4f1e8;
}

.trust-row,
.chip-row,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.status-summary div {
  min-height: 104px;
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.58);
}

:root[data-theme="dark"] .status-summary div {
  background: rgba(20, 25, 22, 0.72);
}

.status-summary strong {
  font-size: 34px;
  line-height: 0.95;
}

.status-summary span:not(.status-badge) {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.status-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px 8px;
  background: var(--jade-soft);
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-live-tool {
  border-color: rgba(111, 138, 117, 0.42);
  background: var(--jade-soft);
}

.status-seo-page {
  border-color: rgba(199, 160, 82, 0.5);
  background: var(--gold-soft);
}

.status-planned {
  border-color: rgba(169, 69, 61, 0.35);
  background: var(--cinnabar-soft);
}

.hero-status {
  margin-bottom: 12px;
}

.status-note,
.status-explainer {
  color: var(--muted);
}

.status-note {
  max-width: 780px;
  border-left: 4px solid var(--gold);
  padding: 10px 12px;
  background: var(--gold-soft);
  font-size: 15px;
}

.status-explainer {
  display: block;
  margin-top: auto;
  font-size: 12px;
  line-height: 1.35;
}

.trust-row span,
.chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.64);
  color: #46524e;
  font-size: 13px;
  font-weight: 650;
}

:root[data-theme="dark"] .trust-row span,
:root[data-theme="dark"] .chip-row span {
  background: rgba(20, 25, 22, 0.72);
  color: #d8ded8;
}

.chip-row small {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.hero-visual {
  margin: 0;
  align-self: stretch;
  min-height: 460px;
  border: 1px solid rgba(199, 160, 82, 0.46);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-product-window {
  align-self: center;
  min-height: 430px;
  border: 1px solid rgba(111, 138, 117, 0.26);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(243, 246, 240, 0.9)),
    var(--surface);
  box-shadow: var(--shadow);
}

:root[data-theme="dark"] .hero-product-window {
  background:
    linear-gradient(135deg, rgba(27, 33, 30, 0.94), rgba(20, 25, 22, 0.9)),
    var(--surface);
}

.browser-window-bar {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.64);
}

:root[data-theme="dark"] .browser-window-bar {
  background: rgba(20, 25, 22, 0.72);
}

.browser-window-bar strong {
  margin-left: 8px;
  font-size: 14px;
}

.browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.browser-dot:first-child {
  background: rgba(169, 69, 61, 0.62);
}

.browser-dot:nth-child(2) {
  background: rgba(199, 160, 82, 0.7);
}

.browser-dot:nth-child(3) {
  background: rgba(111, 138, 117, 0.7);
}

.hero-tool-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
}

.preview-tool-card {
  min-height: 158px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(38, 49, 46, 0.06);
}

:root[data-theme="dark"] .preview-tool-card {
  background: rgba(20, 25, 22, 0.78);
}

.preview-tool-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--jade-soft);
  color: var(--ink);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 20px;
  font-weight: 850;
  line-height: 1;
}

.preview-tool-card:nth-child(2) .preview-tool-icon {
  background: var(--gold-soft);
}

.preview-tool-card:nth-child(3) .preview-tool-icon {
  background: var(--cinnabar-soft);
}

.preview-tool-card strong,
.preview-tool-card span {
  display: block;
}

.preview-tool-card strong {
  margin-bottom: 7px;
  font-size: 18px;
  line-height: 1.15;
}

.preview-tool-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.content-section,
.tool-panel {
  padding: 68px 0;
  border-top: 1px solid var(--line);
}

.section-heading,
.panel-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tool-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(38, 49, 46, 0.06);
}

.status-card .status-badge {
  margin-top: -2px;
}

.tool-card[data-status="SEO_PAGE"] {
  border-style: dashed;
}

.tool-card[data-status="PLANNED"] {
  opacity: 0.88;
}

:root[data-theme="dark"] .tool-card {
  background: rgba(20, 25, 22, 0.78);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.tool-card:hover {
  border-color: rgba(111, 138, 117, 0.55);
  transform: translateY(-1px);
}

.tool-card.is-muted {
  background: rgba(255, 255, 255, 0.48);
}

:root[data-theme="dark"] .tool-card.is-muted {
  background: rgba(20, 25, 22, 0.5);
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--jade-soft);
  color: var(--ink);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 22px;
  font-weight: 800;
}

.tool-card:nth-child(3n + 2) .tool-icon {
  background: var(--cinnabar-soft);
}

.tool-card:nth-child(3n) .tool-icon {
  background: var(--gold-soft);
}

.tool-card-kicker,
.card-action {
  color: var(--cinnabar);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tool-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.15;
}

.tool-card p {
  margin-bottom: auto;
  color: var(--muted);
}

.home-feature-grid,
.home-category-grid,
.culture-entry-grid {
  display: grid;
  gap: 14px;
}

.home-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-category-grid,
.culture-entry-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-feature-card,
.home-category-card,
.culture-entry-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(38, 49, 46, 0.06);
}

:root[data-theme="dark"] .home-feature-card,
:root[data-theme="dark"] .home-category-card,
:root[data-theme="dark"] .culture-entry-card {
  background: rgba(20, 25, 22, 0.78);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.home-feature-card:hover,
.home-category-card:hover,
.culture-entry-card:hover {
  border-color: rgba(111, 138, 117, 0.55);
  transform: translateY(-1px);
}

.home-feature-card:nth-child(3n + 2) .tool-icon,
.culture-entry-card:nth-child(3n + 2) .tool-icon {
  background: var(--cinnabar-soft);
}

.home-feature-card:nth-child(3n) .tool-icon,
.culture-entry-card:nth-child(3n) .tool-icon {
  background: var(--gold-soft);
}

.home-feature-card strong,
.home-category-card strong,
.culture-entry-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.15;
}

.home-feature-card p,
.home-category-card p,
.culture-entry-card p {
  margin-bottom: auto;
  color: var(--muted);
}

.mini-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.mini-link-row span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 8px;
  background: var(--jade-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.website-status-section {
  padding-bottom: 36px;
}

.website-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.website-status-grid div {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.58);
}

:root[data-theme="dark"] .website-status-grid div {
  background: rgba(20, 25, 22, 0.72);
}

.website-status-grid strong {
  font-size: 42px;
  line-height: 0.95;
}

.website-status-grid span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.status-detail-link {
  margin-top: 18px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: steps;
}

.step-list li {
  min-height: 170px;
  border-left: 4px solid var(--jade);
  padding: 4px 18px 12px;
  counter-increment: steps;
}

.step-list li::before {
  content: counter(steps, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 28px;
  font-weight: 850;
}

.step-list strong,
.step-list span {
  display: block;
}

.step-list span {
  margin-top: 7px;
  color: var(--muted);
}

.example-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.7fr);
  gap: 28px;
  align-items: center;
}

.name-card {
  position: relative;
  isolation: isolate;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(199, 160, 82, 0.72);
  border-radius: 8px;
  padding: 30px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 250, 241, 0.94), rgba(255, 255, 255, 0.88)),
    var(--surface);
  box-shadow: var(--shadow);
}

.certificate-card {
  background:
    linear-gradient(145deg, rgba(255, 250, 241, 0.95), rgba(247, 251, 246, 0.92)),
    var(--surface);
}

:root[data-theme="dark"] .name-card,
:root[data-theme="dark"] .certificate-card {
  background:
    linear-gradient(145deg, rgba(28, 36, 30, 0.96), rgba(18, 23, 20, 0.92)),
    var(--surface);
}

.certificate-title {
  display: block;
  margin-top: 9px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 850;
  line-height: 1.05;
}

.certificate-seal {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  transform: rotate(-8deg);
  border: 4px solid rgba(169, 69, 61, 0.82);
  color: rgba(169, 69, 61, 0.88);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 38px;
  font-weight: 850;
}

.name-card-pattern {
  position: absolute;
  inset: auto -120px -150px auto;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(169, 69, 61, 0.18);
  border-radius: 50%;
  z-index: -1;
}

.name-card-pattern::before,
.name-card-pattern::after {
  content: "";
  position: absolute;
  inset: 34px;
  border: 1px solid rgba(199, 160, 82, 0.24);
  border-radius: 50%;
}

.name-card-pattern::after {
  inset: 86px;
  border-color: rgba(111, 138, 117, 0.24);
}

.name-card-label {
  color: var(--cinnabar);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hanzi-display {
  display: block;
  margin: 10px 0 6px;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(76px, 13vw, 128px);
  line-height: 0.95;
  letter-spacing: 0;
}

.result-layout .hanzi-display {
  font-size: clamp(70px, 8vw, 104px);
}

.pinyin-display {
  color: var(--cinnabar);
  font-size: 22px;
  font-weight: 750;
}

.name-card p {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--muted);
}

.certificate-meta {
  color: var(--jade);
  font-weight: 760;
}

.prose-section {
  max-width: 880px;
}

.tool-hero {
  padding: 42px 0 34px;
}

.tool-hero h1 {
  max-width: 880px;
  font-size: clamp(38px, 6vw, 66px);
}

.tool-hero p {
  max-width: 820px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--ink);
  text-decoration: none;
}

.tool-panel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.name-generator-form {
  max-width: 900px;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 0.46fr);
  align-items: end;
}

.name-generator-form .form-submit {
  width: fit-content;
  min-width: 250px;
  grid-column: 1;
  margin-top: 2px;
}

.compact-form {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr) auto;
  align-items: end;
}

.single-date-form {
  width: fit-content;
  max-width: 100%;
  grid-template-columns: minmax(300px, 390px) max-content;
  justify-content: start;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 12px 34px rgba(38, 49, 46, 0.06);
}

:root[data-theme="dark"] .single-date-form {
  background: rgba(20, 25, 22, 0.68);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

.single-date-form input {
  min-height: 44px;
  background: var(--surface);
}

.date-field-label {
  min-width: 0;
}

.segmented-date-input {
  display: grid;
  grid-template-columns: minmax(78px, 1fr) auto minmax(48px, 0.7fr) auto minmax(48px, 0.7fr);
  align-items: center;
  gap: 6px;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.92);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

:root[data-theme="dark"] .segmented-date-input {
  background: rgba(20, 25, 22, 0.92);
}

.segmented-date-input:focus-within {
  border-color: var(--jade);
  box-shadow: 0 0 0 4px rgba(111, 138, 117, 0.16);
}

.segmented-date-input .date-part {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 5px 4px;
  background: transparent;
  text-align: center;
  font-weight: 760;
  box-shadow: none;
}

.segmented-date-input .date-part:focus {
  border-color: transparent;
  box-shadow: none;
  background: var(--jade-soft);
}

.date-separator {
  color: var(--muted);
  font-weight: 760;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 520;
}

.single-date-form .form-submit {
  width: auto;
  min-width: 168px;
  height: 46px;
  min-height: 46px;
  align-self: start;
  margin-top: 25px;
  padding-block: 0;
  padding-inline: 18px;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(38, 49, 46, 0.14);
}

.form-grid:has(.date-field-label) {
  align-items: start;
}

.form-grid:has(.date-field-label) .form-submit {
  align-self: start;
  height: 46px;
  min-height: 46px;
  margin-top: 25px;
  padding-block: 0;
}

.form-grid label {
  display: grid;
  gap: 7px;
  color: #46524e;
  font-size: 13px;
  font-weight: 760;
}

:root[data-theme="dark"] .form-grid label {
  color: #d8ded8;
}

.form-submit {
  align-self: end;
}

.result-section {
  padding-top: 42px;
}

.name-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr));
  gap: 18px;
}

.name-choice-card {
  width: 100%;
  min-height: 440px;
  appearance: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.name-choice-card:hover,
.name-choice-card:focus-visible {
  border-color: rgba(169, 69, 61, 0.86);
  box-shadow: 0 22px 54px rgba(38, 49, 46, 0.16);
  transform: translateY(-2px);
  outline: none;
}

.name-choice-card.is-selected {
  border-color: rgba(169, 69, 61, 0.92);
  box-shadow:
    0 0 0 3px rgba(169, 69, 61, 0.12),
    0 22px 54px rgba(38, 49, 46, 0.16);
}

.name-choice-card .hanzi-display {
  font-size: clamp(72px, 9vw, 112px);
}

.name-choice-action {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 20px;
  border-bottom: 2px solid rgba(169, 69, 61, 0.34);
  color: var(--cinnabar);
  font-size: 14px;
  font-weight: 850;
}

.selected-name-region {
  margin-top: 28px;
  scroll-margin-top: 92px;
}

.result-layout,
.surname-result,
.zodiac-result {
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.result-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.68);
}

:root[data-theme="dark"] .result-details,
:root[data-theme="dark"] .alternative-grid article,
:root[data-theme="dark"] .metric-grid div,
:root[data-theme="dark"] .lunar-note-card,
:root[data-theme="dark"] .nickname-card,
:root[data-theme="dark"] .long-tail-card,
:root[data-theme="dark"] .festival-card,
:root[data-theme="dark"] .mythology-card,
:root[data-theme="dark"] .mythology-source-map article,
:root[data-theme="dark"] .image-preview-dialog,
:root[data-theme="dark"] .festival-info-card,
:root[data-theme="dark"] .festival-regional-grid article,
:root[data-theme="dark"] .source-list li,
:root[data-theme="dark"] .related-guide-links a,
:root[data-theme="dark"] details {
  background: rgba(20, 25, 22, 0.76);
}

.compact-list {
  padding-left: 20px;
  margin-top: 0;
  color: var(--muted);
}

.compact-list li + li {
  margin-top: 7px;
}

.soft-note,
.form-error {
  border-left: 4px solid var(--gold);
  padding: 12px 14px;
  background: var(--gold-soft);
  color: #5f5236;
}

:root[data-theme="dark"] .soft-note,
:root[data-theme="dark"] .form-error {
  color: #f4f1e8;
}

.form-error {
  border-color: var(--cinnabar);
  background: var(--cinnabar-soft);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  background: var(--surface);
}

:root[data-theme="dark"] table {
  background: rgba(20, 25, 22, 0.92);
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--jade-soft);
  color: #38473f;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

:root[data-theme="dark"] th {
  color: #f4f1e8;
}

tr:last-child td {
  border-bottom: 0;
}

.action-row {
  margin-top: 20px;
}

.hero-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.alternative-panel {
  margin-top: 22px;
}

.alternative-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.alternative-grid article,
.metric-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.64);
}

.alternative-grid strong,
.alternative-grid span,
.metric-grid span,
.metric-grid strong {
  display: block;
}

.alternative-grid strong {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 34px;
}

.alternative-grid span,
.alternative-grid small,
.metric-grid span {
  color: var(--cinnabar);
  font-weight: 750;
}

.metric-grid small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.alternative-grid small {
  margin-top: 5px;
  color: var(--jade);
}

.lunar-explanation-card {
  margin-top: 18px;
}

.lunar-notes {
  margin-top: 22px;
}

.compact-heading {
  margin-bottom: 14px;
}

.lunar-notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lunar-note-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.64);
}

.lunar-note-card h4 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.35;
}

.lunar-note-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.nickname-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.nickname-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.64);
}

.nickname-card h3 {
  margin: 6px 0 10px;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 38px;
  line-height: 1.1;
}

.nickname-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.nickname-card strong {
  color: var(--ink);
}

.baby-name-card .compact-list {
  margin-top: 14px;
}

.baby-name-card .action-row {
  margin-top: 18px;
}

.calligraphy-result-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.calligraphy-preview {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px 5px 18px 5px;
  padding: 58px;
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.calligraphy-preview strong {
  display: block;
  font-size: clamp(72px, 9vw, 138px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.05em;
}

.calligraphy-regular strong {
  font-family: "Kaiti SC", "STKaiti", "Songti SC", serif;
}

.calligraphy-running strong {
  font-family: "HanziPen SC", "STXingkai", "Kaiti SC", serif;
  font-style: italic;
}

.calligraphy-clerical strong {
  font-family: "Baoli SC", "STLiti", "Songti SC", serif;
  font-stretch: expanded;
}

.calligraphy-vertical strong {
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.calligraphy-horizontal strong {
  writing-mode: horizontal-tb;
}

.calligraphy-caption,
.calligraphy-pinyin {
  position: absolute;
  left: 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.calligraphy-caption {
  top: 22px;
}

.calligraphy-pinyin {
  bottom: 22px;
}

.calligraphy-seal {
  position: absolute;
  right: 24px;
  bottom: 22px;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 5px;
  background: var(--cinnabar);
  color: #fffaf2;
  font-family: var(--serif);
  font-size: 28px;
}

.compatibility-explanation {
  margin-top: 18px;
}

.long-tail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.long-tail-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 34px rgba(38, 49, 46, 0.06);
}

.long-tail-card > strong {
  display: block;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 52px;
  line-height: 1;
}

.long-tail-card > span {
  display: block;
  margin: 8px 0 12px;
  color: var(--cinnabar);
  font-weight: 800;
}

.culture-guide-hero .status-note,
.festival-detail-hero .status-note {
  max-width: 960px;
}

.featured-festival-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 48px rgba(38, 49, 46, 0.08);
}

:root[data-theme="dark"] .featured-festival-card {
  background: rgba(20, 25, 22, 0.78);
}

.featured-festival-card .festival-visual {
  border-width: 0 0 1px;
  border-radius: 0;
}

.featured-festival-card .festival-visual img {
  aspect-ratio: 5 / 1;
}

.featured-festival-story {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.featured-festival-story .eyebrow {
  margin-bottom: 0;
}

.featured-festival-story h3 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
}

.featured-festival-story p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.festival-story-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 0;
}

.festival-story-facts div {
  min-width: min(100%, 220px);
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 12px;
}

.festival-story-facts dt {
  color: var(--cinnabar);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.festival-story-facts dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 760;
}

.festival-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}

.festival-card,
.festival-info-card,
.festival-regional-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 38px rgba(38, 49, 46, 0.07);
}

.festival-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.festival-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.festival-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.festival-card p {
  margin: 0;
  color: var(--muted);
}

.festival-card .card-action {
  width: fit-content;
  margin-top: auto;
  padding-top: 18px;
}

.mythology-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: 28px;
  align-items: start;
}

.mythology-hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mythology-hero-visual figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(38, 49, 46, 0.08);
  aspect-ratio: 16 / 9;
}

.mythology-hero-visual figure:first-child {
  grid-column: 1 / -1;
}

.mythology-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mythology-hero-visual figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  border: 1px solid rgba(255, 250, 242, 0.45);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(24, 38, 32, 0.72);
  color: #fffaf2;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.mythology-source-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mythology-source-map article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 38px rgba(38, 49, 46, 0.06);
}

.source-map-kicker {
  display: block;
  color: var(--cinnabar);
  font-size: 13px;
  font-weight: 850;
}

.mythology-source-map p {
  margin: 8px 0 14px;
  color: var(--muted);
}

.mythology-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mythology-chip-row a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--jade-soft);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 780;
  text-decoration: none;
}

.content-section.mythology-group-section {
  scroll-margin-top: 96px;
  padding-block: 36px;
}

.content-section.mythology-group-section .section-heading {
  margin-bottom: 18px;
}

.motion-ready .content-section.mythology-group-section > .section-heading[data-reveal] {
  opacity: 1;
  filter: none;
  transform: none;
}

.mythology-card-grid {
  display: grid;
  gap: 16px;
}

.mythology-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 48px rgba(38, 49, 46, 0.08);
  scroll-margin-top: 96px;
}

.mythology-card figure {
  position: relative;
  min-height: 100%;
  margin: 0;
  background: var(--paper-strong);
}

.mythology-image-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  text-align: inherit;
}

.mythology-image-trigger:focus-visible {
  outline: 3px solid rgba(163, 59, 47, 0.48);
  outline-offset: -6px;
}

.mythology-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.mythology-image-trigger:hover img {
  transform: scale(1.025);
  filter: saturate(1.04) contrast(1.02);
}

.mythology-image-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(23, 35, 29, 0.72);
  color: #fffaf1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.mythology-image-trigger:hover .mythology-image-hint,
.mythology-image-trigger:focus-visible .mythology-image-hint {
  opacity: 1;
  transform: translateY(0);
}

.mythology-card-body {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.mythology-card-head h3 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.04;
}

.mythology-card-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.mythology-fact-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.mythology-fact-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.24fr) minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.mythology-fact-list dt {
  color: var(--cinnabar);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mythology-fact-list dd {
  margin: 0;
  color: var(--ink-soft);
}

.mythology-artifact-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mythology-artifact-list strong,
.mythology-artifact-list span {
  display: block;
}

.mythology-artifact-list strong {
  color: var(--ink);
}

.mythology-card-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.mythology-card-sources span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mythology-card-sources a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--jade);
  font-size: 12px;
  font-weight: 820;
  text-decoration: none;
}

html.image-preview-open,
html.image-preview-open body {
  overflow: hidden;
}

.image-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 22, 19, 0.78);
  backdrop-filter: blur(12px);
}

.image-preview-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1180px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  border: 1px solid rgba(218, 187, 122, 0.54);
  border-radius: 10px;
  background: rgba(255, 250, 241, 0.98);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.image-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}

.image-preview-head p {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

.image-preview-close {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.image-preview-close:hover,
.image-preview-close:focus-visible {
  border-color: rgba(163, 59, 47, 0.44);
  color: var(--cinnabar);
}

.image-preview-media {
  min-height: 0;
  padding: 14px;
}

.image-preview-media img {
  display: block;
  width: 100%;
  max-height: calc(92vh - 92px);
  border-radius: 7px;
  background: #111815;
  object-fit: contain;
}

.festival-visual {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.festival-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.festival-card .festival-visual {
  border-width: 0 0 1px;
  border-radius: 0;
}

.festival-card .festival-visual figcaption {
  display: none;
}

.festival-visual-placeholder {
  min-height: 240px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(255, 250, 241, 0.94), rgba(232, 240, 232, 0.8)),
    var(--surface);
}

.festival-visual[data-festival-theme="red"] .festival-visual-placeholder {
  background:
    linear-gradient(145deg, rgba(169, 69, 61, 0.17), rgba(255, 250, 241, 0.92)),
    var(--surface);
}

.festival-visual[data-festival-theme="gold"] .festival-visual-placeholder {
  background:
    linear-gradient(145deg, rgba(199, 160, 82, 0.22), rgba(255, 250, 241, 0.9)),
    var(--surface);
}

.festival-visual[data-festival-theme="green"] .festival-visual-placeholder {
  background:
    linear-gradient(145deg, rgba(111, 138, 117, 0.22), rgba(255, 250, 241, 0.9)),
    var(--surface);
}

.festival-visual[data-festival-theme="blue"] .festival-visual-placeholder,
.festival-visual[data-festival-theme="violet"] .festival-visual-placeholder {
  background:
    linear-gradient(145deg, rgba(87, 112, 133, 0.2), rgba(255, 250, 241, 0.9)),
    var(--surface);
}

.festival-visual[data-festival-theme="brown"] .festival-visual-placeholder {
  background:
    linear-gradient(145deg, rgba(125, 94, 62, 0.18), rgba(255, 250, 241, 0.9)),
    var(--surface);
}

.festival-visual-placeholder span {
  width: max-content;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(169, 69, 61, 0.12);
  color: var(--cinnabar);
  font-weight: 800;
}

.festival-visual-placeholder strong {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1;
}

.festival-visual-placeholder small {
  color: var(--muted);
  font-weight: 720;
}

.festival-visual figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.festival-mini-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0;
}

.festival-mini-facts div {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.52);
}

:root[data-theme="dark"] .festival-mini-facts div {
  background: rgba(20, 25, 22, 0.58);
}

.festival-mini-facts dt {
  color: var(--cinnabar);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.15;
}

.festival-mini-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
}

.inline-button {
  width: max-content;
  margin-top: 16px;
}

.festival-calendar-grid,
.regional-traditions-grid {
  display: grid;
  gap: 14px;
}

.festival-calendar-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.regional-traditions-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.festival-season-card,
.festival-tradition-card,
.guide-disclaimer {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 38px rgba(38, 49, 46, 0.06);
}

:root[data-theme="dark"] .festival-season-card,
:root[data-theme="dark"] .festival-tradition-card,
:root[data-theme="dark"] .guide-disclaimer {
  background: rgba(20, 25, 22, 0.78);
}

.festival-season-card > span {
  display: block;
  margin-bottom: 10px;
  color: var(--cinnabar);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.festival-season-card p,
.festival-tradition-card p,
.guide-disclaimer p {
  margin: 0;
  color: var(--muted);
}

.festival-season-card ul,
.festival-tradition-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.festival-season-card li {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.festival-season-card a {
  color: var(--ink);
  font-weight: 780;
  text-decoration: none;
}

.festival-season-card a:hover {
  color: var(--cinnabar);
}

.festival-tradition-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.festival-tradition-card li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-weight: 680;
}

.festival-tradition-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.guide-disclaimer-section {
  padding-top: 46px;
}

.guide-disclaimer {
  max-width: 920px;
}

.guide-disclaimer h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 34px);
}

.festival-detail-hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.56fr);
  align-items: stretch;
}

.festival-chinese-title {
  margin-top: -4px;
  color: var(--cinnabar);
  font-weight: 780;
}

.festival-facts-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.festival-facts-grid div {
  min-height: 118px;
}

.festival-facts-grid strong {
  overflow-wrap: anywhere;
  font-size: 20px;
}

.festival-info-grid,
.festival-regional-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.festival-info-card {
  padding: 18px;
}

.festival-info-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.festival-info-card p {
  margin: 0;
  color: var(--muted);
}

.festival-regional-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.festival-regional-grid article {
  padding: 18px;
}

.festival-regional-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--cinnabar);
  font-weight: 780;
}

.festival-regional-grid p {
  margin: 0;
  color: var(--muted);
}

.source-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.source-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.62);
}

.source-list a {
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.source-list span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.related-guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.related-guide-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.coming-guide-note {
  border-left: 3px solid var(--gold);
  padding-left: 18px;
}

.alternative-grid p {
  color: var(--muted);
}

.surname-tile {
  min-height: 320px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(199, 160, 82, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(160deg, var(--paper), rgba(232, 240, 232, 0.8)),
    var(--surface);
  box-shadow: var(--shadow);
}

:root[data-theme="dark"] .surname-tile {
  background:
    linear-gradient(160deg, rgba(32, 39, 32, 0.95), rgba(22, 28, 24, 0.86)),
    var(--surface);
}

.surname-tile strong {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 150px;
  line-height: 0.9;
}

.surname-tile span {
  color: var(--cinnabar);
  font-size: 28px;
  font-weight: 800;
}

.metric-grid div {
  min-height: 132px;
}

.metric-grid strong {
  margin-top: 8px;
  font-size: 25px;
}

.zodiac-result .surname-tile strong {
  font-size: 138px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

summary {
  cursor: pointer;
  padding: 16px;
  font-weight: 780;
}

details p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
}

.muted-text {
  color: var(--muted);
}

.site-footer {
  width: min(1180px, calc(100vw - 36px));
  margin: 42px auto 0;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  max-width: 780px;
  margin: 8px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: start;
}

.site-footer a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  border-radius: 8px;
  padding: 11px 14px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 750;
  box-shadow: var(--shadow);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
}

/* Contemporary Chinese visual system */
.site-shell {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.site-shell::before {
  position: absolute;
  inset: 84px 0 auto;
  z-index: -1;
  height: 680px;
  content: "";
  pointer-events: none;
  opacity: 0.42;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(183, 139, 66, 0.09) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(183, 139, 66, 0.07) 50%, transparent 50.2%);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

a,
button,
input,
select,
summary {
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold) 72%, transparent);
  outline-offset: 3px;
}

.site-header {
  min-height: 72px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(53, 100, 84, 0.17);
  background: color-mix(in srgb, var(--paper) 89%, transparent);
  box-shadow: 0 10px 32px rgba(36, 52, 44, 0.06);
}

.site-header::after {
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--cinnabar) 28%, var(--gold) 54%, var(--jade) 76%, transparent);
  opacity: 0.42;
}

:root[data-theme="dark"] .site-header {
  background: color-mix(in srgb, #101714 91%, transparent);
}

.brand-lockup {
  gap: 12px;
}

.brand-lockup strong {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand-lockup small {
  margin-top: 2px;
  color: color-mix(in srgb, var(--muted) 88%, var(--jade));
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  filter: drop-shadow(0 8px 18px rgba(127, 45, 37, 0.18));
}

:root[data-theme="dark"] .brand-mark {
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.34));
}

.main-nav {
  gap: 2px;
}

.main-nav a {
  position: relative;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 680;
}

.main-nav a:hover,
.main-nav a.active {
  background: color-mix(in srgb, var(--jade-soft) 84%, transparent);
}

.main-nav a.active::after {
  position: absolute;
  right: 13px;
  bottom: 4px;
  left: 13px;
  height: 2px;
  border-radius: 999px;
  content: "";
  background: var(--cinnabar);
}

.nav-dropdown a {
  border-radius: 6px;
}

.main-nav .nav-item {
  position: relative;
  align-items: center;
}

.main-nav .nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 80;
  width: max-content;
  min-width: 220px;
  max-width: min(86vw, 320px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -4px);
}

.main-nav .has-dropdown:hover .nav-dropdown,
.main-nav .has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.main-nav .nav-dropdown a {
  width: 100%;
  justify-content: flex-start;
  min-height: 36px;
  border-radius: 6px;
  padding: 8px 10px;
}

.language-control select,
.theme-toggle {
  border-color: color-mix(in srgb, var(--jade) 25%, var(--line));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 5px 16px rgba(36, 52, 44, 0.05);
}

.language-control select {
  border-radius: 999px;
}

.theme-toggle {
  border-radius: 50%;
}

h1,
h2,
h3,
.hanzi-display,
.surname-tile strong,
.festival-chinese-title {
  font-family: var(--serif);
}

h1 {
  color: var(--ink);
  font-weight: 720;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

h2 {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.eyebrow {
  gap: 10px;
  color: var(--cinnabar);
  letter-spacing: 0.13em;
}

.eyebrow::before {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(90deg, var(--cinnabar), var(--gold));
  box-shadow: 7px 4px 0 color-mix(in srgb, var(--gold) 52%, transparent);
}

.hero-section {
  position: relative;
  min-height: clamp(690px, 86vh, 880px);
  grid-template-columns: minmax(0, 0.82fr) minmax(460px, 1.08fr);
  gap: clamp(46px, 6vw, 86px);
  padding: 74px 0 70px;
}

.hero-section::after {
  position: absolute;
  right: -8vw;
  bottom: 8%;
  z-index: -1;
  width: min(48vw, 650px);
  aspect-ratio: 1;
  border: 1px solid rgba(53, 100, 84, 0.09);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 44px rgba(53, 100, 84, 0.035),
    0 0 0 88px rgba(163, 59, 47, 0.018);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(48px, 5.5vw, 78px);
}

.hero-copy > p:not(.hero-culture-note) {
  max-width: 650px;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.72;
}

.hero-actions {
  gap: 13px;
  margin: 34px 0 24px;
}

.primary-button,
.secondary-button {
  min-height: 50px;
  border-radius: 999px;
  padding: 12px 20px;
}

.primary-button {
  border: 1px solid var(--cinnabar-deep);
  background: linear-gradient(145deg, var(--cinnabar), var(--cinnabar-deep));
  color: #fffaf2;
  box-shadow: 0 14px 30px rgba(127, 45, 37, 0.22);
}

:root[data-theme="dark"] .primary-button {
  border-color: rgba(239, 133, 118, 0.54);
  background: linear-gradient(145deg, #ad463a, #873129);
  color: #fffaf2;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(127, 45, 37, 0.28);
}

.secondary-button {
  border-color: color-mix(in srgb, var(--jade) 33%, var(--line));
  background: color-mix(in srgb, var(--surface) 84%, transparent);
}

.secondary-button:hover {
  border-color: var(--jade);
  transform: translateY(-2px);
}

.button-icon {
  border-radius: 50%;
}

.trust-row {
  gap: 9px;
}

.trust-row span,
.chip-row span {
  min-height: 32px;
  border-color: color-mix(in srgb, var(--jade) 20%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--jade-soft) 72%, transparent);
  color: var(--jade-deep);
}

.hero-culture-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.hero-culture-note > span {
  color: var(--cinnabar);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.hero-product-window {
  position: relative;
  min-height: 590px;
  border: 1px solid rgba(183, 139, 66, 0.42);
  border-radius: 30px 6px 30px 6px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow:
    0 34px 90px rgba(36, 52, 44, 0.17),
    inset 0 0 0 1px rgba(255, 253, 248, 0.68);
  transform: rotate(0.35deg);
}

:root[data-theme="dark"] .hero-product-window {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow);
}

.hero-art-panel {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background: var(--paper-strong);
}

.hero-art-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(24, 38, 32, 0.62), transparent 64%),
    linear-gradient(0deg, rgba(24, 38, 32, 0.3), transparent 48%);
}

.hero-art-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  filter: saturate(0.84) contrast(0.96);
  transform: scale(1.015);
}

.hero-art-copy {
  position: absolute;
  inset: auto 28px 28px;
  z-index: 2;
  max-width: 360px;
  color: #fffaf2;
  text-shadow: 0 2px 20px rgba(17, 25, 21, 0.28);
}

.hero-art-copy span,
.hero-art-copy strong {
  display: block;
}

.hero-art-copy span {
  margin-bottom: 7px;
  color: rgba(255, 250, 242, 0.78);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-art-copy strong {
  font-family: var(--serif);
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: 0.04em;
}

.hero-seal {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 2px solid rgba(255, 247, 232, 0.76);
  border-radius: 6px 5px 9px 5px;
  background: color-mix(in srgb, var(--cinnabar) 88%, transparent);
  color: #fff9ee;
  box-shadow:
    inset 0 0 0 3px rgba(127, 45, 37, 0.4),
    0 10px 28px rgba(61, 22, 18, 0.24);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  transform: rotate(3deg);
}

.hero-tool-preview-grid {
  position: relative;
  z-index: 4;
  margin-top: -14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 18px 14px;
}

.preview-tool-card {
  --preview-accent: var(--jade);
  --preview-accent-soft: color-mix(in srgb, var(--jade) 18%, transparent);
  min-height: 112px;
  justify-content: flex-start;
  gap: 10px;
  border-color: rgba(53, 100, 84, 0.16);
  border-radius: 15px 4px 15px 4px;
  padding: 16px 16px 15px;
  background: color-mix(in srgb, var(--surface) 91%, transparent);
  box-shadow: 0 12px 30px rgba(36, 52, 44, 0.09);
  backdrop-filter: blur(12px);
}

.preview-tool-card:nth-child(2) {
  --preview-accent: var(--gold);
  --preview-accent-soft: color-mix(in srgb, var(--gold) 20%, transparent);
}

.preview-tool-card:nth-child(3) {
  --preview-accent: var(--cinnabar);
  --preview-accent-soft: color-mix(in srgb, var(--cinnabar) 17%, transparent);
}

.preview-tool-card:nth-child(4) {
  --preview-accent: color-mix(in srgb, var(--jade) 76%, var(--ink));
  --preview-accent-soft: color-mix(in srgb, var(--jade) 15%, transparent);
}

.preview-tool-card:hover {
  border-color: color-mix(in srgb, var(--jade) 44%, var(--line));
  transform: translateY(-2px);
}

.tool-icon {
  border: 1px solid rgba(53, 100, 84, 0.12);
  border-radius: 7px 3px 7px 3px;
  font-family: var(--serif);
}

.hero-tool-preview-grid .preview-tool-card .preview-tool-icon {
  position: relative;
  display: inline-flex;
  width: max-content;
  min-width: 0;
  height: auto;
  min-height: 24px;
  align-items: center;
  gap: 9px;
  padding: 0 2px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--preview-accent);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.hero-tool-preview-grid .preview-tool-card .preview-tool-icon::before {
  width: 19px;
  height: 2px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(90deg, var(--preview-accent), color-mix(in srgb, var(--preview-accent) 30%, transparent));
  box-shadow: 5px 4px 0 var(--preview-accent-soft);
}

.preview-tool-card strong {
  font-family: var(--serif);
  font-size: 16px;
}

.hero-window-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.hero-window-caption span {
  position: relative;
}

.hero-window-caption span:not(:first-child)::before {
  position: absolute;
  top: 50%;
  left: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  content: "";
  background: var(--gold);
}

.content-section,
.tool-panel {
  position: relative;
  padding: 82px 0;
  border-top-color: rgba(53, 100, 84, 0.12);
}

.content-section::before,
.tool-panel::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 96px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--cinnabar), var(--gold), transparent);
  transition:
    width 220ms ease,
    background 220ms ease;
}

.section-heading,
.panel-heading {
  margin-bottom: 32px;
}

.section-heading p,
.panel-heading p,
.prose-section p,
.tool-hero p {
  line-height: 1.72;
}

.tool-card,
.home-feature-card,
.home-category-card,
.culture-entry-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(53, 100, 84, 0.14);
  border-radius: 22px 6px 22px 6px;
  padding: 22px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: var(--shadow-soft);
}

.tool-card::before,
.home-feature-card::before,
.home-category-card::before,
.culture-entry-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: linear-gradient(to bottom, var(--cinnabar), var(--gold), var(--jade));
  opacity: 0.34;
  transition:
    opacity 180ms ease,
    width 180ms ease;
}

.tool-card:hover,
.home-feature-card:hover,
.home-category-card:hover,
.culture-entry-card:hover {
  border-color: rgba(53, 100, 84, 0.38);
  box-shadow: 0 20px 52px rgba(36, 52, 44, 0.13);
  transform: translateY(-4px);
}

.tool-card:hover::before,
.home-feature-card:hover::before,
.home-category-card:hover::before,
.culture-entry-card:hover::before {
  opacity: 1;
  width: 5px;
}

.home-feature-card:first-child {
  border-color: rgba(183, 139, 66, 0.36);
  background:
    radial-gradient(circle at 90% 12%, rgba(183, 139, 66, 0.18), transparent 8rem),
    linear-gradient(145deg, var(--jade-deep), #17372e);
  color: #fffaf2;
}

.home-feature-card:first-child .tool-icon {
  border-color: rgba(255, 250, 242, 0.18);
  background: rgba(255, 250, 242, 0.12);
  color: #fffaf2;
}

.home-feature-card:first-child p {
  color: rgba(255, 250, 242, 0.74);
}

.home-feature-card:first-child .card-action {
  color: #e8c983;
}

.home-category-card::after {
  position: absolute;
  right: 14px;
  bottom: -28px;
  color: rgba(53, 100, 84, 0.055);
  content: "名";
  font-family: var(--serif);
  font-size: 132px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.home-category-card:nth-child(2)::after {
  content: "日";
}

.home-category-card:nth-child(3)::after {
  content: "礼";
}

.home-category-card > * {
  position: relative;
  z-index: 1;
}

.tool-card strong,
.home-feature-card strong,
.home-category-card strong,
.culture-entry-card strong {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.25;
}

.tool-card-kicker,
.card-action {
  color: var(--cinnabar);
  letter-spacing: 0.09em;
}

.mini-link-row span,
.status-badge {
  border-radius: 999px;
}

.website-status-grid div,
.status-summary div,
.step-list li,
.result-details,
.name-choice-card,
.lunar-note-card,
.nickname-card,
.long-tail-card,
.festival-info-card,
.festival-season-card,
.festival-tradition-card,
.guide-disclaimer,
details {
  border-color: rgba(53, 100, 84, 0.16);
  border-radius: 17px 5px 17px 5px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  box-shadow: 0 9px 28px rgba(36, 52, 44, 0.055);
}

.website-status-grid div {
  position: relative;
  overflow: hidden;
}

.website-status-grid div::after {
  position: absolute;
  right: -16px;
  bottom: -54px;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(183, 139, 66, 0.16);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 18px rgba(183, 139, 66, 0.04);
}

.website-status-grid strong {
  color: var(--cinnabar);
  font-family: var(--serif);
}

.tool-hero {
  position: relative;
  padding: 84px 0 52px;
}

.tool-hero::after {
  position: absolute;
  top: 48px;
  right: 1vw;
  z-index: -1;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(163, 59, 47, 0.08);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 32px rgba(53, 100, 84, 0.025);
}

.breadcrumbs {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

input,
select {
  min-height: 52px;
  border-color: rgba(53, 100, 84, 0.28);
  border-radius: 13px 5px 13px 5px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

input:focus,
select:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 4px rgba(53, 100, 84, 0.13);
}

.tool-panel {
  border-top-color: rgba(53, 100, 84, 0.12);
}

.name-generator-form,
.compact-form {
  position: relative;
}

.name-card,
.surname-tile {
  border-radius: 26px 7px 26px 7px;
}

.certificate-card {
  border-color: rgba(183, 139, 66, 0.45);
  background:
    radial-gradient(circle at 88% 15%, rgba(163, 59, 47, 0.12), transparent 9rem),
    linear-gradient(145deg, color-mix(in srgb, var(--paper) 74%, white), var(--paper-strong));
  box-shadow: var(--shadow);
}

.featured-festival-card,
.festival-card {
  border-color: rgba(183, 139, 66, 0.24);
  border-radius: 24px 6px 24px 6px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: var(--shadow-soft);
}

.festival-visual {
  border-radius: 18px 5px 18px 5px;
}

.site-footer {
  margin-top: 86px;
  padding: 46px 0 48px;
  border-top: 1px solid rgba(232, 201, 131, 0.22);
  background: #183129;
  box-shadow: 0 0 0 100vmax #183129;
  clip-path: inset(0 -100vmax);
  color: rgba(255, 250, 242, 0.68);
}

:root[data-theme="dark"] .site-footer {
  background: #0b120f;
  box-shadow: 0 0 0 100vmax #0b120f;
}

.site-footer strong,
.site-footer a {
  color: #fffaf2;
}

.site-footer strong {
  font-family: var(--serif);
  font-size: 18px;
}

.site-footer a:hover {
  color: #e8c983;
}

/* Purposeful editorial imagery and motion */
.culture-guide-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  padding-bottom: 66px;
}

.culture-guide-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.culture-guide-key span {
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--jade) 22%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--jade-soft) 70%, transparent);
  color: var(--jade-deep);
  font-size: 12px;
  font-weight: 760;
}

.culture-season-visual,
.about-editorial-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(183, 139, 66, 0.32);
  border-radius: 26px 7px 26px 7px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.culture-season-visual::after,
.about-editorial-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 253, 248, 0.62);
}

.culture-season-visual img,
.about-editorial-visual img {
  width: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(0.98);
}

.culture-season-visual img {
  aspect-ratio: 16 / 9;
}

.culture-season-visual figcaption,
.about-editorial-visual figcaption {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 14px 17px 16px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.about-page-content {
  max-width: 1180px;
}

.about-editorial-visual {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  align-items: stretch;
  margin-bottom: 52px;
}

.about-editorial-visual img {
  height: 100%;
  min-height: 390px;
  aspect-ratio: 3 / 2;
}

.about-editorial-visual figcaption {
  display: flex;
  align-items: flex-end;
  border-top: 0;
  border-left: 1px solid var(--line);
  padding: clamp(24px, 4vw, 48px);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.52;
}

.about-intro-copy {
  max-width: 850px;
  margin-bottom: 42px;
}

.about-principles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 54px;
}

.about-principles-grid article {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid rgba(53, 100, 84, 0.16);
  border-radius: 22px 6px 22px 6px;
  padding: 28px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow-soft);
}

.about-principles-grid article > span {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid rgba(163, 59, 47, 0.22);
  border-radius: 10px 4px 10px 4px;
  background: var(--cinnabar-soft);
  color: var(--cinnabar);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 760;
}

.about-principles-grid h3 {
  font-size: 24px;
}

.about-principles-grid p {
  margin-bottom: 0;
  font-size: 16px;
}

.about-editorial-note {
  max-width: 900px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(183, 139, 66, 0.3);
  border-radius: 26px 7px 26px 7px;
  background:
    radial-gradient(circle at 92% 18%, rgba(183, 139, 66, 0.14), transparent 10rem),
    color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow-soft);
}

.festival-visual img,
.culture-season-visual img,
.about-editorial-visual img {
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 300ms ease;
}

.festival-card:hover .festival-visual img,
.culture-season-visual:hover img,
.about-editorial-visual:hover img {
  transform: scale(1.035);
  filter: saturate(0.98) contrast(1.01);
}

.motion-ready [data-reveal] {
  opacity: 1;
  filter: none;
  transform: none;
  transition:
    opacity 680ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms),
    transform 680ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms),
    filter 680ms ease var(--reveal-delay, 0ms);
}

.motion-ready [data-reveal].is-revealed {
  opacity: 1;
  filter: none;
  transform: translateY(0);
}

.result-region.result-enter {
  animation: result-arrive 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

details[open] > p,
details[open] > div {
  animation: detail-open 280ms ease both;
}

@keyframes result-arrive {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes detail-open {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-art-image {
    animation: hero-image-breathe 18s ease-in-out infinite alternate;
  }

  .hero-seal {
    animation: seal-float 5.5s ease-in-out infinite;
  }

  .featured-festival-card .festival-visual img {
    animation: festival-image-breathe 16s ease-in-out infinite alternate;
  }
}

@keyframes hero-image-breathe {
  from { transform: scale(1.015) translate3d(0, 0, 0); }
  to { transform: scale(1.065) translate3d(-1.2%, -0.5%, 0); }
}

@keyframes seal-float {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-5px); }
}

@keyframes festival-image-breathe {
  from { transform: scale(1); }
  to { transform: scale(1.045); }
}

/* Layered interaction effects */
.tool-card,
.home-feature-card,
.culture-entry-card,
.home-category-card,
.name-choice-card,
.nickname-card,
.lunar-note-card,
.long-tail-card,
.baby-name-card,
.festival-card,
.festival-info-card,
.festival-season-card,
.festival-tradition-card,
.mythology-card,
.mythology-source-map article {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.motion-ready [data-card-motion]:not(.is-revealed) {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(24px) scale(0.975);
}

[data-card-motion] {
  box-shadow:
    0 14px 34px rgba(36, 52, 44, 0.085),
    inset 0 1px 0 rgba(255, 250, 242, 0.74);
}

.tool-card::after,
.home-feature-card::after,
.culture-entry-card::after,
.name-choice-card::after,
.nickname-card::after,
.baby-name-card::after,
.festival-card::after,
.festival-info-card::after,
.festival-season-card::after,
.festival-tradition-card::after,
.lunar-note-card::after,
.long-tail-card::after,
.mythology-card::after {
  position: absolute;
  inset: -34% -64%;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(183, 139, 66, 0.08), transparent 11rem),
    linear-gradient(
      112deg,
      transparent 34%,
      rgba(255, 250, 242, 0.04) 44%,
      rgba(255, 250, 242, 0.22) 50%,
      rgba(255, 250, 242, 0.04) 56%,
      transparent 66%
    );
  opacity: 0;
  transform: translate3d(-72%, 0, 0);
  will-change: transform, opacity;
}

.tool-card:hover::after,
.home-feature-card:hover::after,
.culture-entry-card:hover::after,
.name-choice-card:hover::after,
.nickname-card:hover::after,
.baby-name-card:hover::after,
.festival-card:hover::after,
.festival-info-card:hover::after,
.festival-season-card:hover::after,
.festival-tradition-card:hover::after,
.lunar-note-card:hover::after,
.long-tail-card:hover::after,
.mythology-card:hover::after {
  animation: surface-sheen-pass 920ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.tool-icon,
.preview-tool-icon,
.status-badge,
.card-action {
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease,
    border-color 180ms ease;
}

.tool-card:hover .tool-icon,
.home-feature-card:hover .tool-icon,
.home-category-card:hover .tool-card-kicker,
.culture-entry-card:hover .tool-icon {
  transform: translateY(-2px) rotate(-2deg);
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
}

.card-action::after {
  content: "→";
  font-size: 1.08em;
  line-height: 1;
  opacity: 0.72;
  transform: translateX(0);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.tool-card:hover .card-action::after,
.home-feature-card:hover .card-action::after,
.home-category-card:hover .card-action::after,
.culture-entry-card:hover .card-action::after,
.festival-card:hover .card-action::after {
  opacity: 1;
  transform: translateX(4px);
}

.tool-panel:focus-within {
  border-top-color: color-mix(in srgb, var(--cinnabar) 42%, var(--line));
}

.tool-panel:focus-within::before {
  width: 150px;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold), var(--jade));
}

input,
select,
.segmented-date-input {
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

input:focus,
select:focus,
.segmented-date-input:focus-within {
  transform: translateY(-1px);
}

.result-region.result-enter .name-choice-card,
.result-region.result-enter .nickname-card,
.result-region.result-enter .baby-name-card,
.result-region.result-enter .lunar-note-card,
.result-region.result-enter .metric-grid > div,
.result-region.result-enter .alternative-grid > article,
.result-region.result-enter .festival-info-card {
  animation: stagger-rise 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.result-region.result-enter .name-choice-card:nth-child(2),
.result-region.result-enter .nickname-card:nth-child(2),
.result-region.result-enter .baby-name-card:nth-child(2),
.result-region.result-enter .lunar-note-card:nth-child(2),
.result-region.result-enter .metric-grid > div:nth-child(2),
.result-region.result-enter .alternative-grid > article:nth-child(2) {
  animation-delay: 45ms;
}

.result-region.result-enter .name-choice-card:nth-child(3),
.result-region.result-enter .nickname-card:nth-child(3),
.result-region.result-enter .baby-name-card:nth-child(3),
.result-region.result-enter .lunar-note-card:nth-child(3),
.result-region.result-enter .metric-grid > div:nth-child(3),
.result-region.result-enter .alternative-grid > article:nth-child(3) {
  animation-delay: 90ms;
}

.result-region.result-enter .name-choice-card:nth-child(4),
.result-region.result-enter .nickname-card:nth-child(4),
.result-region.result-enter .baby-name-card:nth-child(4),
.result-region.result-enter .lunar-note-card:nth-child(4),
.result-region.result-enter .metric-grid > div:nth-child(4),
.result-region.result-enter .alternative-grid > article:nth-child(4) {
  animation-delay: 135ms;
}

.result-region.result-enter .certificate-seal,
.result-region.result-enter .calligraphy-seal {
  animation: seal-stamp-in 420ms cubic-bezier(0.16, 0.82, 0.28, 1.22) both 90ms;
}

.festival-visual,
.culture-season-visual,
.mythology-image-trigger,
.about-editorial-visual {
  isolation: isolate;
}

.festival-visual::before,
.culture-season-visual::before,
.mythology-image-trigger::before,
.about-editorial-visual::before {
  position: absolute;
  inset: -24% -58%;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(
      108deg,
      transparent 36%,
      rgba(255, 250, 242, 0.03) 45%,
      rgba(255, 250, 242, 0.18) 50%,
      rgba(255, 250, 242, 0.03) 55%,
      transparent 64%
    );
  opacity: 0;
  transform: translate3d(-70%, 0, 0);
  will-change: transform, opacity;
}

.festival-card:hover .festival-visual::before,
.culture-season-visual:hover::before,
.mythology-image-trigger:hover::before,
.about-editorial-visual:hover::before {
  animation: image-sheen-pass 1050ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.mythology-card:hover {
  border-color: color-mix(in srgb, var(--gold) 42%, var(--line));
  box-shadow: 0 22px 58px rgba(36, 52, 44, 0.13);
  transform: translateY(-3px);
}

.mythology-card:hover .mythology-card-head h3 {
  color: var(--cinnabar);
}

.festival-info-card:hover,
.festival-season-card:hover,
.festival-tradition-card:hover,
.lunar-note-card:hover,
.nickname-card:hover,
.long-tail-card:hover {
  border-color: color-mix(in srgb, var(--jade) 36%, var(--line));
  box-shadow: 0 18px 46px rgba(36, 52, 44, 0.1);
  transform: translateY(-2px);
}

.hero-tool-preview-grid .preview-tool-card {
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.hero-tool-preview-grid .preview-tool-card:hover {
  box-shadow: 0 16px 34px rgba(36, 52, 44, 0.12);
}

.motion-ready [data-card-motion].is-revealed {
  animation: card-rise-in 760ms cubic-bezier(0.16, 0.84, 0.22, 1) both;
  animation-delay: var(--card-motion-delay, 0ms);
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
}

.motion-ready [data-card-motion="tilt"].is-revealed {
  animation-name: card-tilt-in;
}

.motion-ready [data-card-motion="slide"].is-revealed {
  animation-name: card-slide-in;
}

.motion-ready [data-card-motion="scale"].is-revealed {
  animation-name: card-scale-in;
}

.motion-ready [data-card-motion].is-revealed .tool-icon,
.motion-ready [data-card-motion].is-revealed .preview-tool-icon,
.motion-ready [data-card-motion].is-revealed .status-badge {
  animation: card-icon-pop 520ms cubic-bezier(0.18, 0.9, 0.24, 1.2) both;
  animation-delay: calc(var(--card-motion-delay, 0ms) + 160ms);
}

.tool-card:hover,
.home-feature-card:hover,
.home-category-card:hover,
.culture-entry-card:hover,
.festival-card:hover,
.festival-info-card:hover,
.festival-season-card:hover,
.festival-tradition-card:hover,
.name-choice-card:hover,
.nickname-card:hover,
.lunar-note-card:hover,
.long-tail-card:hover,
.baby-name-card:hover,
.mythology-source-map article:hover {
  box-shadow:
    0 24px 64px rgba(36, 52, 44, 0.16),
    0 0 0 1px color-mix(in srgb, var(--gold) 22%, transparent);
  transform: translateY(-7px) scale(1.012);
}

.festival-card:hover {
  transform: translateY(-8px) scale(1.01);
}

.name-choice-card:hover,
.name-choice-card:focus-visible {
  transform: translateY(-7px) scale(1.008);
}

.tool-card:hover strong,
.home-feature-card:hover strong,
.home-category-card:hover strong,
.culture-entry-card:hover strong,
.festival-card:hover h3,
.nickname-card:hover h3,
.long-tail-card:hover > strong {
  color: var(--cinnabar);
}

.tool-card:hover p,
.home-feature-card:hover p,
.home-category-card:hover p,
.culture-entry-card:hover p,
.festival-card:hover p {
  color: color-mix(in srgb, var(--ink-soft) 74%, var(--muted));
}

@keyframes surface-sheen-pass {
  0% {
    opacity: 0;
    transform: translate3d(-72%, 0, 0);
  }
  38% {
    opacity: 0.42;
  }
  100% {
    opacity: 0;
    transform: translate3d(72%, 0, 0);
  }
}

@keyframes image-sheen-pass {
  0% {
    opacity: 0;
    transform: translate3d(-70%, 0, 0);
  }
  34% {
    opacity: 0.32;
  }
  100% {
    opacity: 0;
    transform: translate3d(70%, 0, 0);
  }
}

@keyframes stagger-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes card-rise-in {
  0% {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(34px) scale(0.96);
  }
  66% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-4px) scale(1.01);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes card-tilt-in {
  0% {
    opacity: 0;
    filter: blur(5px);
    transform: perspective(900px) rotateX(7deg) rotateY(-4deg) translateY(30px) scale(0.965);
  }
  70% {
    opacity: 1;
    filter: blur(0);
    transform: perspective(900px) rotateX(-1.2deg) rotateY(1deg) translateY(-3px) scale(1.008);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: perspective(900px) rotateX(0) rotateY(0) translateY(0) scale(1);
  }
}

@keyframes card-slide-in {
  0% {
    opacity: 0;
    filter: blur(4px);
    transform: translateX(-28px) translateY(18px) scale(0.98);
  }
  70% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(3px) translateY(-2px) scale(1.005);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) translateY(0) scale(1);
  }
}

@keyframes card-scale-in {
  0% {
    opacity: 0;
    filter: blur(5px);
    transform: scale(0.92);
  }
  68% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1.018);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes card-icon-pop {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.84) rotate(-4deg);
  }
  72% {
    opacity: 1;
    transform: translateY(-2px) scale(1.08) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes seal-stamp-in {
  0% {
    opacity: 0;
    transform: rotate(-12deg) scale(1.24);
    filter: blur(2px);
  }
  62% {
    opacity: 1;
    transform: rotate(-8deg) scale(0.96);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: rotate(-8deg) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 900px) {
  .image-preview-modal {
    padding: 12px;
  }

  .image-preview-dialog {
    width: 100%;
    max-height: 94vh;
  }

  .image-preview-head {
    padding: 10px 12px;
  }

  .image-preview-media {
    padding: 10px;
  }

  .image-preview-media img {
    max-height: calc(94vh - 78px);
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow: visible;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav-item {
    flex: 0 0 auto;
  }

  .main-nav .nav-dropdown {
    left: 0;
    transform: translateY(-4px);
  }

  .main-nav .has-dropdown:hover .nav-dropdown,
  .main-nav .has-dropdown:focus-within .nav-dropdown {
    transform: translateY(0);
  }

  .site-controls {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
  }

  .hero-section,
  .example-section,
  .result-layout,
  .surname-result,
  .zodiac-result,
  .featured-festival-card,
  .festival-detail-hero,
  .culture-guide-hero-grid,
  .mythology-hero,
  .mythology-card,
  .about-editorial-visual,
  .calligraphy-result-layout {
    grid-template-columns: 1fr;
  }

  .culture-guide-hero-grid {
    gap: 30px;
  }

  .about-editorial-visual figcaption {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-section {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-product-window {
    min-height: auto;
    width: min(100%, 720px);
    margin-inline: auto;
  }

  .featured-festival-card .festival-visual img {
    aspect-ratio: 16 / 9;
  }

  .hero-visual {
    min-height: 320px;
  }

  .calligraphy-preview {
    min-height: 440px;
  }

  .tool-grid,
  .home-feature-grid,
  .home-category-grid,
  .culture-entry-grid,
  .website-status-grid,
  .step-list,
  .alternative-grid,
  .metric-grid,
  .lunar-notes-grid,
  .nickname-grid,
  .long-tail-grid,
  .festival-grid,
  .mythology-source-map,
  .festival-calendar-grid,
  .regional-traditions-grid,
  .festival-info-grid,
  .festival-regional-grid,
  .status-summary,
  .form-grid,
  .compact-form {
    grid-template-columns: 1fr;
  }

  .about-principles-grid {
    grid-template-columns: 1fr;
  }

  .source-list li {
    grid-template-columns: 1fr;
  }

  .mythology-card img {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .mythology-fact-list div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .form-submit {
    width: 100%;
  }

  .single-date-form {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .single-date-form .form-submit {
    width: 100%;
    margin-top: 2px;
  }

  .form-grid:has(.date-field-label) .form-submit {
    margin-top: 2px;
  }
}

@media (max-width: 760px) {
  .site-switcher {
    top: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: max(14px, env(safe-area-inset-left));
    display: flex;
    gap: 6px;
    padding: 5px;
  }

  .site-switcher-link {
    width: 38px;
    height: 38px;
  }

  .site-switcher-link img {
    width: 23px;
    height: 23px;
  }

  .site-switcher-link::after {
    display: none;
  }

  .scroll-top-button {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero-section,
  .tool-hero,
  .content-section,
  .tool-panel,
  .result-region,
  .site-footer {
    width: min(100vw - 28px, 1180px);
  }

  .brand-lockup small {
    display: none;
  }

  .site-header {
    width: 100%;
    gap: 7px 10px;
    padding: 9px 14px 8px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-lockup strong {
    font-size: 13px;
  }

  .site-controls {
    width: auto;
    gap: 6px;
  }

  .language-control {
    width: auto;
  }

  .language-control > span {
    display: none;
  }

  .language-control select {
    width: 108px;
    min-height: 36px;
    flex: 0 0 auto;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .main-nav a {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .hero-form {
    grid-template-columns: 1fr;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    width: 100%;
  }

  .hero-tool-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-inline: 10px;
  }

  .hero-section {
    padding: 40px 0 30px;
  }

  .hero-copy h1 {
    margin-bottom: 18px;
  }

  .hero-culture-note {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .hero-product-window {
    border-radius: 22px 5px 22px 5px;
    transform: none;
  }

  .hero-art-panel {
    min-height: 236px;
  }

  .hero-art-copy {
    inset: auto 18px 20px;
  }

  .hero-seal {
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 25px;
  }

  .preview-tool-card {
    min-height: 128px;
    padding: 12px;
  }

  .preview-tool-card strong {
    font-size: 14px;
  }

  .preview-tool-card span {
    font-size: 11px;
  }

  .hero-window-caption {
    padding: 2px 14px 16px;
  }

  h1 {
    font-size: clamp(38px, 13vw, 56px);
  }

  h2 {
    font-size: 28px;
  }

  .content-section,
  .tool-panel {
    padding: 46px 0;
  }

  .culture-guide-hero-grid {
    padding-bottom: 40px;
  }

  .about-editorial-visual {
    margin-bottom: 34px;
  }

  .about-editorial-visual img {
    min-height: 260px;
  }

  .about-editorial-visual figcaption {
    padding: 22px;
    font-size: 18px;
  }

  .tool-card,
  .home-feature-card,
  .home-category-card,
  .culture-entry-card {
    min-height: 210px;
    padding: 19px;
  }

  .name-card {
    min-height: 310px;
    padding: 22px;
  }

  .calligraphy-preview {
    min-height: 390px;
    padding: 44px 24px;
  }

  .hanzi-display {
    font-size: clamp(70px, 24vw, 104px);
  }

  .action-row .secondary-button,
  .primary-button {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}
