:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --success: #4cc9f0;
    --danger: #e63946;
    --dark: #212529;
    --light: #f8f9fa;
    --gray: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 顶部导航栏 */
.navbar {
    background: white;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 10px;
    font-size: 20px;
}
.logo-img img {
    width: 40px; /* 根据实际需要调整 */
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
}

/* 主内容区域 */
.main-content {
    flex: 1;
    display: flex;
    padding: 30px;
}

/* 左侧欢迎区域 */
.welcome-section {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.welcome-subtitle {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.6;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 600px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary);
    font-size: 20px;
}

.feature-text h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--dark);
}

.feature-text p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.5;
}

/* 右上角登录区域 */
.login-section {
    width: 400px;
    margin-left: auto;
}

.login-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 20px;
}

.login-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    text-align: center;
}

.login-header h1 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
}

.login-header p {
    font-size: 14px;
    opacity: 0.9;
}

.login-form {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    text-align: left;
}

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

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.form-group input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-group input.error {
    border-color: var(--danger);
}

.error-message {
    color: var(--danger);
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-btn:hover {
    background: var(--secondary);
}

.login-btn .loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 底部备案信息 */
.footer {
    text-align: center;
    padding: 20px;
    color: var(--gray);
    font-size: 14px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }

    .login-section {
        width: 100%;
        margin: 40px auto;
        max-width: 450px;
    }

    .features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 15px;
    }

    .welcome-section {
        padding: 20px;
    }

    .login-form {
        padding: 20px;
    }

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

    .welcome-subtitle {
        font-size: 16px;
    }
}

/* 动态展示区域 */
.dynamic-content {
    margin-top: 40px;
    padding: 20px;
    background: rgba(67, 97, 238, 0.05);
    border-radius: 10px;
    max-width: 600px;
}

.dynamic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.dynamic-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

.dynamic-items {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.dynamic-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.dynamic-item:last-child {
    border-bottom: none;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
    max-width: 350px;
}

.notification.success {
    background-color: var(--success);
}

.notification.error {
    background-color: var(--danger);
}

.notification.show {
    opacity: 1;
}
/* 添加到现有CSS文件的末尾 */

/* 登录选项卡样式 */
.login-tabs {
    display: flex;
    background: white;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: #f8f9fa;
    color: var(--gray);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

    .tab-btn.active {
        background: var(--primary);
        color: white;
    }

    .tab-btn:hover:not(.active) {
        background: #e9ecef;
    }

/* 登录表单切换 */
.login-form {
    display: none;
}

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

/* 带按钮的输入框 */
.input-with-button {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-with-button input {
        padding-right: 120px;
    }

.sms-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

    .sms-btn:hover:not(:disabled) {
        background: var(--secondary);
    }

    .sms-btn:disabled {
        background: var(--gray);
        cursor: not-allowed;
    }

/* 门店选择卡片样式 */
.store-selection {
    padding: 0;
}

.store-cards {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
}

.store-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

    .store-card:hover {
        border-color: var(--primary);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(67, 97, 238, 0.1);
    }

    .store-card.active {
        border-color: var(--primary);
        background: rgba(67, 97, 238, 0.05);
    }

.store-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.store-name {
    font-size: 16px !important; /* 5号字相当于16px */
    font-weight: 600;
    color: var(--dark);
}

.store-group {
    font-size: 14px !important;
    color: var(--gray);
}

.store-info {
    font-size: 12px !important;
    color: var(--gray);
    line-height: 1.4;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .login-tabs {
        flex-direction: column;
    }

    .tab-btn {
        padding: 12px;
    }

    .input-with-button input {
        padding-right: 100px;
    }

    .sms-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .store-card {
        padding: 15px;
    }

    .store-name {
        font-size: 16px;
    }
}

/* 门店选择头部样式 */
.store-selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.back-btn {
    background: var(--gray);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

    .back-btn:hover {
        background: #5a6268;
    }

.store-code-info {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* 微信登录样式 */
.wechat-qrcode-container {
    text-align: center;
    padding: 20px 0;
}

.qrcode-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.qrcode-placeholder {
    width: 200px;
    height: 200px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.wechat-qrcode-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qrcode-loading {
    text-align: center;
    color: #999;
}

    .qrcode-loading i {
        font-size: 48px;
        margin-bottom: 10px;
        color: #07C160;
    }

    .qrcode-loading p {
        margin: 0;
        font-size: 14px;
    }

.qrcode-error {
    text-align: center;
    padding: 30px 20px;
    color: #ff4d4f;
}

    .qrcode-error i {
        font-size: 48px;
        margin-bottom: 10px;
    }

.retry-btn {
    margin-top: 15px;
    padding: 8px 20px;
    background: #07C160;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

    .retry-btn:hover {
        background: #06ad56;
    }

.qrcode-instruction {
    background: #f0f8ff;
    padding: 10px;
    border-radius: 8px;
    text-align: left;
    width: 100%;
    max-width: 200px;
}

    .qrcode-instruction h3 {
        color: #07C160;
        margin: 0 0 10px 0;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .qrcode-instruction p {
        margin: 8px 0;
        color: #666;
        font-size: 12px;
    }

.wechat-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

.status-icon {
    font-size: 24px;
    color: #07C160;
}

    .status-icon .fa-spin {
        color: #1890ff;
    }

    .status-icon .fa-exclamation-triangle {
        color: #ff4d4f;
    }

.status-text {
    text-align: left;
}

    .status-text h4 {
        margin: 0 0 5px 0;
        color: #333;
        font-size: 16px;
    }

    .status-text p {
        margin: 0;
        color: #666;
        font-size: 14px;
    }

.wechat-refresh {
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
}

    .wechat-refresh a {
        color: #1890ff;
        text-decoration: none;
    }

        .wechat-refresh a:hover {
            text-decoration: underline;
        }

/* 微信绑定手机号表单 */
.wechat-bind-form {
    animation: fadeIn 0.3s ease;
}

.bind-header {
    text-align: center;
    margin-bottom: 25px;
}

    .bind-header h3 {
        color: #07C160;
        margin: 0 0 10px 0;
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .bind-header p {
        color: #666;
        margin: 0;
        font-size: 14px;
    }

.cancel-btn {
    width: 100%;
    padding: 12px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

    .cancel-btn:hover {
        background: #e8e8e8;
        border-color: #bfbfbf;
    }

/* 门店选择样式增强 */
.store-card[data-login-type="wechat"] {
    border-left: 4px solid #07C160;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .qrcode-wrapper {
        flex-direction: column;
    }

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

    .qrcode-instruction {
        max-width: 100%;
    }

    .wechat-status {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .status-text {
        text-align: center;
    }
}
/* 登录切换链接样式 */
.login-switch {
    text-align: right;
    margin-top: 10px;
}

    .login-switch a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        font-size: 12px;
        transition: color 0.3s;
    }

        .login-switch a:hover {
            color: white;
            text-decoration: underline;
        }