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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* 顶部标题栏 */
.header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    position: relative;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    font-size: 14px;
}

.back-btn, .menu-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
}

.header-title {
    font-size: 16px;
    font-weight: normal;
    flex: 1;
    text-align: center;
    margin: 0 10px;
}

.header-url {
    font-size: 12px;
    color: #ccc;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 0;
}

/* 蓝色背景区域 */
.blue-section {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 25px;
}

.platform-title {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* 登录区域 */
.login-section {
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 0;
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.logo-inner {
    color: #fff;
    font-size: 32px;
    position: relative;
    z-index: 2;
}

.logo::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 50%);
    border-radius: 50%;
}

/* 表单样式 */
.login-form {
    width: 100%;
}

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

.input-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-field {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #4a90e2;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

/* 密码容器 */
.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
}

.password-toggle:hover {
    color: #4a90e2;
}

/* 验证码组 */
.captcha-group {
    margin-bottom: 25px;
}

.captcha-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-input {
    flex: 1;
}

.captcha-image {
    width: 100px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f0f0f0;
    cursor: pointer;
    overflow: hidden;
}

#captchaCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* 登录类型 */
.login-type {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.type-label {
    color: #666;
    margin-right: 15px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 6px;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #4a90e2;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #4a90e2;
    border-radius: 50%;
}

.radio-text {
    color: #333;
    font-size: 14px;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.login-btn:hover {
    background: linear-gradient(135deg, #357abd, #2968a3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

/* 底部链接 */
.bottom-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.link {
    color: #4a90e2;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.link:hover {
    color: #357abd;
    text-decoration: underline;
}

.forgot-password {
    color: #e74c3c;
    border: 1px solid #e74c3c;
    padding: 6px 12px;
    border-radius: 4px;
    background-color: #fff;
}

.forgot-password:hover {
    background-color: #e74c3c;
    color: #fff;
    text-decoration: none;
}

/* 页脚 */
.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f8f8f8;
    padding: 15px 20px 10px;
    border-top: 1px solid #eee;
}

.footer-info {
    text-align: center;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.footer-info p {
    margin-bottom: 3px;
}

.page-indicator {
    text-align: center;
    margin-top: 10px;
}

.indicator-line {
    width: 40px;
    height: 3px;
    background-color: #333;
    margin: 0 auto;
    border-radius: 2px;
}

/* 保存图片按钮 */
.save-image-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0,0,0,0.7);
    color: #fff;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.save-image-btn:hover {
    background-color: rgba(0,0,0,0.9);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }
    
    .login-section {
        padding: 25px 15px;
    }
    
    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-image {
        width: 100%;
        margin-top: 10px;
    }
    
    .bottom-links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-section {
    animation: fadeIn 0.6s ease-out;
}

.input-field {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
