.faq-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 50px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.faq-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    pointer-events: none;
}

.faq-header h1 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
    position: relative;
    z-index: 1;
}

.faq-header p {
    font-size: 17px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ===== FAQ 分区 ===== */
.faq-section {
    margin-bottom: 60px;
    scroll-margin-top: 20px;
}

.faq-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 30px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.faq-section-title::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #00d4aa;
}

.faq-section-title i {
    font-size: 26px;
    color: #00d4aa;
    filter: drop-shadow(0 0 8px rgba(0, 212, 170, 0.4));
}

.faq-section-title h2 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    letter-spacing: 0.5px;
}

.faq-section-title .count {
    margin-left: auto;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
}

/* ===== 文章网格布局 ===== */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 18px;
}

@media (max-width: 900px) {
    .faq-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-header {
        padding: 35px 20px;
    }
    
    .faq-header h1 {
        font-size: 28px;
    }
    
    .faq-section-title {
        padding: 18px 20px;
    }
    
    .faq-section-title h2 {
        font-size: 18px;
    }
}

/* ===== 文章卡片 ===== */
.faq-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e8e8e8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    height: 100px;
    position: relative;
}

.faq-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #00d4aa;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.faq-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border-color: #00d4aa;
}

.faq-card:hover::before {
    transform: scaleY(1);
}

/* 左侧预览图区域 */
.faq-card-thumb {
    width: 100px;
    min-width: 100px;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.faq-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.faq-card:hover .faq-card-thumb img {
    transform: scale(1.08);
}

/* 占位符图标 */
.faq-thumb-placeholder {
    color: #adb5bd;
    font-size: 32px;
    transition: all 0.3s ease;
}

.faq-card:hover .faq-thumb-placeholder {
    color: #00d4aa;
    transform: scale(1.1);
}

/* 右侧内容区域 */
.faq-card-content {
    flex: 1;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.faq-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.faq-card:hover .faq-card-title {
    color: #00d4aa;
}

.faq-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #888;
}

.faq-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.faq-card-meta i {
    font-size: 11px;
}

/* 标签徽章 */
.faq-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s;
}

.faq-tag.article {
    background: #e3f2fd;
    color: #1976d2;
}

.faq-tag.image {
    background: #f3e5f5;
    color: #7b1fa2;
}

.faq-card:hover .faq-tag.article {
    background: #bbdefb;
}

.faq-card:hover .faq-tag.image {
    background: #e1bee7;
}

/* ===== 返回按钮样式 ===== */
.faq-back {
    margin-top: 50px;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.faq-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 25px;
    border: 2px solid #e0e0e0;
    transition: all 0.25s;
}

.faq-back a:hover {
    color: #00d4aa;
    border-color: #00d4aa;
    background: rgba(0, 212, 170, 0.05);
}

/* ===== 平滑滚动 ===== */
html {
    scroll-behavior: smooth;
}

/* ===== 分区进入动画 ===== */
.faq-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.faq-section:nth-child(1) { animation-delay: 0.1s; }
.faq-section:nth-child(2) { animation-delay: 0.2s; }
.faq-section:nth-child(3) { animation-delay: 0.3s; }
.faq-section:nth-child(4) { animation-delay: 0.4s; }
.faq-section:nth-child(5) { animation-delay: 0.5s; }
.faq-section:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
