/* 全局样式 */
:root {
    --primary-color: #e60012;
    --secondary-color: #005bac;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --error-color: #dc3545;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    background-color: var(--light-color);
    color: var(--dark-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    border-radius: var(--border-radius);
}

section {
    padding: 70px 0;
}

/* 头部样式 */
.main-header {
    background-color: white;
    box-shadow: var(--box-shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

#company-logo {
    height: 40px;
    margin-right: 15px;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0;
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    color: var(--dark-color);
    font-weight: 600;
    padding: 8px 0;
    position: relative;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--primary-color);
}

.main-nav ul li a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-color);
}

.btn-outline {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 英雄区域 */
.hero-section {
    background-color: white;
    padding: 80px 0;
}

.hero-section .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #666;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #c30010;
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    color: var(--dark-color);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* 特性区域 */
.features-section {
    padding: 40px 0 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.feature-card {
    background-color: white;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(230, 0, 18, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 10px;
}

.feature-card p {
    color: #666;
}

/* 区域标题样式 */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* 充值区域 */
.recharge-section {
    background-color: var(--light-color);
}

.recharge-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.recharge-card, .recharge-form-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
}

.card-image {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    height: 200px;
    border-radius: 12px;
    position: relative;
    padding: 20px;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.card-image i {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
}

.card-chip {
    width: 40px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    position: absolute;
    top: 60px;
    left: 20px;
}

.card-number {
    position: absolute;
    bottom: 60px;
    left: 20px;
    font-size: 18px;
    letter-spacing: 2px;
}

.card-holder {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 14px;
    opacity: 0.8;
}

.card-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card-info p {
    margin-bottom: 20px;
    color: #555;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-list li span {
    width: 25px;
    height: 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 91, 172, 0.2);
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
}

.toggle-password:hover {
    color: var(--secondary-color);
}

.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 25px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
    font-weight: 600;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #c30010;
    transform: translateY(-2px);
}

/* 使用指南区域 */
.guide-section {
    background-color: white;
}

.tabs-container {
    max-width: 900px;
    margin: 0 auto;
}

.guide-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    border: none;
    background-color: #f1f1f1;
    color: #666;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.tab-btn.active, 
.tab-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.guide-step {
    display: flex;
    gap: 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin-bottom: 10px;
}

.step-image {
    margin-top: 15px;
    max-width: 300px;
}

.step-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.step-notice {
    background-color: #fff9db;
    border-left: 3px solid #ffc107;
    padding: 15px;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
}

.step-notice i {
    color: #ffc107;
    font-size: 18px;
    margin-top: 2px;
}

.step-notice.success {
    background-color: #e6f7ef;
    border-left-color: var(--success-color);
}

.step-notice.success i {
    color: var(--success-color);
}

.guide-notes {
    background-color: var(--light-color);
    padding: 25px;
    border-radius: var(--border-radius);
}

.guide-notes h4 {
    margin-bottom: 15px;
}

.guide-notes ul {
    list-style-type: disc;
    padding-left: 20px;
}

.guide-notes ul li {
    margin-bottom: 8px;
    color: #555;
}

/* 银行列表样式 */
.bank-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.bank-item {
    text-align: center;
}

.bank-item img {
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.bank-item span {
    font-size: 14px;
    color: #555;
}

/* APP充值指南 */
.app-guide-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.app-info {
    text-align: center;
}

.qr-code-container {
    margin-top: 20px;
}

.qr-code {
    margin-bottom: 20px;
}

.app-download {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--dark-color);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    transition: var(--transition);
}

.app-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.app-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.app-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.step-num {
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.app-step-content h5 {
    margin-bottom: 5px;
}

.app-step-content p {
    color: #666;
}

/* 新卡激活 FAQ */
.faq-mini {
    margin-top: 20px;
}

.faq-mini-item {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-mini-item h5 {
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.faq-mini-item p {
    color: #666;
    font-size: 0.95rem;
}

/* FAQ区域 */
.faq-section {
    background-color: var(--light-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: var(--box-shadow);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.faq-question i {
    transition: var(--transition);
    color: #999;
}

.faq-item.active .faq-question {
    background-color: rgba(230, 0, 18, 0.05);
}

.faq-item.active .faq-question h3 {
    color: var(--primary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 300px;
}

.faq-answer p {
    color: #555;
    margin-bottom: 10px;
}

.faq-answer ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.faq-answer ul li {
    margin-bottom: 5px;
    color: #555;
}

/* 联系区域 */
.contact-section {
    background-color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background-color: rgba(230, 0, 18, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.contact-item h3 {
    margin-bottom: 5px;
}

.contact-item p {
    color: #666;
}

.contact-social {
    margin-top: 40px;
}

.contact-social h3 {
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.qr-code {
    text-align: center;
    margin-top: 20px;
}

.qr-code img {
    border-radius: 8px;
    margin-bottom: 10px;
}

.qr-code p {
    font-size: 0.9rem;
    color: #666;
}

/* 页脚样式 */
.main-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-col h4 {
    color: white;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #bbb;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 30px;
    margin-right: 10px;
}

.footer-logo h3 {
    color: white;
    margin-bottom: 0;
}

.footer-col p {
    color: #bbb;
    margin-bottom: 20px;
}

.footer-app {
    margin-top: 20px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #bbb;
    margin-bottom: 5px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #c30010;
    transform: translateY(-5px);
}

/* 模态窗口样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    max-width: 450px;
    width: 90%;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--error-color);
}

.success-icon {
    font-size: 70px;
    color: var(--error-color);
    margin-bottom: 20px;
}

.success-icon i.fas.fa-check-circle::before {
    content: "\f057"; /* fa-times-circle Unicode */
}

.amount {
    font-weight: 700;
    font-size: 1.5rem;
    margin: 20px 0;
    color: var(--primary-color);
}

#modal-close-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
}

#modal-close-btn:hover {
    background-color: #c30010;
    transform: translateY(-2px);
}

/* 响应式样式 */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recharge-container,
    .contact-container,
    .app-guide-container {
        grid-template-columns: 1fr;
    }
    
    .hero-section .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        visibility: hidden;
    }
    
    .main-nav.active {
        max-height: 400px;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav ul li {
        margin: 0 0 15px 0;
    }
    
    .guide-step {
        flex-direction: column;
    }
    
    .step-number {
        align-self: flex-start;
    }
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 1.4rem;
    }
    
    #company-logo {
        height: 30px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .tab-btn {
        white-space: nowrap;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* 验证码容器样式 */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-container input {
    flex: 1;
}

#captcha-image {
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    width: 120px;
    object-fit: cover;
}

#captcha-image:hover {
    border-color: var(--secondary-color);
} 