/* ============================================================
   Number detail page (SSR /number/{id}) — SC Airy (规格 035)
   Uses styles.css tokens; number cards share .number-box from styles.css
   ============================================================ */

.container,
.buy-page-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.buy-page-container h2 {
    color: var(--text-primary);
    margin-top: 0;
}

.buy-page-container p {
    margin-bottom: 1rem;
}

/* ---------------- Hero: number plate + contact console ---------------- */

.hero {
    position: relative;
    isolation: isolate;
    margin: 32px 0 40px;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    background: #fff;
    box-shadow: var(--shadow-glow);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding: clamp(1.5rem, 4vw, 2.75rem);
}

.hero-visual {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 号码页主题标题:路由 8 位号码,不包号码卡。压过 h1 的 UA 2em 外边距。 */
.nm-number-title {
    width: 100%;
    max-width: 380px;
    margin: 0 0 0.65rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    color: var(--text-primary);
}

.nm-hud-row {
    width: 100%;
    max-width: 380px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nm-hud-tag {
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(4, 115, 234, 0.25);
    background: var(--sc-blue-50);
    color: var(--sc-blue-ink);
}

.nm-hud-state {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
}

.nm-hud-state::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.nm-hud-state.is-available {
    color: var(--sc-green-ink);
    border: 1px solid rgba(31, 138, 0, 0.35);
    background: var(--sc-green-50);
}

.nm-hud-state.is-available::before {
    animation: nmPulse 1.6s ease-in-out infinite;
}

.nm-hud-state.is-sold {
    color: var(--red-ink);
    border: 1px solid rgba(220, 38, 38, 0.35);
    background: var(--red-50);
}

/* The number plate */
.hero-image {
    position: relative;
    width: 100%;
    max-width: 380px;
    padding: 1.1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--num-plate-bg);
    border: 1px solid var(--num-plate-border);
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.hero-image svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 1px 0 rgba(120, 80, 0, 0.18));
}

.hero-text {
    min-width: 0;
}

.hero-visual .price-label {
    margin: 1.2rem 0 0.1rem;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Title Styles */
.title {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.title span {
    background: var(--gold-ink-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.category-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.price {
    margin: 0.2rem 0 0.4rem;
    font-family: var(--font-mono);
    font-size: clamp(2rem, 3.6vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-align: center;
    color: var(--text-primary);
}

/* 已售出状态: 引导用户回到在售号码列表 */
.browse-more-link {
    display: block;
    text-align: center;
    margin-bottom: 20px;
    color: var(--sc-blue-ink);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.browse-more-link:hover {
    color: var(--sc-blue);
}

/* ---------------- Similar numbers ---------------- */

#similar-numbers {
    margin-top: 8px;
}

.features {
    margin-top: 1.25rem;
}

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

/* ---------------- Steps timeline ---------------- */

.steps-container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
}

/* 5 步(3P 号码 / 车牌担保流程)桌面端单行;步骤数由渲染方写入 steps-N。
   4 步的自营号码页不受影响。窄屏覆盖见下方 media query。 */
.steps-container.steps-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.8rem;
}

.steps-container.steps-5 .step-card {
    padding: 1.2rem 0.8rem 1.1rem;
}

.steps-container::before {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    top: 2.15rem;
    height: 2px;
    background: var(--sc-green);
    opacity: 0.5;
    pointer-events: none;
}

.step-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.4rem 1.2rem 1.3rem;
    box-shadow: var(--shadow-glow);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--sc-green);
    box-shadow: var(--shadow-neon);
}

.step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.9rem;
}

.step-number {
    position: relative;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--sc-blue-ink);
    background: var(--sc-blue-50);
    border: 1px solid rgba(4, 115, 234, 0.3);
    flex-shrink: 0;
}

.step-text {
    flex-grow: 1;
}

.step-title {
    margin: 0 0 0.45rem;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text-primary);
}

.step-text .step-description {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.6;
}

/* ---------------- Contact console ---------------- */

.main-title {
    margin: 0;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
    letter-spacing: -0.03em;
}

.subtitle {
    color: var(--text-secondary);
}

.decorative-line {
    width: 96px;
    height: 1px;
    margin: 0.85rem auto;
    background: var(--sc-green);
    opacity: 0.4;
}

.social-container {
    padding: 1rem 0.5rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.social-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.4rem;
    border-radius: var(--btn-radius);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.98rem;
    position: relative;
    overflow: hidden;
    background: var(--btn-2-bg);
    color: var(--btn-2-text);
    border: 1px solid var(--btn-2-border);
    box-shadow: var(--btn-2-shadow);
    transition: transform var(--btn-ease), box-shadow var(--btn-ease), border-color var(--btn-ease), background-color var(--btn-ease);
}

.social-btn:hover {
    transform: var(--btn-lift);
    border-color: var(--btn-2-border-hover);
    box-shadow: var(--btn-2-shadow-hover);
}

.social-btn:active {
    transform: var(--btn-press);
    box-shadow: none;
}

/* Messaging channels: secondary buttons, hover border + rail in brand colour */
.whatsapp-btn:hover {
    border-color: #25d366;
    box-shadow: inset 0 -2px 0 #25d366;
}

.wechat-btn:hover {
    border-color: #07c160;
    box-shadow: inset 0 -2px 0 #07c160;
}

.cuniq-btn {
    position: relative;
    width: 262px;
    padding-left: 8px;
    padding-right: 8px;
}

.social-btn img {
    width: 22px;
    height: 22px;
    margin-right: 8px;
}

.social-btn span {
    font-weight: 600;
}

/* Additional Info Section */
.additional-info {
    position: relative;
    background: #fff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    margin-top: 40px;
    box-shadow: var(--shadow-glow);
}

.info-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-align: center;
}

.info-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Platform Links */
.platform-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.platform-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.platform-link:hover {
    transform: translateY(-5px);
    border-color: var(--sc-green);
    box-shadow: var(--shadow-neon);
}

.platform-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    object-fit: contain;
}

.platform-name {
    font-weight: 600;
    font-size: 18px;
    text-align: center;
}

/* Media Queries */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .steps-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps-container.steps-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps-container::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .buy-page-container {
        padding: 1.25rem 1rem;
    }

    .hero {
        margin-top: 16px;
    }

    .category-description {
        font-size: 16px;
    }

    .info-title {
        font-size: 20px;
    }

    .info-text {
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .steps-container.steps-5 {
        grid-template-columns: 1fr;
    }

    .step-content {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .platform-links {
        grid-template-columns: 1fr;
    }

    .social-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .social-btn {
        justify-content: center;
    }

    .cuniq-btn {
        width: 100%;
    }
}

/* —— 加购按钮(规格 035: 绿色主 CTA;034 §10.2 order:-1 保留) —— */
.gn-add-cart-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin: 1rem 0 0.5rem;
    padding: 0.9rem 2.4rem;
    border: none;
    border-radius: var(--btn-radius);
    background: var(--cta-bg);
    color: var(--cta-text);
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: var(--cta-shadow);
    transition: transform var(--btn-ease), box-shadow var(--btn-ease), background-color var(--btn-ease);
}

.gn-add-cart-btn:hover:not(:disabled) {
    transform: var(--btn-lift);
    background: var(--cta-bg-hover);
}

.gn-add-cart-btn:active:not(:disabled) {
    transform: var(--btn-press);
    box-shadow: var(--cta-shadow-active);
}

.gn-add-cart-btn:disabled {
    cursor: default;
    opacity: 0.85;
}

.gn-add-cart-btn svg {
    width: 1.15em;
    height: 1.15em;
    flex: none;
}

/* 已加入: 成功态 */
.gn-add-cart-btn.is-added {
    background: var(--sc-green-50);
    color: var(--sc-green-ink);
    border: 1px solid rgba(31, 138, 0, 0.35);
    box-shadow: none;
}

/* 不可售/失败: 灰化 */
.gn-add-cart-btn.is-disabled {
    background: var(--btn-disabled-bg);
    color: var(--btn-disabled-text);
    box-shadow: none;
}

/* 位于 social-buttons 容器内时: 提示在上, 按钮在下, 独占一行居中 */
.gn-add-cart-row {
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    order: -1;
    margin: 0 0 0.35rem;
}

.gn-receive-note {
    color: var(--text-secondary);
}

.gn-add-cart-row .gn-receive-note {
    width: 100%;
    margin: 0 0 12px;
}

@media (min-width: 561px) {
    #similar-numbers .number-container {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 228px), 264px));
        justify-content: center;
    }
}

.other-website {
    text-align: center;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.gn-add-cart-row .gn-add-cart-btn {
    margin: 0;
    min-width: min(100%, 280px);
}

/* —— 规格 037: 号码页交互 —— */

.nm-digits {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.3rem;
    width: 100%;
    max-width: 380px;
    margin: 0.9rem 0 0.15rem;
}

.nm-digit {
    width: 100%;
    min-width: 0;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: #fff;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.nm-digit:hover,
.nm-digit:focus-visible,
.nm-digit.is-hot {
    transform: translateY(-2px);
    border-color: var(--sc-blue);
    background: var(--sc-blue-50);
    color: var(--sc-blue-ink);
    outline: none;
}

.nm-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    max-width: 420px;
    margin: 0.35rem 0 0.2rem;
}

.nm-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.55rem 0.28rem 0.35rem;
    border-radius: var(--btn-radius-sm);
    border: 1px solid var(--glass-border);
    background: var(--btn-2-bg);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
}

/* 链接 chip 内的号码片段: 内嵌在 4px 按钮里, 同心收为 2px */
.nm-chip code {
    padding: 0.08rem 0.35rem;
    border-radius: 2px;
    background: var(--sc-blue-50);
    color: var(--sc-blue-ink);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.nm-chip:hover,
.nm-chip:focus-visible {
    border-color: var(--btn-2-border-hover);
    color: var(--text-primary);
}

.nm-blurb {
    max-width: 380px;
    margin: 0.35rem auto 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}

.nm-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    max-width: 420px;
    margin-top: 0.85rem;
}

.nm-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--btn-radius);
    border: 1px solid var(--btn-2-border);
    background: var(--btn-2-bg);
    color: var(--btn-info-text);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--btn-2-shadow);
}

.nm-tool:hover,
.nm-tool:focus-visible {
    border-color: var(--sc-blue);
    background: var(--btn-info-bg);
    box-shadow: var(--btn-2-shadow-hover);
}

.nm-tool-status {
    min-height: 1.25rem;
    margin: 0.35rem 0 0;
    text-align: center;
    color: var(--sc-green-ink);
    font-size: 0.82rem;
    font-weight: 600;
}

.nm-faq {
    margin-top: 1.5rem;
}

.nm-faq-item {
    position: relative;
    max-width: 720px;
    margin: 0 auto 0.55rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: #fff;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

/* 展开时左侧蓝绿竖条从上往下长出 */
.nm-faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--sc-green);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

.nm-faq-item:hover {
    border-color: var(--sc-blue-100);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -18px rgba(11, 31, 58, 0.35);
}

.nm-faq-item[open] {
    border-color: var(--sc-blue-100);
    box-shadow: var(--shadow-glow);
}

.nm-faq-item[open]:not(.is-closing)::before {
    transform: scaleY(1);
}

.nm-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 44px;
    box-sizing: border-box;
    padding: 0.7rem 0.85rem 0.7rem 1rem;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 650;
    color: var(--text-primary);
    list-style: none;
    transition: color 0.2s ease;
}

.nm-faq-item summary::-webkit-details-marker {
    display: none;
}

.nm-faq-item summary:hover,
.nm-faq-item summary:focus-visible {
    color: var(--sc-blue-ink);
}

.nm-faq-item summary:focus-visible {
    outline: 2px solid var(--sc-blue);
    outline-offset: -2px;
    border-radius: var(--radius-sm);
}

/* 圆形 + 图标, 展开时转 45° 成 × */
.nm-faq-item summary::after {
    content: '+';
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    border: 1px solid var(--sc-blue-100);
    background: var(--sc-blue-50);
    color: var(--sc-blue-ink);
    font-family: var(--font-mono);
    font-size: 1.05rem;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.nm-faq-item summary:hover::after {
    transform: scale(1.08);
}

.nm-faq-item[open]:not(.is-closing) summary::after {
    transform: rotate(45deg);
    background: var(--sc-blue);
    border-color: var(--sc-blue);
    color: #fff;
}

.nm-faq-item p {
    margin: 0;
    padding: 0 1rem 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.nm-step-ask {
    display: inline-block;
    margin-top: 0.55rem;
    color: var(--sc-blue-ink);
    font-size: 0.82rem;
    font-weight: 650;
    text-decoration: none;
}

.nm-step-ask:hover,
.nm-step-ask:focus-visible {
    text-decoration: underline;
}

/* —— How to Buy 交互(JS 加 .nm-steps-live 后生效; 无 JS 保持静态四步 + 链接常显) —— */

/* 区块标题单行: page-number.js fitStepsTitle 加 .nm-fit 并按可用宽度收字号;
   无 JS / 极窄屏退回正常折行时两行尽量均衡。只作用于 .additional-info, 不动共享 .title */
.additional-info .title {
    text-wrap: balance;
}

.additional-info .title.nm-fit {
    white-space: nowrap;
}

.nm-steps-hint {
    margin: -0.6rem 0 1.1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 连线压在卡片底色之上、序号之下, 贯穿四步; 端点由 JS 量出(--nm-x/y/w/h) */
.steps-container.nm-steps-live::before,
.steps-container.nm-steps-live::after {
    content: '';
    position: absolute;
    z-index: 1;
    left: var(--nm-x, 12.5%);
    right: auto;
    top: calc(var(--nm-y, 2.7rem) - 1px);
    width: var(--nm-w, 75%);
    height: 2px;
    pointer-events: none;
}

.steps-container.nm-steps-live::before {
    background: var(--glass-border);
    opacity: 1;
}

.steps-container.nm-steps-live::after {
    background: var(--sc-green);
    transform: scaleX(var(--nm-progress, 1));
    transform-origin: left center;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nm-steps-live .step-card {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* 卡片上浮会建新层叠上下文, 让连线盖住序号; 交互模式改为描边/阴影反馈 */
.nm-steps-live .step-card:hover {
    transform: none;
}

/* 键盘聚焦卡片(tabindex 由 JS 加)的可见焦点 */
.nm-steps-live .step-card:focus-visible {
    outline: 2px solid var(--sc-blue);
    outline-offset: 3px;
}

.nm-steps-live .step-card:hover .step-number,
.nm-steps-live .step-card.is-lit:hover .step-number {
    transform: scale(1.12);
}

.nm-steps-live .step-number {
    z-index: 2;
}

.nm-steps-live .step-card.is-active {
    border-color: var(--sc-blue);
    box-shadow: 0 0 0 3px rgba(4, 115, 234, 0.12), 0 18px 40px -22px rgba(11, 31, 58, 0.3);
}

.nm-steps-live .step-number {
    background: #fff;
    border: 2px solid var(--sc-blue-100);
    color: var(--sc-blue-ink);
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3), background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* 外圈光环: 只动 opacity/transform */
.nm-steps-live .step-number::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(4, 115, 234, 0.35);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.nm-steps-live .step-card.is-lit .step-number {
    background: var(--sc-blue);
    border-color: var(--sc-blue);
    color: #fff;
    transform: scale(1.06);
}

.nm-steps-live .step-card.is-active .step-number::after {
    opacity: 1;
    transform: scale(1);
    animation: nm-ring 2.4s ease-in-out 0.3s infinite;
}

@keyframes nm-ring {
    50% {
        opacity: 0.35;
        transform: scale(1.12);
    }
}

.nm-steps-live .step-title {
    transition: color 0.25s ease;
}

.nm-steps-live .step-card.is-active .step-title {
    color: var(--sc-blue-ink);
}

.nm-steps-live .nm-step-ask {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-height: 0;
    min-height: 0;
    margin-top: 0;
    padding: 0 0.85rem;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    border-radius: var(--btn-radius);
    background: var(--btn-info-bg);
    transition: max-height 0.3s ease, margin-top 0.3s ease, opacity 0.25s ease, transform 0.3s ease;
}

.nm-steps-live .nm-step-ask::after {
    content: '→';
    transition: transform 0.2s ease;
}

.nm-steps-live .step-card.is-active .nm-step-ask,
.nm-steps-live .nm-step-ask:focus-visible {
    max-height: 3rem;
    min-height: 44px;
    margin-top: 0.7rem;
    opacity: 1;
    transform: none;
}

.nm-steps-live .nm-step-ask:hover,
.nm-steps-live .nm-step-ask:focus-visible {
    text-decoration: none;
    background: var(--sc-blue-100);
}

.nm-steps-live .nm-step-ask:hover::after {
    transform: translateX(3px);
}

/* —— 滚动 stagger 入场(JS 只给支持 IntersectionObserver 且未减弱动效的环境加 .nm-reveal) —— */

.nm-reveal:not(.is-in) {
    opacity: 0;
    translate: 0 14px;
}

.nm-reveal.is-in {
    transition-property: opacity, translate, transform, border-color, box-shadow;
    transition-duration: 0.5s, 0.5s, 0.3s, 0.25s, 0.25s;
    transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--nm-delay, 0ms), var(--nm-delay, 0ms), 0s, 0s, 0s;
}

#similar-numbers .number-box.nm-reveal {
    animation: none;
}

/* —— 小反馈: 数字/规律/工具按钮的按下回弹, 复制成功的轻提示 —— */

.nm-digit:active {
    transform: scale(0.94);
}

.nm-chip {
    transition: transform var(--btn-ease), border-color var(--btn-ease), color var(--btn-ease), box-shadow var(--btn-ease);
}

.nm-chip:hover,
.nm-chip:focus-visible {
    transform: var(--btn-lift);
    box-shadow: var(--btn-2-shadow-hover);
}

.nm-chip:active {
    transform: var(--btn-press);
    box-shadow: none;
}

.nm-tool {
    transition: transform var(--btn-ease), border-color var(--btn-ease), background-color var(--btn-ease), color var(--btn-ease), box-shadow var(--btn-ease);
}

.nm-tool:hover,
.nm-tool:focus-visible {
    transform: var(--btn-lift);
}

.nm-tool:active {
    transform: var(--btn-press);
    box-shadow: none;
}

.nm-tool.is-done {
    border-color: var(--sc-green);
    color: var(--sc-green-ink);
    animation: nm-pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}

@keyframes nm-pop {
    40% {
        transform: scale(1.07);
    }
}

.nm-tool-status:not(:empty) {
    animation: nm-fade-up 0.3s ease-out;
}

@keyframes nm-fade-up {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
}

.nm-dock {
    display: none;
}

@media (max-width: 768px) {
    .buy-page-container {
        padding-bottom: 6.25rem;
    }

    .nm-dock {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        align-items: center;
        gap: 0.45rem;
        box-sizing: border-box;
        max-width: 100%;
        padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid var(--glass-border);
        box-shadow: 0 -8px 24px rgba(15, 35, 64, 0.08);
    }

    .nm-dock-price {
        margin-right: auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-family: var(--font-mono);
        font-size: 1rem;
        color: var(--text-primary);
    }

    .nm-dock-wa,
    .nm-dock-go,
    .nm-dock-cart {
        flex: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 2.5rem;
        padding: 0.35rem 0.75rem;
        border-radius: var(--btn-radius);
        font-family: var(--font-display);
        font-size: 0.86rem;
        font-weight: 700;
        text-decoration: none;
        cursor: pointer;
    }

    .nm-dock-wa,
    .nm-dock-go {
        border: 1px solid var(--btn-2-border);
        background: var(--btn-2-bg);
        color: var(--btn-2-text);
        box-shadow: var(--btn-2-shadow);
    }

    .nm-dock-cart {
        border: none;
        background: var(--cta-bg);
        color: var(--cta-text);
        box-shadow: var(--cta-shadow);
    }

    /* 加购终态与页内 .gn-add-cart-btn 同款成功绿/灰化(令牌复用);
       到达终态后关闭"呼吸"光晕 */
    .nm-dock-cart.is-added {
        border: 1px solid rgba(31, 138, 0, 0.35);
        background: var(--sc-green-50);
        color: var(--sc-green-ink);
        box-shadow: none;
    }

    .nm-dock-cart.is-added svg {
        width: 1.05em;
        height: 1.05em;
        flex: none;
    }

    .nm-dock-cart.is-disabled {
        border: none;
        background: var(--btn-disabled-bg);
        color: var(--btn-disabled-text);
        box-shadow: none;
        cursor: default;
    }

    .nm-dock-cart:disabled {
        cursor: default;
    }

    .nm-dock-cart.is-added::after,
    .nm-dock-cart.is-disabled::after {
        animation: none;
    }

    /* dock 进场上滑 + 主按钮轻微"呼吸"光晕(只动 opacity/transform) */
    .nm-dock {
        animation: nm-dock-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s backwards;
    }

    .nm-dock-cart,
    .nm-dock-go {
        position: relative;
        transition: transform 0.15s ease;
    }

    .nm-dock-cart::after {
        content: '';
        position: absolute;
        inset: -3px;
        border-radius: inherit;
        box-shadow: 0 0 0 3px rgba(4, 115, 234, 0.22), 0 6px 18px -6px rgba(4, 89, 191, 0.55);
        opacity: 0;
        animation: nm-breathe 3.6s ease-in-out 1.2s infinite;
        pointer-events: none;
    }

    .nm-dock-wa:active,
    .nm-dock-go:active,
    .nm-dock-cart:active {
        transform: var(--btn-press);
    }
}

@keyframes nm-dock-in {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
}

@keyframes nm-breathe {
    50% {
        opacity: 1;
    }
}

/* 两列步骤时不画连线; 单列时改竖线, 穿过左侧序号 */
@media (max-width: 900px) {
    .steps-container.nm-steps-live::after {
        display: none;
    }
}

@media (max-width: 640px) {
    .steps-container.nm-steps-live::before,
    .steps-container.nm-steps-live::after {
        display: block;
        left: calc(var(--nm-x, 2.5rem) - 1px);
        top: var(--nm-y, 2.7rem);
        width: 2px;
        height: var(--nm-h, calc(100% - 6rem));
    }

    .steps-container.nm-steps-live::after {
        background: var(--sc-green);
        transform: scaleY(var(--nm-progress, 1));
        transform-origin: center top;
    }
}

@media print {
    .nm-reveal:not(.is-in) {
        opacity: 1;
        translate: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    /* 覆盖基础 .step-card(含无 JS 模式)与本页新增的全部过渡;
       基础规则同特异性、reduce 块靠后, 靠级联顺序取胜 */
    .step-card,
    .nm-faq-item,
    .nm-faq-item::before,
    .nm-faq-item summary,
    .nm-faq-item summary::after,
    .nm-steps-live .step-title,
    .nm-steps-live .step-number,
    .nm-steps-live .step-number::after,
    .nm-steps-live .nm-step-ask,
    .nm-steps-live .nm-step-ask::after,
    .steps-container.nm-steps-live::after,
    .nm-reveal.is-in,
    .nm-chip,
    .nm-tool,
    .nm-digit,
    .nm-dock-cart,
    .nm-dock-go {
        transition: none;
    }

    .nm-dock,
    .nm-dock-cart::after,
    .nm-tool.is-done,
    .nm-tool-status:not(:empty),
    .nm-steps-live .step-card.is-active .step-number::after {
        animation: none;
    }

    /* hover/按压缩放全部关闭; 带 :hover 的两条必须逐字列出,
       与原规则同特异性靠文件顺序压过序号缩放 */
    .step-card:hover,
    .nm-faq-item:hover,
    .nm-faq-item summary:hover::after,
    .nm-chip:hover,
    .nm-chip:focus-visible,
    .nm-tool:hover,
    .nm-tool:focus-visible,
    .nm-chip:active,
    .nm-tool:active,
    .nm-digit:active,
    .nm-dock-wa:active,
    .nm-dock-go:active,
    .nm-dock-cart:active,
    .nm-steps-live .step-card.is-lit .step-number,
    .nm-steps-live .step-card:hover .step-number,
    .nm-steps-live .step-card.is-lit:hover .step-number {
        transform: none;
    }

    /* 偏好在页面打开后才切到 reduce 时, 未入场的 reveal 直接显示(同 print) */
    .nm-reveal:not(.is-in) {
        opacity: 1;
        translate: none;
    }
}

/* —— 404 / 未上架号码页(numberPageService.renderNotFoundPage, 2026-10-25) —— */
.nm-hud-state.is-missing {
    color: var(--text-secondary);
    border: 1px solid var(--glass-border-strong);
    background: var(--bg-panel);
}

.nm-missing-wrap {
    max-width: 680px;
    margin: 48px auto 72px;
    padding: 0 20px;
}

.nm-missing {
    text-align: center;
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 40px 32px 36px;
    box-shadow: var(--shadow-glow);
}

.nm-missing-hud {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nm-missing-number {
    margin: 22px 0 6px;
    font-family: var(--font-mono);
    font-size: clamp(2.4rem, 9vw, 3.6rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.1;
    color: var(--text-placeholder);
    font-variant-numeric: tabular-nums;
}

.nm-missing h1 {
    margin: 8px 0 10px;
    font-size: clamp(1.3rem, 4.2vw, 1.7rem);
    line-height: 1.3;
    color: var(--text-primary);
}

.nm-missing-lead {
    max-width: 30rem;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
}

.nm-missing-label {
    margin: 26px 0 10px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.nm-missing .nm-chips {
    justify-content: center;
}

.nm-missing-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.nm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: var(--btn-radius);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background var(--btn-ease), border-color var(--btn-ease), color var(--btn-ease), transform var(--btn-ease), box-shadow var(--btn-ease);
}

.nm-btn:hover {
    text-decoration: none;
    transform: var(--btn-lift);
}

.nm-btn:active {
    transform: var(--btn-press);
}

.nm-btn-primary {
    background: var(--cta-bg);
    color: var(--cta-text);
    box-shadow: var(--cta-shadow);
}

.nm-btn-primary:hover {
    background: var(--cta-bg-hover);
    color: var(--cta-text);
}

.nm-btn-primary:active {
    box-shadow: var(--cta-shadow-active);
}

.nm-btn-secondary {
    background: var(--btn-2-bg);
    color: var(--btn-2-text);
    border: 1px solid var(--btn-2-border);
    box-shadow: var(--btn-2-shadow);
}

.nm-btn-secondary:hover {
    border-color: var(--btn-2-border-hover);
    color: var(--sc-blue-ink);
    box-shadow: var(--btn-2-shadow-hover);
}

.nm-missing-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--sc-blue-ink);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
}

@media (max-width: 520px) {
    .nm-missing-wrap { margin-top: 24px; padding: 0 16px; }
    .nm-missing { padding: 28px 18px; }
    .nm-missing-actions { flex-direction: column; }
    .nm-btn { width: 100%; }
}

/* ============================================================
   specs/071 体验打磨(2026-11-12): 只调间距/层次, 不动配色与版式结构
   ============================================================ */

/* 桌面端购买区: 右栏原是一片白底上的悬空文字, 加浅底描边成"购买卡", 与左侧号码牌呼应 */
@media (min-width: 901px) {
    .hero-text .social-container {
        padding: 2rem 1.75rem;
        border-radius: var(--radius);
        border: 1px solid var(--glass-border);
        background: linear-gradient(180deg, var(--sc-blue-50) 0%, #fff 55%);
    }
}

/* 分区之间留出呼吸感: 相似号码 → 常见问题 → 流程步骤 */
#similar-numbers {
    margin-bottom: 2.5rem;
}

.nm-faq {
    margin-top: 2.25rem;
    margin-bottom: 2.25rem;
}

/* "返回市场"链接不再紧贴上一段介绍文字 */
.hero-visual .browse-more-link {
    margin-top: 1.1rem;
    margin-bottom: 0;
}
