/* ============================================================
   天财商龙运营管理平台 - 登录页样式
   ============================================================ */

/* ========== Font ========== */
@font-face {
    font-family: AlibabaPuHuiTi-2-65-Medium;
    src: url(fonts/AlibabaPuHuiTi-2-65-Medium.ttf) format('TrueType'),
         url(fonts/AlibabaPuHuiTi-2-65-Medium.woff) format('woff');
}

/* ========== Reset ========== */
*, *::before, *::after { box-sizing: border-box; }
body, p, h1, h3 { margin: 0; }

/* ========== 页面容器 ========== */
.container {
    height: 100vh;
    overflow-y: auto;
    font-family: AlibabaPuHuiTi-2-65-Medium;
    background: #f0f2f5;
    background-image: url('2026login_dw.jpg');
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.content {
    width: 80%;
    margin: 0 auto;
    display: flex;
}

.container .small-header {
    width: 100%;
    height: 71px;
}

.container .small-header .content {
    align-items: center;
    height: 100%;
}

.container .small-header .content h1 {
    color: #2E2E2E;
    font-size: 22px;
    margin-left: 13px;
    font-weight: 500;
}

.container .larger-header {
    height: calc(100vh - 71px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(-40px);    
}

.container .larger-header .content {
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.container .larger-header .title {
    color: #1A1A1A;
    padding-top: 10vh;
}

.container .larger-header .fst-title {
    font-size: 56px;
    line-height: 78px;
}

.container .larger-header .sub-title {
    font-size: 28px;
    line-height: 40px;
    margin-top: 10px;
}

.container .footer {
    position: absolute;
    bottom: 50px;
    width: 100%;
    text-align: center;
    font-family: Microsoft YaHei;
    color: #707070;
    font-size: 12px;
    font-weight: 400;
    line-height: 22px;
}

/* ========== 入场动画 ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.panel-card {
    animation: fadeInUp 0.4s ease-out;
}
.login-header { animation: fadeInUp 0.4s ease-out 0.1s both; }
.login-body { animation: fadeInUp 0.4s ease-out 0.2s both; }

/* ========== 面板通用 ========== */
.login-panel { display: none; }
.login-panel.active { display: block; }

.panel-card {
    width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 0;
    display: flex;
    flex-direction: column;
    transform: translateX(-15%);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
}
.panel-card h3 {
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.panel-back {
    text-align: center;
    margin-top: 12px;
}
.panel-back a {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}
.panel-back a:hover { color: #d48806; }

/* ========== 主登录页 Header ========== */
.login-header {
    text-align: center;
    padding: 36px 40px 0px;
}
.app-icon {
    width: 56px;
    height: 56px;
    background: #FFCF58;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #1E1E1E;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(255,207,88,0.45);
}
.app-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}
.app-subtitle {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.login-body { padding: 20px 20px 32px; }

/* ========== 企微登录按钮 ========== */
.btn-wecom {
    width: 100%;
    height: 44px;
    background: #FFCF58;
    border: none;
    border-radius: 8px;
    color: #1E1E1E;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.5px;
}
.btn-wecom:hover { background: #e6b84d; }
.btn-wecom:active { transform: scale(0.98); }
.btn-wecom svg { width: 20px; height: 20px; fill: #1E1E1E; flex-shrink: 0; }

/* ========== 企微扫码区域 ========== */
.wecom-qr-area {
    display: none;
    margin-top: 16px;
    text-align: center;
    max-height: 410px;
    overflow-y: auto;
}
.wecom-qr-area.show { display: block; }
.wecom-qr-area iframe {
    display: block;
    border: none;
    background: transparent;
    max-height: 380px;
    width: 100%;
    margin: 0 auto;
}
.wecom-qr-tip {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

/* ========== 分隔线 ========== */
.login-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #bbb;
    font-size: 13px;
}
.login-divider::before, .login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e8e8;
}
.login-divider span { padding: 0 12px; }

/* ========== 密码登录折叠 ========== */
.pwd-login-toggle {
    text-align: center;
    font-size: 14px;
    color: #d48806;
    cursor: pointer;
    user-select: none;
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: color 0.2s;
}
.pwd-login-toggle:hover { color: #b37700; }
.pwd-login-toggle .toggle-arrow {
    font-size: 10px;
    display: inline-block;
    transition: transform 0.3s;
}
.pwd-login-toggle.open .toggle-arrow { transform: rotate(180deg); }

.pwd-form-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.pwd-form-wrapper.show { max-height: 400px; }

/* ========== 表单项 ========== */
.form-item {
    position: relative;
    margin-top: 14px;
}
.form-item .form-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    font-size: 16px;
    pointer-events: none;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.form-item input {
    width: 100%;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 12px 0 36px;
    font-size: 14px;
    color: #333;
    outline: none;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-item input:focus {
    border-color: #FFCF58;
    box-shadow: 0 0 0 3px rgba(255,207,88,0.18);
    background: #fff;
}
.form-item input::placeholder { color: #bbb; }

/* 无icon版 input（绑定面板） */
.input-plain {
    width: 100%;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
    color: #333;
    outline: none;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input-plain:focus {
    border-color: #FFCF58;
    box-shadow: 0 0 0 3px rgba(255,207,88,0.18);
    background: #fff;
}
.input-plain::placeholder { color: #bbb; }

/* ========== 忘记密码 ========== */
.forgot-row {
    text-align: right;
    margin-top: 8px;
}
.forgot-row a {
    font-size: 13px;
    color: #d48806;
    text-decoration: none;
    transition: text-decoration 0.2s;
    cursor: pointer;
}
.forgot-row a:hover { text-decoration: underline; }

/* ========== 通用主按钮 ========== */
.btn-primary {
    width: 100%;
    height: 44px;
    background: #FFCF58;
    border: none;
    border-radius: 8px;
    color: #1E1E1E;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 16px;
    letter-spacing: 1px;
    transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: #e6b84d; }
.btn-primary:active { transform: scale(0.98); }

/* ========== 登录提示区 ========== */
.login-flow-hint {
    background: #fffbf0;
    border: 1px solid #ffe58f;
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 20px;
}
.login-flow-hint p { font-size: 12px; color: #8c6d00; margin: 0; line-height: 1.8; }
.login-flow-hint strong { color: #d48806; font-weight: 600; }

/* ========== 页脚 ========== */
.login-footer {
    text-align: center;
    font-size: 12px;
    color: #bbb;
    padding: 0 40px 24px;
}

/* ========== 大写锁定提示 ========== */
.test2 {
    width: 65%;
    padding: 10px 15px;
    border: 1px solid #f6d991;
    position: relative;
    /* left: -22px; */
    margin-top: 5px;
    background-color: #fff;
    color: #ffcf58;
    border-radius: 6px;
}
.test2 div { width: 0; height: 0; font-size: 0; overflow: hidden; position: absolute; }
.test2 div.bot {
    border-width: 11px;
    border-style: solid dashed dashed;
    border-color: transparent transparent #f6d991 transparent;
    left: 18px;
    top: -23px;
}
.test2 div.top {
    border-width: 10px;
    border-style: solid dashed dashed;
    border-color: transparent transparent #ffffff transparent;
    left: 19px;
    top: -20px;
}

/* ========== 错误提示 ========== */
.hintTwo p {
    color: #b24353;
    text-align: center;
    font-size: smaller;
}

/* ========== 绑定面板 ========== */
.bind-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 40px 20px;
    gap: 0;
}
.bind-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    position: relative;
}
.bind-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    right: -50%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}
.bind-step.done:not(:last-child)::after,
.bind-step.active:not(:last-child)::after {
    background: #d48806;
}
.bind-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #bbb;
    position: relative;
    z-index: 1;
}
.bind-step.done .bind-step-dot {
    background: #d48806;
    border-color: #d48806;
    color: #fff;
}
.bind-step.active .bind-step-dot {
    border-color: #d48806;
    color: #d48806;
}
.bind-step-label {
    font-size: 11px;
    color: #bbb;
    white-space: nowrap;
}
.bind-step.done .bind-step-label,
.bind-step.active .bind-step-label { color: #d48806; }

.bind-body { padding: 0 40px 32px; }
.bind-subtitle {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

/* ========== 已认证用户卡片 ========== */
.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 8px;
    margin-bottom: 14px;
}
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #07c160, #06ad56);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}
.user-info { flex: 1; }
.user-name { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.user-dept { font-size: 12px; color: #888; margin-top: 1px; }
.tag-verified {
    background: #52c41a;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

/* ========== 警告提示 ========== */
.alert-warning {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    color: #8c6d00;
    margin-bottom: 16px;
    line-height: 1.7;
}

/* ========== 表单label ========== */
.form-label {
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    margin-top: 14px;
    display: block;
}
.form-label .required { color: #f5222d; margin-left: 2px; }

/* ========== 账号选择面板 ========== */
.select-user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 28px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.top-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #07c160, #06ad56);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.top-user-info { flex: 1; }
.top-user-name { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.top-user-meta { font-size: 12px; color: #888; margin-top: 2px; }

.btn-bind-new {
    background: transparent;
    border: 1px solid #d48806;
    color: #d48806;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.btn-bind-new:hover { background: #d48806; color: #fff; }

.select-body {
    padding: 0 28px 28px;
}
/* 账号超过3个时，通过 JS 添加 .scrollable 类启用滚动 */
.identity-list.scrollable {
    max-height: 234px;
    overflow-y: auto;
    overflow-x: hidden;
}
/* 自定义滚动条 - 仅在列表超过3项时出现 */
.identity-list::-webkit-scrollbar {
    width: 5px;
}
.identity-list::-webkit-scrollbar-track {
    background: transparent;
}
.identity-list::-webkit-scrollbar-thumb {
    background: #d9d9d9;
    border-radius: 3px;
}
.identity-list::-webkit-scrollbar-thumb:hover {
    background: #bfbfbf;
}

.select-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 10px;
}
.select-section-title .count {
    font-size: 13px;
    font-weight: 400;
    color: #888;
}

.identity-list { display: flex; flex-direction: column; gap: 10px; }

.account-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #fff;
}
.account-card:hover { border-color: #d48806; background: #fffbe6; }
.account-card.highlighted { background: #fffbe6; border-color: #ffe58f; }

.ac-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.ac-avatar.master { background: #d48806; }
.ac-avatar.agent { background: linear-gradient(135deg, #9c6ef4, #7c3ef2); }
.ac-avatar.teal { background: linear-gradient(135deg, #13c2c2, #08979c); }

.ac-info { flex: 1; min-width: 0; }
.ac-info .ac-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    /* display: flex;
    align-items: center; */
    gap: 6px;
    flex-wrap: wrap;
}
.ac-info .ac-role { font-size: 12px; color: #888; margin-top: 2px; line-height: 1.5; }

/* ========== 标签 ========== */
.badge { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 4px; vertical-align: middle; }
.badge-master { background: #fffbe6; color: #d48806; border: 1px solid #ffe58f; }
.badge-auth { background: #f9f0ff; color: #722ed1; border: 1px solid #d3adf7; }
.badge-last { background: #fff7e6; color: #d46b08; border: 1px solid #ffd591; }

.btn-select-account {
    background: #FFCF58;
    border: none;
    color: #1E1E1E;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.btn-select-account:hover { background: #e6b84d; }

/* ========== 退出链接 ========== */
.logout-link {
    text-align: center;
    padding: 16px 0 4px;
    font-size: 13px;
    color: #888;
    cursor: pointer;
}
.logout-link:hover { color: #f5222d; }

/* ========== 无权限面板 ========== */
.denied-icon {
    text-align: center;
    font-size: 48px;
    color: #ff4d4f;
    margin-bottom: 16px;
}
.denied-msg {
    text-align: center;
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* ========== 响应式 ========== */
@media screen and (min-width: 1440px) {
    .scaleBox { transform: scale(0.9); }
}
@media screen and (min-width: 1600px) {
    .scaleBox { transform: scale(0.9); }
}

@media screen and (max-width: 700px) {
    #browserinfo {
        height: auto !important;
        line-height: 18px !important;
        padding: 5px 0 !important;
    }
    .larger-header .content { display: block; }
    .container .larger-header .title { padding-top: 20px; }
    .container .larger-header .fst-title { font-size: 28px; line-height: 32px; }
    .container .larger-header .sub-title { font-size: 14px; line-height: 18px; }
    .panel-card {
        width: 100%;
        min-width: 0;
        transform: translateX(0);
        border-radius: 0;
        max-height: 100vh;
    }
    .login-header, .login-body, .bind-body, .select-body {
        padding-left: 24px;
        padding-right: 24px;
    }
    .bind-steps { padding-left: 24px; padding-right: 24px; }
}
