:root {
    --primary-color: #2C5282;
    --secondary-color: #38B2AC;
    --accent-color: #4FD1C5;
    --text-color: #2D3748;
    --background-color: #1A202C;
    --card-background: rgba(255, 255, 255, 0.95);
    --input-border: #E2E8F0;
    --input-focus: #4299E1;
    --button-gradient: linear-gradient(135deg, #2C5282, #38B2AC);
    --button-hover: linear-gradient(135deg, #2B6CB0, #319795);
    --broadcast-color: rgb(139, 0, 0);
    --broadcast-hover: rgb(159, 0, 0);
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

@keyframes wave {
    0% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
    100% { opacity: 0.4; transform: scaleY(1); }
}

@keyframes glow {
    0% { box-shadow: 0 4px 15px rgba(139, 0, 0, 0.2); }
    50% { box-shadow: 0 4px 25px rgba(139, 0, 0, 0.4); }
    100% { box-shadow: 0 4px 15px rgba(139, 0, 0, 0.2); }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(44, 82, 130, 0.15), transparent 60%),
                radial-gradient(circle at bottom left, rgba(56, 178, 172, 0.1), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* 左侧展示区样式 */
.showcase-section {
    flex: 6;
    background: linear-gradient(-45deg, #2C5282, #38B2AC, #2B6CB0, #319795);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 60%),
        linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.05) 75%, transparent 75%, transparent);
    background-size: auto, 60px 60px;
    pointer-events: none;
}

.logo-container {
    margin-bottom: 2rem;
    position: relative;
}

.logo-container h1 {
    font-size: 2.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    background: linear-gradient(to right, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 3s ease-in-out infinite;
}

.lottie-container {
    width: 55%;
    height: auto;
    margin: 2rem 0;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

.company-intro {
    text-align: center;
    line-height: 2;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-top: auto;
    padding-bottom: 2rem;
}

/* 右侧登录区样式 */
.login-section {
    flex: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    background: var(--card-background);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                0 2px 4px rgba(255, 255, 255, 0.1),
                inset 0 2px 4px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15),
                0 2px 4px rgba(255, 255, 255, 0.1),
                inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.login-card h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid var(--input-border);
    border-radius: 0.8rem;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:hover {
    border-color: var(--accent-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group input:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
    transform: translateY(-1px);
}

.login-button {
    width: 100%;
    padding: 1rem;
    background: var(--button-gradient);
    color: white;
    border: none;
    border-radius: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.login-button:hover {
    background: var(--button-hover);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.login-button:active, .login-button.clicked {
    transform: scale(0.98) translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.login-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.3s ease-out;
}

.login-button:active::after {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 1;
    transition: 0s;
}

.qr-code-container {
    margin-top: 2rem;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    backdrop-filter: blur(5px);
}

#qrCode {
    width: 120px;
    height: 120px;
    margin: 0 auto 0.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qr-code-container p {
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 广播台链接样式 */
.broadcast-link {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(45deg, var(--broadcast-color), var(--broadcast-hover));
    border-radius: 1.3rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    animation: glow 3s infinite;
    overflow: hidden;
}

.broadcast-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.3);
    background: linear-gradient(45deg, var(--broadcast-hover), var(--broadcast-color));
}

.broadcast-link:active {
    transform: translateY(1px) scale(0.98);
}

.broadcast-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.broadcast-link span {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 15px;
    letter-spacing: 0.5px;
}

.broadcast-link::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;
}

.broadcast-link:hover::before {
    left: 100%;
}

.broadcast-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 35px;
    width: 2px;
    height: 12px;
    background: rgba(255, 255, 255, 0.8);
    transform-origin: center top;
    animation: wave 2s ease-in-out infinite;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .container {
        flex-direction: column;
    }
    
    .showcase-section {
        padding: 2rem 1rem;
    }
    
    .logo-container h1 {
        font-size: 2rem;
    }
    
    .lottie-container {
        width: 50%;
    }
    
    .login-section {
        padding: 2rem 1rem;
    }

    .broadcast-link {
        padding: 8px 16px;
        font-size: 14px;
        top: 12px;
        right: 12px;
    }

    .broadcast-icon {
        width: 20px;
        height: 20px;
        margin-right: 6px;
    }

    .broadcast-link span {
        font-size: 14px;
    }
}

/* 微信登录样式 */
.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider span {
    background: var(--card-bg);
    padding: 0 1rem;
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.7;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--text-color), transparent);
    opacity: 0.3;
    z-index: -1;
}

.wechat-login-container {
    margin-bottom: 1rem;
}

.wechat-login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #07C160, #1AAD19);
    color: white;
    border: none;
    border-radius: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.3);
}

.wechat-login-btn:hover {
    background: linear-gradient(45deg, #06A050, #169A12);
    box-shadow: 0 6px 20px rgba(7, 193, 96, 0.4);
    transform: translateY(-2px);
}

.wechat-login-btn:active {
    transform: scale(0.98) translateY(1px);
}

.wechat-icon {
    width: 24px;
    height: 24px;
    fill: white;
}

@media (max-width: 480px) {
    .logo-container h1 {
        font-size: 1.8rem;
    }
    
    .lottie-container {
        width: 60%;
    }
    
    .company-intro {
        font-size: 1rem;
    }
    
    .qr-code-container {
        display: none;
    }
}

/* 已登录用户样式 */
.logged-in-panel {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                0 2px 4px rgba(255, 255, 255, 0.1),
                inset 0 2px 4px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    animation: fadeIn 0.6s ease-out;
}

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

.welcome-message {
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-message h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.welcome-message p {
    color: var(--text-color);
    font-size: 1.1rem;
    opacity: 0.8;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.action-btn {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.action-btn.primary {
    background: var(--button-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.action-btn.primary:hover {
    background: var(--button-hover);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.action-btn.logout {
    grid-column: 1 / -1;
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
    border: 2px solid #DC2626;
}

.action-btn.logout:hover {
    background: #DC2626;
    color: white;
    transform: translateY(-2px);
}

.action-btn.admin-only {
    background: rgba(147, 51, 234, 0.1);
    color: #9333EA;
    border: 2px solid #9333EA;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.1);
}

.action-btn.admin-only:hover {
    background: #9333EA;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

/* 响应式设计 - 已登录用户 */
@media (max-width: 768px) {
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .logged-in-panel {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .welcome-message h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 968px) {
    .logged-in-panel {
        margin-top: 1rem;
    }
}

/* 微信扫码登录二维码容器样式 */
.wechat-qr-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    animation: qrSlideIn 0.3s ease-out;
    position: relative;
}

/* 扫码状态提示 */
.wechat-qr-status {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(33, 150, 243, 0.95);
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.wechat-qr-status.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.wechat-qr-status.success {
    background: rgba(76, 175, 80, 0.95);
    animation: successPulse 0.6s ease;
}

.wechat-qr-status.scanning {
    background: rgba(33, 150, 243, 0.95);
}

@keyframes successPulse {
    0% { transform: translateX(-50%) translateY(-5px) scale(1); }
    50% { transform: translateX(-50%) translateY(-5px) scale(1.05); }
    100% { transform: translateX(-50%) translateY(-5px) scale(1); }
}

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

.wechat-qr-container .qr-title {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.wechat-qr-container .qr-code {
    margin: 15px 0;
    min-height: 200px;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
}

.wechat-qr-container .qr-tips {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.wechat-qr-container .qr-tips p {
    margin: 5px 0;
}

.wechat-qr-container .close-qr-btn {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e9ecef;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.wechat-qr-container .close-qr-btn:hover {
    background: #e9ecef;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wechat-qr-container {
        padding: 15px;
        margin-top: 10px;
    }
    
    .wechat-qr-container .qr-code {
        min-height: 180px;
    }
    
    .wechat-qr-container .qr-title {
        font-size: 1.1rem;
    }
}
