/* ==========================================================================
   MathFan 首页 V1 · 探索 / 学习 双 Tab
   独立文件：不修改 style.css 原有规则（避免污染 .tab-btn/.tab-content）
   ========================================================================== */

/* ---------- 全局基底（覆盖 style.css 的浅色主题与 Comic Sans） ---------- */
body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif !important;
    background: linear-gradient(180deg, #0b1220 0%, #111c30 45%, #0d1424 100%) !important;
    background-attachment: fixed !important;
    color: #e2e8f0 !important;
}
.container { max-width: 1280px; margin: 0 auto; padding: 20px; }
::selection { background: rgba(56, 189, 248, 0.32); }

/* ---------- 顶部：品牌 + 双 Tab + 搜索 ---------- */
.mf-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(10, 16, 30, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(71, 85, 105, 0.55);
}
.mf-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.mf-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.mf-brand__mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 17px;
    color: #06121f;
    background: linear-gradient(135deg, #38bdf8 0%, #a855f7 55%, #ec4899 100%);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}
.mf-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.mf-brand__name { font-size: 15px; font-weight: 800; color: #f1f5f9; letter-spacing: 0.2px; }
.mf-brand__slogan { font-size: 11px; color: #64748b; }

/* 双 Tab —— 探索/学习 视觉区分 */
.mf-tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(71, 85, 105, 0.5);
    flex-shrink: 0;
}
.mf-tab {
    appearance: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 10px;
    color: #94a3b8;
    background: transparent;
    transition: all 0.2s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}
.mf-tab__icon { font-size: 15px; line-height: 1; }
.mf-tab:hover { color: #e2e8f0; background: rgba(148, 163, 184, 0.12); }
.mf-tab[aria-selected="true"] { color: #06121f; }
.mf-tab--explore[aria-selected="true"] {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.4);
}
.mf-tab--learn[aria-selected="true"] {
    background: linear-gradient(135deg, #34d399 0%, #22d3ee 100%);
    box-shadow: 0 4px 16px rgba(52, 211, 153, 0.35);
}
.mf-tab__hint {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.72;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.mf-search { position: relative; flex: 1; min-width: 200px; max-width: 420px; margin-left: auto; }
.mf-search input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border-radius: 999px;
    border: 1px solid rgba(71, 85, 105, 0.7);
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}
.mf-search input:focus {
    border-color: #38bdf8;
    background: rgba(15, 23, 42, 1);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}
.mf-search input::placeholder { color: #64748b; }
.mf-search__icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 13px;
    pointer-events: none;
}

/* ---------- 面板切换 ---------- */
.mf-panel { display: none; }
body[data-mf-tab="explore"] #mf-panel-explore { display: block; }
body[data-mf-tab="learn"] #mf-panel-learn { display: block; }
.mf-panel--enter { animation: mfFade 0.34s cubic-bezier(.22, 1, .36, 1); }
@keyframes mfFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

/* ---------- 区块骨架 ---------- */
.mf-section { margin-bottom: 40px; scroll-margin-top: 86px; }
.mf-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.55);
}
.mf-section__title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    color: #f1f5f9;
}
.mf-section__title::before {
    content: '';
    width: 4px;
    height: 22px;
    border-radius: 3px;
    background: var(--mf-accent, #38bdf8);
    box-shadow: 0 0 12px var(--mf-accent, #38bdf8);
}
.mf-section__desc { margin: 0; font-size: 13px; color: #94a3b8; }
.mf-section__count {
    font-size: 11px;
    font-weight: 700;
    color: var(--mf-accent, #38bdf8);
    background: color-mix(in srgb, var(--mf-accent, #38bdf8) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--mf-accent, #38bdf8) 34%, transparent);
    padding: 3px 10px;
    border-radius: 999px;
}

/* ---------- 主视觉 Banner ---------- */
.mf-hero {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    margin-bottom: 34px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    background:
        radial-gradient(900px 420px at 12% 10%, rgba(56, 189, 248, 0.16), transparent 62%),
        radial-gradient(760px 420px at 88% 88%, rgba(168, 85, 247, 0.16), transparent 62%),
        linear-gradient(135deg, #101c34 0%, #0a1220 60%, #0d0f1e 100%);
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.6);
}
.mf-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
}
.mf-hero__copy { padding: 42px 26px 42px 42px; position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; }
.mf-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 5px 13px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.mf-hero__title {
    font-size: clamp(30px, 4.4vw, 50px) !important;
    font-weight: 900 !important;
    line-height: 1.12 !important;
    margin: 0 0 14px !important;
    background-image: linear-gradient(120deg, #e0f2fe 0%, #7dd3fc 34%, #c4b5fd 68%, #f9a8d4 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}
.mf-hero__brandline {
    font-size: 12.5px;
    font-weight: 700;
    color: #7dd3fc;
    letter-spacing: 0.4px;
    margin-bottom: 16px;
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.26);
}
.mf-hero__sub {
    font-size: clamp(14px, 1.5vw, 17px) !important;
    color: #cbd5e1 !important;
    line-height: 1.75 !important;
    margin: 0 0 26px !important;
    max-width: 480px !important;
}
.mf-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.mf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none !important;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(.4, 0, .2, 1);
}
.mf-btn--primary {
    color: #06121f;
    background: linear-gradient(135deg, #38bdf8 0%, #a855f7 100%);
    box-shadow: 0 10px 28px rgba(56, 189, 248, 0.3);
}
.mf-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(56, 189, 248, 0.42); }
.mf-btn--ghost {
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.32);
}
.mf-btn--ghost:hover { background: rgba(148, 163, 184, 0.2); transform: translateY(-2px); }
.mf-hero__stats { display: grid; grid-template-columns: repeat(4, auto); gap: 22px; flex-wrap: wrap; justify-content: start; }
.mf-hero__stat b {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #f1f5f9;
    font-variant-numeric: tabular-nums;
}
.mf-hero__stat span { font-size: 11.5px; color: #64748b; }
.mf-hero__scene { position: relative; min-height: 380px; overflow: hidden; align-self: stretch; }
.mf-hero__scene svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

/* ---------- Hero 热门试玩快捷卡 ---------- */
.mf-hero__quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
    max-width: 520px;
}
.mf-quick {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border-radius: 12px;
    text-decoration: none !important;
    color: #e2e8f0 !important;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(71, 85, 105, 0.6);
    transition: all 0.18s;
}
.mf-quick:hover {
    transform: translateY(-2px);
    border-color: #38bdf8;
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.4);
}
.mf-quick__icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.mf-quick__body { display: flex; flex-direction: column; min-width: 0; }
.mf-quick__body b { font-size: 12.5px; color: #f1f5f9; line-height: 1.3; }
.mf-quick__body i { font-style: normal; font-size: 10.5px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 人设卡（探索区保留并升级） ---------- */
.mf-persona-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.mf-persona {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(71, 85, 105, 0.6);
    text-decoration: none !important;
    color: #e2e8f0 !important;
    transition: all 0.2s;
}
.mf-persona:hover {
    transform: translateY(-3px);
    border-color: var(--mf-accent, #38bdf8);
    background: rgba(30, 41, 59, 0.85);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.45);
}
.mf-persona__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 21px;
    background: color-mix(in srgb, var(--mf-accent, #38bdf8) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--mf-accent, #38bdf8) 30%, transparent);
    flex-shrink: 0;
}
.mf-persona__name { font-size: 14.5px; font-weight: 700; color: #f1f5f9; }
.mf-persona__desc { font-size: 12px; color: #94a3b8; }

/* ---------- 卡片网格 ---------- */
.mf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
    gap: 16px;
}
.mf-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none !important;
    color: #e2e8f0 !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.72) 0%, rgba(15, 23, 42, 0.72) 100%);
    border: 1px solid rgba(71, 85, 105, 0.55);
    transition: transform 0.24s cubic-bezier(.22, 1, .36, 1), box-shadow 0.24s, border-color 0.24s;
    will-change: transform;
}
.mf-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(420px 160px at 50% 0%, color-mix(in srgb, var(--mf-accent, #38bdf8) 18%, transparent), transparent 70%);
    transition: opacity 0.28s;
}
.mf-card:hover {
    transform: translateY(-6px) scale(1.012);
    border-color: color-mix(in srgb, var(--mf-accent, #38bdf8) 55%, transparent);
    box-shadow: 0 20px 44px rgba(2, 6, 23, 0.55), 0 0 0 1px color-mix(in srgb, var(--mf-accent, #38bdf8) 22%, transparent);
}
.mf-card:hover::after { opacity: 1; }
.mf-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #0b1220, #16233a);
    border-bottom: 1px solid rgba(71, 85, 105, 0.45);
}
.mf-card__media img,
.mf-card__media svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(.22, 1, .36, 1);
}
.mf-card:hover .mf-card__media img,
.mf-card:hover .mf-card__media svg { transform: scale(1.075); }
.mf-card__media img { filter: none !important; }
.mf-card__body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.mf-card__title {
    margin: 0;
    font-size: 15.5px;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.35;
}
.mf-card__desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.62;
    color: #94a3b8;
    flex: 1;
}
.mf-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 3px; }
.mf-tag {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--mf-accent, #38bdf8);
    background: color-mix(in srgb, var(--mf-accent, #38bdf8) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--mf-accent, #38bdf8) 30%, transparent);
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}
.mf-card__go {
    font-size: 11.5px;
    color: #64748b;
    transition: all 0.2s;
}
.mf-card:hover .mf-card__go { color: var(--mf-accent, #38bdf8); transform: translateX(3px); }

/* 精选卡（跨两列；保持纵向结构，与同行卡片等高，避免大片留白） */
.mf-card--feature { grid-column: span 2 !important; }
.mf-card--feature .mf-card__media { aspect-ratio: 16 / 9; }
.mf-card--feature .mf-card__body { padding: 16px 18px 18px; }
.mf-card--feature .mf-card__title { font-size: 18px; }
.mf-card--feature .mf-card__desc { font-size: 13px; }

/* 搜索隐藏 */
.mf-search--hidden { display: none !important; }
.mf-no-results { display: none; }
.mf-no-results.mf-show { display: block; }

/* 与旧 .tool-card 共存：中和 legacy !important，统一新外观 */
.mf-card {
    height: auto !important;
    padding: 0 !important;
    gap: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.72) 0%, rgba(15, 23, 42, 0.72) 100%) !important;
    border: 1px solid rgba(71, 85, 105, 0.55) !important;
    border-radius: 16px !important;
}
.mf-card__title {
    font-size: 15.5px !important;
    font-weight: 700 !important;
    color: #f1f5f9 !important;
    margin: 0 !important;
    line-height: 1.35 !important;
}
.mf-card__desc {
    font-size: 12.5px !important;
    color: #94a3b8 !important;
    margin: 0 !important;
    line-height: 1.62 !important;
}
.mf-card__media--invert img {
    filter: invert(1) hue-rotate(180deg) brightness(0.94) saturate(1.15) !important;
}
.mf-card__media--contain img { object-fit: contain; padding: 9%; }
.mf-card__media--fill svg { width: 100%; height: 100%; display: block; }

/* 人设卡横向布局（覆盖 legacy .persona-card 的 column 布局） */
.persona-card.mf-persona {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    border-radius: 14px !important;
}
.persona-card.mf-persona:hover {
    border-color: var(--mf-accent, #38bdf8) !important;
    background: rgba(30, 41, 59, 0.85) !important;
}

/* 缺图占位 */
.mf-card__media--empty {
    display: grid;
    place-items: center;
    background:
        repeating-linear-gradient(45deg, rgba(148, 163, 184, 0.05) 0 10px, transparent 10px 20px),
        linear-gradient(135deg, #0e1729, #17233a);
}
.mf-card__media--empty::after {
    content: attr(data-ph);
    font-size: 11.5px;
    color: #64748b;
    letter-spacing: 0.4px;
}

/* ---------- 跨区导流条 ---------- */
.mf-bridge {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 22px;
    border-radius: 16px;
    margin-bottom: 34px;
    background: linear-gradient(100deg, rgba(56, 189, 248, 0.12), rgba(168, 85, 247, 0.12));
    border: 1px solid rgba(148, 163, 184, 0.28);
}
.mf-bridge__label { font-size: 13px; font-weight: 700; color: #f1f5f9; }
.mf-bridge__links { display: flex; gap: 10px; flex-wrap: wrap; }
.mf-bridge__link {
    font-size: 12.5px;
    color: #cbd5e1;
    text-decoration: none !important;
    padding: 7px 14px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.3);
    transition: all 0.18s;
}
.mf-bridge__link:hover { background: rgba(56, 189, 248, 0.2); border-color: #38bdf8; color: #e0f2fe; }

/* ================= 学习区：更理性、结构化 ================= */
.mf-learn-hero {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 32px;
    padding: 34px 34px 30px;
    border: 1px solid rgba(52, 211, 153, 0.22);
    background:
        radial-gradient(700px 320px at 90% 0%, rgba(52, 211, 153, 0.14), transparent 60%),
        linear-gradient(135deg, #0c1a22 0%, #0b1424 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 26px;
    align-items: center;
}
.mf-learn-hero__eyebrow {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #6ee7b7;
    margin-bottom: 12px;
}
.mf-learn-hero__title {
    font-size: clamp(26px, 3.4vw, 38px) !important;
    font-weight: 900 !important;
    margin: 0 0 12px !important;
    color: #f1f5f9 !important;
}
.mf-learn-hero__sub {
    font-size: 15px !important;
    color: #94a3b8 !important;
    line-height: 1.75 !important;
    margin: 0 !important;
    max-width: 620px !important;
}
.mf-learn-hero__note {
    font-size: 12px;
    color: #64748b;
    border-left: 2px solid rgba(52, 211, 153, 0.4);
    padding-left: 14px;
    max-width: 250px;
    line-height: 1.7;
}

/* 学段选择 */
.mf-stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mf-stage {
    position: relative;
    border-radius: 15px;
    padding: 18px 18px 16px;
    text-decoration: none !important;
    color: #e2e8f0 !important;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.6);
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
}
.mf-stage:hover { transform: translateY(-4px); border-color: var(--mf-accent); box-shadow: 0 14px 32px rgba(2, 6, 23, 0.45); }
.mf-stage__icon { font-size: 22px; line-height: 1; margin-bottom: 9px; }
.mf-stage__name { font-size: 16px; font-weight: 800; color: #f1f5f9; margin-bottom: 5px; }
.mf-stage__desc { font-size: 12px; color: #94a3b8; line-height: 1.6; }
.mf-stage__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--mf-accent); }
/* 选中学段后的激活态 */
.mf-stage__check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    color: #0b1220;
    background: var(--mf-accent);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}
.mf-stage.is-active {
    border-color: var(--mf-accent);
    background: color-mix(in srgb, var(--mf-accent) 12%, rgba(15, 23, 42, 0.6));
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.45);
}
.mf-stage.is-active .mf-stage__check { opacity: 1; transform: scale(1); }
.mf-stage.is-active .mf-stage__name { color: var(--mf-accent); }
.mf-section__tools { display: inline-flex; align-items: center; gap: 10px; }
.mf-stage-clear {
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    color: #7dd3fc;
    background: rgba(125, 211, 252, 0.1);
    border: 1px solid rgba(125, 211, 252, 0.4);
    border-radius: 999px;
    padding: 3px 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.mf-stage-clear:hover { background: rgba(125, 211, 252, 0.2); }
.mf-stage-clear[hidden] { display: none; }
/* 学段筛选命中的隐藏 */
.mf-stage-hidden { display: none !important; }

/* 知识分类（结构化：左侧分类标题 + 右侧知识点列表） */
.mf-topic { margin-bottom: 26px; }
.mf-topic__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--mf-accent) 15%, transparent), transparent 72%);
    border-left: 3px solid var(--mf-accent);
}
.mf-topic__name { font-size: 16.5px; font-weight: 800; color: #f1f5f9; }
.mf-topic__meta { font-size: 11.5px; color: #64748b; margin-left: auto; }
.mf-topic__empty { font-size: 12.5px; color: #64748b; padding: 14px 16px; border: 1px dashed rgba(100, 116, 139, 0.5); border-radius: 12px; }
.mf-knowledge {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}
.mf-know {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 13px;
    text-decoration: none !important;
    color: #e2e8f0 !important;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(71, 85, 105, 0.5);
    transition: all 0.2s;
}
.mf-know:hover {
    transform: translateX(4px);
    border-color: color-mix(in srgb, var(--mf-accent) 55%, transparent);
    background: rgba(30, 41, 59, 0.72);
}
.mf-know__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 19px;
    background: color-mix(in srgb, var(--mf-accent) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--mf-accent) 28%, transparent);
}
.mf-know__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mf-know__name { display: block; font-size: 14.5px; font-weight: 700; color: #f1f5f9; line-height: 1.4; }
.mf-know__desc { display: block; font-size: 12px; color: #94a3b8; line-height: 1.6; }
.mf-know__meta { display: flex; gap: 6px; margin-top: 3px; flex-wrap: wrap; }
.mf-chip {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    color: #94a3b8;
}
.mf-chip--stage { color: #7dd3fc; border-color: rgba(125, 211, 252, 0.4); background: rgba(125, 211, 252, 0.1); }
.mf-chip--kind { color: #f0abfc; border-color: rgba(240, 171, 252, 0.36); background: rgba(240, 171, 252, 0.08); }

/* 阶段进度条 */
.mf-stagebar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.mf-stagebar__item {
    flex: 1;
    min-width: 130px;
    padding: 10px 14px;
    border-radius: 11px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(71, 85, 105, 0.5);
    text-align: center;
}
.mf-stagebar__n { font-size: 17px; font-weight: 800; color: var(--mf-accent); font-variant-numeric: tabular-nums; }
.mf-stagebar__t { font-size: 11px; color: #64748b; margin-top: 2px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .mf-hero__grid { grid-template-columns: 1fr; }
    .mf-hero__copy { padding: 32px 24px 8px; }
    .mf-hero__scene { min-height: 300px; height: 300px; }
    .mf-learn-hero { grid-template-columns: 1fr; }
    .mf-learn-hero__note { border-left: 0; border-top: 2px solid rgba(52, 211, 153, 0.4); padding: 12px 0 0; max-width: none; }
    .mf-stages { grid-template-columns: repeat(2, 1fr); }
    .mf-card--feature { grid-column: 1 / -1 !important; }
    .mf-card--feature .mf-card__media { flex: none; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid rgba(71, 85, 105, 0.45); }
}
@media (max-width: 720px) {
    .mf-header__inner { gap: 10px; padding: 9px 14px; }
    .mf-brand__slogan { display: none; }
    .mf-tabs { order: 3; width: 100%; }
    .mf-tab { flex: 1; justify-content: center; padding: 10px 12px; }
    .mf-tab__hint { display: none; }
    .mf-search { order: 2; margin-left: auto; min-width: 0; }
    .mf-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .mf-persona-grid { grid-template-columns: 1fr; }
    .mf-stages { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .mf-knowledge { grid-template-columns: 1fr; }
    .mf-card__title { font-size: 14px; }
    .mf-card__desc { font-size: 12px; }
    .mf-section__title { font-size: 18px; }
    .mf-card--feature .mf-card__body { padding: 14px 15px; }
    .mf-card--feature .mf-card__title { font-size: 16px; }
    .mf-hero__copy { padding: 26px 18px 10px; }
    .mf-hero__quick { grid-template-columns: 1fr; gap: 8px; }
    .mf-hero__stats { grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }
    .mf-hero__stat b { font-size: 19px; }
    .mf-learn-hero { padding: 22px 18px; }
    .mf-bridge { padding: 14px 16px; gap: 10px; }
}
@media (max-width: 420px) {
    .mf-stages { grid-template-columns: 1fr; }
    .mf-grid { grid-template-columns: 1fr 1fr; }
    .mf-card__body { padding: 11px 12px 13px; }
    .mf-card__media { aspect-ratio: 4 / 3; }
    .mf-card__go { display: none; }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    .mf-panel--enter { animation: none; }
    .mf-card, .mf-card__media img, .mf-card__media svg { transition: none; }
}
