:root {
    --primary-color: #6c5ce7;
    --secondary-color: #00cec9;
    --dark-color: #2d3436;
    --light-color: #f5f6fa;
    --success-color: #00b894;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', 'Microsoft YaHei', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    overflow: hidden;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.login-container {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    animation: shine 2s infinite;
}

@keyframes shine {
    100% {
        transform: translateX(100%);
    }
}

.platform-logo {
    text-align: center;
    margin-bottom: 30px;
}

.platform-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 5px;
    background: linear-gradient(to right, white, #f3f3f3);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.platform-slogan {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.user-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.info-row {
    display: flex;
    margin-bottom: 12px;
    font-size: 15px;
}

.info-label {
    width: 80px;
    opacity: 0.8;
}

.info-value {
    flex: 1;
    font-weight: 400;
}

.loading-section {
    text-align: center;
}

.loading-text {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.loading-text::after {
    content: '...';
    position: absolute;
    animation: dots 1.5s infinite steps(4, end);
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

.loader {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    position: relative;
}

.loader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.loader-circle:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: var(--secondary-color);
    animation-delay: 0.2s;
}

.loader-circle:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: var(--success-color);
    animation-delay: 0.4s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin-top: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(to right, var(--secondary-color), var(--success-color));
    border-radius: 3px;
    transition: width 0.3s ease;
    animation: progress 2s infinite alternate;
}

@keyframes progress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

.status-message {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.8;
    min-height: 20px;
}

/* 提示信息样式 */
.login-tip {
    background: rgba(0, 206, 201, 0.2);
    border: 1px solid rgba(0, 206, 201, 0.4);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: tipFadeIn 0.5s ease-out;
    box-shadow: 0 4px 15px rgba(0, 206, 201, 0.1);
}

.tip-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.tip-text {
    font-size: 14px;
    line-height: 1.5;
    color: #ffffff;
    font-weight: 500;
}

.tip-code {
    background: rgba(255, 255, 255, 0.25);
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

/* 登录表单样式 */
.login-form {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

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

.form-label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.9;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(0, 206, 201, 0.2);
    transform: translateY(-1px);
}

.login-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--secondary-color), var(--success-color));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.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: left 0.5s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 206, 201, 0.3);
}

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

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 206, 201, 0.2);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Tips按钮样式 */
.tips-button-container {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.tips-button {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 10px 20px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.tips-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 206, 201, 0.2);
}

.tips-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 206, 201, 0.1);
}

.tips-icon {
    font-size: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Tips弹窗样式 */
.tips-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: modalFadeIn 0.3s ease-out;
}

.tips-modal.show {
    display: flex;
}

.tips-modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: scale(0.9);
    animation: modalSlideIn 0.3s ease-out forwards;
    overflow: hidden;
}

.tips-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tips-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

.tips-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.tips-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.tips-modal-body {
    padding: 30px 25px;
    text-align: center;
    color: var(--dark-color);
}

.tips-modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.tips-modal-text {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    color: var(--dark-color);
    font-weight: 500;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* 版权信息样式 */
.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-text {
    font-size: 14px;
    color: #ffffff;
    font-style: italic;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.copyright-text::before {
    content: '✨';
    margin-right: 6px;
    font-size: 12px;
}

.copyright-text::after {
    content: '✨';
    margin-left: 6px;
    font-size: 12px;
}

/* 运行时间显示样式 */
.runtime-display {
    margin-top: 15px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.5px;
    animation: runtimeFadeIn 0.8s ease-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.runtime-icon {
    font-size: 14px;
    animation: runtimePulse 2s infinite;
}

.runtime-text {
    font-size: 13px;
    line-height: 1.4;
}

#runtimeTime {
    color: #ffffff;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes runtimeFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes runtimePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }

    .platform-name {
        font-size: 24px;
    }
    
    .form-input {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .login-btn {
        padding: 12px 18px;
        font-size: 15px;
    }
    
    .login-tip {
        padding: 14px 16px;
        margin-bottom: 16px;
    }
    
    .tip-text {
        font-size: 13px;
    }
    
    .tip-code {
        font-size: 12px;
        padding: 1px 4px;
    }
    
    .copyright {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .copyright-text {
        font-size: 13px;
    }
    
    /* 运行时间显示移动端样式 */
    .runtime-display {
        margin-top: 12px;
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .runtime-icon {
        font-size: 12px;
    }
    
    .runtime-text {
        font-size: 12px;
    }
    
    #runtimeTime {
        font-size: 11px;
        padding: 1px 4px;
    }
    
    /* Tips按钮移动端样式 */
    .tips-button-container {
        top: 10px;
        left: 10px;
    }
    
    .tips-button {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .tips-icon {
        font-size: 12px;
    }
    
    .tips-text {
        display: none; /* 移动端只显示图标 */
    }
    
    /* Tips弹窗移动端样式 */
    .tips-modal-content {
        max-width: 350px;
        width: 95%;
    }
    
    .tips-modal-header {
        padding: 15px 20px;
    }
    
    .tips-modal-title {
        font-size: 16px;
    }
    
    .tips-modal-body {
        padding: 25px 20px;
    }
    
    .tips-modal-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .tips-modal-text {
        font-size: 15px;
    }
}