@charset "UTF-8";

:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --secondary: #505054;
  --muted: #636367;
  --surface: #f5f5f7;
  --line: #d2d2d7;
  --blue: #0066cc;
  --action: #0071e3;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; color: var(--ink); background: #fff; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #0071e3; outline-offset: 5px; }
::selection { color: var(--ink); background: #cfe8ff; }
.shell { width: min(calc(100% - 64px), 1120px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; top: 8px; left: 8px; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: #fff; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.site-header { background: rgb(250 250 252 / 96%); border-bottom: 1px solid #1515150e; }
.header-inner { width: min(calc(100% - 64px), 980px); min-height: 54px; display: grid; align-items: center; grid-template-columns: 1fr auto 1fr; gap: 18px 32px; }
.brand { display: inline-block; justify-self: start; font-size: 15px; font-weight: 700; white-space: nowrap; letter-spacing: -.02em; }
.primary-nav { display: flex; align-items: center; gap: clamp(17px, 3.5vw, 46px); }
.primary-nav a, .header-contact { display: inline-flex; align-items: center; min-height: 40px; color: var(--secondary); font-size: 13px; white-space: nowrap; }
.primary-nav a:hover, .header-contact:hover { color: var(--blue); }
.primary-nav a[aria-current], .header-contact[aria-current] { color: var(--ink); font-weight: 700; }
.header-contact { justify-self: end; }

.button { display: inline-flex; min-height: 42px; width: fit-content; align-items: center; justify-content: center; gap: .4em; padding: 8px 20px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--blue); font-size: 15px; line-height: 1.4; white-space: nowrap; cursor: pointer; transition: background-color .16s ease, color .16s ease, border-color .16s ease; }
.button-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.button-primary:hover { background: #005bb8; border-color: #005bb8; }
.button-secondary { color: var(--blue); border-color: currentColor; }
.button-secondary:hover { color: #fff; background: var(--blue); border-color: var(--blue); }
.hero-actions, .card-links, .detail-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 14px; }

.home-page { width: 100%; }
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(470px, 46vw, 600px);
  overflow: hidden;
  padding: 72px max(32px, calc((100vw - 1120px) / 2));
  background: #070a19;
  color: #f7f8ff;
}
.hero-content { position: relative; z-index: 1; width: min(48vw, 590px); }
.detail-copy h1, .contact-intro h1 { font-size: clamp(42px, 6.25vw, 87px); font-weight: 700; line-height: 1.09; letter-spacing: -.065em; text-wrap: balance; }
.hero h1 { font-size: clamp(46px, 5.2vw, 78px); font-weight: 710; line-height: 1.08; letter-spacing: -.064em; text-wrap: balance; }
.hero-lead, .detail-summary, .contact-intro p { margin-top: 17px; color: var(--secondary); font-size: clamp(17px, 2.2vw, 26px); line-height: 1.48; letter-spacing: -.023em; text-wrap: balance; }
.hero .hero-lead { max-width: 24em; color: #c4cce5; font-size: clamp(16px, 1.54vw, 20px); }
.hero-actions { justify-content: start; margin-top: 25px; }
.hero .button-primary { background: #93c8ff; border-color: #93c8ff; color: #0a2546; }
.hero .button-primary:hover { background: #c0dfff; border-color: #c0dfff; }
.hero .button-secondary { color: #bddbff; }
.hero .button-secondary:hover { background: #233a62; border-color: #bddbff; color: #fff; }
.motion-toggle {
  position: absolute;
  z-index: 2;
  right: max(18px, calc((100vw - 1220px) / 2));
  bottom: 19px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #dbe7ff52;
  border-radius: 50%;
  background: #111b34;
  color: #eff5ff;
  cursor: pointer;
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { background: #253750; }
.motion-icon { display: block; width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.motion-paused .motion-icon { border: 0; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.hero.motion-paused .hero-motion, .hero.motion-paused .hero-motion *,
.hero.motion-paused .hero-motion::before, .hero.motion-paused .hero-motion::after,
.hero.motion-paused .hero-motion *::before, .hero.motion-paused .hero-motion *::after { animation-play-state: paused; }

.project-section { margin-top: clamp(43px, 6vw, 79px); scroll-margin-top: 24px; }
.section-heading { margin: 0 auto 24px; text-align: center; }
.section-heading h2, .contact-strip h2, .detail-bottom h2, .other-projects h2 { font-size: clamp(28px, 4vw, 49px); line-height: 1.13; letter-spacing: -.055em; }
.section-heading p { max-width: 49em; margin: 14px auto 0; color: var(--secondary); font-size: clamp(15px, 1.4vw, 18px); text-wrap: pretty; }
.project-grid { display: grid; gap: 14px; }
.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(145px, 26%);
  align-items: center;
  gap: clamp(18px, 4vw, 58px);
  min-width: 0;
  padding: clamp(17px, 3vw, 35px);
  border-radius: 22px;
  background: var(--surface);
}
.project-card.will-reveal { transition: opacity .55s ease-out, transform .55s cubic-bezier(.22, 1, .36, 1); }
.project-card.will-reveal:not(.is-visible):not(:focus-within) { opacity: 0; transform: translateY(24px); }
.project-card.theme-tarot, .project-card.theme-astro { background: #17171a; color: #f5f5f7; }
.project-card.theme-xinxiang { background: #faf6f5; }
.project-card.theme-bazi { background: #f3f6f1; }
.card-body h3 { font-size: clamp(25px, 3vw, 40px); font-weight: 700; line-height: 1.12; letter-spacing: -.052em; }
.card-intro p { max-width: 33em; margin-top: 9px; color: var(--secondary); font-size: clamp(14px, 1.4vw, 17px); line-height: 1.55; }
.project-card.theme-tarot .card-body p, .project-card.theme-astro .card-body p { color: #d5d5da; }
.project-card.theme-tarot .button-secondary, .project-card.theme-astro .button-secondary { color: #75baff; }
.project-card.theme-tarot .button-secondary:hover, .project-card.theme-astro .button-secondary:hover { color: #fff; }
.card-links { justify-content: start; margin-top: 16px; }
.card-links .button { min-height: 37px; padding: 7px 16px; font-size: 14px; }
.project-art { overflow: hidden; }
.project-cover { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.project-card .project-art { border-radius: 14px; }
.project-card .project-cover { transition: transform .35s ease; }
@media (hover: hover) {
  .project-card:hover .project-cover { transform: scale(1.055); }
}

.cooperation-section { --flow-accent: #463f85; margin-block: clamp(49px, 8vw, 105px); scroll-margin-top: 24px; }
.cooperation-section .section-heading { margin-bottom: clamp(25px, 4vw, 47px); }
.flow-stages, .example-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.flow-stages { margin: 0 0 13px; }
.flow-stages > div { padding: 13px 17px; border-radius: 12px; background: #eff2fb; }
.flow-stages dt { color: #303c62; font-weight: 700; }
.flow-stages dd { margin: 3px 0 0; color: var(--secondary); font-size: 14px; }
.flow-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.flow-step { display: flex; align-items: flex-start; gap: 14px; min-width: 0; padding: clamp(16px, 2.4vw, 27px); border: 1px solid #eceaf2; border-radius: 16px; background: #fbfaff; overflow-wrap: anywhere; }
.flow-step:nth-child(2), .flow-step:nth-child(3) { background: #f6f9ff; border-color: #e9edf7; }
.flow-step:nth-child(4), .flow-step:nth-child(5) { background: #f5faf8; border-color: #e8efeb; }
.flow-number { flex: 0 0 34px; display: grid; place-items: center; height: 34px; border-radius: 50%; background: #ece8fe; color: var(--flow-accent); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.flow-step:nth-child(2) .flow-number, .flow-step:nth-child(3) .flow-number { background: #e7effe; color: #254d92; }
.flow-step:nth-child(4) .flow-number, .flow-step:nth-child(5) .flow-number { background: #e3f3ec; color: #23614d; }
.flow-step h3, .flow-benefits h3, .project-cooperation-grid > div > h3, .project-example h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; letter-spacing: -.035em; }
.flow-step p { margin-top: 9px; color: var(--secondary); font-size: 15px; }
.flow-step .flow-measure { padding-top: 9px; border-top: 1px solid #1d1d1f14; color: #50496d; font-size: 13px; }
.flow-loop { margin-top: 13px; padding: 11px 16px; border-inline-start: 3px solid #8c86b9; color: var(--secondary); background: #f5f3fc; font-size: 14px; }
.flow-benefits { margin-top: 21px; padding: clamp(19px, 3vw, 33px); border-radius: 18px; background: var(--surface); }
.flow-benefits dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px 20px; margin: 17px 0 0; }
.flow-benefits dt, .project-audience dt { font-size: 16px; font-weight: 700; }
.flow-benefits dd, .project-audience dd { margin: 5px 0 0; color: var(--secondary); font-size: 14px; }
.flow-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }

.contact-strip, .detail-bottom { padding: clamp(41px, 6.5vw, 76px) 24px; text-align: center; background: var(--surface); }
.contact-strip { margin: 12px 12px 0; }
.contact-strip h2, .detail-bottom h2, .other-projects h2 { font-size: clamp(27px, 3.2vw, 40px); }
.contact-strip p, .detail-bottom p { margin: 9px 0 17px; color: var(--secondary); }

.site-footer { margin-top: 12px; background: var(--surface); color: var(--muted); }
.footer-inner { width: min(calc(100% - 64px), 980px); min-height: 69px; display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 9px 24px; padding-block: 14px; }
.footer-inner .brand { color: var(--ink); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12px; }
.footer-links a:hover, .breadcrumbs a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.breadcrumbs { display: flex; align-items: center; gap: 10px; padding-block: 13px; color: var(--muted); font-size: 12px; }
.breadcrumbs [aria-current] { color: var(--ink); }
.detail-hero { background: var(--surface); text-align: center; }
.detail-page.theme-tarot .detail-hero, .detail-page.theme-astro .detail-hero { color: #f5f5f7; background: #17171a; }
.detail-copy { padding: clamp(39px, 7vw, 83px) 22px clamp(27px, 4vw, 49px); }
.detail-copy h1 { font-size: clamp(37px, 6vw, 76px); }
.detail-summary { max-width: 37em; margin-inline: auto; font-size: clamp(16px, 2.1vw, 24px); }
.detail-page.theme-tarot .detail-summary, .detail-page.theme-astro .detail-summary,
.detail-page.theme-tarot .detail-domain, .detail-page.theme-astro .detail-domain { color: #d5d5da; }
.detail-actions { margin-top: 21px; }
.detail-domain { color: var(--muted); font-size: 14px; font-style: normal; }
.detail-art img { aspect-ratio: 2.6; }
.detail-section { margin-top: clamp(43px, 7vw, 82px); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feature-card { border-radius: 18px; background: var(--surface); padding: clamp(19px, 3vw, 33px); }
.feature-card h3 { font-size: clamp(19px, 2vw, 25px); line-height: 1.26; letter-spacing: -.045em; }
.feature-card p { margin-top: 10px; color: var(--secondary); font-size: 15px; }
.detail-page.theme-tarot .detail-cooperation, .detail-page.theme-astro .detail-cooperation { color: #a0ceff; }
.detail-page.theme-tarot .detail-cooperation:hover, .detail-page.theme-astro .detail-cooperation:hover { color: #fff; }
.project-cooperation { --project-tint: #f4f0fa; scroll-margin-top: 24px; }
.theme-xinxiang .project-cooperation { --project-tint: #faf1ef; }
.theme-bazi .project-cooperation { --project-tint: #edf4ec; }
.theme-astro .project-cooperation { --project-tint: #ecf2fc; }
.project-cooperation-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; }
.project-strengths, .project-audience, .project-example { min-width: 0; padding: clamp(19px, 3vw, 33px); border-radius: 18px; background: var(--surface); }
.project-strengths ul, .project-audience dl { margin: 16px 0 0; padding: 0; list-style: none; }
.project-strengths li + li, .project-audience dl > div + div { margin-top: 12px; padding-top: 12px; border-top: 1px solid #1d1d1f16; }
.project-strengths li h4 { margin: 0; font-size: 16px; line-height: 1.45; }
.project-strengths li p, .project-example p { margin-top: 4px; color: var(--secondary); font-size: 15px; }
.project-audience, .project-example { background: var(--project-tint); }
.project-example { margin-top: 12px; }
.example-steps { margin: 13px 0 8px; padding: 0; list-style: none; }
.example-steps li { padding: 14px; border: 1px solid #1d1d1f12; border-radius: 10px; background: #ffffff87; }
.example-steps h4 { margin: 0; font-size: 16px; line-height: 1.45; }
.text-link { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; margin-top: 6px; color: var(--blue); font-size: 15px; text-decoration: underline; text-underline-offset: .18em; }
.detail-bottom { margin-top: clamp(34px, 6vw, 65px); }
.other-projects { margin-block: clamp(34px, 6vw, 65px); }
.other-projects h2 { text-align: center; }
.other-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.other-links a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 7px 10px; border-radius: 12px; background: var(--surface); color: var(--blue); font-size: 14px; }
.other-links a:hover { background: #eaeaf0; }
.other-links a span:first-child { display: none; }

.contact-page { padding-bottom: clamp(35px, 7vw, 84px); }
.contact-intro { padding: clamp(20px, 5vw, 60px) 0 clamp(25px, 5vw, 52px); text-align: center; }
.contact-intro p { max-width: 32em; margin-inline: auto; }
.contact-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: center; gap: 25px; width: min(100%, 890px); margin-inline: auto; padding: clamp(20px, 5vw, 58px); border-radius: 24px; background: var(--surface); }
.contact-copy h2 { font-size: clamp(24px, 3vw, 35px); font-weight: 700; line-height: 1.18; letter-spacing: -.048em; }
.contact-copy > p:not(.copy-status) { margin-top: 10px; color: var(--secondary); }
.wechat-info { display: flex; align-items: center; gap: 8px 13px; width: fit-content; max-width: 100%; margin: 21px 0 13px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.wechat-label { color: var(--muted); font-size: 14px; white-space: nowrap; }
.wechat-value { width: 9ch; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 650 20px/1.35 "SFMono-Regular", Consolas, monospace; }
.copy-status { min-height: 1.6em; margin-top: 7px; color: var(--secondary); font-size: 13px; }
.contact-qr { width: min(100%, 250px); justify-self: center; overflow: hidden; border-radius: 16px; background: #fff; }
.contact-qr img { width: 100%; height: auto; }
.contact-qr figcaption { padding: 0 8px 11px; text-align: center; color: var(--muted); font-size: 12px; }

@media (max-width: 700px) {
  .shell { width: calc(100% - 36px); }
  .home-page { width: 100%; }
  .hero { min-height: auto; padding: clamp(234px, 52vw, 335px) 22px 62px; text-align: center; }
  .hero-content { width: min(100%, 470px); margin-inline: auto; }
  .hero .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .header-inner { grid-template-columns: 1fr auto; gap: 0 12px; }
  .brand, .header-contact { min-height: 40px; display: inline-flex; align-items: center; }
  .header-contact { grid-column: 2; grid-row: 1; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 6px; }
  .primary-nav a { min-height: 36px; }
  .flow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-benefits dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { width: calc(100% - 36px); }
  .footer-inner .brand { min-height: 0; }
  .detail-art img { aspect-ratio: 1.72; }
}

@media (max-width: 530px) {
  .hero h1 { font-size: clamp(31px, 7.7vw, 40px); }
  .hero .hero-lead { max-width: 23em; }
  .flow-list, .flow-stages, .example-steps, .project-cooperation-grid { grid-template-columns: 1fr; }
  .project-section { width: calc(100% - 24px); }
  .project-card { grid-template-columns: minmax(0, 1fr) minmax(85px, 29%); gap: 10px 12px; padding: 16px; border-radius: 15px; }
  .card-body { display: contents; }
  .card-intro { grid-area: 1 / 1; min-width: 0; }
  .card-links { grid-area: 2 / 1 / 3 / -1; gap: 7px; margin-top: 1px; }
  .card-links .button { padding-inline: 12px; font-size: 13px; }
  .project-card .project-art { grid-area: 1 / 2; border-radius: 9px; }
  .project-card .project-cover { aspect-ratio: 1.26; }
  .contact-strip { margin-inline: 0; }
  .contact-panel { grid-template-columns: 1fr; gap: 13px; }
  .contact-qr { width: min(100%, 240px); }
  .other-links { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 340px) {
  .primary-nav { flex-wrap: wrap; justify-content: flex-start; column-gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .project-card.will-reveal:not(.is-visible) { opacity: 1; transform: none; }
}
