/* 猫起来官网 · 站点样式（2026-09-24 骨架版）
   铁律：颜色 / 圆角 / 阴影 ONLY 取 tokens.css，本文件禁止硬编码色值 */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-900);
    background: var(--bg-surface);
}

a { color: var(--g-primary); text-decoration: none; }
a:hover { color: var(--g-primary-2); }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- 头部 / 导航 ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header .inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 64px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text-900); }
.brand__mark {
    width: 32px; height: 32px; border-radius: var(--r-sm);
    background: linear-gradient(135deg, var(--g-primary), var(--g-primary-2));
    display: grid; place-items: center; color: var(--text-on-brand); font-size: 16px;
}
.nav { display: flex; gap: 20px; align-items: center; }
.nav a { color: var(--text-700); font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--g-primary); }
.nav-toggle {
    display: none; border: 1px solid var(--line); background: var(--bg-surface);
    border-radius: var(--r-sm); padding: 6px 10px; font-size: 15px; cursor: pointer;
}

/* ---------- 内容区 ---------- */
main { padding: 56px 0 72px; }
.hero { padding: 72px 0 64px; }
.hero h1 {
    font-size: clamp(28px, 5vw, 46px); line-height: 1.25; margin: 0 0 16px;
    background: linear-gradient(100deg, var(--g-primary), var(--g-primary-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: clamp(16px, 2.2vw, 20px); color: var(--text-700); max-width: 46em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn {
    display: inline-block; padding: 12px 22px; border-radius: var(--r-md);
    font-weight: 600; font-size: 15px; border: 1px solid transparent;
}
.btn--primary { background: var(--g-primary); color: var(--text-on-brand); box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--g-primary-2); color: var(--text-on-brand); }
.btn--ghost { background: var(--bg-surface); color: var(--text-900); border-color: var(--line); }
.btn--ghost:hover { color: var(--g-primary); }

h1 { font-size: clamp(24px, 4vw, 38px); line-height: 1.3; margin: 0 0 14px; }
h2 { font-size: clamp(20px, 3vw, 28px); margin: 0 0 12px; }
.lead { color: var(--text-700); font-size: 17px; }
.muted { color: var(--text-500); }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 32px; }
.card {
    background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 24px; box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.note {
    margin-top: 32px; padding: 16px 20px; border-radius: var(--r-md);
    background: var(--bg-app); border: 1px dashed var(--line); color: var(--text-700);
}

/* ---------- 页脚 ---------- */
.site-footer {
    border-top: 1px solid var(--line); background: var(--bg-app);
    padding: 32px 0; font-size: 14px; color: var(--text-500);
}
.site-footer a { color: var(--text-700); }
.site-footer .rows { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- 移动端 ---------- */
@media (max-width: 720px) {
    .nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        background: var(--bg-surface); border-bottom: 1px solid var(--line);
        flex-direction: column; align-items: flex-start; padding: 12px 4%;
    }
    .nav.is-open { display: flex; }
    .nav-toggle { display: inline-block; }
    main { padding: 36px 0 56px; }
    .hero { padding: 48px 0 40px; }
}
