/* ============================================================================
   MaxMind 官网 · 模型家族（Apple 式堆叠面板）
   2026-11-23
   规则：
   1. 只新增类，不改动 style.css / theme.css 里的任何既有规则。
   2. 视觉全部由 CSS 绘制（零位图、零外链），CSP default-src 'self' 下可用。
   3. 每个面板自带 --t-* 调色板，不依赖站点深浅主题，避免两套主题各调一遍。
   ========================================================================== */

/* ---------- Google Sans（自托管，官方 fonts/google-sans-*.woff2） ---------- */
@font-face {
    font-family: "Google Sans";
    src: url("fonts/google-sans-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0000-00FF, U+2000-206F, U+2191-2193, U+2212, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Google Sans";
    src: url("fonts/google-sans-500.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
    unicode-range: U+0000-00FF, U+2000-206F, U+2191-2193, U+2212, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Google Sans";
    src: url("fonts/google-sans-700.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
    unicode-range: U+0000-00FF, U+2000-206F, U+2191-2193, U+2212, U+FEFF, U+FFFD;
}

/* 首屏大字：只有 MaxMind 一个词，用 Google Sans */
.hero-left h1.hero-word.hero-h1 {
    font-family: "Google Sans", var(--font-sans, system-ui, sans-serif);
    font-weight: 500;
    font-size: clamp(56px, 13vw, 150px);
    line-height: 1;
    letter-spacing: -.03em;
}

/* ---------- 顶栏：只留品牌标记，不显示文字 ---------- */
.site-header .brand {
    gap: 0;
}

.brand-logo {
    display: block;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 7px;
}

.footer-brand .brand-logo {
    width: 24px;
    height: 24px;
}

/* ---------- 家族区块 ---------- */
.fam {
    position: relative;
    width: 100%;
    padding: clamp(52px, 7vw, 92px) 0 0;
}

.fam-head {
    width: 100%;
    max-width: var(--container, 1240px);
    margin: 0 auto;
    padding: 0 var(--gutter, 24px) clamp(26px, 4vw, 44px);
    text-align: center;
}

.fam-kicker,
.fam-title,
.fam-lede {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.grad {
    background-image: linear-gradient(96deg, #5B8CFF 0%, #8E7BFF 46%, #BBA2FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: #6F8CFF;
    -webkit-text-fill-color: transparent;
}

.fam-kicker {
    display: inline-block;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .01em;
}

.fam-title {
    margin: 16px auto 0;
    font-size: clamp(32px, 6.2vw, 66px);
    line-height: 1.04;
    letter-spacing: -.038em;
    font-weight: 600;
    color: var(--text, #fff);
}

.fam-title em {
    font-style: normal;
    color: var(--text-3, #5D646E);
}

.fam-lede {
    margin: 18px auto 0;
    max-width: 30em;
    font-size: clamp(15px, 1.9vw, 18px);
    line-height: 1.62;
    color: var(--text-2, #EEEEEE);
}

/* 面板之间 10px 的缝 —— Apple 首页的分块节奏 */
.fam-stack {
    display: grid;
    gap: 10px;
}

/* ---------- 单个面板 ---------- */
.tile {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(44px, 6.2vw, 82px) var(--gutter, 24px) 0;
    background: var(--t-bg);
    color: var(--t-ink);
    -webkit-tap-highlight-color: transparent;
}

.tile--dark {
    --t-bg: #050506;
    --t-ink: #F5F5F7;
    --t-ink-2: rgba(245, 245, 247, .62);
    --t-line: rgba(245, 245, 247, .30);
    --t-hover: rgba(245, 245, 247, .10);
    --t-fill: #F5F5F7;
    --t-fill-ink: #08090B;
    --t-hair: rgba(245, 245, 247, .16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .055);
}

.tile--light {
    --t-bg: #F5F5F7;
    --t-ink: #0B0D10;
    --t-ink-2: rgba(11, 13, 16, .56);
    --t-line: rgba(11, 13, 16, .26);
    --t-hover: rgba(11, 13, 16, .07);
    --t-fill: #0B0D10;
    --t-fill-ink: #FFFFFF;
    --t-hair: rgba(11, 13, 16, .12);
}

.tile-eyebrow {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
}

.tile-flag {
    -webkit-text-fill-color: #FFFFFF;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .01em;
    color: #FFFFFF;
    background: linear-gradient(96deg, #4D6BFE 0%, #7C63F6 55%, #A87BFF 100%);
    box-shadow: 0 10px 22px -14px rgba(77, 107, 254, .85);
}

.tile-name {
    margin: 14px 0 0;
    font-size: clamp(36px, 7.8vw, 82px);
    line-height: 1;
    letter-spacing: -.045em;
    font-weight: 600;
    color: var(--t-ink);
}

.tile-name small {
    display: block;
    margin: 0 0 .34em;
    font-size: .3em;
    font-weight: 500;
    letter-spacing: .06em;
    color: var(--t-ink-2);
}

.tile-tag {
    margin: 18px 0 0;
    max-width: 22em;
    font-size: clamp(15px, 2.3vw, 23px);
    line-height: 1.45;
    letter-spacing: -.012em;
    color: var(--t-ink);
    opacity: .9;
}

.tile-cta {
    margin: clamp(22px, 3vw, 30px) 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.tbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 23px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .2s var(--ease, cubic-bezier(.2, .7, .2, 1)),
        background-color .2s, box-shadow .2s, opacity .2s;
}

.tbtn:active {
    transform: scale(.97);
}

.tbtn--fill {
    background: var(--t-fill);
    color: var(--t-fill-ink);
}

.tbtn--fill:hover {
    transform: translateY(-1px);
    opacity: .9;
}

.tbtn--line {
    color: var(--t-ink);
    box-shadow: inset 0 0 0 1.5px var(--t-line);
}

.tbtn--line:hover {
    background: var(--t-hover);
}

/* 底部规格行：等宽数字，一行读得完 */
.tile-specs {
    margin: clamp(20px, 2.6vw, 30px) 0 0;
    padding: 0 0 clamp(26px, 3.6vw, 42px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    list-style: none;
    font-size: 13px;
    line-height: 1.7;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    color: var(--t-ink-2);
}

.tile-specs b {
    font-weight: 500;
    color: var(--t-ink);
}

.tile-specs li+li::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 10px;
    margin-right: 20px;
    vertical-align: -1px;
    background: var(--t-hair);
}

/* ============================================================================
   生成式视觉 —— 每个型号一套，纯 CSS
   ========================================================================== */
.viz {
    position: relative;
    width: 100%;
    max-width: 940px;
    height: clamp(216px, 50vw, 380px);
    margin: clamp(26px, 4vw, 46px) auto 0;
    overflow: hidden;
}

.viz::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: .045;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23g)'/></svg>");
    mix-blend-mode: overlay;
}

.viz>span {
    position: absolute;
    display: block;
}

/* --- Caelum：深空轨道 --- */
.viz-caelum .v-glow {
    left: 50%;
    top: 54%;
    width: min(78%, 620px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
            rgba(91, 43, 235, .40) 0 18%,
            rgba(47, 123, 255, .18) 40%,
            rgba(22, 224, 196, .06) 62%,
            transparent 74%);
}

.viz-caelum .v-disc {
    left: 50%;
    top: 54%;
    width: clamp(112px, 24vw, 196px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 33% 25%, rgba(255, 255, 255, .95) 0 3%, rgba(255, 255, 255, .5) 11%, transparent 38%),
        radial-gradient(circle at 70% 78%, #16E0C4 0 14%, rgba(22, 224, 196, 0) 54%),
        radial-gradient(circle at 44% 40%, #2F7BFF 0 34%, #5B2BEB 66%, #180A42 100%);
    box-shadow:
        0 52px 96px -44px rgba(90, 120, 255, .95),
        inset -14px -22px 54px rgba(4, 2, 18, .55),
        inset 8px 10px 34px rgba(255, 255, 255, .10);
}

.viz-caelum .v-ring {
    left: 50%;
    top: 54%;
    border-radius: 50%;
    border: 1px solid rgba(150, 180, 255, .30);
}

.viz-caelum .v-ring.r1 {
    width: clamp(250px, 56vw, 500px);
    height: clamp(84px, 18vw, 164px);
    transform: translate(-50%, -50%) rotate(-17deg);
}

.viz-caelum .v-ring.r2 {
    width: clamp(190px, 42vw, 372px);
    height: clamp(64px, 14vw, 130px);
    border-color: rgba(22, 224, 196, .26);
    transform: translate(-50%, -50%) rotate(21deg);
}

.viz-caelum .v-ring.r3 {
    width: clamp(320px, 74vw, 660px);
    height: clamp(110px, 24vw, 216px);
    border-color: rgba(150, 180, 255, .14);
    transform: translate(-50%, -50%) rotate(4deg);
}

/* --- Axe：速度切片 --- */
.viz-axe::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(92%, 700px);
    aspect-ratio: 1.6;
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(255, 138, 46, .28), rgba(255, 138, 46, .10) 52%, transparent 78%);
}

.viz-axe .v-streaks {
    inset: 0;
    background:
        repeating-linear-gradient(103deg,
            transparent 0 11px,
            rgba(255, 150, 60, .40) 11px 12.1px,
            transparent 12.1px 26px),
        repeating-linear-gradient(103deg,
            transparent 0 4px,
            rgba(255, 190, 120, .22) 4px 4.7px,
            transparent 4.7px 13px);
    -webkit-mask-image: linear-gradient(97deg, transparent 2%, rgba(0, 0, 0, .25) 30%, #000 56%, rgba(0, 0, 0, .3) 84%, transparent 99%);
    mask-image: linear-gradient(97deg, transparent 2%, rgba(0, 0, 0, .25) 30%, #000 56%, rgba(0, 0, 0, .3) 84%, transparent 99%);
}

.viz-axe .v-chev {
    left: 50%;
    top: 50%;
    width: clamp(74px, 16vw, 128px);
    height: clamp(96px, 21vw, 172px);
    background: linear-gradient(160deg, #FFC46B 0 22%, #FF7A2F 58%, #E0331F 100%);
    clip-path: polygon(0 0, 46% 50%, 0 100%, 30% 100%, 76% 50%, 30% 0);
    filter: drop-shadow(0 26px 44px rgba(230, 90, 40, .38));
}

.viz-axe .v-chev.c1 {
    transform: translate(-132%, -50%) scale(.72);
    opacity: .38;
}

.viz-axe .v-chev.c2 {
    transform: translate(-66%, -50%) scale(.86);
    opacity: .62;
}

.viz-axe .v-chev.c3 {
    transform: translate(0, -50%);
}

/* --- Sol：暖色同心 --- */
.viz-sol .v-halo {
    left: 50%;
    top: 58%;
    width: min(86%, 700px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: repeating-radial-gradient(circle at 50% 50%,
            rgba(255, 178, 77, .30) 0 1px,
            rgba(255, 178, 77, 0) 1px 34px);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 8%, rgba(0, 0, 0, .55) 40%, transparent 72%);
    mask-image: radial-gradient(circle at 50% 50%, #000 8%, rgba(0, 0, 0, .55) 40%, transparent 72%);
}

.viz-sol .v-sun {
    left: 50%;
    top: 58%;
    width: clamp(104px, 22vw, 172px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 42%, #FFF1C4 0 14%, #FFB24D 44%, #E6512B 74%, #8A1F0E 100%);
    box-shadow: 0 0 90px rgba(255, 140, 70, .40), inset 0 -12px 34px rgba(90, 20, 6, .45);
}

.viz-sol .v-horizon {
    left: 8%;
    right: 8%;
    top: 78%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 170, 110, .55) 22%, rgba(255, 220, 180, .9) 50%, rgba(255, 170, 110, .55) 78%, transparent);
}

.viz-sol .v-horizon.b {
    top: 84%;
    opacity: .38;
    height: 1px;
}

/* --- 2.7 Sol 预览：扇开的薄片 --- */
.viz-prev::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 52%;
    width: min(84%, 620px);
    aspect-ratio: 1.5;
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(124, 99, 246, .26), rgba(124, 99, 246, .09) 54%, transparent 78%);
}

.viz-prev .v-slab {
    left: 50%;
    width: min(56%, 420px);
    height: clamp(36px, 8vw, 58px);
    border-radius: 14px;
    border: 1px solid rgba(76, 62, 140, .18);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 46%);
    box-shadow:
        0 22px 40px -26px rgba(76, 62, 140, .6),
        inset 0 1px 0 rgba(255, 255, 255, .95);
}

.viz-prev .v-slab.s1 {
    top: 20%;
    transform: translateX(-50%) rotate(-6deg) scale(.9);
    background-color: #F3EFFF;
    opacity: .9;
}

.viz-prev .v-slab.s2 {
    top: 43%;
    transform: translateX(-50%) rotate(-2deg);
    background-color: #E4DCFF;
}

.viz-prev .v-slab.s3 {
    top: 66%;
    transform: translateX(-50%) rotate(3deg) scale(.96);
    background-color: #F7F4FF;
}

.viz-prev .v-arc {
    left: 12%;
    right: 12%;
    top: 88%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 99, 246, .55) 24%, rgba(124, 99, 246, .95) 50%, rgba(124, 99, 246, .55) 76%, transparent);
    box-shadow: 0 0 22px rgba(124, 99, 246, .35);
}

/* ---------- 极小幅度的呼吸感 ---------- */
@media (prefers-reduced-motion: no-preference) {

    .viz-caelum .v-disc,
    .viz-sol .v-sun {
        animation: fam-float 9s var(--ease, cubic-bezier(.2, .7, .2, 1)) infinite alternate;
    }

    .viz-caelum .v-ring.r1 {
        animation: fam-tilt 16s linear infinite;
    }

    @keyframes fam-float {
        from {
            transform: translate(-50%, -50%) translateY(-4px);
        }

        to {
            transform: translate(-50%, -50%) translateY(4px);
        }
    }

    @keyframes fam-tilt {
        from {
            transform: translate(-50%, -50%) rotate(-17deg);
        }

        to {
            transform: translate(-50%, -50%) rotate(343deg);
        }
    }
}

/* ---------- 窄屏收一点 ---------- */
@media (max-width: 640px) {
    .tile-specs {
        font-size: 12.5px;
        gap: 6px 18px;
    }

    .tile-specs li+li::before {
        display: none;
    }

    .tbtn {
        min-height: 42px;
        padding: 0 20px;
        font-size: 14.5px;
    }
}