* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.header h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-primary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.search-section {
    background: white;
    padding: 30px 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-tips {
    margin-top: 10px;
    color: #6c757d;
    font-size: 14px;
}

.content {
    padding: 20px;
}

.category {
    margin-bottom: 40px;
}

.category-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    position: relative;
}

.category-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 50px;
    height: 3px;
    background: #764ba2;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

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

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

.faq-question span:first-child {
    font-weight: 500;
    color: #2c3e50;
    flex: 1;
}

.toggle-icon {
    width: 24px;
    height: 24px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item.active .toggle-icon {
    background: #764ba2;
    transform: rotate(45deg);
}

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

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

.faq-answer p {
    margin-bottom: 15px;
    color: #555;
}

.faq-answer ul,
.faq-answer ol {
    margin: 15px 0;
    padding-left: 20px;
}

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

.faq-answer strong {
    color: #2c3e50;
}

.faq-answer a {
    color: #667eea;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.footer {
    background: #f8f9fa;
    padding: 30px 20px;
    text-align: center;
    color: #6c757d;
    border-top: 1px solid #eee;
}

/* 搜索高亮 */
.highlight {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
}

/* 隐藏不匹配的项目 */
.faq-item.hidden {
    display: none;
}

.category.hidden {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        padding: 20px 15px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .search-section {
        padding: 20px 15px;
    }

    .content {
        padding: 15px;
    }

    .faq-question {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .toggle-icon {
        align-self: flex-end;
        margin-left: 0;
    }

    .faq-answer {
        padding: 0 15px;
    }

    .faq-item.active .faq-answer {
        padding: 15px;
    }

    .category-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .search-input {
        font-size: 14px;
        padding: 12px 16px;
    }

    .faq-question span:first-child {
        font-size: 15px;
    }

    .toggle-icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
}