﻿:root {
    --primary-blue: #1677ff;
    --primary-gradient: linear-gradient(135deg, #1677ff, #0051cc);
    --text-color: #333;
    --light-text: #666;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    background: #f5f5f5;
    color: var(--text-color);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    z-index: -2;
    animation: backgroundFloat 30s ease infinite;
    background-size: 120% 120%;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(22, 119, 255, 0.85), 
        rgba(0, 81, 204, 0.75)
    );
    z-index: -1;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
    position: relative;
    overflow-x: hidden;
}

.login-container {
    flex: 1;
    display: flex;
    padding: 40px 60px;
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 40px auto;
    gap: 120px;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: visible;
    max-height: calc(100vh - 80px);
}

.login-left {
    position: relative;
    width: 45%;
    min-height: 600px;
    padding: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 1;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: 0;
}

.site-title {
    color: white;
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 60px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.login-desc {
    color: rgba(255, 255, 255, 0.95);
    font-size: 20px;
    max-width: 480px;
    margin-top: auto;
    margin-bottom: 40px;
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.login-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 420px;
    padding-right: 40px;
    z-index: 1;
}

#login-for {
    width: 100%;
    max-width: 420px;
    padding: 48px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
}

#login-nam h2 {
    margin: 0 0 48px;
    font-size: 32px;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    position: relative;
}

#login-nam h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 4px;
}

.input-group {
    margin-bottom: 28px;
}

.login-inp {
    width: 100%;
    height: 48px;
    padding: 8px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: all 0.3s;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.9);
}

.login-inp:hover {
    border-color: rgba(22, 119, 255, 0.4);
}

.login-inp:focus {
    outline: none;
    background: white;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

.login-txtlbl {
    margin: 28px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-txtlbl span {
    color: var(--text-color);
    font-size: 15px;
    font-weight: 500;
}

.login-txtlbl label {
    font-size: 15px;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.login-txtlbl label:hover {
    color: var(--primary-blue);
}

.login-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(45deg, #1677ff, #0051cc);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(22, 119, 255, 0.2);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    background: linear-gradient(45deg, #0051cc, #1677ff);
    box-shadow: 0 8px 25px rgba(22, 119, 255, 0.3);
}

footer {
    position: relative;
    z-index: 1;
    padding: 24px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.beian-container {
    font-size: 14px;
    line-height: 1.6;
    padding: 8px 0;
}

.beian-container a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    margin: 0 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.beian-container a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.beian-container img {
    vertical-align: middle;
    margin-right: 6px;
    filter: brightness(2);
}

@media (max-width: 1400px) {
    .login-container {
        gap: 80px;
    }
}

@media (max-width: 1200px) {
    .login-container {
        padding: 30px;
        gap: 60px;
    }
}

@media (max-width: 992px) {
    .login-left {
        display: none;
    }
    
    .login-right {
        width: 100%;
        min-width: auto;
        padding-right: 0;
    }
    
    #login-for {
        padding: 32px;
    }
}

@media (max-width: 480px) {
    #login-for {
        padding: 24px;
    }
    
    .login-inp {
        height: 44px;
    }
    
    .login-btn {
        height: 44px;
    }
}

/* 在CSS文件末尾添加以下滚动条样式 */

/* 整体滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background: transparent;
}

/* 滚动条轨道样式 */
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* 滚动条滑块样式 */
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s;
}

/* 滚动条滑块悬停样式 */
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 滚动条角落样式 */
::-webkit-scrollbar-corner {
    background: transparent;
}

/* 为页面添加平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 优化内容区域，防止出现水平滚动条 */
.page-wrapper {
    overflow-x: hidden;
}

/* 优化登录容器的滚动行为 */
.login-container {
    margin: 40px auto;
    overflow: visible;
    max-height: calc(100vh - 80px);
}

/* 优化移动端滚动体验 */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }
    
    .login-container {
        margin: 20px auto;
        max-height: calc(100vh - 40px);
    }
}

/* 优化装饰图样式 */
.login-decoration {
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.login-decoration::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.1),
        rgba(255, 255, 255, 0.1)
    );
    z-index: 1;
}

.login-decoration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.05) contrast(1.05);
    transform: scale(1.1);
}

/* 优化小图标样式 */
.ai-icon {
    width: 70px;
    height: 70px;
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.ai-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ai-icon:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.ai-icon:hover img {
    transform: scale(1.15);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .login-decoration {
        width: 280px;
        height: 280px;
    }
    
    .ai-icon {
        width: 60px;
        height: 60px;
        border-radius: 15px;
    }
}

/* 调整左侧布局 */
.login-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 40px;
}

.site-title {
    text-align: center;
    margin-bottom: 0;
}

.login-desc {
    text-align: center;
    margin: 40px auto 0;
}

/* 为背景添加动画效果 */
@keyframes backgroundFloat {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

body::before {
    animation: backgroundFloat 30s ease infinite;
    background-size: 120% 120%;
}

/* 添加AI图标样式 */
.ai-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.ai-icon {
    width: 56px;
    height: 56px;
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    animation: iconFloat 3s ease-in-out infinite;
}

.ai-icon:nth-child(2) {
    animation-delay: 0.5s;
}

.ai-icon:nth-child(3) {
    animation-delay: 1s;
}

.ai-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    filter: brightness(1.1);
}

.ai-icon:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* 调整左侧布局间距 */
.login-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 40px;
    gap: 20px;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .ai-icon {
        width: 40px;
        height: 40px;
        padding: 8px;
    }
    
    .ai-icons {
        gap: 20px;
    }
}
