/* ==================== 基础重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

input {
    font-family: inherit;
    outline: none;
}

/* ==================== 登录容器 ==================== */
.login-container {
    min-height: 100vh;
    background: url(../img/newlog.png) no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
}

/* 移动端帮助信息默认隐藏 */
.mobile-help {
    display: none;
}

/* 移动端使用指南按钮默认隐藏 */
.mobile-help-btn {
    display: none;
}

/* 翻转卡片背面默认隐藏（PC端） */
.flip-card-back {
    display: none;
}

/* PC端翻转卡片宽度 */
.flip-card {
    width: 100%;
}

/* ==================== 头部导航 ==================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    flex-shrink: 0;
}

.header-left .logo {
    height: 50px;
    width: auto;
}

.header-right {
    display: flex;
    gap: 20px;
}

.motto-item {
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

/* ==================== 主体内容 ==================== */
.main-content {
    flex: 1;
    display: flex;
    padding: 20px 50px 50px;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ==================== 左侧信息区 ==================== */
.info-section {
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding-top: 40px;
}

.info-content {
    color: #fff;
}

.info-subtitle {
    font-size: 18px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.info-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
}

/* 帮助卡片 */
.help-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    max-width: 420px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.help-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.help-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.help-item {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.help-link {
    color: #2d6ff7;
    font-weight: 500;
    transition: color 0.3s;
}

.help-link:hover {
    color: #1a5ad4;
    text-decoration: underline;
}

/* ==================== 右侧登录区 ==================== */
.login-section {
    flex: 0 0 420px;
    display: flex;
    align-items: center;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 100%;
}

/* 登录标签切换 */
.login-tabs {
    display: flex;
    background: #f5f5f5;
}

.tab-btn {
    flex: 1;
    padding: 16px 10px;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
    position: relative;
}

.tab-btn:hover {
    color: #2d6ff7;
    background: rgba(45, 111, 247, 0.05);
}

.tab-btn.active {
    color: #2d6ff7;
    background: #fff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #2d6ff7;
}

/* 登录标题 */
.login-title {
    font-size: 18px;
    color: #333;
    text-align: center;
    padding: 25px 20px 15px;
    font-weight: 600;
}

/* 登录表单 */
.login-form {
    display: none;
    padding: 0 35px 35px;
}

.login-form.active {
    display: block;
}

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

.form-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.form-input {
    width: 100%;
    height: 44px;
    padding: 0 15px 0 42px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: #2d6ff7;
    box-shadow: 0 0 0 3px rgba(45, 111, 247, 0.1);
}

.form-input::placeholder {
    color: #aaa;
}

/* 表单操作 */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.action-link {
    font-size: 13px;
    color: #2d6ff7;
    font-weight: 500;
    transition: color 0.3s;
}

.action-link:hover {
    color: #1a5ad4;
    text-decoration: underline;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, #2d6ff7 0%, #1a5ad4 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(45, 111, 247, 0.3);
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(45, 111, 247, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ==================== 密码重置面板 ==================== */
.reset-panel {
    display: none;
    padding: 30px 35px 35px;
    text-align: center;
}

.reset-panel.active {
    display: block;
}

.reset-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
}

.reset-qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto 25px;
    background: url(../img/resetpasswordCode.png) no-repeat center center;
    background-size: contain;
    border-radius: 8px;
}

.back-link {
    font-size: 14px;
    color: #2d6ff7;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* ==================== 客服弹窗 ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    max-width: 320px;
    width: 100%;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.modal-qrcode {
    width: 220px;
    height: 220px;
    margin: 0 auto 20px;
    background: url(../img/wxkefuqrcode.png) no-repeat center center;
    background-size: contain;
    border-radius: 8px;
}

.modal-close {
    padding: 10px 30px;
    background: #f5f5f5;
    color: #666;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

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

/* ==================== 响应式设计 ==================== */

/* 平板设备 (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .header {
        padding: 25px 30px;
    }

    .main-content {
        padding: 20px 30px 40px;
        gap: 40px;
    }

    .info-section {
        padding-top: 20px;
    }

    .info-title {
        font-size: 28px;
    }

    .login-section {
        flex: 0 0 380px;
    }
}

/* 小平板和大手机 (576px - 768px) */
@media screen and (max-width: 768px) {
    .header {
        padding: 20px;
    }

    .header-left .logo {
        height: 40px;
    }

    .motto-item {
        font-size: 14px;
    }

    .main-content {
        flex-direction: column;
        padding: 20px;
        gap: 30px;
    }

    .info-section {
        padding-top: 0;
        order: 2;
    }

    .info-content {
        width: 100%;
    }

    .info-subtitle {
        font-size: 16px;
        text-align: center;
    }

    .info-title {
        font-size: 24px;
        text-align: center;
        margin-bottom: 25px;
    }

    .help-card {
        max-width: 100%;
        padding: 20px;
    }

    .help-title {
        font-size: 18px;
    }

    .help-item {
        font-size: 13px;
    }

    .login-section {
        flex: none;
        width: 100%;
        order: 1;
    }

    .login-card {
        max-width: 450px;
        margin: 0 auto;
    }

    .tab-btn {
        padding: 14px 8px;
        font-size: 14px;
    }

    .login-title {
        font-size: 16px;
        padding: 20px 15px 10px;
    }

    .login-form {
        padding: 0 25px 25px;
    }

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

    .form-input {
        height: 42px;
    }
}

/* 手机设备 (< 770px) */
@media screen and (max-width: 770px) {
    .login-container {
        background: #f0f4f8;
    }

    .header {
        padding: 15px;
        flex-direction: column;
        gap: 12px;
        background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
    }

    .header-left .logo {
        height: 40px;
        filter: brightness(0) invert(1);
    }

    .header-right {
        gap: 20px;
    }

    .motto-item {
        font-size: 13px;
        color: #fff;
        opacity: 0.9;
    }

    .main-content {
        padding: 20px 15px;
        gap: 0;
        justify-content: center;
        align-items: center;
        min-height: calc(100vh - 100px);
    }

    /* 移动端信息区域 - 隐藏 */
    .info-section {
        display: none;
    }

    .login-section {
        width: 100%;
        max-width: 400px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* 翻转卡片容器 */
    .flip-card {
        width: 100%;
        perspective: 1000px;
    }

    .flip-card-inner {
        position: relative;
        width: 100%;
        transition: transform 0.6s;
        transform-style: preserve-3d;
    }

    .flip-card.flipped .flip-card-inner {
        transform: rotateY(180deg);
    }

    .flip-card-front,
    .flip-card-back {
        width: 100%;
        backface-visibility: hidden;
        display: block;
    }

    .flip-card-back {
        position: absolute;
        top: 0;
        left: 0;
        transform: rotateY(180deg);
    }

    /* 登录卡片 */
    .login-card {
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(30, 136, 229, 0.15);
        width: 100%;
        background: #fff;
    }

    .login-tabs {
        border-radius: 16px 16px 0 0;
    }

    .tab-btn {
        padding: 14px 5px;
        font-size: 13px;
    }

    .tab-btn.active {
        color: #1e88e5;
    }

    .tab-btn.active::after {
        background: #1e88e5;
    }

    .login-title {
        font-size: 16px;
        padding: 20px 15px 15px;
        color: #333;
    }

    .login-form {
        padding: 0 20px 25px;
    }

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

    .form-label {
        font-size: 13px;
        margin-bottom: 6px;
        color: #555;
    }

    .form-input {
        height: 46px;
        font-size: 15px;
        padding: 0 12px 0 40px;
        border-radius: 10px;
        border: 1px solid #e0e0e0;
    }

    .form-input:focus {
        border-color: #1e88e5;
        box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.15);
    }

    .input-icon {
        left: 12px;
        width: 18px;
        height: 18px;
    }

    .form-actions {
        margin-bottom: 20px;
    }

    .action-link {
        font-size: 13px;
        color: #1e88e5;
    }

    .submit-btn {
        height: 48px;
        font-size: 16px;
        border-radius: 10px;
        background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
        box-shadow: 0 4px 16px rgba(30, 136, 229, 0.35);
    }

    /* 移动端使用指南按钮 */
    .mobile-help-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
        padding: 12px 24px;
        background: #fff;
        color: #1e88e5;
        font-size: 14px;
        font-weight: 500;
        border-radius: 25px;
        box-shadow: 0 4px 15px rgba(30, 136, 229, 0.2);
        transition: all 0.3s;
    }

    .mobile-help-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(30, 136, 229, 0.3);
    }

    .mobile-help-btn .help-icon {
        width: 18px;
        height: 18px;
    }

    /* 移动端帮助卡片（背面） */
    .help-card-mobile {
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(30, 136, 229, 0.15);
        padding: 25px;
        min-height: 400px;
    }

    .help-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }

    .help-header .help-title {
        font-size: 18px;
        color: #333;
        font-weight: 600;
        margin: 0;
    }

    .close-help-btn {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f5f5f5;
        border-radius: 50%;
        transition: all 0.3s;
    }

    .close-help-btn:hover {
        background: #e0e0e0;
    }

    .close-help-btn svg {
        width: 18px;
        height: 18px;
        color: #666;
    }

    .help-content {
        padding: 0 5px;
    }

    .help-content .help-item {
        font-size: 14px;
        color: #555;
        line-height: 1.8;
        margin-bottom: 15px;
        padding-left: 18px;
        position: relative;
    }

    .help-content .help-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 9px;
        width: 6px;
        height: 6px;
        background: #1e88e5;
        border-radius: 50%;
    }

    .mobile-help-link {
        color: #1e88e5;
        font-weight: 500;
    }

    .help-divider {
        height: 1px;
        background: #eee;
        margin: 20px 0;
    }

    .help-manuals {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .help-link-item {
        font-size: 14px;
        color: #1e88e5;
        padding: 10px 15px;
        background: #f5f9ff;
        border-radius: 8px;
        transition: all 0.3s;
    }

    .help-link-item:hover {
        background: #e8f1fc;
    }

    /* 隐藏原来的移动端帮助信息 */
    .mobile-help {
        display: none;
    }

    .reset-qrcode {
        width: 160px;
        height: 160px;
    }

    .modal-content {
        padding: 25px 20px;
    }

    .modal-qrcode {
        width: 180px;
        height: 180px;
    }
}

/* 超小屏幕手机 (< 375px) */
@media screen and (max-width: 375px) {
    .header-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px;
    }

    .motto-item {
        font-size: 12px;
    }

    .info-title {
        font-size: 18px;
    }

    .tab-btn {
        font-size: 12px;
        padding: 10px 4px;
    }

    .login-title {
        font-size: 14px;
    }

    .login-form {
        padding: 0 15px 20px;
    }
}

/* ==================== Layer 弹窗样式覆盖 ==================== */
.ajax-layer-load.layui-layer-dialog {
    min-width: 0 !important;
    background-color: rgba(0, 0, 0, 0.85) !important;
}

.ajax-layer-load.layui-layer-dialog .layui-layer-content {
    padding: 10px 20px 10px 40px !important;
    color: #FFF !important;
}

.ajax-layer-load.layui-layer-dialog .layui-layer-content .layui-layer-ico {
    width: 20px !important;
    height: 20px !important;
    background-size: 20px 20px !important;
    top: 12px !important;
}
