/* 统一颜色变量 */
:root {
    --primary-color: #4a00e0;
    --secondary-color: #8e2de2;
    --accent-color: #00c6ff;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, #4a00e0 0%, #8e2de2 100%);
    --gradient-accent: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
#header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0;
}

.navbar {
    display: flex;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
    margin-right: 1rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 登录页面特定样式 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    background: radial-gradient(circle at 20% 50%, rgba(74, 0, 224, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 198, 255, 0.1) 0%, transparent 50%);
}

.login-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2.5rem;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: var(--text-gray);
}

.form-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 0.8rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    color: var(--accent-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
}

.form-container {
    position: relative;
}

.form {
    display: none;
}

.form.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.input-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 198, 255, 0.2);
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 1rem;
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
}

.forgot-link {
    display: block;
    margin-top: 1rem;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* 统一按钮样式 */
.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center; /* 确保内容居中 */
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    width: 100%; /* 按钮宽度100% */
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 198, 255, 0.3);
}

.btn i {
    margin-left: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-card {
        max-width: 90%;
        padding: 2rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        border-top: 1px solid var(--border-color);
        gap: 0;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* 汉堡菜单 */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

/* 登录按钮样式 */
.login-btn {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-left: 2rem;
}

.login-btn:hover {
    background: var(--accent-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 198, 255, 0.3);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .login-btn {
        margin: 1rem auto;
        display: block;
        width: fit-content;
    }
}
/* 通知提示样式 */
#notification-container {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    max-width: 500px;
}

.notification {
    padding: 18px 25px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease-out forwards, fadeOut 0.4s ease-in forwards 3s;
    opacity: 0;
    transform: translateY(-20px);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification.success {
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
}

.notification.error {
    background: linear-gradient(90deg, #F44336, #FF5722);
}

@keyframes slideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}
/* ========= 汉堡菜单 – 仅移动端 ========= */
@media (max-width: 768px) {
  /* 汉堡按钮本身 */
  .nav-toggle { display: block; }

  /* 移动端纵向菜单 – 初始收起 */
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(10, 10, 10, .98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    z-index: 999;
    border-top: 1px solid var(--border-color);
    gap: 0;
  }

  /* 展开状态 */
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 15px 20px;
    font-size: 1.1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* 登录按钮居中 */
  .login-btn {
    margin: 1rem auto 0;
    display: block;
    width: fit-content;
  }
}

/* ===== 电脑端恢复横向导航 ===== */
@media (min-width: 769px) {
  .nav-toggle { display: none; }      /* 隐藏汉堡 */
  .nav-links {
    position: static;                 /* 取消固定定位 */
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    flex-direction: row;              /* 横向排列 */
    height: auto;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    border: none;
    z-index: auto;
  }
}

/* 忘记密码弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2.5rem;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-header p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.modal-footer .btn {
    width: 100%;
}

/* ===== 获取验证码按钮 ===== */
.btn-sm {
    padding: 0.80rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    color: #fff;
    background: var(--gradient-accent);   /* 沿用蓝渐变 */
    box-shadow: 0 4px 12px rgba(0, 198, 255, 0.25);
}

.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 198, 255, 0.4);
}

/* 倒计时禁用状态 */
.btn-sm:disabled {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-gray);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* login.css 末尾追加 */
.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
    color: var(--text-gray);
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label a {
    color: var(--accent-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.tab-tip {
    border-left: 5px solid #97f197;
    display: flex;
    padding: 0.5rem;
    border-radius: 10px;
    margin: 1.2rem;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #08aa08;
}