/* 基础样式 */
:root {
    --primary: #5d31fd;
    --secondary: #3b82f6;
    --accent: #60a5fa;
    --neutral: #f3f4f6;
    --neutral-dark: #9ca3af;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* 背景样式（整体UI由设计稿提供，保持不变） */
.background {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.background-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 1;
}

.background-image {
    position: absolute;
    inset: 0;
    /*background-image: url('../images/bg3.png');*/
    background-size: auto 100%;
    background-position: left center;
    background-repeat: no-repeat;
    /*background-color: #1c2246;*/
    z-index: 1;
}

.background-decoration {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 2;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    filter: blur(64px);
}

.circle-top {
    top: -80px;
    left: -80px;
    width: 384px;
    height: 384px;
}

.circle-middle {
    top: 33.33%;
    right: -192px;
    width: 384px;
    height: 384px;
}

.circle-bottom {
    bottom: -192px;
    left: 33.33%;
    width: 384px;
    height: 384px;
}

/* 主容器 */
.container {
    display: flex;
    position: relative;
    box-sizing: border-box;
    min-height: 100vh;
    padding: 16px;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

    .container * {
        box-sizing: border-box;
    }

/* 顶部导航 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    margin-right: 12px;
}

.logo-title {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

/* 主内容区 */
.main-content {
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 0 16px;
}

.brand-section {
    text-align: center;
}

.mobile-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.mobile-logo {
    width: 32px;
    height: 32px;
    margin-right: 8px;
}

.mobile-logo-title {
    color: var(--primary);
    font-size: 16px;
    font-weight: bold;
}

.menu-button {
    color: #9ca3af;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

    .menu-button:hover {
        color: var(--primary);
    }


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: none;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
}

    .btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        z-index: -1;
    }

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
}

    .btn-secondary:hover {
        background: rgba(255, 255, 255, 0.2);
    }

/* 登录卡片 */
.login-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(40px);
    border-radius: 16px;
    box-shadow: 0 20px 25px -10px rgba(0, 0, 0, 0.1), 0 10px 10px -10px rgba(0, 0, 0, 0.04);
    padding: 32px;
    border: 1px solid rgba(245, 254, 255, 0.6);
    width: 100%;
    max-width: 500px;
    margin: auto;
}

.card-header {
    text-align: center;
    margin-bottom: 32px;
}

.card-title {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
}

.card-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.form-group {
    margin-bottom: 28px;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 0;
    top: 12px;
    display: flex;
    align-items: center;
    padding-left: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.login-section .form-input {
    width: 100%;
    padding: 12px 16px 12px 30px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    outline: none;
}

/* 修复浏览器记住账号密码后输入框偏白的问题（仅覆盖自动填充的样式） */
.login-section .form-input:-webkit-autofill,
.login-section .form-input:-webkit-autofill:hover,
.login-section .form-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px rgba(0, 0, 0, 0.1) inset;
    -webkit-text-fill-color: #ffffff;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #ffffff;
}

    .form-input::placeholder {
        color: rgba(255, 255, 255, 0.5) !important;
    }

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    background: none;
    border: none;
}

    .password-toggle:hover {
        color: var(--secondary);
    }

.captcha-container {
    position: relative;
    overflow: hidden;
    user-select: none;
    width: 100px;
    height: 40px;
    margin-left: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    cursor: pointer;
}

/* 验证码背景（提高亮度与对比度，仅作用于验证码区域，不改整体背景） */
.captcha-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ffffff 25%, transparent 25%), linear-gradient(-45deg, #ffffff 25%, transparent 25%), linear-gradient(45deg, transparent 7%, #ffffff 75%), linear-gradient(-45deg, transparent 75%, #ffffff 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.85;
    filter: brightness(1.1);
}

.captcha-text {
    position: relative;
    font-weight: bold;
    letter-spacing: 4px;
    transform: skew(-5deg);
    filter: blur(0.5px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #000206;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.captcha-line {
    position: absolute;
    height: 1px;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.checkbox-input {
    height: 16px;
    width: 16px;
    color: var(--secondary);
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.checkbox-label {
    margin-left: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.action-links {
    padding-top: 15px;
    text-align: right;
}

    .action-links a:link,
    .action-links a:visited,
    .action-links a:active {
        font-size: 14px;
        color: #fff;
        text-decoration: none;
    }

    .action-links a:hover {
        color: #fff;
    }

.submit-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-help {
    margin-top: 24px;
    text-align: center;
}

.help-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.help-link {
    color: white;
    text-decoration: underline;
}

    .help-link:hover {
        color: white;
    }

/* 底部信息 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 32px;
    color: rgba(255, 255, 255, 1);
    font-size: 14px;
    display: flex;
    flex-direction: row;
    align-items: left;
    text-align: left;
    justify-content: space-between;
}

.footer-links {
    display: flex;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin: 0 24px;
}

    .footer-link:hover {
        color: white;
    }

/* 忘记密码弹窗 */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    display: none;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 448px;
    margin: 0 16px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #1f2937;
}

.close-button {
    color: #6b7280;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

    .close-button:hover {
        color: #374151;
    }

.verification-row {
    display: flex;
    gap: 16px;
}

.verification-input {
    flex-grow: 1;
}

.verification-button {
    background: white;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 0 16px;
    border-radius: 8px;
    white-space: nowrap;
    cursor: pointer;
}

    .verification-button:hover {
        background: #eff6ff;
    }

    .verification-button:disabled {
        opacity: 0.7;
    }

/* Toast消息 */
.toast {
    position: fixed;
    top: 16px;
    right: 16px;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 50;
    transform: translateX(100%);
}

.toast-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.toast-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.toast-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.main-content {
    flex-direction: row;
}

.brand-section {
    width: 50%;
    text-align: left;
}

.brand-buttons {
    flex-direction: row;
    justify-content: flex-start;
}

.login-section {
    width: 50%;
}

.mobile-navbar {
    display: none;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.brand-title {
    font-size: 60px;
}

.brand-description {
    font-size: 20px;
    margin-left: 0;
}

/* 顶部广播跑马灯（Element UI 轮播封装） */
.notice-app,
.notice-wrapper {
    width: 60%;
    max-width: 900px;
    margin: 0 auto 8px auto;
}
.notice-carousel .el-carousel__container {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(245, 254, 255, 0.6);
}
.notice-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    font-size: 14px;
    padding: 0 16px;
    text-decoration: none;
}

/* 顶部广播跑马灯 — 样式优化与统一提取
   说明：
   - 为了提高可读性与美观度，将原本写在 HTML 的行内样式统一挪到此处
*/
.broadcast-wrapper {
    /* 宽度和居中控制：顶层容器占满宽度，内部轮播居中呈现 */
    width: 100%;
    max-width: 1200px;
    margin: 42px auto 0px auto; /* 增加与顶部的间距，避免过于贴近导航 */
    z-index: 15; /* 提升层级，避免被背景装饰遮挡 */
}

.notice-carousel {
    /* 轮播容器尺寸与居中 */
    width: 60%;
    margin: 0 auto;
    /* 背景与圆角：使用浅色半透明白底，适配深色背景图片，提高文字可读性 */
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px; /* 胶囊形态，更加美观 */
    /* 阴影：轻微阴影用于区分层次 */
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    /* 边框：与整体卡片风格一致的浅色描边 */
    border: 1px solid rgba(245, 254, 255, 0.6);
}

.notice-carousel .el-carousel__container {
    /* 兼容 Element 内部容器，保持圆角与边框一致 */
    border-radius: 20px;
}

.notice-item {
    /* 行内内容居中展示，同时增加左右内边距，避免图标紧贴左侧 */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 0 24px; /* 增加左右留白 */
    /* 字体：适度增大，提升可读性 */
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.notice-icon {
    /* 小喇叭图标的颜色与间距，避免太靠近左边 */
    color: #E6A23C;
    margin-right: 10px;
}

.notice-link {
    /* 文本链接的默认样式：较深颜色、去下划线 */
    color: #303133;
    text-decoration: none;
    cursor: pointer; /* 交互反馈：整个条目可点击 */
}

/* 广播文本多行显示控制：
   - 最多显示两行，超出部分省略（避免出现三行导致轮播高度错乱）
   - 通过较大的行高提供上下间距，使两行阅读更舒适
*/
.notice-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 限制最多显示两行 */
    overflow: hidden;
    word-break: break-word; /* 长单词或连续字符自动换行 */
    line-height: 22px; /* 两行总高约 44px，留出少量垂直余量 */
    max-height: 44px;
}
