* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: linear-gradient(180deg, #F5F7FA 0%, #E4E9F2 100%);
    min-height: 100vh;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 30%;
}

/* 主容器 */
.login-container {
    width: 100%;
    background: transparent;
    border-radius: 20px;
    /*box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);*/
    padding: 25px;
    margin: 0 auto;
    flex-shrink: 0;
    max-width: 400px;
}

/* 品牌区 */
.brand-area {
    text-align: center;
    margin-bottom: 32px;
}

.brand-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E8F3FF 0%, #D1E9FF 100%);
    border-radius: 50%;
}

.brand-logo svg {
    width: 44px;
    height: 44px;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: #1D2129;
    margin-bottom: 6px;
}

.brand-desc {
    font-size: 12px;
    color: #86909C;
    line-height: 1.4;
}

/* 通用面板样式 */
.login-panel {
    display: none;
}

.login-panel.active {
    display: block;
}

/* 手机号登录面板 */
.input-item {
    width: 100%;
    margin-bottom: 12px;
    position: relative;
}

/* 手机号输入框样式 */
.phone-wrapper {
    width: 100%;
    height: 48px;
    border: 1px solid #EEEEEE;
    border-radius: 999px;
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    overflow: hidden;
    background: #FAFAFA;
    transition: border-color 0.2s;
}

.phone-wrapper:focus-within {
    border-color: #7B61FF;
}

.country-code {
    width: 80px !important;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-right: 1px solid #EEEEEE;
    background: transparent;
}

/* 国旗图标样式 */
.china-flag {
    width: 14px;
    height: 12px;
    background: #E6162D;
    position: relative;
    border-radius: 1px;
}

.china-flag::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 2px;
    width: 4px;
    height: 4px;
    background: #FFDE00;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.code-text {
    font-size: 14px;
    color: #333333;
    font-weight: 400;
}

.phone-input {
    width: calc(100% - 80px) !important;
    height: 100%;
    text-indent: 16px;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    color: #333333;
}

.phone-input::placeholder {
    color: #999999;
}

/* 验证码模块 */
.code-group {
    display: flex;
    width: 100%;
    margin-bottom: 20px;
}

.code-input {
    width: calc(100% - 110px) !important;
    height: 48px;
    text-indent: 16px;
    border: 1px solid #EEEEEE;
    border-right: none;
    border-radius: 999px 0 0 999px;
    outline: none;
    font-size: 15px;
    color: #333333;
    background: #FAFAFA;
    transition: border-color 0.2s;
}

.code-input:focus {
    border-color: #7B61FF;
}

.code-input::placeholder {
    color: #999999;
}

.get-code-btn {
    width: 110px !important;
    height: 48px;
    background: #1677FF;
    border: none;
    border-radius: 0 999px 999px 0;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
    box-sizing: border-box;
}

.get-code-btn:hover {
    background: #0966E2;
}

.get-code-btn:disabled {
    background: #F5F5F5;
    color: #999999;
    cursor: not-allowed;
}

/* 手机号登录按钮 */
.phone-login-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #7B61FF, #1677FF);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 24px;
    transition: opacity 0.2s;
    box-shadow: none;
}

.phone-login-btn:hover {
    opacity: 0.9;
}

.phone-login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #F5F5F5;
    color: #999999;
}

.phone-login-btn:active:not(:disabled) {
    transform: none;
    box-shadow: none;
}

/* 隐私协议 */
.privacy-agreement {
    display: flex;
    align-items: center; 
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: #86909C;
    line-height: 12px; 
    margin: 0;
    padding: 5px;
    height: 12px; 
    width: 100%;
    text-align: center;
}

.privacy-checkbox {
    width: 12px;
    height: 12px;
    border: 1px solid #E5E6EB;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.privacy-checkbox.checked {
    background: #1677FF;
    border-color: #1677FF;
}

.check-icon {
    font-size: 6px;
    color: #FFFFFF;
    display: none;
    vertical-align: middle;
}

.privacy-checkbox.checked .check-icon {
    display: block;
}

.privacy-text {
    display: inline-block;
    line-height: 12px;
    vertical-align: middle;
}

.privacy-text a {
    color: #1677FF;
    text-decoration: none;
}

/* ICP备案信息 */
.icp-info {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
    color: #999999;
}

.icp-info a {
    color: #b3b3b3;
    text-decoration: none;
}

.icp-info a:hover {
    color: #666666;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-right: 6px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 隐藏域样式 */
.hidden-phone {
    display: none;
}