* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fb;
    color: #1a2332;
    padding: 24px 16px 60px;
    line-height: 1.6;
}

.container {
    max-width: 860px;
    margin: 0 auto;
}

.header {
    text-align: center;
    padding: 32px 20px 28px;
    background: linear-gradient(145deg, #1e2a4a, #0f1a2f);
    border-radius: 28px;
    margin-bottom: 32px;
    box-shadow: 0 12px 40px rgba(14, 26, 56, 0.25);
    position: relative;
    overflow: hidden;
}

.header::after {
    content: "🛡️";
    position: absolute;
    right: -10px;
    bottom: -20px;
    font-size: 120px;
    opacity: 0.06;
    transform: rotate(-8deg);
    pointer-events: none;
}

.header .badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.18);
    color: #ffd866;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 18px;
    border-radius: 40px;
    letter-spacing: 0.4px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    backdrop-filter: blur(4px);
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}

.header h1 span {
    color: #ffd866;
}

.header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    max-width: 480px;
    margin: 0 auto;
}

.card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 650;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f2f6;
    color: #0f1a2f;
}

.card-title .icon {
    font-size: 26px;
    line-height: 1;
}

.card-title .tag {
    font-size: 12px;
    font-weight: 600;
    background: #eef1f7;
    color: #3d4d6a;
    padding: 0 14px;
    border-radius: 40px;
    margin-left: auto;
    letter-spacing: 0.3px;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    counter-reset: step;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f2f6;
    counter-increment: step;
}

.step-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eef3fc;
    color: #1e3a6f;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    transition: background 0.2s;
}

.step-item:hover .step-number {
    background: #d6e4ff;
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-content .step-label {
    font-weight: 600;
    color: #0f1a2f;
    font-size: 15px;
    display: inline;
}

.step-content .step-desc {
    color: #3d4d6a;
    font-size: 15px;
    display: inline;
}

.step-content .step-desc code {
    background: #f0f2f6;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-family: "SF Mono", "Menlo", monospace;
    color: #1e3a6f;
    font-weight: 500;
    display: inline-block;
    margin: 0 2px;
}

.step-content .highlight-box {
    background: #f8faff;
    border-left: 4px solid #3b7cff;
    padding: 10px 16px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 14px;
    color: #1a2d4a;
}

.step-content .highlight-box strong {
    color: #1e3a6f;
}

.step-img-wrapper {
    margin-top: 12px;
    border-radius: 14px;
    overflow: hidden;
    background: #f8faff;
    border: 1px solid #eef2f7;
    transition: border 0.2s;
    position: relative;
}

.step-img-wrapper:hover {
    border-color: #c8d6e8;
}

.step-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 0;
    background: #ffffff;
}

.step-img[src*="data:image/svg+xml"] {
    border: 1px dashed #c0cfe0;
    background: #fafcff;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fef9e7;
    border-radius: 14px;
    padding: 14px 18px;
    margin-top: 16px;
    border: 1px solid #fdebc8;
    font-size: 14px;
    color: #6b5300;
}

.alert .alert-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert strong {
    color: #4f3e00;
}

.dns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 6px;
}

.dns-item {
    background: #f8faff;
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e9edf4;
    transition: all 0.2s;
}

.dns-item:hover {
    border-color: #b7cef8;
    background: #f2f8ff;
}

.dns-item .dns-name {
    font-weight: 600;
    font-size: 14px;
    color: #1a2d4a;
}

.dns-item .dns-addr {
    font-family: "SF Mono", "Menlo", monospace;
    font-size: 15px;
    font-weight: 500;
    color: #1e3a6f;
    background: #eef3fc;
    padding: 2px 12px;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: all;
}

.dns-item .dns-addr:hover {
    background: #d6e4ff;
}

.dns-item .dns-addr:active {
    background: #b7cef8;
}

.tab-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: #f0f2f6;
    padding: 4px;
    border-radius: 14px;
}

.tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    color: #5a6a82;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.tab-btn.active {
    background: #ffffff;
    color: #0f1a2f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tab-btn:hover:not(.active) {
    color: #1a2d4a;
}

.tab-panel {
    display: none;
    animation: fadeUp 0.3s ease forwards;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screenshot-card .screenshot-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 6px;
}

.screenshot-card .screenshot-buttons .btn-screenshot {
    flex: 1 1 180px;
    min-width: 140px;
    padding: 14px 20px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f0f4fe;
    color: #1e3a6f;
    border: 1px solid transparent;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.screenshot-card .screenshot-buttons .btn-screenshot:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 58, 111, 0.12);
    border-color: #b7cef8;
}

.screenshot-card .screenshot-buttons .btn-screenshot:active {
    transform: scale(0.97);
}

.screenshot-card .screenshot-buttons .btn-screenshot.android {
    background: #e8f0e8;
    color: #1d5a2e;
}
.screenshot-card .screenshot-buttons .btn-screenshot.android:hover {
    background: #d4e8d4;
    border-color: #8fc99f;
}

.screenshot-card .screenshot-buttons .btn-screenshot.ios {
    background: #eaeef7;
    color: #1a3a6f;
}
.screenshot-card .screenshot-buttons .btn-screenshot.ios:hover {
    background: #d6e0f2;
    border-color: #92b0dd;
}

.screenshot-card .screenshot-buttons .btn-screenshot.pc {
    background: #f0edf0;
    color: #4a3a5a;
}
.screenshot-card .screenshot-buttons .btn-screenshot.pc:hover {
    background: #e4dde6;
    border-color: #b8a8c4;
}

.screenshot-card .screenshot-buttons .btn-screenshot .icon {
    font-size: 22px;
}

.screenshot-card .screenshot-buttons .btn-screenshot .badge-count {
    font-size: 12px;
    background: rgba(0, 0, 0, 0.06);
    padding: 0 10px;
    border-radius: 40px;
    font-weight: 500;
}

.screenshot-card .screenshot-hint {
    text-align: center;
    font-size: 14px;
    color: #7a8aa0;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
}

.screenshot-card .screenshot-hint code {
    background: #f0f2f6;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-family: "SF Mono", "Menlo", monospace;
    color: #1e3a6f;
}

.accelerator-card .accelerator-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 6px;
}

.accelerator-card .accelerator-buttons .btn-accelerator {
    flex: 1 1 200px;
    min-width: 150px;
    padding: 14px 20px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f0f4fe;
    color: #1e3a6f;
    border: 1px solid transparent;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.accelerator-card .accelerator-buttons .btn-accelerator:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 58, 111, 0.12);
    border-color: #b7cef8;
}

.accelerator-card .accelerator-buttons .btn-accelerator:active {
    transform: scale(0.97);
}

.accelerator-card .accelerator-buttons .btn-accelerator .icon {
    font-size: 22px;
}

.accelerator-card .accelerator-buttons .btn-accelerator .badge-count {
    font-size: 12px;
    background: rgba(0, 0, 0, 0.06);
    padding: 0 10px;
    border-radius: 40px;
    font-weight: 500;
}

.accelerator-card .accelerator-hint {
    text-align: center;
    font-size: 14px;
    color: #7a8aa0;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
}

.accelerator-card .accelerator-hint code {
    background: #f0f2f6;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-family: "SF Mono", "Menlo", monospace;
    color: #1e3a6f;
}

.screenshot-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    color: white;
    font-size: 20px;
    font-weight: 500;
}

.screenshot-overlay.active {
    display: flex;
}

.screenshot-overlay .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.screenshot-overlay .sub {
    font-size: 14px;
    opacity: 0.8;
}

.mt-8 {
    margin-top: 8px;
}
.mt-12 {
    margin-top: 12px;
}
.mt-16 {
    margin-top: 16px;
}
.text-center {
    text-align: center;
}

.footnote {
    font-size: 13px;
    color: #7a8aa0;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #e9edf4;
    padding-top: 28px;
}

@media (max-width: 640px) {
    body {
        padding: 16px 12px 40px;
    }
    .header {
        padding: 24px 16px 20px;
        border-radius: 20px;
    }
    .header h1 {
        font-size: 26px;
    }
    .header p {
        font-size: 14px;
    }
    .card {
        padding: 18px 16px 20px;
        border-radius: 16px;
    }
    .card-title {
        font-size: 18px;
    }
    .step-content .step-label,
    .step-content .step-desc {
        font-size: 14px;
    }
    .dns-grid {
        grid-template-columns: 1fr;
    }
    .dns-item {
        padding: 12px 16px;
    }
    .step-item {
        gap: 12px;
        padding: 14px 0;
    }
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    .tab-btn {
        font-size: 14px;
        padding: 8px 0;
    }
    .step-img-wrapper {
        margin-top: 10px;
    }
    .screenshot-card .screenshot-buttons .btn-screenshot,
    .accelerator-card .accelerator-buttons .btn-accelerator {
        flex: 1 1 100%;
        min-width: unset;
        padding: 12px 16px;
        font-size: 15px;
    }
}

@media (max-width: 400px) {
    .header h1 {
        font-size: 22px;
    }
    .card-title {
        font-size: 16px;
    }
}
.replace-tip {
    background: #eaf3ff;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 14px;
    color: #1a3a6f;
    border: 1px solid #b7cef8;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.replace-tip code {
    background: #d6e4ff;
    padding: 2px 12px;
    border-radius: 6px;
    font-weight: 500;
}
.toast-float {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a2d4a;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    max-width: 90%;
    text-align: center;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.toast-float.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}