/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 头部导航栏样式 */
.header {
    background: #d0dcec;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    position: relative;
}

/* Logo样式 */
.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* 导航标题样式 */
.nav-title {
    flex: 1;
    text-align: center;
    margin: 0 2rem;
}

.nav-title h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

/* 移动端菜单按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* 主要内容区域 */
.main-content {
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.faq-section {
    background: white;
    padding: 2rem 2rem;
    margin-top: 2rem;
}

.faq-section h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.faq-section p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* FAQ卡片样式 */
.faq-card {
    background: white;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-card:hover {
    transform: none;
}

.faq-question {
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.faq-question h3 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    padding-right: 1rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

.faq-number {
    background-color: #667eea;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    margin-right: 1rem;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.faq-card.active .faq-number {
    background-color: #5a67d8;
}

/* FAQ 8 特殊样式 - 绿色序号方块 */
.faq-card:nth-child(9) .faq-number {
    background-color: #68d391;
}

.faq-card:nth-child(9).active .faq-number {
    background-color: #48bb78;
}

.faq-icon {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
    transition: all 0.3s ease;
    min-width: 30px;
    text-align: center;
    line-height: 1;
}

.faq-card.active .faq-icon {
    color: #5a67d8;
}

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

.faq-card.active .faq-answer {
    max-height: 500px;
    padding: 1.5rem;
}

.faq-answer p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: #333;
    font-weight: 600;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }
    
    .nav-title {
        margin: 0 1rem;
    }
    
    .nav-title h1 {
        font-size: 1.4rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .faq-section {
        padding: 1.5rem 1rem;
        margin-top: 1rem;
    }
    
    .faq-section h2 {
        font-size: 1.6rem;
    }
    
    .faq-section p {
        font-size: 1rem;
    }
    
    .faq-question {
        padding: 0.8rem 1rem;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .faq-number {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
        margin-right: 0.8rem;
        min-width: 20px;
    }
    
    .faq-card.active .faq-answer {
        padding: 1rem;
    }
    
    .faq-answer p {
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 480px) {
    .nav-container {
        padding: 0.8rem;
    }
    
    .nav-title h1 {
        font-size: 1.2rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .faq-section {
        padding: 1rem 0.8rem;
    }
    
    .faq-section h2 {
        font-size: 1.4rem;
    }
    
    .faq-question {
        padding: 0.6rem 0.8rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
        padding-right: 0.5rem;
    }
    
    .faq-number {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
        margin-right: 0.6rem;
        min-width: 18px;
    }
    
    .faq-icon {
        font-size: 1.1rem;
        min-width: 25px;
    }
    
    .faq-card.active .faq-answer {
        padding: 0.8rem;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
    }
}

/* 移动端菜单动画 */
.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* 悬停效果 */
.nav-toggle:hover .bar {
    background-color: #f0f0f0;
}

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

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-section {
    animation: fadeIn 0.6s ease-out;
}

/* 通用样式类 - 从index.css复制 */
.d-fx {
    display: flex;
}
.fx-1 {
    flex: 1;
}
.fx-ai-c {
    align-items: center;
}
.fx-jc-c {
    justify-content: center;
}
.fx-jc-sb {
    justify-content: space-between;
}
.fw-b {
    font-weight: 800;
}
.fs-i {
    font-style: italic;
}
.mb-36 {
    margin-bottom: .36rem;
}
.mb-2 {
    margin-bottom: .2rem;
}

/* Footer样式 - 完整版本 */
.footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer .text {
    gap: .6rem;
}
.footer .text p {
    font-size: .18rem;
    color: #999;
    margin: 0;
}
.footer .text p a {
    color: #999;
    text-decoration: underline;
    transition: color 0.3s ease;
}
.footer .text p a:hover {
    color: #1976D2;
}

.footer .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem .2rem;
    gap: .2rem;
}
.footer .btn a {
    flex: 1;
    max-width: 3rem;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .footer .text {
        flex-direction: column;
        gap: .15rem;
        text-align: center;
    }
}
