:root {
    --bg-color: #020617;
    --card-bg: rgba(30, 41, 59, 0.5);
    --primary-color: #10b981;
    --primary-glow: rgba(16, 185, 129, 0.3);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-blur: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(59, 130, 246, 0.08) 0%, transparent 40%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1.5rem;
    overflow-x: hidden;
}

.container {
    max-width: 900px;
    width: 100%;
    animation: fadeIn 0.8s ease-out;
}

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

header {
    text-align: center;
    margin-bottom: 4rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.intro-box p {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.intro-box .site-link {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.download-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.download-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
    background: rgba(30, 41, 59, 0.7);
}

.app-icon-tile {
    width: 88px;
    height: 88px;
    background: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    padding: 0;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.download-card:hover .app-icon-tile {
    transform: scale(1.08) rotate(2deg);
}

.app-icon-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    min-height: 3rem;
}

.warning-badge {
    display: block;
    margin-top: 0.5rem;
    color: #f87171;
    font-size: 0.8rem;
    font-weight: 500;
}

.btn-download {
    width: 100%;
    padding: 1.1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-download:hover {
    filter: brightness(1.1);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-download:active {
    transform: scale(0.98);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1000;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 400px;
    padding: 3rem 2rem;
    border-radius: 32px;
    text-align: center;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.active .modal-content {
    transform: scale(1);
}

@media (max-width: 640px) {
    .modal.active.keyboard-open .modal-content {
        transform: scale(1) translateY(-110px);
    }
}

#status-text {
    font-size: 1.25rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

#expiry-timer {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.verify-inputs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.modal-footer.three-buttons {
    justify-content: space-between;
}

.modal-footer.three-buttons button {
    flex: 1;
    padding: 0.8rem 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* 按钮禁用状态变灰 */
.btn-confirm:disabled, .btn-cancel:disabled {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    cursor: not-allowed;
    opacity: 0.8;
    box-shadow: none !important;
    filter: grayscale(1);
}

/* 确认按钮调暗状态已移除，改为由 JS 控制 Class 切换 */

.code-input {
    width: 60px;
    height: 72px;
    background: rgba(2, 6, 23, 0.4);
    border: 2px solid var(--border-color);
    border-radius: 18px;
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    text-align: center;
    transition: all 0.2s ease;
}

.code-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(16, 185, 129, 0.05);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.error-text {
    color: #ef4444;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: none;
}

.resend-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.resend-link:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.1);
}

.resend-link:disabled { opacity: 0.5; cursor: not-allowed; }

.modal-footer {
    display: flex;
    gap: 1rem;
}

.btn-cancel, .btn-confirm {
    flex: 1;
    padding: 1.1rem;
    border-radius: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.btn-cancel:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.btn-confirm {
    background: var(--primary-color);
    color: white;
}

.btn-confirm.dimmed {
    opacity: 0.5;
    filter: brightness(0.8);
    cursor: not-allowed;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.shake { animation: shake 0.4s ease-in-out; }

#gatekeeper-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    transition: all 0.6s ease;
}

#gatekeeper-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

.gatekeeper-content {
    max-width: 400px;
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: 32px;
}

.container {
    filter: blur(20px);
    transition: filter 0.8s ease;
}

.container.unlocked {
    filter: blur(0);
}

@media (max-width: 640px) {
    body { padding: 2rem 1rem; }
    .download-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .modal-content { padding: 2.5rem 1.5rem; }
    .code-input { width: 50px; height: 60px; font-size: 1.5rem; }
}

html.is-desktop .mobile-only {
    display: none !important;
}

html.is-mobile .desktop-only {
    display: none !important;
}

/* 苹果系统拦截样式 */
html.is-apple body > *:not(#apple-block) {
    display: none !important;
}

html.is-apple #apple-block {
    display: flex !important;
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.apple-content {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: fadeIn 0.4s ease-out;
}

.apple-content h2 {
    color: #ef4444;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.apple-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.5;
}

/* 微信拦截样式 */
html.is-wechat body > *:not(#wechat-block) {
    display: none !important;
}

html.is-wechat #wechat-block {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(4px);
    z-index: 99999;
}

.wechat-hint {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.wechat-hint .arrow {
    font-size: 4.5rem;
    color: white;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1;
    animation: bounceTopRight 1.5s infinite ease-in-out;
}

.hint-text {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    border-radius: 20px;
    text-align: right;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hint-warning {
    font-size: 1.05rem;
    color: #fbbf24;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.hint-action {
    color: white;
    font-size: 1.15rem;
    line-height: 1.6;
}

.hint-action strong {
    color: var(--primary-color);
    font-weight: 700;
}

@keyframes bounceTopRight {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(12px, -12px); }
}

/* 微信拦截：电脑端大屏居中排版优化 */
@media (min-width: 641px) {
    html.is-wechat #wechat-block {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: var(--bg-color);
        backdrop-filter: none;
    }

    .wechat-hint {
        padding: 0;
        align-items: center;
    }

    .hint-text {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        padding: 3rem 2rem;
        border-radius: 24px;
        text-align: center;
        max-width: 400px;
        width: 90vw;
        box-shadow: none;
    }

    .wechat-hint .arrow {
        display: none; /* 电脑端隐藏右上角箭头 */
    }
}

/* 苹果拦截重定向区域 */
.apple-redirect-area {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 1rem;
    text-align: center;
}
.apple-redirect-area p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem !important;
}
.btn-confirm-redirect {
    width: 100%;
    padding: 1.1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-confirm-redirect:hover {
    filter: brightness(1.1);
    box-shadow: 0 8px 25px var(--primary-glow);
}
.btn-confirm-redirect:active {
    transform: scale(0.98);
}

/* WhatsApp 常见问题辅助链接 */
.btn-helper-link {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}
.btn-helper-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ==========================================================================
   WhatsApp 教程页 (whatsapp.html) 专属样式
   ========================================================================== */
.helper-body {
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.04) 0%, transparent 50%);
}

.helper-body .container {
    max-width: 1120px;
}

.helper-nav {
    display: flex;
    margin-bottom: 2rem;
    width: 100%;
}

.nav-back {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.nav-back:hover {
    color: var(--primary-color);
}

.back-arrow {
    transition: transform 0.2s ease;
}

.nav-back:hover .back-arrow {
    transform: translateX(-4px);
}

.helper-header {
    text-align: center;
    margin-bottom: 3rem;
}

.helper-header h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    background: linear-gradient(135deg, #fff 0%, #a3e635 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.helper-header .subtitle {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 微信引流卡片 */
.contact-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 28px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 15px 35px -5px rgba(16, 185, 129, 0.1);
    text-align: left;
}

.contact-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 60%);
    pointer-events: none;
    animation: rotateGlow 20s linear infinite;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.badge-online {
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary-color);
    padding: 0.35rem 0.8rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.badge-online::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--primary-color);
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.contact-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
}

.contact-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.wechat-area {
    display: flex;
    background: rgba(2, 6, 23, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.wechat-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.wechat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wechat-info strong {
    font-size: 1.5rem;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.02em;
}

.btn-copy {
    padding: 0.9rem 1.8rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-copy:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px var(--primary-glow);
    transform: translateY(-1px);
}

.btn-copy:active {
    transform: translateY(1px);
}

/* 主内容板块样式 */
.helper-main {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.helper-intro {
    background: rgba(251, 191, 36, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.15);
    padding: 1.5rem;
    border-radius: 20px;
    color: #f59e0b;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: left;
}

.helper-section-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 2.5rem;
    transition: border-color 0.3s ease;
    text-align: left;
}

.helper-section-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.2rem;
}

.section-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.8;
    line-height: 1;
    font-family: 'Courier New', Courier, monospace;
}

.helper-section-card h3 {
    font-size: 1.4rem;
    color: #fff;
    font-weight: 700;
}

.section-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.info-alert {
    background: rgba(59, 130, 246, 0.08);
    border-left: 4px solid #3b82f6;
    padding: 1.2rem 1.5rem;
    border-radius: 0 16px 16px 0;
    color: #93c5fd;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* 步骤时间轴列表 */
.steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.steps-list li {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.step-badge {
    min-width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.steps-list li div {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 1.05rem;
}

.steps-list li div strong {
    color: #fff;
    display: block;
    margin-bottom: 0.2rem;
}

.tip-highlight {
    display: block;
    margin-top: 0.5rem;
    padding: 0.8rem 1rem;
    background: rgba(16, 185, 129, 0.05);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.warning-box {
    background: rgba(239, 68, 68, 0.08) !important;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    color: #fca5a5 !important;
    font-weight: 500;
    line-height: 1.6;
}

.steps-list li.image-li {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

.helper-img {
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.helper-img:hover {
    transform: scale(1.02);
}

/* 环境准备网格 */
.env-setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.env-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    transition: background-color 0.2s;
}

.env-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.env-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.8rem;
}

.env-item strong {
    color: #fff;
    font-size: 1.05rem;
    display: block;
    margin-bottom: 0.5rem;
}

.env-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 检查清单网格 */
.checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

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

.check-item {
    background: rgba(16, 185, 129, 0.03);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 16px;
    padding: 1.2rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

/* 防封规则框 */
.rule-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rule-box {
    border-radius: 20px;
    padding: 2rem;
    line-height: 1.6;
}

.rule-box h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.rule-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.rule-box ul li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.rule-box ul li::before {
    position: absolute;
    left: 0;
    top: 0.25rem;
}

.rule-box.danger {
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.rule-box.danger h4 {
    color: #f87171;
}

.rule-box.danger ul li {
    color: #fca5a5;
}

.rule-box.danger ul li::before {
    content: "⚠️";
}

.rule-box.success {
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.rule-box.success h4 {
    color: var(--primary-color);
}

.rule-box.success ul li {
    color: #a7f3d0;
}

.rule-box.success ul li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
}

.helper-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 2rem;
}

/* Toast 提示框 */
.toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(16, 185, 129, 0.95);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 99px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(16, 185, 129, 0.3);
    z-index: 10000;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
    opacity: 0;
    pointer-events: none;
}

.toast.show {
    bottom: 40px;
    opacity: 1;
}

/* 针对小屏幕适配 */
@media (max-width: 640px) {
    .helper-section-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    .wechat-area {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 1rem;
    }
    .btn-copy {
        width: 100%;
    }
    .env-setup-grid {
        grid-template-columns: 1fr;
    }
    .rule-box {
        padding: 1.5rem;
    }
}

