/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e60012;
    --primary-color-light: #ff6b6b;
    --primary-color-dark: #c4000f;
    --secondary-color: #004ea2;
    --secondary-color-light: #1a75c6;
    --secondary-color-dark: #003b7d;
    --accent-color: #ffd200;
    --accent-color-light: #ffe566;
    --accent-color-dark: #e6bd00;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --mid-gray: #e0e0e0;
    --dark-gray: #666;
    --white: #fff;
    --black: #000;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --card-shadow: 0 10px 30px rgba(0, 78, 162, 0.1);
    --input-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --input-border-radius: 8px;
    --card-border-radius: 12px;
    --btn-border-radius: 8px;
}

body {
    font-family: 'Microsoft YaHei', 'Heiti SC', 'Hiragino Sans GB', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-gray);
    background-image: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

/* Header styles */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

#logo-img {
    height: 50px;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

#logo-img:hover {
    transform: scale(1.05);
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

nav ul {
    display: flex;
    list-style: none;
    margin-top: 15px;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

nav ul li a:hover, 
nav ul li a.active {
    color: var(--primary-color);
    background-color: rgba(230, 0, 18, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(230, 0, 18, 0.15);
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, rgba(0, 78, 162, 0.85), rgba(230, 0, 18, 0.85)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    margin-bottom: 60px;
    border-radius: 0 0 30px 30px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: none;
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: none;
}

/* Card styles */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.card {
    background-color: var(--white);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    flex: 1;
    min-width: 300px;
    transition: var(--transition);
    border: 1px solid rgba(0, 78, 162, 0.08);
}

.card:hover {
    transform: none;
    box-shadow: 0 15px 35px rgba(0, 78, 162, 0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-color-dark));
    color: var(--white);
    padding: 18px 25px;
    position: relative;
    overflow: hidden;
}

.card-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: none;
    pointer-events: none;
}

.card-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.card-header h3 i {
    margin-right: 12px;
    font-size: 1.8rem;
    background: -webkit-linear-gradient(var(--accent-color), var(--accent-color-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.card-body {
    padding: 30px;
}

/* Form styles */
.form-group {
    margin-bottom: 28px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--secondary-color-dark);
    transition: var(--transition);
    font-size: 0.95rem;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--mid-gray);
    border-radius: var(--input-border-radius);
    font-size: 16px;
    background-color: var(--white);
    color: var(--text-color);
    transition: all 0.25s ease-in-out;
    box-shadow: var(--input-shadow);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: #aaa;
    transition: var(--transition);
}

input[type="text"]:hover,
input[type="password"]:hover {
    border-color: var(--secondary-color-light);
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(0, 78, 162, 0.1);
    transform: translateY(-2px);
}

input[type="text"]:focus::placeholder,
input[type="password"]:focus::placeholder {
    opacity: 0.5;
    transform: translateX(5px);
}

/* Form validation styles */
.form-group.valid input {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.05);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234CAF50' width='18px' height='18px'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
}

.form-group.invalid input {
    border-color: var(--primary-color);
    background-color: rgba(230, 0, 18, 0.05);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e60012' width='18px' height='18px'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
}

/* Special case for password field */
.form-group.valid .password-input-container input,
.form-group.invalid .password-input-container input {
    padding-right: 70px; /* Extra space for both icon and eye toggle */
}

/* Special case for captcha field */
.form-group:has(.captcha-container).valid input,
.form-group:has(.captcha-container).invalid input {
    background-image: none;
    padding-right: 16px;
}

/* Animation for error messages */
.error-message {
    color: var(--primary-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.form-group.invalid .error-message {
    max-height: 40px;
    opacity: 1;
    margin-top: 10px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Focus animation */
.form-group.focused input {
    box-shadow: 0 0 0 4px rgba(0, 78, 162, 0.1);
    transform: translateY(-2px);
}

/* Button loading state */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid var(--white);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Refresh captcha rotation */
.refresh-captcha.rotating {
    animation: rotate-refresh 0.5s ease;
}

@keyframes rotate-refresh {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Modal animations */
.modal-content {
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-content.show-modal {
    transform: scale(1);
    opacity: 1;
}

.modal-content.hide-modal {
    transform: scale(0.9);
    opacity: 0;
}

/* Enhanced captcha image */
.captcha-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-gray), #fff);
}

.captcha-image::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: none;
    z-index: 0;
    opacity: 0.5;
}

.captcha-image span {
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

/* Captcha container styles */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-container input {
    flex: 1;
}

.captcha-image {
    width: 130px;
    height: 50px;
    background-color: var(--white);
    border-radius: var(--input-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 22px;
    letter-spacing: 5px;
    color: var(--black);
    user-select: none;
    box-shadow: var(--input-shadow);
    border: 2px solid var(--mid-gray);
    overflow: hidden;
}

.refresh-captcha {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--secondary-color);
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.refresh-captcha:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
    transform: rotate(180deg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border: none;
    border-radius: var(--btn-border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: none;
    pointer-events: none;
}

@keyframes shimmer {
    0% { background-position: 0 0; }
    100% { background-position: 0 0; }
}

@keyframes btnShimmer {
    0% { background-position: 0 0; }
    100% { background-position: 0 0; }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-color-dark), var(--primary-color));
    transform: none;
    box-shadow: 0 10px 20px rgba(230, 0, 18, 0.25);
}

.btn-primary:active {
    transform: none;
    box-shadow: 0 4px 8px rgba(230, 0, 18, 0.2);
}

/* Info list */
.info-list {
    list-style: none;
    margin-bottom: 20px;
}

.info-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px dashed rgba(0, 78, 162, 0.15);
    transition: var(--transition);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li:hover {
    transform: none;
}

.info-list li i {
    margin-right: 15px;
    font-size: 1.2rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: var(--secondary-color);
    border-radius: 50%;
}

.info-list li i.fa-exclamation-triangle {
    background: var(--accent-color);
    color: var(--text-color);
}

.customer-service {
    border-top: 1px solid var(--mid-gray);
    padding-top: 20px;
    margin-top: 20px;
    background: linear-gradient(to bottom, rgba(0, 78, 162, 0.05), transparent);
    padding: 20px;
    border-radius: var(--input-border-radius);
}

.customer-service h4 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.customer-service p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.customer-service p i {
    margin-right: 15px;
    color: var(--secondary-color);
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

/* Features section */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 80px;
}

.feature {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 40px 30px;
    background-color: var(--white);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 78, 162, 0.08);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.feature:hover {
    transform: none;
    box-shadow: 0 15px 35px rgba(0, 78, 162, 0.15);
}

.feature i {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-color-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature p {
    color: var(--dark-gray);
    font-size: 1rem;
}

/* Footer styles */
footer {
    background: linear-gradient(135deg, var(--secondary-color-dark), var(--secondary-color));
    color: var(--white);
    padding: 80px 0 20px;
    border-radius: 30px 30px 0 0;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

footer::before {
    display: none; /* Remove the radial gradient effect */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 5;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo-img {
    height: 60px;
    margin-bottom: 15px;
    filter: brightness(1.2);
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-links-column {
    flex: 1;
    min-width: 150px;
}

.footer-links-column h4 {
    color: var(--accent-color-light);
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-links-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.footer-links-column ul {
    list-style: none;
}

.footer-links-column ul li {
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links-column ul li:hover {
    transform: none;
}

.footer-links-column a {
    color: var(--white);
    opacity: 0.8;
    font-size: 0.95rem;
    position: relative;
    padding-left: 0;
    transition: all 0.3s ease;
}

.footer-links-column a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-links-column a::before {
    content: '›';
    position: absolute;
    left: -10px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links-column a:hover::before {
    opacity: 1;
    left: -5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
    position: relative;
    z-index: 5;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--card-border-radius);
    max-width: 450px;
    width: 90%;
    padding: 40px;
    text-align: center;
    position: relative;
    animation: modalFadeIn 0.3s;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 78, 162, 0.1);
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

@keyframes modalFadeIn {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-gray);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: var(--light-gray);
}

.close-modal:hover {
    background: rgba(230, 0, 18, 0.1);
    color: var(--primary-color);
    transform: rotate(90deg);
}

.success-icon {
    font-size: 5rem;
    color: #4CAF50;
    margin-bottom: 20px;
    animation: successIconAppear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
}

@keyframes successIconAppear {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--secondary-color-dark);
}

.modal-content p {
    color: var(--dark-gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.modal-content .btn {
    max-width: 200px;
    margin: 0 auto;
}

/* Password toggle improved */
.password-input-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--dark-gray);
    transition: var(--transition);
    padding: 8px;
    border-radius: 50%;
    z-index: 5;
}

.toggle-password:hover {
    background-color: var(--light-gray);
    color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Responsive styles */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .hero {
        padding: 80px 0;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .card-container {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links {
        width: 100%;
    }
    
    .feature::before {
        height: 4px;
    }
}

@media (min-width: 769px) {
    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    nav ul {
        margin-top: 0;
    }
    
    .btn {
        width: auto;
    }
}

/* Removing flowing animation for cards */
.card::after {
    display: none; /* This removes the flowing animation effect */
}

@keyframes shimmerEffect {
    0% { transform: none; }
    100% { transform: none; }
} 