/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--st-gradient-bg, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    min-height: 100vh;
    color: #333;
}

/* 认证页面样式 */
.auth-container {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    max-width: 1000px;
    width: 100%;
    min-height: 600px;
}

.auth-card > div {
    flex: 1;
    padding: 60px;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo i {
    font-size: 48px;
    color: var(--st-primary-500, #6366F1);
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

.subtitle {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.auth-form {
    max-width: 400px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 15px;
    color: #999;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--st-primary-500, #6366F1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
}

.toggle-password:hover {
    color: var(--st-primary-500, #6366F1);
}

.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.error-message {
    display: block;
    color: var(--st-error-500, #EF4444);
    font-size: 14px;
    margin-top: 5px;
    min-height: 20px;
}

.auth-button {
    width: 100%;
    padding: 15px;
    background: var(--st-gradient-brand, linear-gradient(135deg, #6366F1, #8B5CF6));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.auth-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

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

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.checkbox-container input {
    margin-right: 8px;
}

.forgot-password {
    color: var(--st-primary-500, #6366F1);
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #666;
}

.auth-footer a {
    color: var(--st-primary-500, #6366F1);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-image {
    background: var(--st-gradient-brand, linear-gradient(135deg, #6366F1, #8B5CF6));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.image-content i {
    font-size: 80px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.image-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.image-content p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-container {
        padding: 0;
    }
    
    .auth-card {
        flex-direction: column;
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
    
    .auth-card > div {
        padding: 40px 30px;
    }
    
    .auth-image {
        order: -1;
        padding: 60px 30px;
    }
    
    .image-content i {
        font-size: 60px;
        margin-bottom: 20px;
    }
    
    .image-content h2 {
        font-size: 24px;
    }
    
    .logo h1 {
        font-size: 28px;
    }
    
    .auth-form {
        width: 100%;
    }
    
    .input-group input {
        padding: 12px 12px 12px 40px;
        font-size: 16px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .auth-card > div {
        padding: 30px 20px;
    }
    
    .logo i {
        font-size: 36px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .auth-button {
        padding: 12px;
        font-size: 14px;
    }
}

/* 触摸设备优化 */
@media (hover: none) {
    .auth-button:hover {
        transform: none;
        box-shadow: none;
    }
    
    .input-group input:focus {
        border-color: var(--st-primary-500, #6366F1);
    }
}

/* 主页面响应式优化 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0 20px;
}

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

.nav-brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--st-primary-600, #4F46E5);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: #333;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-level-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: var(--st-gradient-gold, linear-gradient(135deg, #ffd700 0%, #ffed4e 100%));
    color: #333;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 5px;
}

.nav-link:hover {
    background: var(--st-primary-500, #6366F1);
    color: white;
}

.nav-link.primary {
    background: var(--st-primary-500, #6366F1);
    color: white;
}

.nav-link.primary:hover {
    background: var(--st-primary-700, #4338CA);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* 移动端导航 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 40px;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-link {
        padding: 15px 30px;
        font-size: 18px;
    }
}

/* 内容区域响应式 */
.main-content {
    margin-top: 80px;
    padding: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .main-content {
        margin-top: 80px;
        padding: 15px;
    }
}

/* 网格布局响应式 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* 卡片样式响应式 */
.card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .card {
        padding: 20px;
        border-radius: 10px;
    }
}



@media (max-width: 480px) {
    .card {
        padding: 15px;
    }
}

/* 触摸优化 */
@media (hover: none) {
    .card:hover {
        transform: none;
    }
}
