/* ----- 全局重置 ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    min-height: 100vh;
    /* background: radial-gradient(circle at 10% 30%, rgba(129, 31, 35, 0.22), rgba(90, 18, 22, 0.18)); */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow-x: hidden;
}

/* 动态流光背景层 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/bg.jpg') center center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

/* 柔和光晕动画 */
body::after {
    content: '';
    position: fixed;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: radial-gradient(ellipse at 30% 40%, rgba(255, 215, 150, 0.08), transparent 60%);
    animation: softGlow 18s infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes softGlow {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* 背景装饰元素 */
.bg-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.decoration {
    position: absolute;
    border-radius: 50%;
    background: rgba(129, 31, 35, 0.08);
    animation: float 15s infinite ease-in-out;
}

.decoration:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.decoration:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.decoration:nth-child(3) {
    width: 150px;
    height: 150px;
    bottom: 10%;
    left: 15%;
    animation-delay: 10s;
}

.decoration:nth-child(4) {
    width: 250px;
    height: 250px;
    top: 20%;
    right: 15%;
    animation-delay: 7s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-30px) rotate(120deg);
    }

    66% {
        transform: translateY(20px) rotate(240deg);
    }
}

/* 主容器 - 高级玻璃质感 */
.login-container {
    width: 100%;
    max-width: 1280px;
    display: flex;
    background: linear-gradient(135deg, rgba(129, 31, 35, 0.58) 0%, rgba(80, 20, 22, 0.58) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 56px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 2;
    animation: containerFloat 0.8s ease-out;
}

@keyframes containerFloat {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 左侧品牌区 - 精致奢感 */
.info-section {
    flex: 1;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.logo-container {
    width: 190px;
    background: rgba(255, 255, 245, 0.98);
    border-radius: 32px;
    padding: 10px;
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 210, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 48px;
    position: relative;
    overflow: hidden;
}

.logo-container::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

.org-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.org-logo:hover {
    transform: scale(1.02) translateY(-6px);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.2));
}

.system-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, #FFF9E8, #FFE6C7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

.system-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 240, 0.92);
    text-align: center;
    font-weight: 400;
    max-width: 450px;
    margin: 0 auto 32px auto;
    line-height: 1.5;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 16px;
}

.feature-item {
    background: rgba(255, 250, 235, 0.18);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 20px 16px;
    width: calc(33.33% - 20px);
    text-align: center;
    border: 1px solid rgba(255, 255, 210, 0.35);
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: default;
}

.feature-item:hover {
    background: rgba(255, 255, 245, 0.3);
    transform: translateY(-8px);
    border-color: rgba(255, 215, 130, 0.7);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    color: #FFE2B5;
    margin-bottom: 14px;
    transition: transform 0.3s;
}

.feature-item:hover .feature-icon {
    transform: scale(1.15);
    color: #FFF0C8;
}

.feature-text {
    font-weight: 600;
    color: white;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* 右侧登录区域 - 优雅卡片风格 */
.login-section {
    flex: 1.1;
    padding: 52px 56px;
    background: rgba(255, 255, 255, 0.97);
    position: relative;
    border-radius: 48px 0 0 48px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
}

.login-header {
    margin-bottom: 40px;
    text-align: center;
}

.login-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(115deg, #811F23, #C73C41);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.login-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #811F23, #D95C5F);
    margin: 14px auto 0;
    border-radius: 4px;
}

.login-subtitle {
    color: #5a5a5a;
    font-size: 0.95rem;
    margin-top: 18px;
    font-weight: 450;
}

/* 输入组优雅设计 */
.input-group {
    margin-bottom: 32px;
    position: relative;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 10px;
    font-size: 1rem;
    padding-left: 4px;
}

.input-group label i {
    color: #811F23;
    font-size: 1.2rem;
    width: 24px;
}

.input-wrapper {
    position: relative;
    border-radius: 28px;
    background: #f9f9fc;
    transition: all 0.25s;
    border: 1.5px solid #e9e9ef;
}

.input-wrapper:focus-within {
    border-color: #811F23;
    box-shadow: 0 4px 14px rgba(129, 31, 35, 0.15);
    background: white;
}

.input-group input {
    width: 100%;
    padding: 18px 90px 18px 26px;
    border: none;
    background: transparent;
    font-size: 1rem;
    border-radius: 28px;
    outline: none;
    font-weight: 500;
    color: #1f1f2b;
    transition: 0.2s;
}

.input-group input::placeholder {
    color: #9e9eae;
    font-weight: 400;
}

/* 按钮操作区 */
.input-actions {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 12px;
    align-items: center;
}

.input-action-btn {
    background: rgba(129, 31, 35, 0.08);
    border: none;
    color: #811F23;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.input-action-btn:hover {
    background: rgba(129, 31, 35, 0.2);
    transform: scale(1.08);
}

/* 错误提示优雅 */
.error-message {
    background: #fff2f0;
    border-left: 5px solid #e74c3c;
    padding: 14px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 12px;
    color: #bc3f2e;
    font-weight: 500;
}

.error-message.show {
    display: flex;
    animation: gentleShake 0.45s ease;
}

@keyframes gentleShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* 按钮区域升级 */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 32px 0 28px;
}

.btn {
    padding: 16px 20px;
    border-radius: 44px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.6, 1.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::after {
    left: 100%;
}

.btn-login {
    background: linear-gradient(105deg, #811F23, #B73A3E);
    color: white;
    box-shadow: 0 12px 24px -12px rgba(129, 31, 35, 0.5);
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 28px -12px rgba(129, 31, 35, 0.6);
    background: linear-gradient(105deg, #941F24, #C44549);
}

.btn-trace {
    background: rgba(129, 31, 35, 0.08);
    color: #811F23;
    border: 1.5px solid rgba(129, 31, 35, 0.3);
    backdrop-filter: blur(4px);
    font-weight: 400;
}

.btn-trace:hover {
    background: rgba(129, 31, 35, 0.15);
    transform: translateY(-3px);
    border-color: #811F23;
    box-shadow: 0 8px 20px rgba(129, 31, 35, 0.2);
}

.footer {
    text-align: center;
    color: #9f9faf;
    font-size: 0.85rem;
    margin-top: 24px;
    border-top: 1px solid #edeef2;
    padding-top: 24px;
}

/* 通知组件优化 */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ffffff;
    border-radius: 32px;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.25);
    border-left: 6px solid #811F23;
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.2);
    z-index: 2000;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 250, 0.98);
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    font-size: 2rem;
    color: #811F23;
}

/* 小程序二维码悬浮窗样式 */
.mini-program-float {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mini-program-toggle {
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #811F23, #c2474b);
    border-radius: 50% 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow:
        -5px 5px 20px rgba(0, 0, 0, 0.2),
        inset 2px 0 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: 2;
}

.mini-program-toggle:hover {
    background: linear-gradient(135deg, #c2474b, #811F23);
    transform: scale(1.05);
    box-shadow:
        -7px 7px 25px rgba(0, 0, 0, 0.25),
        inset 2px 0 0 rgba(255, 255, 255, 0.3);
}

.mini-program-toggle i {
    transition: transform 0.3s ease;
}

.mini-program-content {
    background: white;
    border-radius: 20px 0 0 20px;
    padding: 25px;
    box-shadow:
        -10px 10px 40px rgba(0, 0, 0, 0.2),
        inset 1px 0 0 rgba(0, 0, 0, 0.1);
    width: 280px;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(129, 31, 35, 0.2);
    border-right: none;
}

.mini-program-float.expanded .mini-program-content {
    transform: translateX(0);
}

.mini-program-float.expanded .mini-program-toggle i {
    transform: rotate(180deg);
}

.qrcode-title {
    font-size: 1.3rem;
    color: #811F23;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.qrcode-title i {
    font-size: 1.5rem;
}

.qrcode-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(129, 31, 35, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.qrcode-desc {
    color: #666;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 15px;
}

.qrcode-desc strong {
    color: #811F23;
    font-weight: 600;
}

.qrcode-tips {
    background: rgba(129, 31, 35, 0.05);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    border-left: 3px solid #811F23;
}

.qrcode-tips i {
    color: #811F23;
    margin-right: 8px;
}

/* 响应式调整优雅 */
@media (max-width: 1100px) {
    .login-container {
        max-width: 1000px;
    }

    .info-section {
        padding: 36px 28px;
    }

    .login-section {
        padding: 40px 40px;
    }

    .system-title {
        font-size: 2rem;
    }

    .feature-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 880px) {
    .login-container {
        flex-direction: column;
        border-radius: 48px;
    }

    .info-section {
        border-radius: 48px 48px 0 0;
        border-right: none;
        text-align: center;
    }

    .login-section {
        border-radius: 0 0 48px 48px;
    }

    .features {
        gap: 12px;
    }

    .feature-item {
        width: calc(50% - 12px);
    }

    .mini-program-float {
        display: none;
    }
}

@media (max-width: 560px) {
    body {
        padding: 12px;
    }

    .login-section {
        padding: 32px 22px;
    }

    .btn {
        padding: 14px;
    }

    .org-logo {
        width: 140px;
    }

    .system-title {
        font-size: 1.6rem;
    }

    .feature-item {
        width: 100%;
    }
}