/* ---------- 基础变量定义 ---------- */
:root {
    --primary-blue: #1890ff; /* 主题蓝 */
    --light-blue-bg: #eef7ff; /* 页面背景浅蓝 */
    --dark-blue-left: #0056b3; /* 左侧深蓝 */
    --text-gray: #666;       /* 常规文字灰 */
    --border-color: #ddd;    /* 边框颜色 */
}

/* ---------- 全局重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background: linear-gradient(180deg, #fff 0%, var(--light-blue-bg) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* overflow: hidden;  去掉hidden以适应小屏幕或长页面 */
}

/* ---------- 顶部标题 ---------- */
.page-header {
    width: 100%;
    padding: 20px 10%;
    margin-bottom: 20px;
}

.page-header h1 {
    color: #3b71ca;
    font-size: 32px;
    font-weight: normal;
}

/* ---------- 登录框容器 ---------- */
.login-container {
    width: 900px;
    height: 500px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
    position: relative;
    top: 20px;
}

/* ---------- 左侧扫码区 ---------- */
.login-left {
    width: 40%;
    background: linear-gradient(160deg, #1890ff 0%, #0046a0 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 装饰背景圆弧 */
.login-left::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100% 100% 0 0;
    pointer-events: none;
}

.scan-title {
    font-size: 24px;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.qr-box {
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.qr-box img {
    width: 140px;
    height: 140px;
    display: block;
}

.scan-tip {
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
}

.sub-tip {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.8;
}

.sub-tip a {
    color: #00ffff;
    text-decoration: none;
}

/* ---------- 右侧表单区 ---------- */
.login-right {
    width: 60%;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Tab切换 */
.login-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.tab-item {
    font-size: 18px;
    font-weight: bold;
    color: #666;
    margin: 0 15px;
    cursor: pointer;
    padding-bottom: 8px;
    position: relative;
}

.tab-item.active {
    color: var(--primary-blue);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
}

/* 表单输入框 */
.input-group {
    position: relative;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    height: 45px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    transition: border-color 0.3s;
    width: 100%;
}

.input-group:focus-within {
    border-color: var(--primary-blue);
}

.input-icon {
    color: #999;
    font-size: 18px;
    width: 30px;
    text-align: center;
}

.input-group input {
    border: none;
    outline: none;
    flex: 1;
    height: 100%;
    padding: 0 10px;
    font-size: 14px;
    color: #333;
    background: transparent;
}

.input-suffix {
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 0 5px;
}

/* 手机验证码组合 */
.input-group-flex {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.input-half {
    width: 60%;
    margin-bottom: 0;
}

.btn-send-code {
    width: 35%;
    height: 45px;
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    color: var(--primary-blue);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-send-code:hover {
    background: #bae7ff;
}

.btn-send-code.disabled {
    background: #f5f5f5;
    border-color: #d9d9d9;
    color: #999;
    cursor: not-allowed;
}

/* CA 登录专属样式 */
.ca-login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ca-qr-img {
    width: 160px;
    height: 160px;
    border: 1px solid #eee;
    padding: 5px;
    margin-bottom: 15px;
    position: relative;
}

.ca-qr-img img {
    width: 100%;
    height: 100%;
}

.ca-tip {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* 登录按钮 */
.btn-login {
    width: 100%;
    height: 45px;
    background: #3b71ca;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 5px;
    transition: background 0.3s;
}

.btn-login:hover {
    background: #3060aa;
}

.btn-outline {
    background: #fff;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.btn-outline:hover {
    background: #e6f7ff;
}

/* 辅助链接 */
.form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
}

.form-links a {
    color: var(--primary-blue);
    text-decoration: none;
}

/* 底部图标 */
.form-footer-icons {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    border-top: 1px dotted #eee;
    padding-top: 20px;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #888;
    font-size: 12px;
    cursor: pointer;
}

.icon-item i {
    font-size: 20px;
    margin-bottom: 8px;
    color: #bbb;
}

.icon-item:hover i {
    color: var(--primary-blue);
}

/* 底部浏览器提示 */
.browser-tip {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: auto; /* 推到底部 */
    padding-top: 20px;
    border-top: 1px dotted #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.browser-tip i {
    font-size: 16px;
}

/* ---------- 内页通用样式 (Help / Reset) ---------- */
.content-page-container {
    width: 1000px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 40px;
    margin-top: 20px;
    min-height: 600px;
}

.content-title {
    font-size: 24px;
    color: #333;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 15px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    font-weight: normal;
}

.back-link:hover {
    color: var(--primary-blue);
}

/* 驱动下载列表 */
.driver-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.driver-card {
    width: calc(33.33% - 14px);
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.driver-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(24, 144, 255, 0.1);
}

.driver-icon {
    font-size: 40px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.driver-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.driver-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.btn-download {
    display: inline-block;
    padding: 6px 20px;
    background: #fff;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
}

.btn-download:hover {
    background: var(--primary-blue);
    color: #fff;
}

/* 密码重置表单 */
.reset-form-box {
    width: 500px;
    margin: 40px auto;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

.file-upload-box {
    border: 2px dashed #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 4px;
    color: #999;
    cursor: pointer;
    margin-bottom: 20px;
}

.file-upload-box:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}
