﻿/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 头部样式 */
header {
    background: linear-gradient(90deg, #1a2a4f 0%, #2c3e50 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo i {
    font-size: 2rem;
    color: #3498db;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

/* 导航链接 - 桌面端 */
.nav-links {
    display: flex;
    gap: 2rem;
    transition: all 0.3s ease;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.auth-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    transition: all 0.3s ease;
}

.btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-login {
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
}

.btn-login:hover {
    background: #3498db;
    color: white;
}

.btn-register {
    background: #3498db;
    color: white;
}

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

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 移动端导航菜单 */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #1a2a4f 0%, #2c3e50 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    z-index: 999;
}

.mobile-nav.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-links a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: #3498db;
}

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
}

.mobile-auth-buttons .btn {
    width: 100%;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav-links {
        gap: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links, .auth-buttons {
        display: none;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
}

/* 主内容区样式 */
.banner {
    background: url('../image/banner.jpg') no-repeat center center/cover;
    height: 500px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.banner h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-banner {
    background: #e74c3c;
    color: white;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-banner:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.services {
    padding: 5rem 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #3498db;
    border-radius: 2px;
}

.section-title p {
    color: #7f8c8d;
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.service-content p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.service-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-content li {
    margin-bottom: 0.5rem;
    color: #555;
}

.btn-service {
    background: #3498db;
    color: white;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFade 0.3s ease;
}

@keyframes modalFade {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.3s ease;
}

.close:hover {
    color: #e74c3c;
}

.modal h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-group input:focus {
    border-color: #3498db;
    outline: none;
}

.btn-submit {
    width: 100%;
    padding: 0.8rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

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

.form-footer {
    text-align: center;
    margin-top: 1rem;
}

.form-footer a {
    color: #3498db;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* 页脚样式 */
footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #3498db;
}

.footer-section p, .footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498db;
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #3498db;
    color: #ecf0f1;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .banner h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* 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; /* 内容展开动画 */
}