:root {
  color-scheme: light;
  --accent: #111111;
  --accent-dark: #000000;
  --navy: #111111;
  --text: #333333;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --container: 1120px;
  --section-space: clamp(88px, 8vw, 118px);
  --section-space-mobile: 68px;
  --font: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { display: flex; min-width: 320px; min-height: 100vh; flex-direction: column; margin: 0; overflow-x: hidden; color: var(--navy); background: #fff; font-family: var(--font); line-height: 1.7; user-select: none; -webkit-user-select: none; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 8px 14px; border-radius: 6px; color: #fff; background: var(--accent); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(0, 0, 0, 0.35); outline-offset: 4px; }

/* 顶部导航 */
.site-header { position: absolute; z-index: 20; top: 0; right: 0; left: 0; border-top: 1px solid #ddd; }
.nav { display: grid; height: 112px; align-items: center; gap: 24px; grid-template-columns: 1fr auto 1fr; }
.nav > .brand { justify-self: start; }
.nav > .login-button { justify-self: end; }
.brand { display: inline-flex; align-items: center; gap: 12px; animation: intro-down .7s .08s both cubic-bezier(.2,.8,.2,1); }
.cat-crop { position: relative; width: 48px; height: 66px; overflow: hidden; background: #fff; }
.cat-crop img { position: absolute; top: -3px; left: -13px; width: 74px; max-width: none; }
.brand-word { width: 118px; }
.nav-menu { display: flex; align-items: center; gap: 33px; margin: 0; padding: 0; list-style: none; animation: intro-down .7s .13s both cubic-bezier(.2,.8,.2,1); }
.nav-link { position: relative; display: block; padding: 8px 18px; color: var(--muted); font-size: 1.12rem; font-weight: 900; transition: color .2s ease; }
.nav-link::after { position: absolute; right: 18px; bottom: 2px; left: 18px; height: 3px; border-radius: 99px; background: var(--accent); content: ""; transform: scaleX(0); transition: transform .25s ease; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--navy); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }

.login-button, .download-button { position: relative; display: inline-flex; min-height: 46px; align-items: center; justify-content: center; overflow: hidden; border: 0; border-radius: 999px; color: #fff; background: var(--accent); box-shadow: 0 8px 14px rgba(0, 0, 0, 0.18); font-size: 0.92rem; font-weight: 750; cursor: pointer; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.login-button::after, .download-button::after { position: absolute; top: -70%; bottom: -70%; left: -55%; width: 34%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent); content: ""; transform: rotate(18deg); transition: left .55s ease; }
.login-button { min-width: 100px; padding: 12px 25px; animation: intro-down .7s .18s both cubic-bezier(.2,.8,.2,1); }
.download-button { min-width: 142px; padding: 11px 24px; }
.login-button:not([aria-disabled="true"]):hover, .download-button:not([aria-disabled="true"]):hover { background: var(--accent-dark); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.26); transform: translateY(-2px); }
.login-button:not([aria-disabled="true"]):hover::after, .download-button:not([aria-disabled="true"]):hover::after { left: 125%; }
.login-button:not([aria-disabled="true"]):active, .download-button:not([aria-disabled="true"]):active { transform: translateY(0) scale(.97); }
[aria-disabled="true"] { cursor: not-allowed; opacity: .82; box-shadow: none; }
[aria-disabled="true"]::after { display: none; }

/* 首页 */
.hero { position: relative; display: flex; min-height: 100vh; align-items: center; padding: 130px 0 60px; background: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.feature-columns { display: grid; gap: clamp(32px, 6vw, 90px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-col { display: flex; flex-direction: column; align-items: center; }
.feature-title { margin: 0 0 14px; color: #000; font-family: "Arial Black", Arial, var(--font); font-size: clamp(2.2rem, 3.6vw, 3.1rem); font-weight: 900; line-height: 1.15; white-space: nowrap; }
.feature-desc { max-width: 220px; margin: 0; color: #666; font-size: .95rem; font-weight: 800; line-height: 2.1; }
.hero-actions { display: flex; justify-content: center; margin-top: clamp(80px, 14vh, 200px); }
.try-button { display: inline-flex; min-width: 140px; min-height: 40px; align-items: center; justify-content: center; padding: 6px 28px; border-radius: 8px; color: #fff; background: #000; font-size: 1.05rem; font-weight: 900; transition: transform .2s ease, box-shadow .2s ease; }
.try-button:hover { box-shadow: 0 8px 16px rgba(0,0,0,.25); transform: translateY(-2px); }

/* 文字逐个黑块遮挡后显现 */
.glyph { animation: glyph-reveal var(--glyph-duration, .45s) var(--glyph-delay, 0s) linear both; }
.glyph.bar { animation-name: glyph-reveal-bar; }
@keyframes glyph-reveal {
  0% { color: transparent; background: transparent; }
  0.1%, 65% { color: transparent; background: #0f172a; }
  100% { color: inherit; background: transparent; }
}
@keyframes glyph-reveal-bar {
  0%, 40% { color: transparent; background: transparent; box-shadow: inset 2px 0 0 #6b7280; }
  40.1%, 75% { color: transparent; background: #0f172a; box-shadow: none; }
  100% { color: inherit; background: transparent; box-shadow: none; }
}
/* 下载页 */
.downloads { position: relative; isolation: isolate; padding-block: calc(112px + var(--section-space) * .6) var(--section-space); background: #fff; }
.section-heading { margin: 0 auto 46px; text-align: center; }
.section-title { margin: 0; color: var(--navy); font-size: clamp(1.85rem, 2.6vw, 2.5rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.25; }
.section-desc { margin: 8px 0 0; color: var(--muted); font-size: .87rem; }
.platform-tabs { display: flex; align-items: flex-start; justify-content: center; gap: clamp(42px, 6vw, 92px); margin: 0 auto; }
.platform-tab { display: flex; width: 118px; flex-direction: column; align-items: center; gap: 14px; padding: 0; border: 0; color: var(--muted); background: none; font-size: .88rem; cursor: pointer; }
.platform-icon { position: relative; isolation: isolate; display: grid; width: 108px; height: 108px; place-items: center; border-radius: 50%; color: #c8c8c8; transition: color .2s ease, transform .25s ease; }
.platform-icon::before { position: absolute; z-index: -1; inset: -24px; border-radius: 50%; background: radial-gradient(circle, rgba(0,0,0,.1) 0%, rgba(0,0,0,.05) 34%, rgba(0,0,0,.015) 62%, transparent 88%); content: ""; opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.platform-icon svg { position: relative; z-index: 1; width: 76px; height: 76px; }
.platform-tab:hover .platform-icon { color: #8a8a8a; transform: translateY(-4px) scale(1.04); }
.platform-tab[aria-selected="true"] { color: var(--navy); font-weight: 800; }
.platform-tab[aria-selected="true"] .platform-icon { color: var(--navy); animation: platform-pop .38s cubic-bezier(.2,.8,.2,1); }
.platform-tab[aria-selected="true"] .platform-icon::before { opacity: 1; }
.download-panel { display: grid; min-height: 150px; place-items: center; padding-top: 34px; text-align: center; }
.download-panel.is-switching > div { animation: panel-switch .4s cubic-bezier(.2,.75,.2,1); }

/* 推广联盟页 */
.affiliate { padding: calc(112px + 40px) 20px 70px; }
.affiliate-wrap { width: min(100%, 530px); margin-inline: auto; }
.aff-title { margin: 0 0 26px; color: #222; font-size: 1.45rem; font-weight: 900; text-align: center; }
.perk-list { display: grid; gap: 20px; }
.perk-card { position: relative; display: flex; min-height: 96px; align-items: center; justify-content: center; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.14); }
.perk-card p { margin: 0; color: #111; font-size: 1.2rem; font-weight: 800; line-height: 1.4; text-align: center; }
.perk-badge { position: absolute; top: -12px; left: -12px; display: grid; width: 78px; height: 78px; place-items: center; padding: 10px 0 0 10px; border-radius: 50%; color: #fff; font-size: 1.5rem; font-weight: 900; }
.perk-badge.yellow { background: linear-gradient(135deg, #ffd21f, #ff9f0f); font-size: 2.3rem; }
.perk-badge.red { background: #e8283c; }
.perk-badge.black { background: #000; color: #ffc21a; }
.perk-art { position: absolute; top: 50%; right: 10px; width: 86px; height: 80px; object-fit: contain; transform: translateY(-50%); }
.aff-actions { margin: 30px 0 48px; text-align: center; }
.aff-button { display: inline-block; padding: 7px 17px; border-radius: 4px; color: #fff; background: #000; box-shadow: 0 3px 6px rgba(0,0,0,.25); font-size: .88rem; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }
.aff-button:hover { box-shadow: 0 6px 12px rgba(0,0,0,.3); transform: translateY(-2px); }

.reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .68s var(--reveal-delay, 0ms) ease, transform .68s var(--reveal-delay, 0ms) cubic-bezier(.2,.75,.2,1); }
.reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }

.site-footer { padding: 21px 20px; border-top: 1px solid var(--line); color: var(--muted); background: #fff; text-align: center; font-size: .72rem; }

@keyframes intro-down { from { opacity: 0; transform: translate3d(0,-16px,0); } to { opacity: 1; transform: none; } }
@keyframes panel-switch { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes platform-pop { 0% { transform: scale(.9); } 65% { transform: scale(1.07); } 100% { transform: scale(1); } }

@media (max-width: 820px) {
  .nav { height: 88px; gap: 12px; }
  .brand { gap: 8px; }
  .cat-crop { width: 38px; height: 54px; }
  .cat-crop img { top: -2px; left: -10px; width: 59px; }
  .brand-word { width: 96px; }
  .nav-menu { gap: 12px; }
  .nav-link { padding: 8px 12px; font-size: 1rem; }
  .nav-link::after { right: 12px; left: 12px; }
  .login-button { min-width: 82px; min-height: 41px; padding: 9px 18px; }
  .hero { padding-top: 120px; }
  .feature-columns { gap: 36px; grid-template-columns: 1fr; }
  .feature-desc { max-width: 320px; text-align: center; }
  .hero-actions { margin-top: 56px; }
  .downloads { padding-top: calc(88px + var(--section-space-mobile)); }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .nav { height: 74px; gap: 6px; }
  .cat-crop { width: 31px; height: 45px; }
  .cat-crop img { left: -8px; width: 48px; }
  .brand-word { display: none; }
  .nav-menu { gap: 4px; }
  .nav-link { padding: 6px 8px; font-size: .9rem; }
  .nav-link::after { right: 8px; left: 8px; }
  .login-button { min-width: 64px; min-height: 36px; padding: 7px 14px; font-size: .8rem; }
  .hero { padding-top: 100px; }
  .feature-desc { font-size: .85rem; line-height: 1.9; }
  .downloads { padding-block: calc(74px + var(--section-space-mobile)) var(--section-space-mobile); }
  .section-heading { margin-bottom: 34px; }
  .section-title { font-size: 1.65rem; }
  .section-desc { font-size: .8rem; }
  .platform-tabs { width: 100%; justify-content: space-between; gap: 2px; }
  .platform-tab { width: 25%; gap: 8px; font-size: .72rem; }
  .platform-icon { width: 78px; max-width: 100%; height: 78px; }
  .platform-icon svg { width: 54px; height: 54px; }
  .download-panel { min-height: 138px; padding-top: 28px; }
  .affiliate { padding: calc(74px + 32px) 14px 50px; }
  .perk-card p { font-size: 1rem; }
  .perk-badge { width: 66px; height: 66px; font-size: 1.2rem; }
  .perk-badge.yellow { font-size: 1.9rem; }
  .perk-art { width: 68px; height: 64px; }
}

@media (max-width: 420px) {
  .nav-link { padding: 6px 6px; font-size: .84rem; }
  .nav-link::after { right: 6px; left: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .glyph { animation: none !important; }
}

/* 自定义猫咪鼠标（按住左键时切换） */
@media (hover: hover) and (pointer: fine) {
  .cat-cursor, .cat-cursor * { cursor: none !important; }
}
.cat-pointer { position: fixed; z-index: 9999; top: 0; left: 0; width: 112px; height: 112px; pointer-events: none; opacity: 0; transition: opacity .15s ease; will-change: transform; }
.cat-pointer.is-visible { opacity: 1; }
.cat-pointer img { width: 100%; height: 100%; object-fit: contain; }
