:root {
    --primary: #4f46e5;
    --primary-600: #4338ca;
    --primary-light: #7c3aed;
    --violet: #7c3aed;
    --cyan: #06b6d4;
    --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --error: #ef4444;
    --bg: #fbfcfe;
    --card: #ffffff;
    --border: #e8ecf2;
    --text: #0b1220;
    --text-secondary: #5b6577;
    --text-hint: #98a2b3;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --shadow: 0 1px 3px rgba(16,24,40,.06);
    --shadow-sm: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
    --shadow-md: 0 14px 38px rgba(16,24,40,.09);
    --shadow-lg: 0 30px 70px rgba(16,24,40,.12);
    --ease: cubic-bezier(.22,.61,.36,1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(620px 420px at 12% 8%, rgba(79,70,229,.10), transparent 60%),
        radial-gradient(560px 400px at 88% 18%, rgba(124,58,237,.10), transparent 60%),
        radial-gradient(720px 520px at 50% 108%, rgba(6,182,212,.06), transparent 62%);
}

.wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航 */
.guide-header {
    background: rgba(255,255,255,.72);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.guide-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    position: relative;
}

.brand-logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
}

.brand-text {
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
}

.back-link {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.15s;
}

.back-link:hover {
    background: var(--bg);
    color: var(--primary);
}

/* 主内容 */
.guide-main {
    flex: 1;
    padding: 32px 0 48px;
}

.guide-article {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.article-header {
    padding: 40px 40px 24px;
    border-bottom: 1px solid var(--border);
}

.article-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.article-meta {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 目录 */
.article-toc {
    padding: 24px 40px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.toc-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.toc-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 16px;
}

.toc-list a {
    display: block;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.15s;
}

.toc-list a:hover {
    background: #ede9fe;
    color: var(--primary);
}

/* 正文 */
.article-body {
    padding: 40px;
}

.guide-section {
    margin-bottom: 40px;
}

.guide-section:last-child {
    margin-bottom: 0;
}

.guide-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.guide-section p {
    margin-bottom: 14px;
    font-size: 15px;
    color: #374151;
}

/* 注册商信息 */
.provider-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.provider-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.tag-foreign {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.provider-meta a {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
}

.provider-meta a:hover {
    text-decoration: underline;
}

/* 步骤列表 */
.step-list {
    list-style: none;
    counter-reset: step;
    margin-bottom: 16px;
}

.step-list li {
    position: relative;
    padding: 10px 0 10px 36px;
    font-size: 15px;
    color: #374151;
    line-height: 1.7;
    border-bottom: 1px dashed var(--border);
}

.step-list li:last-child {
    border-bottom: none;
}

.step-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-list li a {
    color: var(--primary);
    text-decoration: none;
}

.step-list li a:hover {
    text-decoration: underline;
}

/* 提示框 */
.tip-box,
.notice-box {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.7;
}

.tip-box {
    background: #ecfdf5;
    border-left: 4px solid var(--success);
    color: #065f46;
}

.notice-box {
    background: #fffbeb;
    border-left: 4px solid var(--warning);
    color: #92400e;
}

.notice-box.warning {
    background: #fef2f2;
    border-left: 4px solid var(--danger);
    color: #991b1b;
}

.tip-box strong,
.notice-box strong {
    margin-right: 4px;
}

/* FAQ */
.faq-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.faq-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* 底部 */
.guide-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 20px 0;
    margin-top: auto;
}

.guide-footer .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-hint);
}

.footer-beian {
    font-size: 12px;
}

.footer-beian a {
    color: var(--text-hint);
    text-decoration: none;
}

.footer-beian a:hover {
    color: var(--primary);
}

/* 响应式 */
@media (max-width: 768px) {
    .wrap {
        padding: 0 16px;
    }

    .guide-main {
        padding: 20px 0 32px;
    }

    .article-header {
        padding: 24px 20px 16px;
    }

    .article-title {
        font-size: 22px;
    }

    .article-toc {
        padding: 16px 20px;
    }

    .toc-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-body {
        padding: 24px 20px;
    }

    .guide-section h2 {
        font-size: 18px;
    }

    .guide-section p {
        font-size: 14px;
    }

    .step-list li {
        font-size: 14px;
    }

    .provider-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .brand-text {
        font-size: 14px;
    }

    .article-title {
        font-size: 20px;
    }

    .toc-list {
        grid-template-columns: 1fr;
    }

    .article-body {
        padding: 20px 16px;
    }
}
