/* ===================================
   HELP PAGE STYLES
   全屏上下布局设计
   ================================= */

/* Help Sections Base */
.help-start,
.help-rules,
.help-gameplay,
.help-faq,
.help-support {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 15% 120px;
    position: relative;
    overflow: hidden;
}

/* Alternating backgrounds */
.help-start,
.help-gameplay,
.help-faq {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(6, 182, 212, 0.05)), url('../img/help-bg.jpg') left top/auto fixed no-repeat;
}

.help-rules,
.help-support {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(6, 182, 212, 0.05)), url('../img/help-bg.jpg') left top/auto fixed no-repeat;
}

/* Content Wrapper */
.help-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(8px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Text Content */
.help-text h2 {
    font-size: var(--h2-font);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.help-text h4 {
    font-size: 1.5rem;
    color: var(--second-color);
    font-weight: 500;
    margin-bottom: 3rem;
    line-height: 1.5;
}

/* Image/Icon Area */
.help-image {
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.help-icon-large {
    width: 300px;
    height: 300px;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 150px;
    color: #ffffff;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: visible;
}

.help-icon-large i {
    position: relative;
    z-index: 10;
    color: #ffffff;
}

.help-icon-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    z-index: 0;
    pointer-events: none;
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0px) rotateX(0deg); }
    50% { transform: translateY(-20px) rotateX(5deg); }
}

@keyframes shine-icon {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Step Items (Quick Start) */
.step-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border-left: 4px solid var(--main-color);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-left: 4px solid var(--main-color);
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateX(10px);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.15);
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--main-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.step-content h5 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-content p {
    color: var(--second-color);
    line-height: 1.7;
    margin: 0;
}

.step-content a {
    color: var(--main-color);
    text-decoration: underline;
    transition: all 0.3s ease;
}

.step-content a:hover {
    color: var(--accent-color);
}

/* Rules Groups */
.rules-group {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    border: 2px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.rules-group:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.rules-group h5 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
}

.rules-group i {
    color: var(--text-color);
    font-size: 1.5rem;
}

.rule-list {
    list-style: none;
    margin: 0;
}

.rule-list li {
    color: var(--second-color);
    padding: 0.7rem 0 0.7rem 1.8rem;
    position: relative;
    line-height: 1.7;
    transition: all 0.3s ease;
}

.rule-list li:hover {
    color: var(--text-color);
    padding-left: 2.2rem;
}

.rule-list li::before {
    content: '✓ ';
    position: absolute;
    left: 0;
    color: var(--text-color);
    font-weight: bold;
}

.rule-list li strong {
    color: var(--main-color);
}

/* Gameplay Items */
.gameplay-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.03);
    border-left: 3px solid var(--accent-color);
    transition: all 0.3s ease;
}

.gameplay-item:hover {
    background: rgba(59, 130, 246, 0.08);
    transform: translateX(8px);
}

.gameplay-item h5 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
}

.gameplay-item i {
    color: var(--text-color);
    font-size: 1.5rem;
    display: inline-block;
    min-width: 1.5rem;
}

.gameplay-item p {
    color: var(--second-color);
    line-height: 1.8;
    margin: 0;
}

/* FAQ Section */
.help-faq {
    flex-direction: column;
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-header h2 {
    font-size: var(--h2-font);
    margin-bottom: 1rem;
}

.faq-header p {
    font-size: 1.1rem;
    color: var(--second-color);
}

.faq-header a {
    color: var(--main-color);
    text-decoration: underline;
}

.faq-header a:hover {
    color: var(--accent-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.faq-card {
    background: var(--second-bg-color);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.faq-card:hover {
    transform: translateY(-8px);
    border-color: var(--main-color);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
}

.faq-card h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
}

.faq-card i {
    color: var(--text-color);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.faq-card p {
    color: var(--second-color);
    line-height: 1.8;
    margin: 0;
}

.faq-card a {
    color: var(--main-color);
    text-decoration: underline;
    transition: all 0.3s ease;
}

.faq-card a:hover {
    color: var(--accent-color);
}

/* Support Table */
.support-item {
    margin-bottom: 2.5rem;
}

.support-item h5 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.support-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.support-table th,
.support-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.support-table th {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.15));
    color: var(--main-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.support-table td {
    color: var(--second-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.support-table tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

/* Contact List */
.contact-list {
    list-style: none;
    margin: 0;
}

.contact-list li {
    color: var(--second-color);
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-list li:hover {
    color: var(--text-color);
    padding-left: 0.5rem;
}

.contact-list i {
    color: var(--text-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-list strong {
    color: var(--text-color);
    font-weight: 700;
    min-width: 80px;
}

.contact-list a {
    color: var(--main-color);
    transition: all 0.3s ease;
}

.contact-list a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .help-start,
    .help-rules,
    .help-gameplay,
    .help-faq,
    .help-support {
        padding: 120px 8% 80px;
        min-height: auto;
    }

    .help-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .help-image {
        order: -1;
    }

    .help-text h2 {
        font-size: 2.5rem;
    }

    .help-icon-large {
        width: 250px;
        height: 250px;
        font-size: 120px;
    }
}

@media (max-width: 768px) {
    .help-start,
    .help-rules,
    .help-gameplay,
    .help-faq,
    .help-support {
        padding: 100px 5% 60px;
    }

    .help-text h2 {
        font-size: 2rem;
    }

    .help-text h4 {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .step-item {
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .step-content h5 {
        font-size: 1.1rem;
    }

    .step-content p,
    .gameplay-item p,
    .faq-card p {
        font-size: 0.95rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .support-table th,
    .support-table td {
        padding: 0.9rem;
        font-size: 0.85rem;
    }

    .help-icon-large {
        width: 200px;
        height: 200px;
        font-size: 100px;
    }
}

@media (max-width: 480px) {
    .help-start,
    .help-rules,
    .help-gameplay,
    .help-faq,
    .help-support {
        padding: 80px 3% 50px;
    }

    .help-text h2 {
        font-size: 1.8rem;
    }

    .help-text h4 {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .step-item {
        gap: 1rem;
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .step-content h5 {
        font-size: 1rem;
    }

    .step-content p,
    .gameplay-item p {
        font-size: 0.9rem;
    }

    .rules-group {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .rules-group h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .gameplay-item {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .gameplay-item h5 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .faq-card {
        padding: 1.5rem;
    }

    .faq-card h4 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .support-table {
        font-size: 0.75rem;
    }

    .support-table th,
    .support-table td {
        padding: 0.6rem;
    }

    .contact-list li {
        padding: 0.8rem 0;
        gap: 0.7rem;
    }

    .contact-list strong {
        min-width: 60px;
        font-size: 0.9rem;
    }

    .help-icon-large {
        width: 150px;
        height: 150px;
        font-size: 80px;
    }

    .help-header h2 {
        font-size: 1.8rem;
    }
}
