/* 怪兽修心所 Monstery · 品牌样式 */
:root {
  --ink: #221E3F;
  --ink-soft: #4A4566;
  --muted: #5B5675;
  --mist: #F3F0FA;
  --line: #E2DCF0;
  --mint: #7ED9C3;
  --coral: #FF8B6B;
  --lilac: #A99BF0;
  --white: #FFFFFF;
  --radius: 24px;
  --display: 'ZCOOL XiaoWei', 'Songti SC', serif;
  --en: 'Fredoka', 'Noto Sans SC', sans-serif;
  --body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--mist); color: var(--ink); font-family: var(--body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--muted); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--mist); padding: 8px 16px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 640px) { .wrap { padding-left: 20px; padding-right: 20px; } }

.display { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.2; }
h1.display { font-size: clamp(40px, 5.2vw, 64px); }
.quiz-wrap h1.display { font-size: clamp(34px, 4.6vw, 52px); }
h2.display { font-size: clamp(32px, 4vw, 44px); }
.eyebrow, .mono { font-family: var(--en); font-size: 14px; font-weight: 500; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }
.mono { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; }
.lead { font-size: 18px; line-height: 1.85; color: var(--ink-soft); margin: 0; max-width: 560px; }
.muted { color: var(--muted); margin: 0; }
.center { text-align: center; align-items: center; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font-size: 17px; font-weight: 500; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--mist); }
.btn-dark:hover { background: #36305E; color: var(--mist); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-mint { background: var(--mint); color: var(--ink); font-weight: 700; }
.btn-mint:hover { background: #9BE3D1; color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 16px; }
.text-link { font-weight: 500; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* 头部 */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-cn { font-family: var(--display); font-size: 24px; line-height: 1.1; }
.brand-en { font-family: var(--en); font-size: 12px; font-weight: 600; letter-spacing: 0.24em; color: var(--muted); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.site-nav a:not(.btn) { text-decoration: none; padding: 8px 0; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--coral); text-decoration-thickness: 2px; }

/* 首屏 */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 48px; padding-bottom: 96px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }
.hero-circle { width: 100%; max-width: 440px; aspect-ratio: 1; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; }
.hero-svg { width: 78%; height: auto; animation: breathe 5s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@media (prefers-reduced-motion: reduce) { .hero-svg { animation: none; } html { scroll-behavior: auto; } }

/* 区块 */
.section { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-direction: column; gap: 12px; }
.band-white { background: var(--white); }
.band-dark { background: var(--ink); color: var(--mist); }
.band-dark p { color: #D9D4EA; }

/* 怪兽卡片 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.monster-card { background: var(--white); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.band-white .monster-card { background: var(--mist); }
.monster-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(34, 30, 63, .10); color: var(--ink); }
.monster-card h3 { margin: 0; font-size: 22px; }
.monster-card p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--ink-soft); }

/* 三个房间 */
.room-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.room { background: var(--white); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.room h3 { margin: 0; font-size: 24px; }
.room p { margin: 0; line-height: 1.75; color: var(--ink-soft); }
.room-dark { background: var(--ink); color: var(--mist); }
.room-dark p { color: #D9D4EA; }
.room-dot { width: 48px; height: 48px; border-radius: 14px; }

/* 号召 */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-top: 72px; padding-bottom: 72px; }
.cta > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.cta p { margin: 0; font-size: 17px; }

/* 关于 */
.about { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 48px; }
.about-photo { flex: 0 1 280px; width: 280px; aspect-ratio: 1; border-radius: 32px; object-fit: cover; }
.about-photo-empty { background: var(--white); display: flex; align-items: center; justify-content: center; }
.about-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* 关注与订阅 */
.follow { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 80px; padding-bottom: 80px; }
.follow-col { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { background: var(--mist); padding: 12px 20px; border-radius: 999px; text-decoration: none; }
.pill-muted { color: var(--muted); }
.wechat { display: flex; align-items: center; gap: 16px; }
.wechat img { border-radius: 16px; border: 1px solid var(--line); }
.subscribe { display: flex; flex-direction: column; gap: 10px; }
.subscribe label, .subscribe .label { font-size: 20px; font-weight: 700; }
.subscribe-row { display: flex; flex-wrap: wrap; gap: 10px; }
.subscribe input { flex: 1 1 220px; min-width: 0; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 2px solid #C9C3DD; font-size: 16px; font-family: inherit; color: var(--ink); background: var(--white); }
.subscribe input:focus { border-color: var(--ink); outline: none; }

/* 怪兽详情页 */
.monster-page { gap: 32px; max-width: 920px; }
.monster-hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.monster-portrait { flex: 0 1 320px; width: 320px; aspect-ratio: 1; border-radius: 40px; display: flex; align-items: center; justify-content: center; }
.monster-portrait svg { width: 80%; height: auto; }
.monster-file { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.file { margin: 8px 0 0; display: flex; flex-direction: column; gap: 0; background: var(--white); border-radius: 20px; padding: 6px 22px; }
.file-row { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.file-row:last-child { border-bottom: 0; }
.file dt { flex: 0 0 72px; color: var(--muted); }
.file dd { margin: 0; }
.tame { background: var(--white); border-radius: var(--radius); padding: 28px 32px; }
.tame h2 { margin: 0 0 12px; font-size: 24px; }
.tame ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; line-height: 1.8; }
.prose { font-size: 17px; line-height: 1.9; color: var(--ink-soft); }
.prose h2 { font-family: var(--display); font-weight: 400; font-size: 30px; color: var(--ink); margin: 40px 0 8px; }
.prose h3 { font-size: 20px; color: var(--ink); margin: 28px 0 8px; }
.prose blockquote { margin: 32px 0; padding: 24px 28px; background: var(--white); border-radius: 20px; font-family: var(--display); font-size: 22px; line-height: 1.7; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose strong { color: var(--ink); }
.pager { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; font-weight: 500; }

/* 测试 */
.quiz-wrap { max-width: 760px; }
.quiz { background: var(--white); border-radius: 32px; padding: clamp(24px, 5vw, 48px); display: flex; flex-direction: column; gap: 24px; }
.progress { height: 8px; background: var(--mist); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--mint); border-radius: 999px; transition: width .3s ease; }
.quiz-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; }
.quiz-q { font-size: clamp(22px, 3vw, 28px); font-weight: 700; margin: 0; line-height: 1.5; }
.options { display: flex; flex-direction: column; gap: 12px; }
.option { text-align: left; width: 100%; min-height: 56px; padding: 14px 22px; border-radius: 18px; border: 2px solid var(--line); background: var(--mist); font-size: 17px; font-family: inherit; color: var(--ink); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.option:hover { border-color: var(--ink); background: var(--white); }
.link-btn { background: none; border: 0; padding: 8px 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; }
.result { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.result-portrait { width: 220px; height: 220px; border-radius: 40px; display: flex; align-items: center; justify-content: center; }
.result h2 { margin: 0; }
.result .file { width: 100%; text-align: left; background: var(--mist); }
.result .tame { width: 100%; text-align: left; background: var(--mist); }
.result-second { color: var(--muted); }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.disclaimer { font-size: 13px; color: var(--muted); margin: 0; }
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: var(--ink); color: var(--mist); padding: 12px 24px; border-radius: 999px; font-size: 15px; z-index: 20; }

/* 404 */
.notfound { min-height: 60vh; justify-content: center; gap: 20px; }

/* 页脚 */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 32px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }
