/* 全局CSS样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

:root {
    --primary-color: #7dd3fc;
    --secondary-color: #0ea5e9;
    --accent-color: #e74c3c;
    --background-color: #f5f5f5;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #ddd;
    --success-color: #38bdf8;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
}

.btn-danger {
    background-color: var(--error-color);
}

.btn-danger:hover {
    background-color: #c0392b;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.flex-column {
    flex-direction: column;
}

/* 登录页样式 */
.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

/* Background video container */
.background-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

/* Background video styling */
.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

/* Video overlay for better contrast */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Fallback styles when video can't load or autoplay */
.video-fallback {
    background: linear-gradient(135deg, #7dd3fc, #2c3e50);
}

.video-fallback .background-video {
    display: none;
}

.video-paused .background-video {
    /* When video is paused but loaded, show the current frame */
    object-fit: cover;
}

.login-container {
    display: flex;
    max-width: 900px; /* 从 1200px 减小到 900px */
    width: 100%;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    /* Ensure login container is above the background video */
}

.login-card {
    flex: 1;
    padding: 25px 30px; /* 从 30px 40px 减小到 25px 30px */
    display: flex;
    flex-direction: column;
    background: #fff;
}

.login-header {
    text-align: center;
    margin-bottom: 10px;
}

.login-header a {
    max-height: 0px;
}

.login-logo {
    max-width: 70px; /* 从 200px 减小到 150px */
    margin-top: 15px; /* 从 20px 减小到 15px */
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05);
}

.login-header h1 {
    font-size: 24px; /* 从 28px 减小到 24px */
    background: linear-gradient(45deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 20px 0px 8px 0px; /* 从 25px 0px 10px 0px 调整到 20px 0px 8px 0px */
    font-weight: 600;
}

.login-header p {
    color: #7f8c8d;
    font-size: 14px; /* 从 16px 减小到 14px */
    margin-bottom: 15px; /* 从 20px 减小到 15px */
}

.login-form {
    flex: 1;
}

.form-group {
    margin-bottom: 10px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    background-color: #f9f9f9;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(125, 211, 252, 0.2);
    background-color: #fff;
}

.form-group input::placeholder {
    color: #aaa;
    font-size: 14px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    margin-bottom: 0;
    cursor: pointer;
}

.remember-me label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    background-color: var(--primary-color);
    padding: 14px;
    font-size: 16px;
    margin-bottom: 25px;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(125, 211, 252, 0.3);
}

.login-btn:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 6px 15px rgba(125, 211, 252, 0.4);
    transform: translateY(-2px);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(125, 211, 252, 0.3);
}

.login-footer {
    text-align: center;
    margin-top: 10px;
    color: #7f8c8d;
    font-size: 15px;
}

.register-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* 右侧功能区域样式 */
.login-features {
    flex: 1;
    background: linear-gradient(150deg, #7dd3fc 0%, #0ea5e9 60%, #2c3e50 100%);
    padding: 30px; /* 从 40px 减小到 30px */
    display: flex;
    flex-direction: column;
    color: white;
    position: relative;
    box-shadow: inset 5px 0 15px rgba(0, 0, 0, 0.1);
}

.features-title {
    text-align: center;
    margin-bottom: 20px; /* 从 30px 减小到 20px */
    font-size: 22px; /* 从 26px 减小到 22px */
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    position: relative;
}

.features-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
}

.features-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    margin: 10px 0;
}

.features-carousel-container {
    height: 400px !important; /* 从 300px 增加到 350px */
    position: relative;
    overflow: hidden;
    margin: 10px auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    background-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    perspective: 1000px;
}

.features-carousel-track {
    position: relative;
    transition: transform 0.5s linear;
    padding: 15px; /* 从 20px 减小到 15px */
    padding-bottom: 0;
    transform-style: preserve-3d;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 10px 18px; /* 从 12px 20px 减小到 10px 18px */
    margin-bottom: 12px; /* 从 15px 减小到 12px */
    height: 90px; /* 从 110px 减小到 90px */
    min-height: 90px; /* 从 110px 减小到 90px */
    max-height: 90px; /* 从 110px 减小到 90px */
    transition: transform 0.3s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    position: relative;
    transform-origin: center center;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.feature-card.original {
    z-index: 2;
}

.feature-card.clone {
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.03);
    background-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    z-index: 5;
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0) 100%);
    border-radius: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card:hover:before {
    opacity: 1;
}

.feature-card:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
    pointer-events: none;
    z-index: 1;
    filter: blur(5px);
}

/* 卡片内容样式 */
.feature-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px; /* 从 45px 减小到 35px */
    height: 35px; /* 从 45px 减小到 35px */
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px; /* 从 12px 减小到 10px */
    margin-bottom: 8px; /* 从 12px 减小到 8px */
    font-size: 16px; /* 从 20px 减小到 16px */
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.feature-card:hover .feature-icon {
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    font-size: 16px; /* 从 18px 减小到 16px */
    font-weight: 600;
    margin-bottom: 6px; /* 从 8px 减小到 6px */
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.feature-card:hover h3 {
    transform: translateX(3px);
    color: #fff;
}

.feature-card p {
    font-size: 12px; /* 从 14px 减小到 12px */
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4; /* 从 1.5 减小到 1.4 */
    transition: all 0.3s ease;
    font-weight: 300;
}

.feature-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* 轮播控制按钮 */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    color: white;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.control-btn:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.control-btn:hover:after {
    opacity: 1;
}

.control-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.control-btn:active {
    transform: translateY(0);
}

.control-btn i {
    transition: transform 0.3s ease;
    font-size: 18px;
}

#prevBtn:hover i {
    transform: translateY(-3px);
}

#nextBtn:hover i {
    transform: translateY(3px);
}

/* 移除轮播容器阴影效果，防止干扰卡片显示 */
.features-carousel-container:before,
.features-carousel-container:after {
    display: none;
}

/* 响应式布局调整 */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
        max-width: 500px; /* 从 600px 减小到 500px */
    }

    .login-card,
    .login-features {
        flex: none;
        width: 100%;
    }

    .login-features {
        padding: 25px; /* 从 30px 减小到 25px */
    }

    .features-carousel-container {
        height: 200px; /* 从 250px 减小到 200px */
    }

    .feature-card {
        height: 75px; /* 从 90px 减小到 75px */
        padding: 12px; /* 从 15px 减小到 12px */
    }
}

@media (max-width: 576px) {

    .login-card,
    .login-features {
        padding: 20px 15px; /* 从 25px 20px 减小到 20px 15px */
    }

    .login-header h1 {
        font-size: 20px; /* 从 24px 减小到 20px */
    }

    .feature-card h3 {
        font-size: 14px; /* 从 16px 减小到 14px */
    }

    .feature-card p {
        font-size: 11px; /* 从 13px 减小到 11px */
    }

    .form-group input {
        padding: 10px 12px;
    }

    .login-btn {
        padding: 12px;
    }
}