/* 帮助中心页面专用样式 */

/* 英雄区域 */
.help-hero {
    background: url('../assets/images/shu.jpg') center center/cover no-repeat;
    color: #fff;
    height: 450px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 帮助卡片 */
.help-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: nowrap;
}

.help-card {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 260px;
    height: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.help-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 1);
}

.help-icon {
    width: 36px;
    height: 36px;
    background: #ffd700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    flex-shrink: 0;
}

.help-card span {
    font-weight: 600;
    font-size: 16px;
    flex: 1;
    text-align: center;
}

.help-card i:last-child {
    color: #666;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.help-card:hover i:last-child {
    transform: translateX(4px);
}

/* 主要内容区域 */
.help-main {
    background: #fff;
    padding: 60px 0;
}

.help-main .container {
    max-width: 1000px;
}

.help-main section {
    margin-bottom: 60px;
}

.help-main h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 32px;
    text-align: center;
}

/* 搜索区域 */
.search-section {
    text-align: center;
}

.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: #ff5945;
    box-shadow: 0 4px 20px rgba(255, 89, 69, 0.2);
}

.search-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-btn {
    background: #ff5945;
    color: #fff;
    border: none;
    padding: 16px 24px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #e53e3e;
}

/* FAQ区域 */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #ff5945;
    box-shadow: 0 4px 12px rgba(255, 89, 69, 0.1);
}

.faq-question {
    padding: 20px 24px;
    background: #f9fafb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f3f4f6;
}

.faq-question span {
    font-weight: 600;
    color: #1f2937;
    font-size: 16px;
}

.faq-question i {
    color: #6b7280;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.faq-item.active .faq-answer {
    padding: 24px;
    max-height: 500px;
}

.faq-answer p {
    margin-bottom: 16px;
    color: #374151;
    line-height: 1.6;
}

.faq-answer h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 24px 0 12px 0;
    padding-top: 8px;
}

.faq-answer h4:first-child {
    margin-top: 0;
}

.faq-answer ul, .faq-answer ol {
    margin-left: 20px;
    color: #374151;
    line-height: 1.6;
}

.faq-answer li {
    margin-bottom: 8px;
}

/* 问题分类 */
.categories-section {
    max-width: 900px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.category-item {
    background: #fff;
    border: 2px solid #f3f4f6;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.category-item:hover {
    border-color: #ff5945;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 89, 69, 0.15);
}

.category-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.category-item span {
    font-weight: 600;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.4;
}

/* 客服热线 */
.contact-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    background: #f9fafb;
    padding: 32px;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
}

.phone-number {
    font-size: 32px;
    font-weight: 700;
    color: #ff5945;
    margin-bottom: 12px;
}

.service-hours {
    color: #6b7280;
    font-size: 16px;
}

/* 返回顶部按钮 */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ff5945;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(255, 89, 69, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #e53e3e;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 89, 69, 0.4);
}

.scroll-to-top i {
    font-size: 18px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
        margin-bottom: 30px;
    }
    
    .help-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .help-card {
        min-width: 320px;
    }
    
    .search-container {
        flex-direction: column;
        border-radius: 8px;
    }
    
    .search-input {
        padding: 14px 16px;
    }
    
    .search-btn {
        padding: 14px 20px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .category-item {
        padding: 24px 16px;
    }
    
    .category-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .help-main h2 {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .help-main section {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .help-hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 28px;
        margin-bottom: 24px;
    }
    
    .help-card {
        min-width: 280px;
    }
    
    .help-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .help-card span {
        font-size: 15px;
    }
    
    .help-card i:last-child {
        font-size: 13px;
    }
    
    .search-container {
        margin: 0 20px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* 页脚样式 */
.footer {
    background: #F7F8FA;
    color: #333;
    padding: 30px 0 15px;
}

.footer-contact {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: none;
}

.footer-contact h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.contact-number {
    font-size: 24px;
    font-weight: 700;
    color: #ff5945;
    margin-bottom: 5px;
}

.service-time {
    color: #6B7280;
    font-size: 13px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-bottom: 25px;
}

.footer-column h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #333;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #6B7280;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 12px;
}

.footer-column ul li a:hover {
    color: #ff5945;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 32px;
    height: 32px;
    background: #E5E7EB;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 12px;
}

.social-link:hover {
    background: #ff5945;
    transform: translateY(-2px);
    color: #fff;
}

.footer-separator {
    height: 1px;
    background: #E5E7EB;
    margin: 25px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
}

.copyright {
    color: #6B7280;
    flex-shrink: 0;
}

.legal-info {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
}

.legal-info span {
    color: #6B7280;
    white-space: nowrap;
}

.company-info {
    text-align: right;
    color: #6B7280;
    line-height: 1.4;
    flex-shrink: 0;
}

.company-info div {
    margin-bottom: 5px;
}

/* 响应式页脚 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .legal-info {
        justify-content: center;
        order: 2;
    }
    
    .company-info {
        text-align: center;
        order: 3;
    }
    
    .copyright {
        order: 1;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .footer-contact h3 {
        font-size: 16px;
    }
    
    .contact-number {
        font-size: 22px;
    }
    
    .footer {
        padding: 25px 0 12px;
    }
    
    .footer-contact {
        margin-bottom: 25px;
        padding-bottom: 12px;
    }
    
    .footer-content {
        margin-bottom: 20px;
    }
    
    .footer-separator {
        margin: 20px 0;
    }
}
