/* 青笛兽韵下载站 · Material 3 inspired, quiet and playful */
:root {
  color-scheme: light;
  --primary: #255d4b;
  --on-primary: #fffdf5;
  --primary-container: #d8eee1;
  --on-primary-container: #1d4d3e;
  --secondary: #6e765f;
  --accent: #e7a85c;
  --on-accent: #422d13;
  --page: #f7f7f1;
  --surface: #ffffff;
  --surface-low: #f0f3eb;
  --surface-mid: #e8eee6;
  --surface-high: #dfeae0;
  --outline: #ccd8cd;
  --ink: #213b30;
  --muted: #66766c;
  --shadow: 0 16px 40px rgba(26, 62, 46, .055);
  --focus: #bc7935;
  --curve: cubic-bezier(.2, 0, 0, 1);
}
body[data-theme="dark"] {
  color-scheme: dark;
  --primary: #a8d8c0;
  --on-primary: #123b2d;
  --primary-container: #2b5443;
  --on-primary-container: #daf6e3;
  --secondary: #bac8af;
  --accent: #e9ba7d;
  --on-accent: #432d17;
  --page: #131e19;
  --surface: #202d25;
  --surface-low: #1b2820;
  --surface-mid: #2a3a30;
  --surface-high: #34483c;
  --outline: #40564a;
  --ink: #e6eee8;
  --muted: #b3c2b7;
  --shadow: 0 14px 32px rgba(0, 0, 0, .14);
  --focus: #f3c487;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { margin: 0; color: var(--ink); background: var(--page); font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; -webkit-font-smoothing: antialiased; transition: background .35s, color .35s; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
::selection { background: var(--primary-container); color: var(--on-primary-container); }
.shell { width: min(1184px, calc(100% - 56px)); margin-inline: auto; }
.site-header { position: relative; z-index: 10; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 98px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand__mark { width: 47px; height: 47px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); border-radius: 16px; }
.brand__name { display: grid; gap: 1px; }
.brand__name strong { font-size: 1.16rem; line-height: 1.25; font-weight: 760; letter-spacing: .055em; }
.brand__name small { color: var(--muted); font-size: .65rem; font-weight: 700; letter-spacing: .18em; }
.site-nav { display: flex; align-items: center; gap: 4px; padding: 5px; border: 1px solid var(--outline); border-radius: 999px; background: var(--surface); }
.site-nav a { border-radius: 999px; padding: 10px 19px; color: var(--muted); font-weight: 640; font-size: .875rem; transition: color .2s, background .2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--primary-container); color: var(--on-primary-container); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--outline); border-radius: 15px; background: var(--surface); color: var(--ink); cursor: pointer; transition: background .2s, transform .2s; }
.theme-toggle:hover { background: var(--surface-mid); transform: rotate(-8deg); }
.theme-toggle svg { width: 21px; height: 21px; }
.theme-toggle .sun { display: none; }
body[data-theme="dark"] .theme-toggle .sun { display: block; }
body[data-theme="dark"] .theme-toggle .moon { display: none; }
.header-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; background: var(--primary); color: var(--on-primary); border-radius: 999px; font-weight: 690; font-size: .875rem; }
.header-cta svg { width: 16px; height: 16px; }
.header-cta:hover { opacity: .9; }

.hero-layout { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(350px, .87fr); align-items: stretch; gap: 18px; }
.hero { position: relative; min-height: 626px; padding: 39px 40px 32px; overflow: hidden; border-radius: 32px; display: flex; flex-direction: column; justify-content: space-between; background: #235d4a; color: #f7fff7; isolation: isolate; }
.hero::before { position: absolute; content: ""; width: 600px; height: 600px; right: -230px; top: -400px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 0 0 60px rgba(255,255,255,.035), 0 0 0 128px rgba(255,255,255,.026); z-index: -1; }
.hero__top, .hero__bottom { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.hero__eyebrow { font-size: .78rem; letter-spacing: .13em; font-weight: 640; color: #c6e8d7; }
.hero__edition { display: inline-flex; align-items: center; gap: 7px; font-size: .72rem; font-weight: 660; padding: 9px 13px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; }
.hero__edition::before { content:""; width: 7px; height:7px; border-radius: 50%; background: #ffd293; box-shadow: 0 0 0 4px rgba(255,210,147,.1); }
.hero__copy { position: relative; z-index: 2; padding: 57px 0 0; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .86rem; color: #d6eadd; font-weight: 580; margin: 0 0 20px; }
.hero__kicker::before { content: ""; width: 24px; height: 1px; background: #dbb77c; }
.hero h1 { font-size: clamp(2.7rem, 4.45vw, 4.25rem); letter-spacing: -.045em; line-height: 1.24; margin: 0; font-weight: 800; }
.hero h1 em { color: #e9c993; font-style: normal; }
.hero__description { max-width: 365px; font-size: .94rem; line-height: 1.95; color: #d6eadd; margin: 24px 0 25px; }
.hero__links { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.hero__primary, .hero__secondary { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; padding: 11px 19px; font-size: .88rem; font-weight: 720; transition: transform .22s var(--curve), background .22s; }
.hero__primary { background: #f6e9d1; color: #2a5844; }
.hero__primary:hover { background: white; transform: translateY(-2px); }
.hero__secondary { color: #f9fff9; border: 1px solid rgba(255,255,255,.38); }
.hero__secondary:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.hero__links svg { width: 16px; height: 16px; }
.hero-art { position: absolute; z-index: 1; right: -7px; bottom: 42px; width: min(67%, 450px); pointer-events: none; }
.hero-art svg { display: block; width: 100%; overflow: visible; }
.hero-art .bamboo-leaf { transform-origin: center bottom; animation: leaf-sway 5.5s ease-in-out infinite alternate; }
.hero-art .bamboo-leaf:nth-child(2n) { animation-duration: 7.1s; animation-delay: -2s; }
.hero-art .sun-disc { animation: sun-breathe 8s ease-in-out infinite alternate; transform-origin: center; }
@keyframes leaf-sway { to { transform: rotate(2deg) translateX(2px); } }
@keyframes sun-breathe { to { transform: scale(1.035); opacity: .9; } }
.hero__bottom { align-items: flex-end; font-size: .79rem; color: #d3ebdb; }
.hero__footer-line { display: inline-flex; align-items: center; gap: 12px; }
.hero__footer-line::before { content: ""; width: 20px; height: 1px; background: #a9d7bd; }
.hero__side-label { writing-mode: vertical-rl; letter-spacing: .18em; font-family: Georgia, serif; font-size: .72rem; opacity: .65; }

.download-card { min-height: 626px; display: flex; flex-direction: column; border-radius: 32px; padding: 32px; background: var(--surface); border: 1px solid var(--outline); box-shadow: var(--shadow); }
.card-kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; font-size: .78rem; font-weight: 710; color: var(--secondary); }
.card-kicker span { display: inline-grid; place-items: center; height: 25px; min-width: 25px; border-radius: 9px; background: var(--surface-mid); color: var(--primary); font-size: .74rem; }
.download-card h2 { font-size: clamp(1.5rem,2vw,1.9rem); margin: 0 0 8px; font-weight: 780; letter-spacing: -.025em; }
.card-subtitle { margin: 0; color: var(--muted); line-height: 1.7; font-size: .88rem; }
.auto-hint { margin: 24px 0 13px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .78rem; }
.auto-hint::before { content: ""; display: inline-block; width: 7px; height: 7px; background: #68ad8a; border-radius: 50%; }
.device-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.device-option { display: flex; min-height: 86px; padding: 12px; align-items: center; text-align: left; gap: 10px; border-radius: 20px; border: 1px solid var(--outline); background: var(--surface-low); color: var(--ink); cursor: pointer; position: relative; transition: border .22s, background .22s, transform .22s var(--curve); }
.device-option:hover { transform: translateY(-2px); background: var(--surface-mid); }
.device-option[aria-pressed="true"] { border: 2px solid var(--primary); background: var(--primary-container); padding: 11px; color: var(--on-primary-container); }
.device-option[aria-pressed="true"]::after { content: "✓"; position: absolute; font-size: .66rem; font-weight: 800; width: 18px; height: 18px; border-radius: 50%; right: 10px; top: 9px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); }
.device-icon { width: 39px; height: 39px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 13px; background: var(--surface); color: var(--primary); }
.device-icon svg { width: 21px; height: 21px; }
.device-option__text { display: grid; gap: 3px; padding-right: 7px; }
.device-option__text strong { font-size: .89rem; font-weight: 740; white-space: nowrap; }
.device-option__text small { font-size: .7rem; color: var(--muted); white-space: nowrap; }
.download-divider { height: 1px; background: var(--outline); margin: 22px 0; }
.download-main { min-height: 55px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 12px 18px; border: 1px solid transparent; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: .94rem; font-weight: 750; transition: transform .2s var(--curve), background .2s, box-shadow .2s; }
.download-main:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37,93,75,.18); }
.download-main:active { transform: scale(.985); }
.download-main svg { width: 19px; height: 19px; }
.download-main .download-symbol { display: none; }
.download-main[data-mode="android"] .download-symbol { display: block; }
.download-main[data-mode="android"] .arrow-symbol { display: none; }
.action-explanation { margin: 13px 0 2px; text-align: center; min-height: 40px; color: var(--muted); font-size: .77rem; line-height: 1.65; }
.action-links { display: flex; align-items: center; justify-content: center; gap: 5px; }
.action-links a { color: var(--primary); font-size: .78rem; font-weight: 680; padding: 9px 10px; border-radius: 999px; transition: background .2s; }
.action-links a:hover { background: var(--primary-container); }
.action-links .dot { color: var(--outline); }
.download-card__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--outline); margin-top: auto; padding-top: 17px; color: var(--muted); font-size: .74rem; }
.download-card__foot b { color: var(--ink); font-weight: 690; }

.notice-strip { display: flex; gap: 16px; align-items: center; padding: 24px 4px; border-bottom: 1px solid var(--outline); }
.notice-strip__label { color: var(--primary); font-weight: 730; font-size: .8rem; flex: 0 0 auto; }
.notice-strip__text { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: .83rem; overflow: hidden; white-space: nowrap; }
.notice-strip__text span:not(:last-child)::after { content: "·"; margin-left: 18px; color: #abbcb0; }

.section { padding: 86px 0 18px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-eyebrow { display: block; font-size: .75rem; color: var(--primary); font-weight: 760; letter-spacing: .16em; margin-bottom: 13px; }
.section-heading h2, .guide-intro h2 { font-size: clamp(1.7rem, 3vw, 2.55rem); font-weight: 780; letter-spacing: -.05em; line-height: 1.35; margin: 0; }
.section-heading p { color: var(--muted); font-size: .88rem; line-height: 1.9; margin: 0 0 2px; max-width: 370px; }
.feature-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 14px; }
.feature { min-height: 268px; position: relative; display: flex; flex-direction: column; align-items: flex-start; border-radius: 28px; overflow: hidden; padding: 28px; background: var(--surface-low); border: 1px solid transparent; transition: transform .24s var(--curve), background .2s; }
.feature:hover { transform: translateY(-4px); }
.feature--tickets { background: var(--primary-container); color: var(--on-primary-container); }
.feature--story { background: var(--surface-mid); }
.feature--gather { background: #f9ecdb; color: #5f452a; }
body[data-theme="dark"] .feature--gather { background: #463a2c; color: #f4dec3; }
.feature__top { width: 100%; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.feature__number { font-size: .75rem; font-weight: 750; letter-spacing: .12em; opacity: .65; }
.feature__icon { height: 45px; width: 45px; display: grid; place-items: center; border-radius: 16px; background: rgba(255,255,255,.52); }
body[data-theme="dark"] .feature__icon { background: rgba(255,255,255,.09); }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { margin: auto 0 9px; position: relative; z-index: 2; font-size: 1.25rem; font-weight: 770; }
.feature p { margin: 0; position: relative; z-index: 2; line-height: 1.75; font-size: .85rem; max-width: 250px; opacity: .83; }
.feature__link { position: relative; z-index: 2; margin-top: 16px; font-size: .82rem; font-weight: 760; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.feature--tickets::after { content: "♪"; position: absolute; font-family: Georgia, serif; font-size: 15rem; font-weight: 400; right: -7px; top: 36px; color: rgba(29,77,62,.1); transform: rotate(-8deg); }
.feature--story::after { content: "竹"; position: absolute; font-size: 12rem; font-family: serif; line-height: 1; right: -13px; bottom: 2px; color: var(--primary); opacity: .065; }
.feature--gather::after { content: "◌"; position: absolute; font-size: 18rem; line-height: 1; right: -42px; top: 6px; opacity: .15; }

.guide { display: grid; grid-template-columns: minmax(220px,.83fr) minmax(0,1.55fr); gap: 42px; padding: 82px 0; }
.guide-intro p { margin: 19px 0 0; max-width: 260px; color: var(--muted); font-size: .88rem; line-height: 1.85; }
.guide-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.guide-step { position: relative; padding: 25px 20px 21px; border-radius: 24px; background: var(--surface); border: 1px solid var(--outline); min-height: 208px; }
.guide-step__index { font-size: .77rem; font-weight: 770; color: var(--primary); }
.guide-step h3 { font-size: 1.04rem; font-weight: 760; margin: 46px 0 8px; }
.guide-step p { color: var(--muted); font-size: .8rem; line-height: 1.8; margin: 0; }

.faq { margin-bottom: 72px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 42px; background: var(--surface-low); padding: 35px; border-radius: 28px; }
.faq h2 { font-size: 1.45rem; font-weight: 780; margin: 0 0 10px; }
.faq > div:first-child p { font-size: .83rem; line-height: 1.9; color: var(--muted); margin: 0; }
.faq details { border-bottom: 1px solid var(--outline); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 0; font-size: .88rem; font-weight: 730; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.35rem; font-weight: 400; color: var(--primary); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -2px 0 18px; color: var(--muted); line-height: 1.85; font-size: .82rem; }

.site-footer { border-top: 1px solid var(--outline); padding: 26px 0 38px; }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer__brand { font-weight: 790; font-size: .89rem; }
.site-footer__brand small { display: block; font-size: .72rem; margin-top: 6px; color: var(--muted); font-weight: 400; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: .8rem; }
.site-footer__links a:hover { color: var(--primary); }
.toast { position: fixed; z-index: 30; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); padding: 13px 19px; background: #20382d; color: white; border-radius: 16px; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; font-size: .82rem; box-shadow: 0 8px 25px rgba(0,0,0,.18); transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); width: max-content; }
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }
.reveal { transition: opacity .7s var(--curve), transform .7s var(--curve); }
.has-motion .reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* 404 */
.error-main { min-height: calc(100vh - 192px); display: grid; align-items: center; }
.error-card { display: grid; grid-template-columns: 1.1fr .9fr; gap: 35px; padding: clamp(28px,6vw,70px); border-radius: 32px; background: var(--primary-container); color: var(--on-primary-container); position: relative; overflow: hidden; }
.error-eyebrow { font-size: .82rem; font-weight: 800; letter-spacing: .14em; }
.error-card h1 { font-size: clamp(2rem,5vw,3.8rem); line-height: 1.25; letter-spacing: -.045em; margin: 26px 0 15px; }
.error-card p { line-height: 1.9; font-size: .93rem; margin: 0 0 28px; max-width: 390px; }
.error-card .header-cta { width: fit-content; }
.error-numeral { display: grid; place-items: center; font-size: clamp(7rem,17vw,14rem); font-weight: 800; line-height: 1; letter-spacing: -.1em; opacity: .16; }

@media (max-width: 1060px) {
  .shell { width: min(100% - 36px, 900px); }
  .hero-layout { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .hero-art { width: min(52%, 420px); right: 12px; }
  .download-card { min-height: 0; }
  .guide { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 720px) {
  .site-header__inner { height: 80px; }
  .site-nav { display: none; }
  .header-cta { padding: 0 13px; }
  .hero { padding: 26px 25px 23px; min-height: 610px; border-radius: 28px; }
  .hero__copy { padding-top: 47px; }
  .hero h1 { font-size: clamp(2.4rem,8vw,3.9rem); }
  .hero__description { font-size: .88rem; max-width: 350px; }
  .hero-art { bottom: 19px; width: min(75%, 395px); right: -18px; opacity: .65; }
  .hero__bottom { z-index: 2; }
  .download-card { padding: 24px; border-radius: 28px; }
  .section { padding-top: 65px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 12px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature--tickets { grid-column: span 2; }
  .feature { min-height: 230px; }
  .guide { padding: 62px 0; }
  .faq { grid-template-columns: 1fr; gap: 12px; padding: 27px; }
  .site-footer__inner { align-items: start; flex-direction: column; }
}
@media (max-width: 510px) {
  .shell { width: calc(100% - 24px); }
  .site-header__inner { height: 72px; }
  .brand__mark { width: 40px; height: 40px; border-radius: 13px; }
  .brand__name strong { font-size: .97rem; }
  .brand__name small { font-size: .53rem; }
  .header-actions { gap: 7px; }
  .theme-toggle { width: 40px; height: 40px; border-radius: 13px; }
  .header-cta { min-height: 40px; font-size: .77rem; }
  .hero { min-height: 590px; padding: 24px 23px; }
  .hero__copy { padding-top: 34px; }
  .hero h1 { font-size: clamp(2.18rem, 9vw, 3rem); }
  .hero__description { max-width: 285px; }
  .hero__links { flex-direction: column; align-items: flex-start; }
  .hero__primary, .hero__secondary { min-height: 43px; }
  .hero-art { width: 80%; bottom: 3px; right: -38px; opacity: .55; }
  .hero__side-label { display: none; }
  .hero__footer-line { font-size: .75rem; }
  .device-option { padding: 11px; gap: 8px; min-height: 80px; }
  .device-option[aria-pressed="true"] { padding: 10px; }
  .device-icon { width: 33px; height: 33px; border-radius: 11px; }
  .device-icon svg { width: 18px; height: 18px; }
  .device-option__text strong { font-size: .81rem; }
  .device-option__text small { font-size: .66rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature--tickets { grid-column: auto; }
  .feature { min-height: 220px; }
  .guide-steps { grid-template-columns: 1fr; }
  .guide-step { min-height: auto; }
  .guide-step h3 { margin-top: 24px; }
  .notice-strip__text { font-size: .77rem; }
  .error-card { grid-template-columns: 1fr; }
  .error-numeral { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
