/* GM 建站介绍页 — 对齐 NAB 深色金质风格 */
.nab-gm-page {
    max-width: 100%;
}

.nab-gm {
    --gm-bg: #0e1219;
    --gm-panel: #161b26;
    --gm-line: rgba(232, 201, 106, 0.18);
    --gm-text: rgba(235, 228, 210, 0.88);
    --gm-muted: rgba(180, 168, 140, 0.72);
    color: var(--gm-text);
}

.nab-gm-hero {
    position: relative;
    z-index: 5;
    isolation: isolate;
    margin: 0 0 28px;
    border-radius: 14px;
    overflow: visible;
    border: 1px solid rgba(232, 201, 106, 0.22);
    background: #0a0d13;
    min-height: 400px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.nab-gm-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 14px;
    overflow: hidden;
}

.nab-gm-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    transform: scale(1.04);
    filter: saturate(1.05) contrast(1.04);
}

.nab-gm-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 14px;
    overflow: hidden;
    background:
        linear-gradient(
            100deg,
            rgba(8, 10, 14, 0.96) 0%,
            rgba(8, 10, 14, 0.9) 34%,
            rgba(8, 10, 14, 0.45) 58%,
            rgba(8, 10, 14, 0.22) 100%
        ),
        radial-gradient(ellipse 55% 70% at 85% 40%, rgba(193, 149, 73, 0.16), transparent 60%);
    pointer-events: none;
}

.nab-gm-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1.15fr);
    align-items: center;
    gap: 28px;
    padding: 40px 36px;
    min-height: 400px;
}

.nab-gm-hero-copy {
    max-width: 460px;
    animation: nab-gm-hero-in 0.65s ease both;
}

.nab-gm-hero-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    min-height: 320px;
    height: 100%;
    max-height: 380px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(8, 10, 14, 0.42);
    border: 1px solid rgba(232, 201, 106, 0.28);
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    animation: nab-gm-hero-in 0.75s ease 0.08s both;
}

.nab-gm-hero-stage figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(232, 201, 106, 0.18);
    background: #121722;
    min-height: 0;
}

.nab-gm-hero-stage figure::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 65%, rgba(8, 10, 14, 0.28));
    pointer-events: none;
}

.nab-gm-hero-stage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

@keyframes nab-gm-hero-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.nab-gm-brand {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: none;
    background: var(--nab-gold-gradient, linear-gradient(180deg, #f7e5a3, #c19549));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nab-gm-title {
    margin: 0 0 14px;
    font-size: clamp(26px, 3.8vw, 40px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: #fff8e8;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.nab-gm-lead {
    margin: 0 0 24px;
    max-width: 28em;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(210, 198, 170, 0.82);
}

.nab-gm-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nab-gm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nab-gm-btn:hover {
    text-decoration: none !important;
    transform: translateY(-1px);
}

.nab-gm-btn-primary {
    color: #1a1408 !important;
    background: var(--nab-gold-gradient, linear-gradient(180deg, #f7e5a3 0%, #e8c96a 42%, #c19549 100%));
    border: none;
    box-shadow: 0 8px 24px rgba(193, 149, 73, 0.28);
}

.nab-gm-btn-primary:hover {
    color: #120e06 !important;
    box-shadow: 0 10px 28px rgba(193, 149, 73, 0.4);
}

.nab-gm-btn-ghost {
    color: var(--nab-gold-mid, #e8c96a) !important;
    background: rgba(8, 10, 14, 0.45);
    border: 1px solid rgba(232, 201, 106, 0.5);
    backdrop-filter: blur(4px);
}

.nab-gm-btn-ghost:hover {
    border-color: var(--nab-gold-mid, #e8c96a);
    background: rgba(232, 201, 106, 0.08);
}

.nab-gm-consult {
    position: relative;
    display: inline-flex;
    z-index: 40;
}

.nab-gm-consult .nab-gm-btn {
    cursor: pointer;
    border: none;
    font: inherit;
}

.nab-gm-wx-pop {
    position: absolute;
    left: 0;
    bottom: calc(100% + 12px);
    top: auto;
    z-index: 50;
    width: 188px;
    padding: 14px 14px 12px;
    border-radius: 10px;
    background: #161b26;
    border: 1px solid rgba(232, 201, 106, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.nab-gm-wx-pop::after {
    content: '';
    position: absolute;
    left: 28px;
    top: auto;
    bottom: -6px;
    width: 10px;
    height: 10px;
    background: #161b26;
    border-right: 1px solid rgba(232, 201, 106, 0.35);
    border-bottom: 1px solid rgba(232, 201, 106, 0.35);
    border-left: none;
    border-top: none;
    transform: rotate(45deg);
}

.nab-gm-wx-pop img {
    display: block;
    width: 160px;
    height: 160px;
    margin: 0 auto 10px;
    border-radius: 6px;
    background: #fff;
    object-fit: contain;
}

.nab-gm-wx-pop p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(232, 201, 106, 0.9);
}

.nab-gm-consult:hover .nab-gm-wx-pop,
.nab-gm-consult:focus-within .nab-gm-wx-pop,
.nab-gm-consult.is-open .nab-gm-wx-pop {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

.nab-gm-section {
    position: relative;
    z-index: 1;
    margin: 0 0 28px;
    padding: 36px 32px 40px;
    background: var(--gm-panel);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.nab-gm-head {
    margin: 0 0 28px;
    max-width: 36em;
}

.nab-gm-head h2 {
    margin: 0 0 10px;
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 700;
    color: #fff6e0;
    letter-spacing: 0.02em;
}

.nab-gm-head p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--gm-muted);
}

.nab-gm-pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.nab-gm-pain-item {
    position: relative;
    padding: 22px 20px 24px;
    border-radius: 10px;
    background: rgba(14, 18, 25, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.nab-gm-pain-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--nab-gold-bright, #f7e5a3), transparent 75%);
}

.nab-gm-num {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--nab-gold-mid, #e8c96a);
}

.nab-gm-pain-item h3,
.nab-gm-offer-item h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 650;
    color: #fff4d8;
}

.nab-gm-pain-item p,
.nab-gm-offer-item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--gm-muted);
}

.nab-gm-offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.nab-gm-offer-item {
    padding: 22px 20px;
    border-radius: 10px;
    background: linear-gradient(165deg, rgba(232, 201, 106, 0.07), rgba(14, 18, 25, 0.4));
    border: 1px solid var(--gm-line);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.nab-gm-offer-item:hover {
    border-color: rgba(232, 201, 106, 0.4);
    transform: translateY(-2px);
}

.nab-gm-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    counter-reset: gmstep;
}

.nab-gm-steps li {
    position: relative;
    margin: 0;
    padding: 24px 18px 22px;
    border-radius: 10px;
    background: rgba(14, 18, 25, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
    counter-increment: gmstep;
}

.nab-gm-steps li::before {
    content: counter(gmstep, decimal-leading-zero);
    display: block;
    margin-bottom: 14px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    background: var(--nab-gold-gradient, linear-gradient(180deg, #f7e5a3, #c19549));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nab-gm-steps strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: #fff4d8;
}

.nab-gm-steps span {
    display: block;
    font-size: 13px;
    line-height: 1.65;
    color: var(--gm-muted);
}

.nab-gm-fit-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.nab-gm-fit-list li {
    position: relative;
    margin: 0;
    padding: 16px 18px 16px 44px;
    border-radius: 8px;
    background: rgba(14, 18, 25, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 14px;
    line-height: 1.55;
    color: var(--gm-text);
}

.nab-gm-fit-list li::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: var(--nab-gold-mid, #e8c96a);
    box-shadow: 0 0 0 3px rgba(232, 201, 106, 0.18);
}

.nab-gm-contact {
    padding: 0;
    background: transparent;
    border: none;
}

.nab-gm-contact-panel {
    position: relative;
    overflow: hidden;
    padding: 48px 40px;
    border-radius: 12px;
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, rgba(193, 149, 73, 0.2), transparent 55%),
        linear-gradient(145deg, #1a1520 0%, #121722 45%, #0e1219 100%);
    border: 1px solid rgba(232, 201, 106, 0.22);
}

.nab-gm-contact-panel h2 {
    margin: 0 0 14px;
    max-width: 16em;
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 700;
    line-height: 1.35;
    color: #fff6e0;
}

.nab-gm-contact-panel .nab-gm-lead {
    margin-bottom: 26px;
}

.nab-gm-contact-tip {
    margin: 18px 0 0;
    font-size: 13px;
    color: var(--gm-muted);
}

/* 入场动效 */
[data-gm-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-gm-reveal].is-in {
    opacity: 1;
    transform: none;
}

@media (max-width: 1100px) {
    .nab-gm-pain-grid,
    .nab-gm-offer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nab-gm-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .nab-gm-hero-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 28px 22px 24px;
        min-height: 0;
    }

    .nab-gm-hero-stage {
        max-height: none;
        min-height: 260px;
        order: -1;
    }

    .nab-gm-hero-shade {
        background:
            linear-gradient(
                180deg,
                rgba(8, 10, 14, 0.55) 0%,
                rgba(8, 10, 14, 0.82) 42%,
                rgba(8, 10, 14, 0.95) 100%
            ),
            radial-gradient(ellipse 70% 50% at 50% 0%, rgba(193, 149, 73, 0.14), transparent 60%);
    }
}

@media (max-width: 768px) {
    .nab-gm-hero {
        margin-bottom: 16px;
        min-height: 0;
    }

    .nab-gm-hero-content {
        padding: 20px 14px 18px;
        gap: 14px;
    }

    .nab-gm-hero-stage {
        min-height: 200px;
    }

    .nab-gm-section {
        margin-bottom: 16px;
        padding: 26px 18px 28px;
    }

    .nab-gm-pain-grid,
    .nab-gm-offer-grid,
    .nab-gm-steps {
        grid-template-columns: 1fr;
    }

    .nab-gm-contact-panel {
        padding: 32px 20px;
    }

    .nab-gm-btn,
    .nab-gm-consult {
        width: 100%;
    }

    .nab-gm-consult .nab-gm-btn {
        width: 100%;
    }
}
