/* 导入字体 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

/* 变量定义 */
:root {
    --primary-color: #e60012; /* 中石化品牌红色 */
    --primary-light: #ff3b4a;
    --primary-dark: #b8000e;
    --secondary-color: #007bff;
    --secondary-light: #3a97ff;
    --secondary-dark: #0056b3;
    --success-color: #28a745;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
    --gray-light: #e0e0e0;
    --white-color: #ffffff;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4eaf1 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    transition: var(--transition);
    opacity: 0;
}

body.loaded {
    opacity: 1;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* 页面加载动画 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

body.loaded .page-loader {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 100px;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite alternate;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(230, 0, 18, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 页面布局 */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 页头样式 */
header {
    background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    margin-right: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.slogan {
    display: flex;
    gap: 15px;
}

.slogan span {
    padding: 5px 15px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* 主要内容区 */
main {
    padding: 40px 0;
}

/* 装饰性元素 */
.decorative-shape {
    position: absolute;
    z-index: -1;
    opacity: 0.6;
    filter: blur(2px);
    animation: float 15s ease-in-out infinite;
}

.shape1 {
    top: 5%;
    left: 5%;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation-duration: 18s;
}

.shape2 {
    top: 70%;
    right: 5%;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color));
    border-radius: 60% 40% 30% 70% / 50% 60% 30% 60%;
    animation-duration: 15s;
}

.shape3 {
    bottom: 10%;
    left: 8%;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--warning-color), #ffc107);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-duration: 20s;
}

.shape4 {
    top: 20%;
    right: 10%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--info-color), #36d2ff);
    border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
    animation-duration: 17s;
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto 40px;
    transition: var(--transition);
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(to right, rgba(230, 0, 18, 0.1), rgba(255, 255, 255, 0.3));
    padding: 20px 30px;
    border-bottom: 1px solid var(--gray-light);
}

.card-header h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    margin: 0;
}

.card-header h2 i {
    margin-right: 15px;
    font-size: 1.2rem;
}

/* 表单样式 */
.form {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
}

.input-with-icon input {
    padding: 12px 15px 12px 45px;
    width: 100%;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.input-with-icon input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.1);
}

.card-validated-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--success-color);
    display: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* 验证码样式 */
.captcha-group .captcha-container {
    display: flex;
    gap: 15px;
}

.captcha-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: var(--transition);
}

.captcha-wrapper:hover {
    transform: scale(1.05);
}

.refresh-captcha {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.8rem;
    transition: var(--transition);
}

.refresh-captcha:hover {
    background-color: var(--primary-color);
    color: white;
    transform: rotate(180deg);
}

/* 按钮样式 */
.button-group {
    margin-top: 30px;
}

.primary-button {
    display: inline-block;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    box-shadow: 0 5px 15px rgba(230, 0, 18, 0.25);
}

.primary-button:hover {
    background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 0, 18, 0.4);
}

.primary-button:active {
    transform: translateY(-1px);
}

.primary-button i {
    margin-right: 10px;
}

/* 错误信息样式 */
.error-message {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 18px;
}

/* 支付方式部分 */
.payment-methods {
    padding: 20px 30px;
    border-top: 1px solid var(--gray-light);
    background-color: rgba(248, 249, 250, 0.5);
}

.payment-methods h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.payment-icons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.payment-icon {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    transition: var(--transition);
}

.payment-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.payment-icon i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.payment-icon:nth-child(1) i {
    color: #00a0e9; /* 支付宝蓝色 */
}

.payment-icon:nth-child(2) i {
    color: #07c160; /* 微信绿色 */
}

.payment-icon:nth-child(3) i {
    color: #e60012; /* 银联红色 */
}

/* FAQ部分样式 */
.faq-section {
    padding: 20px 30px;
    border-top: 1px solid var(--gray-light);
}

.faq-section h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.faq-section h3 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 15px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: var(--transition);
    border-radius: 8px;
}

.faq-question:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.faq-question i {
    margin-right: 10px;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-question {
    color: var(--primary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(90deg);
}

.faq-answer {
    padding: 0 15px 15px 35px;
    display: none;
    color: var(--gray-color);
    animation: fadeIn 0.5s ease;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer ol, .faq-answer ul {
    margin-left: 20px;
    margin-top: 10px;
}

.faq-answer li {
    margin-bottom: 5px;
}

/* 客服信息部分 */
.customer-service {
    padding: 20px 30px;
    border-top: 1px solid var(--gray-light);
}

.customer-service h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.customer-service h3 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.customer-service p {
    color: var(--gray-color);
    margin-bottom: 10px;
}

.customer-service strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* 页脚样式 */
footer {
    background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
    color: white;
    padding: 30px 0;
    position: relative;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright p {
    margin: 0;
    opacity: 0.8;
}

.links {
    display: flex;
    gap: 20px;
}

.links a {
    color: white;
    opacity: 0.8;
    transition: var(--transition);
}

.links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    margin: 10% auto;
    padding: 0;
    width: 90%;
    max-width: 450px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s;
}

.success-header {
    background: linear-gradient(135deg, #e60012, #b8000e);
    color: white;
    padding: 20px 0;
    text-align: center;
    border-radius: 15px 15px 0 0;
}

.success-icon {
    display: inline-block;
    margin-bottom: 10px;
}

.success-header h2 {
    margin: 10px 0 0;
    font-size: 24px;
}

.success-body {
    padding: 20px 30px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e0e0e0;
}

.info-label {
    color: #666;
    font-weight: bold;
}

.info-value {
    color: #333;
    font-weight: bold;
}

.info-value.amount {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: bold;
}

.info-value.balance {
    color: var(--success-color);
    font-size: 18px;
    font-weight: bold;
}

.success-message {
    background-color: #f8f9fa;
    border-left: 4px solid #2ecc71;
    padding: 10px 15px;
    margin: 20px 0 10px;
    color: #555;
    border-radius: 0 5px 5px 0;
}

.success-message p {
    margin: 0;
    line-height: 1.5;
}

.success-footer {
    text-align: center;
    padding: 0 0 25px;
}

.success-footer .primary-button {
    background: linear-gradient(135deg, #e60012, #b8000e);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(230, 0, 18, 0.4);
}

.modal-content p {
    margin-bottom: 10px;
    color: var(--gray-color);
}

.modal-content p span {
    font-weight: 600;
    color: var(--dark-color);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 摇动动画 */
.shake-animation {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    transform: translate3d(0, 0, 0);
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }
    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }
    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* 淡入动画 */
.fadeIn {
    animation: fadeIn 0.5s ease;
}

/* 脉冲动画 */
.pulse {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* 活跃字段样式 */
.active-field label {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .slogan {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .captcha-group .captcha-container {
        flex-direction: column;
    }
    
    .captcha-wrapper {
        width: 100%;
        max-width: 200px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright {
        margin-bottom: 15px;
    }
    
    .card {
        margin: 0 10px 30px;
    }
    
    .payment-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.3rem;
    }
    
    .card-header h2 {
        font-size: 1.3rem;
    }
    
    .form {
        padding: 20px 15px;
    }
    
    .payment-methods, 
    .faq-section, 
    .customer-service {
        padding: 15px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .success-icon {
        width: 80px;
        height: 80px;
    }
    
    .success-icon i {
        font-size: 2.5rem;
    }
} 