/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
    min-height: 100vh;
    color: #333;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 150px;
    height: 75px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
}

.edition {
    font-size: 12px;
    color: #666;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    text-decoration: none;
    color: #a0aec0;
    font-size: 12px;
    padding: 8px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 400;
}

.nav-link:hover {
    background: #f7fafc;
    color: #2d3748;
}

.nav-divider {
    color: #cbd5e0;
    font-size: 12px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    color: #a0aec0;
    font-weight: 400;
}

.language-selector:hover {
    background: #f7fafc;
}

.dropdown-arrow {
    font-size: 10px;
    color: #a0aec0;
}

/* Main Content */
.main-content {
    display: flex;
    min-height: calc(100vh - 120px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
}

/* Promotional Section */
.promotional-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 20px;
}

.promotional-content {
    max-width: 500px;
    text-align: center;
}

.main-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.2;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 18px;
    color: #1a202c;
    margin-bottom: 24px;
}

.ai-character-container {
    position: relative;
    margin: 20px 0;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-character {
    position: relative;
    width: 120px;
    height: 120px;
}

.character-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.avatar-face {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
}

.eyes {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.eye {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.glasses {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
    border: 2px solid white;
    border-radius: 10px;
}

.mouth {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 10px;
    border: 2px solid white;
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.character-body {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.shirt {
    width: 60px;
    height: 40px;
    background: #4299e1;
    border-radius: 0 0 30px 30px;
}

/* Feature Bubbles */
.feature-bubble {
    position: absolute;
    background: rgba(66, 153, 225, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: float 3s ease-in-out infinite;
}

.bubble-1 {
    top: 20px;
    left: -30px;
    animation-delay: 0s;
}

.bubble-2 {
    top: 40px;
    right: -40px;
    animation-delay: 0.5s;
}

.bubble-3 {
    bottom: 60px;
    right: -30px;
    animation-delay: 1s;
}

.bubble-4 {
    bottom: 40px;
    left: -40px;
    animation-delay: 1.5s;
}

/* Floating Icons */
.floating-icon {
    position: absolute;
    font-size: 20px;
    animation: float 4s ease-in-out infinite;
}

.icon-1 {
    top: 10px;
    left: 20px;
    animation-delay: 0.2s;
}

.icon-2 {
    top: 30px;
    right: 10px;
    animation-delay: 1.2s;
}

.icon-3 {
    bottom: 80px;
    left: 10px;
    animation-delay: 2.2s;
}

.icon-4 {
    bottom: 20px;
    right: 20px;
    animation-delay: 3.2s;
}

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

.cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

/* Login Section */
.login-section {
    flex: 0 0 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-panel {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.login-tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    cursor: pointer;
    color: #a0aec0;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    letter-spacing: 0.01em;
}

.tab.active {
    color: #2d3748;
    border-bottom-color: #1677ff;
    font-weight: 500;
}

.tab:hover:not(.active) {
    color: #718096;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.input-group {
    position: relative;
    margin-bottom: 16px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fafafa;
}

.form-input:focus {
    outline: none;
    border-color: #4299e1;
    background: white;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: #a0aec0;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
}

.forgot-password {
    color: #4299e1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #3182ce;
}

.signin-button {
    width: 100%;
    background: #e53e3e;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.signin-button:hover {
    background: #c53030;
}

.terms-section {
    margin-bottom: 24px;
}

.terms-links {
    margin-top: 8px;
}

.terms-link {
    color: #4299e1;
    text-decoration: none;
    font-size: 14px;
}

.terms-link:hover {
    text-decoration: underline;
}

.qr-section {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.qr-code {
    width: 120px;
    height: 120px;
    margin: 0 auto 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    position: relative;
    overflow: hidden;
}

.qr-canvas {
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.qr-logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #e53e3e;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.qr-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 2px;
}

.dingtalk-logo {
    background: #1677ff;
}

.dingtalk-img {
    filter: brightness(0) invert(1);
}

.qr-text {
    font-size: 14px;
    color: #718096;
    margin: 0;
}

/* Scan Section */
.scan-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 0 0 0;
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.scan-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.scan-text {
    font-size: 18px;
    color: #a0aec0;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.qr-instruction {
    text-align: center;
    font-size: 14px;
    color: #718096;
    margin-bottom: 24px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 20px 20px 15px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.footer-link {
    color: #718096;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #4299e1;
}

.copyright {
    color: #a0aec0;
    font-size: 12px;
    margin: 0;
}

/* Success Page Styles */
.success-info {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.success-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 16px;
}

.success-details h3 {
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 12px;
    text-align: center;
}

.success-details p {
    font-size: 14px;
    color: #4a5568;
    margin: 8px 0;
    padding: 8px 12px;
    background: #f7fafc;
    border-radius: 6px;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.secondary-button {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

.panel-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    text-align: center;
    margin-bottom: 24px;
}

.account-info {
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.info-label {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    color: #2d3748;
    font-weight: 600;
}

.success-status {
    color: #48bb78 !important;
}

.active-status {
    color: #4299e1 !important;
}

.account-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.action-button {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-button.primary {
    background: #4299e1;
    color: white;
}

.action-button.primary:hover {
    background: #3182ce;
}

.action-button.secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.action-button.secondary:hover {
    background: #cbd5e0;
}

.action-button.danger {
    background: #f56565;
    color: white;
}

.action-button.danger:hover {
    background: #e53e3e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        padding: 20px;
    }
    
    .promotional-section {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .main-title {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .login-section {
        flex: none;
    }
    
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 20px;
    }
    
    .navigation {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .login-panel {
        padding: 24px;
    }
    
    .ai-character-container {
        height: 200px;
    }
    
    .character-avatar {
        width: 120px;
        height: 120px;
    }
}
