/* 全局样式重置与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e60012;
    --secondary-color: #003a8c;
    --accent-color: #f59a23;
    --text-color: #333;
    --light-text: #fff;
    --bg-color: #f8f9fa;
    --border-color: #ddd;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --success-color: #22c55e;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --gradient-primary: linear-gradient(135deg, #e60012, #b3000f);
    --gradient-secondary: linear-gradient(135deg, #003a8c, #002d6e);
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    --input-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

body {
    font-family: "Microsoft YaHei", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button, input {
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: var(--transition);
    text-align: center;
}

.btn-primary:hover {
    background-color: #c5000f;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
}

/* 头部导航样式 */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.logo-container h1 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: bold;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 20px;
}

.nav-list a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-list a:hover, .nav-list a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
}

/* 横幅区域样式 */
.banner {
    background: linear-gradient(120deg, rgba(0, 58, 140, 0.9), rgba(0, 34, 82, 0.9)), 
                url('https://via.placeholder.com/1920x600') no-repeat center center/cover;
    color: var(--light-text);
    padding: 100px 0;
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.banner-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    animation: fadeInDown 1s ease-out;
}

.banner-content p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 充值表单区域样式 */
.recharge-section {
    padding: 60px 0;
    background-color: #fff;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.recharge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: stretch;
    justify-content: center;
}

.recharge-form-container, .recharge-info {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 40px;
    margin-bottom: 30px;
    flex: 1;
    min-width: 320px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(230, 230, 230, 0.5);
    display: flex;
    flex-direction: column;
}

.recharge-form-container {
    max-width: 600px;
}

.recharge-form-container:hover, .recharge-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.recharge-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 15px;
}

.field-required {
    color: var(--primary-color);
    font-weight: bold;
    margin-left: 4px;
}

.field-limit {
    font-size: 13px;
    color: #888;
    font-weight: normal;
    margin-left: 8px;
    opacity: 0.8;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    background-color: var(--bg-color);
    box-shadow: var(--input-shadow);
}

.input-wrapper input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 58, 140, 0.15);
    background-color: #fff;
    outline: none;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
    transition: var(--transition);
}

.input-wrapper input:focus + .input-icon {
    color: var(--secondary-color);
}

.input-counter {
    position: absolute;
    right: 15px;
    bottom: -20px;
    font-size: 12px;
    color: #777;
    transition: color 0.3s ease;
}

/* 计数器状态样式 */
.input-counter.warning {
    color: var(--warning-color);
}

.input-counter.error {
    color: var(--error-color);
}

.input-counter.success {
    color: var(--success-color);
}

.validation-message {
    margin-top: 5px;
    font-size: 14px;
    color: #e74c3c;
    min-height: 20px;
}

/* 美化编辑框样式 */
.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    transition: var(--transition);
    background-color: #f9f9f9;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 58, 140, 0.1);
    background-color: #fff;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    font-size: 18px;
}

.input-wrapper input:focus + .input-icon {
    color: var(--secondary-color);
}

.password-toggle {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    z-index: 2;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: #2c73dc;
}

.password-toggle:focus {
    outline: none;
    color: #2c73dc;
}

/* Adjust the counter position for password field */
#rechargePassword-counter {
    right: 10px;
}

/* 验证状态样式 */
.input-wrapper.valid input {
    border-color: var(--success-color);
    background-color: rgba(34, 197, 94, 0.05);
}

.input-wrapper.invalid input {
    border-color: var(--error-color);
    background-color: rgba(239, 68, 68, 0.05);
}

.input-wrapper.valid .validation-message {
    color: var(--success-color);
}

.input-wrapper.invalid .validation-message {
    color: var(--error-color);
}

/* 同意条款复选框样式 */
.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.terms-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--secondary-color);
}

.terms-checkbox label {
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
}

.terms-link {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: 500;
}

.terms-link:hover {
    color: var(--primary-color);
}

/* 图形验证码样式修改 */
.captcha-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin-top: 5px;
}

.captcha-input {
    flex: 1;
    min-width: 0;
}

.captcha-input input {
    padding-right: 15px;
    font-size: 16px;
}

.captcha-image {
    width: 120px;
    height: 48px;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--input-shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.captcha-image:hover {
    box-shadow: 0 0 0 3px rgba(0, 58, 140, 0.1);
    border-color: var(--secondary-color);
}

.captcha-image canvas {
    width: 100%;
    height: 100%;
}

.refresh-captcha {
    width: 48px;
    height: 48px;
    border: none;
    background: var(--gradient-secondary);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    transition: var(--transition);
    box-shadow: var(--input-shadow);
}

.refresh-captcha:hover {
    transform: rotate(180deg);
    box-shadow: 0 0 0 3px rgba(0, 58, 140, 0.1);
}

.recharge-info {
    flex: 1 1 300px;
}

.info-cards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
    justify-content: space-between;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--bg-color);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(230, 230, 230, 0.5);
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    height: calc(100% / 3 - 14px);
    flex-grow: 1;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    z-index: 2;
}

.info-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.info-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-secondary);
    color: var(--light-text);
    border-radius: 15px;
    font-size: 24px;
    transition: var(--transition);
}

.info-card:hover .info-icon {
    transform: rotate(5deg) scale(1.1);
}

.info-content h3 {
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
}

.info-content p {
    color: #666;
    line-height: 1.5;
}

.recharge-info .section-title {
    margin-bottom: 30px;
}

/* 服务区域样式 */
.services-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    margin-bottom: 60px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(230, 230, 230, 0.5);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transition: var(--transition);
    transform: scaleX(0);
    transform-origin: left;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    background: var(--gradient-secondary);
    color: var(--light-text);
    border-radius: 20px;
    font-size: 32px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 58, 140, 0.2);
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 20px;
    font-weight: 600;
}

/* APP下载区域样式 */
.app-download {
    padding: 60px 0;
    background-color: white;
    margin-bottom: 60px;
}

.app-container {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.app-content {
    flex: 1 1 500px;
}

.app-content h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.app-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
}

.app-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.app-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 4px;
    transition: var(--transition);
}

.app-button:hover {
    background-color: #002a66;
    transform: translateY(-3px);
}

.app-image {
    flex: 1 1 300px;
    text-align: center;
}

/* 页脚样式 */
.footer {
    background-color: #002a66;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.footer-links {
    flex: 2 1 400px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-links-column h3 {
    margin-bottom: 20px;
    color: #f8f9fa;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-links-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links-column ul li {
    margin-bottom: 10px;
}

.footer-links-column ul li a {
    color: #ccc;
    transition: var(--transition);
}

.footer-links-column ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact {
    flex: 1 1 300px;
}

.footer-contact h3 {
    margin-bottom: 20px;
    color: #f8f9fa;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-media a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-media a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* 成功弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: modalFadeIn 0.3s ease-out;
    position: relative;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.success-icon {
    font-size: 5rem;
    color: #ef4444;
    margin-bottom: 20px;
}

.modal h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.modal p {
    margin-bottom: 20px;
    color: #555;
}

.modal-details {
    font-size: 0.9rem;
    color: #777;
    text-align: left;
    margin-bottom: 10px;
}

#closeSuccessModal {
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .recharge-container, .app-container {
        flex-direction: column;
    }
    
    .recharge-form-container, .recharge-info {
        max-width: 100%;
    }
    
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .banner {
        padding: 50px 0;
    }
    
    .banner-content h2 {
        font-size: 2rem;
    }
    
    .services-container {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .info-card {
        height: auto;
        min-height: 100px;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .verification-input {
        flex-direction: column;
    }
    
    .app-buttons {
        flex-direction: column;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .captcha-container {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .captcha-input {
        width: 100%;
    }
    
    .captcha-input input {
        font-size: 18px;
        height: 56px;
        padding: 0 15px;
    }
    
    .captcha-image {
        width: 100%;
        height: 70px;
        font-size: 28px;
    }
    
    .refresh-captcha {
        height: 56px;
        width: 100%;
        margin-top: 5px;
    }
}

/* 美化提交按钮 */
.primary-button {
    background: var(--gradient-primary);
    color: var(--light-text);
    border: none;
    border-radius: 8px;
    padding: 16px 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(230, 0, 18, 0.25);
    width: 100%;
    margin-top: auto;
    text-transform: none;
    letter-spacing: 0.5px;
    display: block;
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(230, 0, 18, 0.35);
}

.primary-button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(230, 0, 18, 0.3);
}

/* 添加滚动动画 */
.service-card.animated, .info-card.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 为不同的元素添加延迟，创造级联效果 */
.service-card:nth-child(2), .info-card:nth-child(2) {
    transition-delay: 0.2s;
}

.service-card:nth-child(3), .info-card:nth-child(3) {
    transition-delay: 0.4s;
}

.service-card:nth-child(4) {
    transition-delay: 0.6s;
}

/* 模态框动画 */
.modal-content {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#rechargeForm {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
} 