* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a4f7a;
    --secondary-color: #3498db;
    --accent-color: #2ecc71;
    --text-color: #2c3e50;
    --light-text: #ecf0f1;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    background: rgba(26, 79, 122, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1525px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: white;
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    padding: 5px 0;
}

.nav-logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #3498db, transparent);
    transition: width 0.3s ease;
}

.nav-logo:hover::after {
    width: 100%;
}

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

.nav-links a {
    margin-right: 20px;
}

.nav-links a:last-child {
    margin-right: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 联系我们链接悬停提示样式 */
.contact-link {
    position: relative;
}

.email-tooltip {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(26, 79, 122, 0.95);
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: normal;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.email-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent rgba(26, 79, 122, 0.95) transparent;
}

.contact-link:hover .email-tooltip {
    opacity: 1;
    visibility: visible;
}

/* 移除旧的悬停提示样式 */
.contact-link:hover::before {
    content: none;
}

.main-container {
    min-height: 100vh;
    /* 先设置渐变背景作为底色，防止图片加载不完整时出现留白 */
    background: linear-gradient(to bottom, #1a4f7a, #0c2338);
    /* 再加载图片背景 */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img_data/DNA4.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.8;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 重置密码页面的内容包装器 */
body:has(.reset-password-container) .content-wrapper {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 0;
    max-width: 400px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro {
    flex: 1.5;
    padding: 40px;
    background: rgba(248, 249, 250, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 300px;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    transition: none;
}

.intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    z-index: -1;
}

.intro h1 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.intro h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #3498db, #2980b9);
    margin-top: 10px;
    border-radius: 2px;
}

.intro p {
    font-size: 16px;
    color: #fff;
    line-height: 1.6;
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.feature-list {
    list-style: none;
    margin-top: 30px;
    position: relative;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.feature-list li:hover {
    transform: translateX(10px);
    background: rgba(52, 152, 219, 0.3);
    border-color: rgba(52, 152, 219, 0.4);
}

.feature-list li::before {
    content: '✓';
    display: inline-block;
    margin-right: 10px;
    color: #27ae60;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.feature-list li:hover::before {
    transform: scale(1.2);
    color: #3498db;
}

.feature-tooltip {
    position: absolute;
    background: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    max-width: 250px;
    display: none;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-tooltip.active {
    display: block;
    opacity: 1;
}

.highlight-input {
    animation: highlightBorder 1s ease;
}

@keyframes highlightBorder {
    0% { border-color: #e0e0e0; }
    50% { border-color: #3498db; }
    100% { border-color: #e0e0e0; }
}

.login-container {
    flex: 1;
    padding: 25px;
    background: rgba(255, 255, 255, 0.75);
    position: relative;
    min-width: 300px;
    max-width: none;
    border-radius: 0;
    box-shadow: -1px 0 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: none;
    border: none;
}

.login-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.login-container h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.login-container h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2980b9);
    margin: 10px auto 0;
    border-radius: 2px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #000;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    text-align: center;
}

.login-links a {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    margin: 0 5px;
}

.login-links a:hover {
    color: #2980b9;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        margin: 20px;
        padding: 0;
    }

    .login-container::before {
        width: 100%;
        height: 1px;
        left: 0;
        top: 0;
        background: linear-gradient(to right, transparent, #3498db, transparent);
    }

    .intro, .login-container {
        padding: 30px;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.loading-overlay.show {
    opacity: 1;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: white;
    margin-top: 15px;
    font-size: 18px;
}

/* Toast消息样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    z-index: 1100;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: none;
    animation: fadeIn 0.3s;
}

.toast.info {
    background-color: #3498db;
}

.toast.success {
    background-color: #2ecc71;
}

.toast.warning {
    background-color: #f39c12;
}

.toast.error {
    background-color: #e74c3c;
}



/* 认证表单样式 */
.auth-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: #000;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    position: relative;
}

.auth-tab:hover {
    opacity: 0.9;
}

.auth-tab.active {
    opacity: 1;
    color: #000;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.auth-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.auth-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.register-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.register-btn:hover {
    background: linear-gradient(45deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}



/* 响应式调整 */
@media (max-width: 768px) {
    .login-container {
        width: 90%;
        max-width: 400px;
    }
    
    .auth-tab {
        font-size: 14px;
    }
}



@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 密码输入框容器样式 */
.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    width: 100%;
    padding-right: 40px; /* 为眼睛图标留出空间 */
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    z-index: 10;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.password-toggle:hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.05);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* 用户菜单样式 */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 20px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.user-menu:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.username {
    color: white;
    font-weight: 500;
    margin-right: 8px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid white;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.user-menu:hover::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

.user-menu:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: normal;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: #2980b9;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.user-avatar svg {
    width: 20px;
    height: 20px;
    color: #666;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.user-email {
    font-size: 12px;
    color: #666;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 4px 0;
}

.dropdown-menu a svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

/* 会员状态样式 */
.membership-status {
    padding: 8px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.membership-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.membership-badge.free {
    background-color: #95a5a6;
}

.membership-badge.plus {
    background-color: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.membership-badge.premium {
    background-color: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

.membership-expiry {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

/* AI使用情况样式 */
.ai-usage-info {
    margin-top: 8px;
}

.ai-usage-status {
    display: flex;
    align-items: center;
    font-size: 12px;
    margin-bottom: 6px;
}

.ai-usage-status i {
    margin-right: 6px;
    width: 14px;
}

.ai-usage-normal {
    color: #2ecc71;
}

.ai-usage-warning {
    color: #f39c12;
}

.ai-usage-danger {
    color: #e74c3c;
}

.ai-usage-unlimited {
    color: #9b59b6;
}

.ai-usage-bar {
    width: 100%;
    height: 4px;
    background-color: #ecf0f1;
    border-radius: 2px;
    overflow: hidden;
}

.ai-usage-progress {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.ai-usage-normal ~ .ai-usage-bar .ai-usage-progress {
    background-color: #2ecc71;
}

.ai-usage-warning ~ .ai-usage-bar .ai-usage-progress {
    background-color: #f39c12;
}

.ai-usage-danger ~ .ai-usage-bar .ai-usage-progress {
    background-color: #e74c3c;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.3s;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal h2 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
}

.modal p {
    margin-bottom: 20px;
    color: #666;
}

.modal .form-group {
    margin-bottom: 20px;
}

.modal .submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.modal .submit-btn:hover {
    background-color: #45a049;
}

.message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideDown {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

/* 重置密码页面样式 */
.reset-password-container {
    padding: 40px;
    background: rgba(255, 255, 255, 0.75);
    position: relative;
    min-width: 300px;
    width: 400px;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: none;
}

.reset-password-container h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    text-shadow: none;
}

.reset-password-container h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2980b9);
    margin: 10px auto 0;
    border-radius: 2px;
}

.reset-password-container p {
    color: #000;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    text-shadow: none;
}

.reset-password-container .form-group {
    margin-bottom: 15px;
}

.reset-password-container .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #000;
    text-shadow: none;
}

.reset-password-container .password-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
    margin-bottom: 10px;
}

.reset-password-container input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    font-size: 14px;
    transition: all 0.3s ease;
}

.reset-password-container input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.reset-password-container input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.reset-btn {
    width: 100%;
    padding: 12px 25px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-shadow: none;
    box-shadow: none;
    margin-top: 5px;
    letter-spacing: normal;
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.reset-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.reset-password-container .message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    text-shadow: none;
    font-size: 14px;
}

.reset-password-container .message.success {
    background-color: rgba(76, 175, 80, 0.2);
    color: #2c7a30;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.reset-password-container .message.error {
    background-color: rgba(244, 67, 54, 0.2);
    color: #d32f2f;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.reset-password-container .password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.reset-password-container .password-toggle:hover {
    color: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%);
}

.reset-password-container .password-toggle:focus {
    outline: none;
}

.reset-password-container .password-toggle svg {
    width: 16px;
    height: 16px;
    filter: none;
}

/* 验证码容器样式 */
.verification-container {
    display: flex;
    position: relative;
    width: 100%;
}

.verification-container input {
    flex: 1;
    width: calc(100% - 120px);
}

.verification-btn {
    position: relative;
    width: 110px;
    margin-left: 10px;
    padding: 10px 0;
    color: #fff;
    background: linear-gradient(135deg, #1a4f7a, #3498db);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 3px 10px rgba(26, 79, 122, 0.2);
}

.verification-btn:hover {
    background: linear-gradient(135deg, #155d8c, #2980b9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 79, 122, 0.3);
}

.verification-btn:disabled {
    background: #a0a0a0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 用户协议同意样式 */
.agreement-group {
    margin: 20px 0;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 13.5px;
    line-height: 1.5;
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: #3498db;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #3498db;
    border-color: #3498db;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 50%;
    top: 50%;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.checkbox-container a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.checkbox-container a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.agreement-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.agreement-link:hover {
    color: #2980b9;
    text-decoration: underline;
}



/* 对重置密码页面的验证容器进行特殊定制 */
.reset-password-container .verification-container {
    margin-bottom: 15px;
}

.reset-password-container .verification-btn {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

/* 密码强度验证浮窗的样式 */
.password-strength-popup {
    position: absolute;
    z-index: 9999;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 8px 10px;
    width: 240px;
    display: none;
    border: 1px solid #e0e0e0;
    top: 100%;
    left: 0;
    margin-top: 5px;
}

.password-strength-popup.show-popup {
    display: block;
}

.strength-arrow {
    position: absolute;
    top: -7px;
    left: 15px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid white;
}

.strength-item {
    margin: 6px 0;
    display: flex;
    align-items: center;
    color: #666;
    font-size: 13px;
    line-height: 1.3;
}

.strength-item i {
    margin-right: 6px;
    font-size: 14px;
    min-width: 14px;
}

.strength-item.valid {
    color: #27ae60;
}

.strength-item.invalid {
    color: #e74c3c;
}

.strength-item i.fa-times-circle {
    color: #e74c3c;
}

.strength-item i.fa-check-circle {
    color: #27ae60;
}

/* 新主页样式 */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img_data/DNA4.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    flex-shrink: 0;
    animation: subtleBgZoom 30s infinite alternate;
}

@keyframes subtleBgZoom {
    from {
        background-size: 100% auto;
    }
    to {
        background-size: 110% auto;
    }
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, #ffffff 0%, #3498db 25%, #3498db 75%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    padding: 10px 20px;
    position: relative;
    letter-spacing: 1px;
    -webkit-text-stroke: 0.3px white;
}

.hero-title::before, .hero-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    opacity: 0.8;
    animation: slideInFromSides 1.5s ease forwards;
    border-radius: 2px;
}

.hero-title::before {
    left: 0;
    transform: translateX(-100%);
}

.hero-title::after {
    right: 0;
    transform: translateX(100%);
}

@keyframes slideInFromSides {
    to {
        transform: translateX(0);
    }
}

.hero-description {
    font-size: 1.4rem;
    line-height: 1.7;
    font-weight: 300;
    max-width: 850px;
    letter-spacing: 0.5px;
    color: var(--light-text);
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.2s ease;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1.2s ease, glow 3s infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    }
    to {
        text-shadow: 0 1px 10px rgba(52, 152, 219, 0.8);
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1.4s ease;
}

.btn-primary {
    padding: 15px 30px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: fadeInUp 1.4s ease, pulse 2s infinite alternate;
    transform-origin: center;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.5);
}

.btn-secondary {
    padding: 15px 30px;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    animation: fadeInUp 1.4s ease, pulse 2s infinite alternate;
    transform-origin: center;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

/* 特性部分 */
.features-section {
    padding: 100px 20px;
    background: var(--bg-color);
    flex-shrink: 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 15px auto 0;
    border-radius: 2px;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

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

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-description {
    color: var(--text-color);
    line-height: 1.6;
}

/* AI集成部分 */
.ai-section {
    padding: 100px 20px;
    background: linear-gradient(rgba(26, 79, 122, 0.9), rgba(26, 79, 122, 0.9)), url('../img_data/DNA4.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    flex-shrink: 0;
}

.ai-container {
    max-width: 800px;
    margin: 0 auto;
}

.ai-logo {
    max-width: 200px;
    margin-bottom: 30px;
}

.ai-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Qwen Logo 样式 */
.qwen-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0 1px 0;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.qwen-logo-container:hover {
    transform: translateY(-3px);
}

.qwen-logo {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(1.1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.qwen-logo:hover {
    transform: scale(1.08);
    filter: brightness(1.2) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.qwen-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .qwen-logo-container {
        flex-direction: column;
        gap: 12px;
        margin: 30px 0 15px 0;
    }
    
    .qwen-logo {
        height: 40px;
    }
    
    .qwen-text {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
}

/* 登录模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: zoomIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: #777;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #333;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .features-container {
        grid-template-columns: 1fr;
    }

    /* Ensure modal content padding is sufficient on smaller screens if needed */
    .modal-content {
        padding: 20px; 
    }
}

/* 页脚样式 */
.site-footer {
    background-color: var(--text-color); /* 改为深灰色背景 */
    color: var(--light-text);
    padding: 10px 20px; /* 减小垂直内边距 */
    text-align: center;
    margin-top: auto; 
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer p {
    margin: 5px 0;
}

.site-footer a {
    color: var(--light-text); /* 悬停时改为浅色文字 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--light-text); /* 悬停时改为浅色文字 */
    text-decoration: underline;
}

/* 如果页面内容足够长，确保主要内容容器不会影响页脚的定位 */
/* 你可能需要根据实际结构调整或添加这个选择器 */
.hero-section, .features-section, .ai-section {
    flex-shrink: 0; /* 防止这些主要部分在内容不足时被压缩 */
}

section {
    flex: 1 0 auto; /* 让内容区域自动增长，但不缩小 */
}

/* 为整个hero section添加缓慢的背景动画效果 */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img_data/DNA4.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    flex-shrink: 0;
    animation: subtleBgZoom 30s infinite alternate;
}

/* 为装饰性元素添加更多变化 */
.hero-decoration:nth-child(3) {
    top: 40%;
    right: 20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.2) 0%, rgba(46, 204, 113, 0) 70%);
    animation-delay: 1s;
}

/* 添加滚动提示箭头 */
.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    z-index: 10;
}

.scroll-hint:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-20px) translateX(-50%);}
    60% {transform: translateY(-10px) translateX(-50%);}
}



/* 改进粒子效果 */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.8; /* 增加可见度 */
}

/* 添加按钮动画 */
.btn-primary, .btn-secondary {
    animation: fadeInUp 1.4s ease, pulse 2s infinite alternate;
    transform-origin: center;
}

@keyframes pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

/* 改进描述文本 */
.hero-description {
    font-size: 1.4rem; /* 增大字体 */
    line-height: 1.7;
    font-weight: 300; /* 减轻字重 */
    max-width: 850px; /* 增加宽度 */
    letter-spacing: 0.5px; /* 增加字母间距 */
}

/* 装饰元素基本样式 */
.hero-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.3) 0%, rgba(52, 152, 219, 0) 70%);
    border-radius: 50%;
    animation: float 8s infinite ease-in-out;
    z-index: 0;
}

.hero-decoration:nth-child(1) {
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    animation-delay: 0s;
}

.hero-decoration:nth-child(2) {
    bottom: 20%;
    right: 10%;
    width: 250px;
    height: 250px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Cookie 同意横幅样式 */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(45, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    font-family: 'Poppins', sans-serif;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ecf0f1;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

.cookie-text i {
    font-size: 24px;
    color: #f39c12;
    flex-shrink: 0;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn.accept {
    background: #2ecc71;
    color: white;
}

.cookie-btn.accept:hover {
    background: #27ae60;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.cookie-btn.manage {
    background: transparent;
    color: #ecf0f1;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn.manage:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .cookie-text {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-text span {
        font-size: 13px;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        max-width: 120px;
    }
}
