/*!
 * NXFRP 清爽蓝主题 · 公开首页 v2
 * 设计纪律：一套卡片样式、一种图标色、光源只出现在 Hero 与 CTA，区块节奏 80/56
 */

/* ---------- 顶栏 ---------- */
.nx-nav {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(1.6) blur(10px);
    border-bottom: 1px solid var(--border);
}

.nx-nav__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 64px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nx-nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nx-nav__logo img {
    height: 32px;
    border-radius: 8px;
}

.nx-nav__logo b {
    font-size: 16.5px;
    font-weight: 600;
    color: var(--text-strong);
    letter-spacing: -.01em;
}

.nx-nav__links {
    display: none;
    align-items: center;
    gap: 2px;
    margin-left: 14px;
}

.nx-nav__links a {
    padding: 8px 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-body);
    border-radius: var(--radius-sm);
    transition: background .15s ease, color .15s ease;
}

.nx-nav__links a:hover {
    background: var(--bg-hover);
    color: var(--text-strong);
}

.nx-nav__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nx-nav__toggle {
    display: inline-flex;
}

@media (min-width: 992px) {
    .nx-nav__links { display: flex; }
    .nx-nav__toggle { display: none; }
}

.nx-mobile-menu {
    display: none;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    padding: 10px 16px 16px;
}

.nx-mobile-menu.is-open { display: block; }

.nx-mobile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: var(--radius);
    color: var(--text-body);
    font-size: 14px;
    font-weight: 500;
}

.nx-mobile-menu a:hover {
    background: var(--bg-hover);
    color: var(--text-strong);
}

/* ---------- 容器与区块节奏 ---------- */
.nx-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nx-sec {
    padding: 80px 0;
}

.nx-sec--alt {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.nx-sec__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 44px;
}

.nx-sec__title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    color: var(--text-strong);
    letter-spacing: -.02em;
    margin-bottom: 12px;
}

.nx-sec__desc {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 767.98px) {
    .nx-sec { padding: 56px 0; }
    .nx-sec__head { margin-bottom: 32px; }
}

/* ---------- Hero ---------- */
.nx-hero {
    position: relative;
    padding: 84px 0 72px;
    background: var(--bg-page);
}

.nx-hero__grid {
    display: grid;
    gap: 48px;
    align-items: center;
}

@media (min-width: 992px) {
    .nx-hero__grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
        gap: 56px;
    }
}

.nx-hero__title {
    font-size: clamp(30px, 4.4vw, 44px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.025em;
    color: var(--text-strong);
    margin-bottom: 16px;
}

.nx-hero__title em {
    font-style: normal;
    color: var(--brand);
}

.nx-hero__sub {
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 520px;
}

.nx-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.nx-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.nx-hero__stat b {
    display: block;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-strong);
    letter-spacing: -.02em;
}

.nx-hero__stat span {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* Hero 视觉：单一面板（隧道示意 + 两行状态） */
.nx-hero__panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.nx-hero__panel-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-soft);
}

.nx-hero__panel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border-strong);
}

.nx-hero__diagram {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.nx-hero__node {
    text-align: center;
    padding: 16px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-subtle);
}

.nx-hero__node .nx-icon {
    font-size: 22px;
    color: var(--brand);
    margin-bottom: 8px;
}

.nx-hero__node b {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-strong);
}

.nx-hero__node span {
    font-size: 11.5px;
    color: var(--text-muted);
    word-break: break-all;
}

.nx-hero__link {
    position: relative;
    height: 2px;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, rgba(var(--brand-rgb), .15), var(--brand), rgba(var(--brand-rgb), .15));
}

.nx-hero__link::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    animation: nx-flow 2.4s linear infinite;
}

@keyframes nx-flow {
    0% { left: 0; opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% { left: calc(100% - 8px); opacity: 0; }
}

.nx-hero__rows {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nx-hero__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    font-size: 12.5px;
}

.nx-hero__row span { color: var(--text-muted); }
.nx-hero__row b { color: var(--text-strong); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
    .nx-hero__link::after { animation: none; }
}

/* ---------- 能力网格（统一图标色） ---------- */
.nx-grid-3 {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .nx-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
    .nx-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.nx-feature {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.nx-feature:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
}

.nx-feature:hover .nx-feature__icon {
    transform: translateY(-2px);
}

.nx-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: var(--radius);
    background: var(--brand-50);
    color: var(--brand);
    font-size: 20px;
    transition: transform .18s ease;
}

.nx-feature b {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-strong);
    margin-bottom: 4px;
}

.nx-feature p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ---------- 三步上手（单卡三列） ---------- */
.nx-steps-card {
    display: grid;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

@media (min-width: 768px) {
    .nx-steps-card { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.nx-stepcell {
    padding: 28px 24px;
    border-bottom: 1px solid var(--border-soft);
}

.nx-stepcell:last-child {
    border-bottom: 0;
}

@media (min-width: 768px) {
    .nx-stepcell {
        border-bottom: 0;
        border-right: 1px solid var(--border-soft);
    }

    .nx-stepcell:last-child { border-right: 0; }
}

.nx-stepcell__no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}

.nx-stepcell b {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-strong);
    margin-bottom: 6px;
}

.nx-stepcell p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ---------- FAQ（单卡容器） ---------- */
.nx-faq-card {
    max-width: 820px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.nx-faq-card .accordion-item {
    border: 0;
    border-bottom: 1px solid var(--border-soft);
    border-radius: 0 !important;
    background: transparent;
}

.nx-faq-card .accordion-item:last-child { border-bottom: 0; }

.nx-faq-card .accordion-button {
    padding: 18px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-strong);
    background: transparent;
    box-shadow: none;
}

.nx-faq-card .accordion-button:not(.collapsed) {
    color: var(--brand);
    background: transparent;
}

.nx-faq-card .accordion-button::after {
    width: 16px;
    height: 16px;
    background-size: 16px;
}

.nx-faq-card .accordion-body {
    padding: 0 20px 18px;
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--text-muted);
}

/* ---------- 底部 CTA ---------- */
.nx-cta {
    padding: 60px 32px;
    border-radius: var(--radius-lg);
    background: #1e293b;
    color: #eaf1ff;
    text-align: center;
}

.nx-cta h2 {
    color: #fff;
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 600;
    letter-spacing: -.02em;
    margin-bottom: 10px;
}

.nx-cta p {
    color: rgba(234, 241, 255, .72);
    font-size: 14px;
    margin-bottom: 24px;
}

/* ---------- 页脚 ---------- */
.nx-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    padding: 44px 0 28px;
}

.nx-footer__grid {
    display: grid;
    gap: 28px;
}

@media (min-width: 768px) {
    .nx-footer__grid {
        grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .8fr));
    }
}

.nx-footer__brand p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 10px 0 0;
    max-width: 320px;
    line-height: 1.7;
}

.nx-footer h6 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 14px;
}

.nx-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nx-footer__links a {
    font-size: 13.5px;
    color: var(--text-body);
}

.nx-footer__links a:hover {
    color: var(--brand);
}

.nx-footer__bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--text-muted);
}

/* ---------- 返回顶部 ---------- */
.nx-backtop {
    position: fixed;
    right: 20px;
    bottom: 24px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-body);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease, border-color .2s ease;
    cursor: pointer;
    z-index: 1030;
}

.nx-backtop.is-visible {
    opacity: 1;
    visibility: visible;
}

.nx-backtop:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
}

/* ---------- 入场动画 ---------- */
.nx-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease, transform .5s ease;
}

.nx-reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .nx-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}