/* 玩法帮助 — 独立页与弹窗共用 */

.help-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(160deg, #eef4fc 0%, #f8fafc 45%, #fff 100%);
    min-height: 100vh;
    margin: 0;
    color: #333;
}

.help-page-shell {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 20px 0;
}

.help-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2f6fb5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.help-back:hover {
    text-decoration: underline;
}

.help-page-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #1a365d;
}

.help-page-sub {
    margin: 0 0 20px;
    color: #64748b;
    font-size: 15px;
}

.help-page-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.help-content-root {
    --help-accent: #4a90e2;
    --help-accent-dark: #2f6fb5;
}

.help-loading,
.help-error {
    text-align: center;
    color: #64748b;
    padding: 24px 12px;
    font-size: 14px;
}

.help-error {
    color: #b91c1c;
}

.help-hero {
    margin: 0 0 20px;
    padding: 18px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.28);
}

.help-hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 4px 10px;
    margin-bottom: 10px;
}

.help-hero-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
}

.help-hero-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.95;
}

.help-section {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8edf3;
}

.help-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.help-section h3 {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.help-section p,
.help-section li {
    font-size: 14px;
    line-height: 1.65;
    color: #475569;
    margin: 0;
}

.help-section ol,
.help-section ul {
    margin: 0;
    padding-left: 1.25em;
}

.help-section li + li {
    margin-top: 6px;
}

.help-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 520px) {
    .help-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.help-step {
    margin: 0;
    padding: 14px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #dbeafe;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.08);
}

.help-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--help-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}

.help-step-title {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #1e40af;
    margin-bottom: 4px;
}

.help-step p {
    font-size: 13px;
    line-height: 1.55;
    color: #64748b;
}

.help-feature-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.help-feature {
    margin: 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.08), rgba(74, 144, 226, 0.02));
    border: 1px solid rgba(74, 144, 226, 0.22);
}

.help-feature-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--help-accent-dark);
    margin-bottom: 6px;
}

.help-feature p {
    margin: 0;
}

.help-mode-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 480px) {
    .help-mode-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.help-mode-item {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.help-mode-item strong {
    display: block;
    font-size: 13px;
    color: #334155;
    margin-bottom: 3px;
}

.help-mode-item span {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

.help-cta {
    margin-top: 4px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    font-size: 14px;
    font-weight: 600;
    color: #047857;
    text-align: center;
}

/* 弹窗内复用 */
.modal-content.modal-content-help {
    max-width: 680px;
}

.modal-content.modal-content-help .help-hero-title {
    font-size: 18px;
}

.modal-content.modal-content-help .help-steps {
    grid-template-columns: 1fr;
}

@media (min-width: 560px) {
    .modal-content.modal-content-help .help-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}
