/**
 * 「国家 × 支付方式」落地页（/buy/{slug}.html）
 * 单列阅读版式：结论 → 交易所对比 → 分步 → 表格 → FAQ。
 */
.buy-page {
    max-width: 860px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #1a1a2e;
    font-size: 15px;
    line-height: 1.75;
}

.buy-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: #8a90a2;
}
.buy-crumbs a {
    color: #6b7280;
    text-decoration: none;
}
.buy-crumbs a:hover {
    color: #4f46e5;
}

.buy-hero {
    background: #fff;
    border: 1px solid #eef0f7;
    border-radius: 18px;
    padding: 28px 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}

.buy-kicker {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #7c5cff;
    font-weight: 600;
}

.buy-hero h1 {
    margin: 0 0 14px;
    font-size: 30px;
    line-height: 1.3;
    font-weight: 800;
}

.buy-lede {
    margin: 0 0 18px;
    font-size: 15.5px;
    color: #4b5563;
}

.buy-quick {
    margin: 0;
    padding: 16px 18px;
    list-style: none;
    background: #f7f8fe;
    border: 1px solid #e8eafb;
    border-radius: 12px;
}
.buy-quick li {
    position: relative;
    padding-left: 22px;
    margin: 6px 0;
    font-size: 14px;
    color: #374151;
}
.buy-quick li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #4f46e5;
    font-weight: 700;
}

.buy-card {
    background: #fff;
    border: 1px solid #eef0f7;
    border-radius: 18px;
    padding: 26px 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}

.buy-h2 {
    margin: 0 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.buy-h2::before {
    content: '';
    width: 4px;
    height: 20px;
    border-radius: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.buy-sub {
    margin: 0 0 16px;
    font-size: 14px;
    color: #6b7280;
}

/* ── 交易所对比 ─────────────────────────────── */
.buy-ex-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.buy-ex-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #eef0f7;
    border-radius: 14px;
    background: #fafbff;
    text-decoration: none;
    color: inherit;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.buy-ex-item:hover {
    border-color: #c7ccf4;
    background: #f4f6ff;
    transform: translateY(-1px);
}

.buy-ex-rank {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #eef0ff;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.buy-ex-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    flex-shrink: 0;
}

.buy-ex-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.buy-ex-name {
    font-size: 15px;
    font-weight: 600;
}
.buy-ex-meta {
    font-size: 12px;
    color: #8a90a2;
}

.buy-ex-fee {
    flex-shrink: 0;
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f8;
    border-radius: 999px;
    padding: 5px 10px;
}

.buy-ex-cta {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.buy-disclaimer {
    margin: 12px 0 0;
    font-size: 12px;
    color: #9aa0b0;
}

/* ── 分步 ───────────────────────────────────── */
.buy-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.buy-step {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed #eef0f7;
}
.buy-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.buy-step-num {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.buy-step-body {
    min-width: 0;
}
.buy-step-title {
    margin: 2px 0 6px;
    font-size: 16px;
    font-weight: 700;
}
.buy-step-body p {
    margin: 0;
    font-size: 14.5px;
    color: #4b5563;
}

/* ── 表格 ───────────────────────────────────── */
.buy-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.buy-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 13.5px;
}
.buy-table th {
    text-align: left;
    padding: 10px 12px;
    background: #f7f8fc;
    color: #6b7280;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}
.buy-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f2f7;
    color: #4b5563;
    vertical-align: top;
}
.buy-table tr:last-child td {
    border-bottom: none;
}
.buy-strong {
    color: #1a1a2e;
    font-weight: 600;
    white-space: nowrap;
}
.buy-table-link {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.buy-table-link:hover {
    text-decoration: underline;
}

/* ── 清单 / FAQ ─────────────────────────────── */
.buy-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
}
.buy-checklist li {
    position: relative;
    padding: 6px 0 6px 24px;
    font-size: 14.5px;
    color: #4b5563;
}
.buy-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4f46e5;
    font-weight: 700;
}

.buy-faq details {
    border-bottom: 1px solid #f0f2f7;
}
.buy-faq details:last-child {
    border-bottom: none;
}
.buy-faq summary {
    cursor: pointer;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    list-style: none;
}
.buy-faq summary::-webkit-details-marker {
    display: none;
}
.buy-faq summary::after {
    content: '+';
    float: right;
    color: #9aa0b0;
    font-weight: 400;
}
.buy-faq details[open] summary::after {
    content: '−';
}
.buy-faq details p {
    margin: 0 0 14px;
    font-size: 14.5px;
    color: #4b5563;
}

.buy-related ul {
    margin: 0;
    padding-left: 20px;
}
.buy-related li {
    margin: 8px 0;
}
.buy-related a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}
.buy-related a:hover {
    text-decoration: underline;
}

.buy-risk {
    margin: 0;
    padding: 16px 20px;
    border-radius: 12px;
    background: #fff8f0;
    border: 1px solid #ffe6cc;
    font-size: 12.5px;
    line-height: 1.7;
    color: #8a6d3b;
}

@media (max-width: 767px) {
    .buy-hero,
    .buy-card {
        padding: 20px 18px;
        border-radius: 14px;
    }
    .buy-hero h1 {
        font-size: 23px;
    }
    .buy-h2 {
        font-size: 17px;
    }
    .buy-ex-item {
        flex-wrap: wrap;
        padding: 12px;
    }
    .buy-ex-fee {
        display: none;
    }
    .buy-ex-cta {
        margin-left: auto;
        padding: 7px 12px;
        font-size: 12px;
    }
    .buy-lede {
        font-size: 14.5px;
    }
}

/* ── 入口页国家卡片（右侧栏复用首页 .sidebar 样式，不再自定义）─── */
.buy-hub {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.buy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.buy-country-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #eef0f7;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
    text-decoration: none;
    color: inherit;
    transition: border-color .18s ease, transform .18s ease;
}
.buy-country-card:hover {
    border-color: #c7ccf4;
    transform: translateY(-1px);
}
.buy-country-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.buy-country-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
}
.buy-country-pay {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: #4f46e5;
    background: #eef0ff;
    border-radius: 999px;
    padding: 3px 9px;
}
.buy-country-h1 {
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}
.buy-country-meta {
    font-size: 12px;
    color: #9aa0b0;
}

/* 首页侧栏的卡片原本用 div + onclick，这里改成 <a>，去掉下划线与蓝色默认色 */
.sidebar a.sidebar-flash-item,
.sidebar a.sidebar-exchange-item,
.sidebar a.sidebar-coin-item {
    text-decoration: none;
    color: inherit;
}
.sidebar a.sidebar-flash-item:hover,
.sidebar a.sidebar-exchange-item:hover,
.sidebar a.sidebar-coin-item:hover {
    text-decoration: none;
}

@media (max-width: 767px) {
    .buy-grid {
        grid-template-columns: 1fr;
    }
}

/* 审校行 / 其它市场 / 规则提示 */
.buy-review {
    margin: 0 0 14px;
    font-size: 12px;
    color: #8a90a2;
}
.buy-review a {
    color: #6b7280;
    text-decoration: none;
}
.buy-review a:hover {
    color: #4f46e5;
    text-decoration: underline;
}
.buy-others {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.buy-others a {
    font-size: 13px;
    color: #4f46e5;
    background: #f4f6ff;
    border: 1px solid #e4e7fb;
    border-radius: 999px;
    padding: 7px 12px;
    text-decoration: none;
}
.buy-others a:hover {
    background: #eef0ff;
}
.buy-rules {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #8a90a2;
}

/* 修复右栏导致的横向溢出：左栏默认 min-width:auto 会被长表格撑开 */
.content-left {
    min-width: 0;
}
.buy-layout .buy-page,
.buy-page {
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* 页内目录 */
.buy-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 4px;
}
.buy-toc a {
    font-size: 12.5px;
    color: #4f46e5;
    background: #f4f6ff;
    border: 1px solid #e4e7fb;
    border-radius: 999px;
    padding: 6px 11px;
    text-decoration: none;
}
.buy-toc a:hover {
    background: #eef0ff;
}

/* 表格滑动提示（仅手机显示） */
.buy-table-hint {
    display: none;
    margin: 0 0 6px;
    font-size: 11.5px;
    color: #9aa0b0;
}

/* 对比卡片的最低入金 */
.buy-ex-min {
    flex-shrink: 0;
    font-size: 11.5px;
    color: #8a90a2;
    white-space: nowrap;
}

/* 费用来源行 */
.buy-source {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.7;
    color: #9aa0b0;
}
.buy-source a {
    color: #6b7280;
    text-decoration: underline;
}

/* 本地平台 / 官方教程 */
.buy-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.buy-pills a {
    font-size: 13px;
    color: #4f46e5;
    background: #f4f6ff;
    border: 1px solid #e4e7fb;
    border-radius: 999px;
    padding: 7px 12px;
    text-decoration: none;
}
.buy-pills a:hover {
    background: #eef0ff;
}
.buy-note {
    margin: 10px 0 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: #8a90a2;
}

/* P2P 防骗清单 */
.buy-scam {
    margin: 0;
    padding: 0;
    list-style: none;
}
.buy-scam li {
    position: relative;
    padding: 7px 0 7px 26px;
    font-size: 14px;
    line-height: 1.65;
    color: #4b5563;
}
.buy-scam li::before {
    content: '⚠';
    position: absolute;
    left: 0;
    top: 6px;
    color: #d97706;
}

@media (max-width: 767px) {
    .buy-table-hint {
        display: block;
    }
    .buy-ex-min {
        display: none;
    }
}

/* 步骤配图（官方帮助中心界面示意） */
.buy-step-fig {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 0;
}
.buy-step-shot {
    flex: 1 1 260px;
    min-width: 0;
    border: 1px solid #eef0f7;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.buy-step-shot img {
    display: block;
    width: 100%;
    height: auto;
}
.buy-step-fig figcaption {
    flex-basis: 100%;
    font-size: 11.5px;
    color: #9aa0b0;
}

/* 单张图（竖版 App 截图）限制宽度，避免占满整屏 */
.buy-step-fig--single .buy-step-shot {
    flex: 0 1 380px;
    margin: 0 auto;
}

/* Phase 1：还可以买什么 */
.buy-coin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.buy-coin-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid #eef0f7;
    border-radius: 12px;
    background: #fafbff;
    text-decoration: none;
    color: inherit;
    transition: border-color .18s ease, background .18s ease;
}
.buy-coin-card:hover {
    border-color: #c7ccf4;
    background: #f4f6ff;
}
.buy-coin-card img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
}
.buy-coin-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.buy-coin-symbol {
    flex-shrink: 0;
    font-size: 11px;
    color: #8a90a2;
    background: #f3f4f8;
    border-radius: 999px;
    padding: 2px 7px;
}
.buy-coin-cta {
    flex-shrink: 0;
    font-size: 12px;
    color: #4f46e5;
}
@media (max-width: 767px) {
    .buy-coin-grid {
        grid-template-columns: 1fr;
    }
}
