﻿/* 基础样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
    --white-color: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--white-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.primary-btn {
    background-color: var(--primary-color);
}

.primary-btn:hover {
    background-color: #1a252f;
}

.secondary-btn {
    background-color: var(--secondary-color);
}

.secondary-btn:hover {
    background-color: #2980b9;
}

.login-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.login-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.register-btn {
    background-color: var(--accent-color);
}

.register-btn:hover {
    background-color: #c0392b;
}

.learn-more-btn {
    margin-top: 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
}

.main-nav ul li {
    margin-left: 25px;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    padding: 20px;
    transform: translateY(-100%);
    transition: var(--transition);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    margin-bottom: 15px;
}

.mobile-nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 10px 0;
}

/* banner区域样式 */
.banner {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('../image/banner.jpg') center/cover no-repeat;
    color: var(--white-color);
    padding: 150px 0 100px;
    text-align: center;
}

.banner h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.banner p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.banner-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 通用区域样式 */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.content-image, .content-text {
    flex: 1;
    min-width: 300px;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.content-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.content-text p {
    margin-bottom: 15px;
}

.alternate-bg {
    background-color: var(--light-color);
}

.reverse {
    flex-direction: row-reverse;
}

/* 业务列表样式 */
.business-list {
    list-style: none;
    margin-top: 15px;
}

.business-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.business-list li::before {
    content: '•';
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 代理模式样式 */
.agency-models {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.agency-model {
    background-color: var(--white-color);
    padding: 15px;
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.agency-model h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* 登录注册区域样式 */
.auth-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.auth-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.auth-card {
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 30px;
    width: 100%;
    max-width: 400px;
}

.auth-card h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.5rem;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.auth-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

.forgot-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--secondary-color);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* 页脚样式 */
.footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

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

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

.footer-column a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
}

.contact-info li i {
    margin-right: 10px;
    color: var(--secondary-color);
    margin-top: 4px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .banner h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }
    
    .section-content, .section-content.reverse {
        flex-direction: column;
    }
    
    .banner {
        padding: 120px 0 80px;
    }
    
    .banner-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .banner-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

/* 1. 开户咨询模块外层容器样式 */
#account {
    padding-top: 5rem; /* 对应py-20 */
    /* padding-bottom: 5rem; */
    background: linear-gradient(to bottom, #F2F3F5 0%, #FFFFFF 100%); /* 渐变背景 */
    position: relative;
    overflow: hidden;
}

/* 容器内边距与居中控制 */
#account .container {
    max-width: 1280px; /* 全局容器最大宽度 */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* 对应px-4 */
    padding-right: 1rem;
}

/* 2. 标题区域样式 */
#account .text-center {
    text-align: center;
    max-width: 48rem; /* 对应max-w-3xl */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem; /* 对应mb-16 */
}

#account .text-center h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem); /* 响应式字体大小 */
    font-weight: 700; /* 对应font-bold */
    color: #1D2129; /* 主文本色 */
    margin-bottom: 1rem; /* 对应mb-4 */
    line-height: 1.2;
}

#account .text-center p {
    font-size: 1.125rem; /* 对应text-lg */
    color: #666666; /* 辅助文本色 */
    line-height: 1.6;
}

/* 3. FAQ列表容器样式 */
#account .max-w-3xl {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

#account .space-y-6 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* 每个FAQ卡片间距 */
}

/* 4. FAQ单个卡片基础样式 */
#account .bg-white {
    background-color: #FFFFFF;
    border-radius: 1rem; /* 对应rounded-xl */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* 基础阴影 */
    overflow: hidden; /* 防止内容溢出圆角 */
    transition: box-shadow 0.3s ease; /* 阴影过渡 */
}

#account .bg-white:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); /*  hover时增强阴影 */
}

/* 5. FAQ折叠按钮样式 */
#account .faq-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem; /* 对应p-6 */
    text-align: left;
    font-weight: 700; /* 对应font-bold */
    color: #1D2129;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease; /* 背景色过渡 */
}

#account .faq-toggle:hover {
    background-color: #F2F3F5; /* 对应hover:bg-light */
}

#account .faq-toggle span {
    font-size: 1.125rem;
    line-height: 1.5;
}

#account .faq-toggle i {
    color: #165DFF; /* 图标主色（品牌蓝） */
    font-size: 1.25rem;
    transition: transform 0.3s ease; /* 图标旋转过渡 */
}

/* 6. FAQ内容区域样式 */
#account .faq-content {
    padding-left: 1.5rem; /* 对应px-6 */
    padding-right: 1.5rem;
    padding-bottom: 1.5rem; /* 对应pb-6 */
    color: #666666; /* 内容文本色 */
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.3s ease; /* 内容显示/隐藏过渡 */
}

/* 内容隐藏状态 */
#account .faq-content.hidden {
    display: none; /* 隐藏内容 */
    height: 0;
    opacity: 0;
}

/* 内容显示状态（通过JS移除hidden类后生效） */
#account .faq-content {
    display: block;
    height: auto;
    opacity: 1;
}

/* 7. 立即开户按钮区域样式 */
#account .mt-12 {
    margin-top: 3rem; /* 对应mt-12 */
    text-align: center; /* 按钮居中 */
}

#account .inline-block {
    display: inline-block;
    padding-left: 2rem; /* 对应px-8 */
    padding-right: 2rem;
    padding-top: 0.75rem; /* 对应py-3 */
    padding-bottom: 0.75rem;
    background-color: #165DFF; /* 按钮主色 */
    color: #FFFFFF; /* 按钮文本色 */
    font-weight: 500; /* 对应font-medium */
    font-size: 1rem;
    border-radius: 0.75rem; /* 对应rounded-lg */
    text-decoration: none; /* 清除链接下划线 */
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.2); /* 按钮阴影 */
    transition: all 0.3s ease; /* 全属性过渡 */
}

#account .inline-block:hover {
    background-color: rgba(22, 93, 255, 0.9); /*  hover时加深背景 */
    box-shadow: 0 8px 24px rgba(22, 93, 255, 0.3); /*  hover时增强阴影 */
    transform: translateY(-2px); /* 轻微上浮效果 */
}

/* 8. 响应式适配（移动端） */
@media (max-width: 768px) {
    /* 调整内边距 */
    #account {
        padding-top: 3rem;
        /* padding-bottom: 3rem; */
    }

    /* 调整标题区域间距 */
    #account .text-center {
        margin-bottom: 2.5rem;
    }

    /* 调整按钮尺寸 */
    #account .inline-block {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        padding-top: 0.625rem;
        padding-bottom: 0.625rem;
        font-size: 0.9375rem;
    }

    /* 调整FAQ按钮内边距 */
    #account .faq-toggle {
        padding: 1.25rem;
    }

    /* 调整FAQ内容内边距 */
    #account .faq-content {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        padding-bottom: 1.25rem;
    }
}

/* 9. 动画补充（可选） */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#account .faq-content {
    animation: fadeInUp 0.3s ease forwards; /* 内容展开动画 */
}