@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(19px, 4.4vw, 57px); }
.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 { display: grid; justify-items: center; text-align: center; padding: clamp(62px, 8vw, 121px) 22px clamp(66px, 8.8vw, 126px); }
.hero-content { max-width: 840px; }
.hero h1, .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-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-actions { margin-top: 25px; }

.project-section { padding-inline: 12px; 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; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.project-card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; background: var(--surface); text-align: center; }
.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 { display: flex; flex: 1; flex-direction: column; align-items: center; padding: clamp(27px, 4.5vw, 52px) 20px 24px; }
.card-body h3 { font-size: clamp(30px, 4.3vw, 49px); font-weight: 700; line-height: 1.12; letter-spacing: -.052em; }
.card-body > p { max-width: 29em; margin: 10px auto 15px; color: var(--secondary); font-size: clamp(15px, 1.55vw, 19px); line-height: 1.47; text-wrap: balance; }
.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 { margin-top: auto; }
.card-links .button { min-height: 37px; padding: 7px 16px; font-size: 14px; }
.project-art { overflow: hidden; }
.project-cover { width: 100%; aspect-ratio: 2.15; object-fit: cover; }
.project-card.theme-bazi .project-cover { object-position: center 44%; }

.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-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%; }
  .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; }
  .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 { padding-block: 63px 70px; }
  .hero h1 { max-width: 8em; margin-inline: auto; }
  .hero-lead { max-width: 19em; margin-inline: auto; }
  .project-section { padding-inline: 0; }
  .project-grid { grid-template-columns: 1fr; gap: 8px; }
  .project-cover { aspect-ratio: 1.88; }
  .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 (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
