/* MBeat 官网样式 —— 深色主题，紫色渐变品牌色 */
:root {
    --bg: #0a0a0f;
    --bg-soft: #14141c;
    --card: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --text: #f5f5f7;
    --text-dim: #a1a1aa;
    --text-faint: #6b6b74;
    --brand-a: #6a11cb;
    --brand-b: #2575fc;
    --accent: #8b5cf6;
    --brand-grad: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Helvetica Neue', 'Yu Gothic UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(600px circle at 15% 0%, rgba(106, 17, 203, 0.16), transparent 55%),
        radial-gradient(700px circle at 85% 10%, rgba(37, 117, 252, 0.12), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

a { color: inherit; text-decoration: none; }

/* ---------- 顶栏 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { width: 32px; height: 32px; border-radius: 8px; }
.brand-name { font-size: 18px; font-weight: 700; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.site-nav { display: flex; align-items: center; gap: 20px; font-size: 15px; color: var(--text-dim); }
.site-nav > a:hover { color: var(--text); }

.lang-switch { display: flex; gap: 4px; padding-left: 12px; border-left: 1px solid var(--card-border); }
.lang-switch a { padding: 4px 10px; border-radius: 999px; font-size: 13px; }
.lang-switch a.active { background: var(--brand-grad); color: #fff; }
.lang-switch a:not(.active):hover { color: var(--text); }

/* ---------- 主区 ---------- */
.site-main { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 56px 24px 72px; }

/* ---------- Hero ---------- */
.hero-wrap {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    min-height: 420px;
}
.hero-copy h1 {
    font-size: 46px; font-weight: 800; letter-spacing: -0.5px;
    background: var(--brand-grad);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.subtitle { margin: 16px 0 30px; max-width: 480px; color: var(--text-dim); font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero-note { color: var(--text-faint); font-size: 14px; }

.metronome-stage {
    display: flex; align-items: center; justify-content: center;
    padding: 44px 36px;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.metronome-svg { width: 240px; max-width: 100%; height: auto; }

/* 摆锤摆动：支点在底部中心，匀速往返（模拟真实节拍器） */
.pendulum {
    transform-box: view-box;
    transform-origin: 114px 222px;
    animation: swing 1.6s linear infinite;
}
@keyframes swing {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-30deg); }
}

/* ---------- 区块通用 ---------- */
.section-block { margin-top: 88px; }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.section-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.3px; }
.section-head .sub, .watch-copy .sub, .cta-section .sub { color: var(--text-dim); margin-top: 10px; line-height: 1.7; font-size: 16px; }

/* ---------- 双模式卡片 ---------- */
.modes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.mode-card {
    background: var(--card); border: 1px solid var(--card-border);
    border-radius: var(--radius); padding: 28px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.mode-card:hover { border-color: rgba(106, 17, 203, 0.55); transform: translateY(-3px); }
.device-frame {
    width: 216px; margin: 0 auto 22px;
    border-radius: 34px; padding: 8px;
    background: #101018;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 0 0 3px #000;
}
.device-frame img {
    display: block; width: 100%; height: auto;
    border-radius: 26px;
}
.mode-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(139, 92, 246, 0.12); color: var(--accent);
    margin-bottom: 18px;
}
.mode-card h3, .feature-item h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.mode-card p { color: var(--text-dim); line-height: 1.8; font-size: 15px; }
.mode-points { margin-top: 16px; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.mode-points li { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 14px; }
.mode-points li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* ---------- 功能卡片 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.feature-item {
    background: var(--card); border: 1px solid var(--card-border);
    border-radius: 14px; padding: 24px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.feature-item:hover { border-color: rgba(106, 17, 203, 0.55); transform: translateY(-3px); }
.f-icon { color: var(--accent); margin-bottom: 14px; display: flex; }
.feature-item h3 { font-size: 16.5px; font-weight: 600; }
.feature-item p { color: var(--text-dim); font-size: 14px; line-height: 1.75; }

/* ---------- 主题与音色 ---------- */
.personalize-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.personalize-card {
    background: var(--card); border: 1px solid var(--card-border);
    border-radius: var(--radius); padding: 28px;
}
.p-label { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 22px; }
.swatches { display: flex; flex-wrap: wrap; gap: 22px; }
.swatch-item { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.swatch {
    width: 54px; height: 54px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.sw-metal { background: linear-gradient(135deg, #e8e8ec, #9a9aa6 55%, #d8d8e0); }
.sw-wood { background: linear-gradient(135deg, #b97a45, #7a4a28 60%, #c08a58); }
.sw-sky { background: linear-gradient(135deg, #63a4ff, #83eaf1); }
.sw-starry { background: radial-gradient(circle at 32% 30%, #5b21b6 0%, #1e1b4b 45%, #0b0b1a 100%); }
.sw-glass { background: linear-gradient(135deg, rgba(199, 210, 254, 0.85), rgba(224, 231, 255, 0.25)); }
.s-name { color: var(--text-dim); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.chip {
    padding: 7px 18px; border-radius: 999px; font-size: 14px; color: var(--text-dim);
    border: 1px solid var(--card-border); background: rgba(255, 255, 255, 0.03);
}
.sound-desc { color: var(--text-faint); font-size: 14px; line-height: 1.7; }

/* ---------- Apple Watch ---------- */
.watch-wrap {
    display: grid; grid-template-columns: auto 1fr; gap: 56px;
    align-items: center; justify-content: center;
    background: var(--card); border: 1px solid var(--card-border);
    border-radius: var(--radius); padding: 44px 48px;
}
.watch-stage { display: flex; justify-content: center; }
.watch-shot {
    width: 240px; height: auto; display: block;
    border-radius: 48px;
    border: 3px solid #2c2c3a;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 0 8px rgba(255, 255, 255, 0.03);
}
.watch-copy h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.watch-copy .mode-points { margin-top: 18px; }

/* ---------- 下载 CTA ---------- */
.cta-section { text-align: center; }
.cta-section h2 { font-size: 30px; font-weight: 800; }
.cta-section .sub { max-width: 480px; margin: 10px auto 34px; }
.qr-card {
    display: inline-block;
    background: #fff; border-radius: var(--radius); padding: 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}
.qr-img { width: 176px; height: 176px; display: block; object-fit: contain; }
.qr-text { margin-top: 14px; color: var(--text-dim); font-size: 14px; }

.download-btn {
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 26px; padding: 14px 34px; border-radius: 999px;
    background: var(--brand-grad); color: #fff;
    font-size: 17px; font-weight: 600;
    box-shadow: 0 10px 30px rgba(106, 17, 203, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.download-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(106, 17, 203, 0.6); }
.hero-actions .download-btn { margin-top: 0; }

/* ---------- 文档页 / 联系页 ---------- */
.doc-card {
    background: var(--card); border: 1px solid var(--card-border);
    border-radius: var(--radius); padding: 40px 44px;
}
.doc-header h1 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.update-date { color: var(--text-faint); font-size: 14px; margin-bottom: 26px; }
.doc-content .section { margin-bottom: 26px; }
.doc-content h2 { font-size: 19px; font-weight: 700; margin: 18px 0 10px; }
.doc-content h3 { font-size: 16px; font-weight: 600; margin: 14px 0 8px; color: var(--text); }
.doc-content p { color: var(--text-dim); line-height: 1.9; margin-bottom: 8px; }
.doc-content ul { margin: 8px 0 8px 20px; }
.doc-content li { color: var(--text-dim); line-height: 1.9; margin-bottom: 4px; }
.doc-content strong { color: var(--text); }
.doc-content .highlight { color: var(--accent); font-weight: 600; }

.contact-card { max-width: 560px; margin: 0 auto; text-align: left; }
.contact-card h1 { font-size: 30px; font-weight: 800; margin-bottom: 24px; }
.contact-row {
    display: flex; flex-direction: column; gap: 4px;
    padding: 14px 0; border-bottom: 1px solid var(--card-border);
}
.contact-row:last-child { border-bottom: none; }
.contact-label { color: var(--text-faint); font-size: 13px; }
.contact-value { color: var(--text); font-size: 17px; }
a.contact-value:hover { color: var(--accent); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-top: 40px; }
.notfound h1 { font-size: 88px; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.notfound .subtitle { margin: 10px auto 26px; }
.notfound .download-btn { margin-top: 0; }

/* ---------- 页脚 ---------- */
.site-footer {
    border-top: 1px solid var(--card-border);
    padding: 26px 24px 30px; text-align: center;
    color: var(--text-faint); font-size: 13px;
}
.footer-links {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 8px 22px; margin-bottom: 10px;
}
.footer-links a:hover { color: var(--text-dim); }
.beian-item { display: inline-flex; align-items: center; gap: 6px; }
.beian-icon { width: 16px; height: 16px; }

/* ---------- 动效无障碍 ---------- */
@media (prefers-reduced-motion: reduce) {
    .pendulum { animation: none; }
    .download-btn, .feature-item, .mode-card { transition: none; }
}

/* ---------- 移动端 ---------- */
@media (max-width: 600px) {
    .site-header { padding: 12px 16px; }
    .site-nav { gap: 12px; font-size: 14px; }
    .site-main { padding: 36px 18px 56px; }
    .brand-name { display: none; }

    .hero-wrap { grid-template-columns: 1fr; gap: 32px; min-height: 0; text-align: center; }
    .hero-copy h1 { font-size: 34px; }
    .subtitle { margin: 12px auto 24px; font-size: 16px; }
    .hero-actions { align-items: center; }
    .metronome-stage { padding: 30px 22px; border-radius: 22px; }
    .metronome-svg { width: 190px; }

    .section-block { margin-top: 60px; }
    .section-head h2 { font-size: 24px; }

    .watch-wrap { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; text-align: center; }
    .watch-copy .mode-points { align-items: center; }
    .watch-copy h2 { font-size: 24px; }
    .watch-shot { width: 190px; }
    .device-frame { width: 184px; border-radius: 28px; }
    .device-frame img { border-radius: 21px; }

    .doc-card { padding: 26px 20px; }
    .doc-header h1, .contact-card h1 { font-size: 24px; }
}
