/* 登录注册和个人中心样式 */

/* 头部按钮样式 */
.user-auth-buttons,
.user-profile-button {
    display: inline-block;
    margin-left: 10px;
}

.auth-btn {
    padding: 10px 30px;
    background-color: rgba(12, 22, 41, 0.8);
    border: 2px solid #02a6b5;
    color: #00fbfe;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 0 10px #00d8ff;
    box-shadow: 0 0 15px rgba(2, 166, 181, 0.5);
    transition: all 0.3s ease;
    border-radius: 5px;
    font-family: '微软雅黑', Arial, sans-serif;
}

.auth-btn:hover {
    background-color: rgba(2, 166, 181, 0.3);
    border-color: #00fbfe;
    box-shadow: 0 0 25px rgba(0, 251, 254, 0.8);
    text-shadow: 0 0 15px #00d8ff;
    transform: translateY(-2px);
}

.auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 15px rgba(2, 166, 181, 0.5) inset;
}

.training-toggle-btn,
.training-reset-btn {
    min-width: 118px;
    padding-left: 22px;
    padding-right: 22px;
    white-space: nowrap;
}

.training-reset-btn {
    border-color: #1d6cff;
    color: #d7e7ff;
    background-color: rgba(12, 30, 70, 0.72);
}

.training-reset-btn:hover {
    border-color: #58a6ff;
    box-shadow: 0 0 22px rgba(88, 166, 255, 0.6);
}

.training-toggle-btn.training-active {
    border-color: #30d979;
    color: #7dffb2;
    background-color: rgba(28, 90, 58, 0.55);
    text-shadow: 0 0 10px rgba(125, 255, 178, 0.9);
    box-shadow: 0 0 18px rgba(48, 217, 121, 0.55);
}

/* 蒙版样式 */
.auth-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

/* 登录/注册弹窗样式 */
.auth-modal {
    width: 420px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 35, 95, 0.25);
    padding: 32px 36px 28px;
    position: relative;
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-header {
    display: flex;
    border-bottom: 1px solid #F0F0F0;
    margin-bottom: 24px;
}

.register-header {
    justify-content: center;
    padding-bottom: 12px;
}

.auth-title {
    font-size: 20px;
    font-weight: 600;
    color: #1A73E8;
    text-align: center;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding-bottom: 12px;
    font-size: 18px;
    color: #999999;
    cursor: pointer;
    position: relative;
}

.auth-tab.active {
    color: #1A73E8;
    font-weight: 600;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    left: 22%;
    right: 22%;
    bottom: -1px;
    height: 3px;
    border-radius: 2px;
}

.auth-body {
    margin-top: 4px;
}

.form-item {
    margin-bottom: 18px;
}

.form-item input {
    width: 100%;
    height: 44px;
    border-radius: 24px;
    border: 1px solid #D8E1F0;
    padding: 0 16px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-item input:focus {
    border-color: #1A73E8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15);
}

.captcha-row,
.sms-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-row input,
.sms-row input {
    flex: 1;
}

.captcha-box {
    width: 120px;
    height: 44px;
    border-radius: 12px;
    background: #F5F7FF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
    color: #6A4BE8;
    letter-spacing: 4px;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}

.sms-btn {
    width: 120px;
    height: 44px;
    border-radius: 24px;
    border: none;
    background: #1A73E8;
    color: #FFFFFF;
    font-size: 14px;
    cursor: pointer;
}

.sms-btn:disabled {
    background: #CCCCCC;
    cursor: not-allowed;
}

.agree-row {
    font-size: 12px;
    color: #888888;
}

.agree-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.agree-row input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin-right: 4px;
}

.agree-link {
    color: #1A73E8;
    text-decoration: underline;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    height: 46px;
    border-radius: 24px;
    border: none;
    background: linear-gradient(135deg, #1A73E8, #0052D9);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 4px;
    margin-bottom: 8px;
    box-shadow: 0 10px 22px rgba(0, 82, 217, 0.35);
}

.auth-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 12px;
    color: #666666;
    gap: 8px;
}

.auth-footer .link {
    color: #1A73E8;
    cursor: pointer;
}

.auth-footer .divider {
    color: #D0D0D0;
}

.auth-close {
    position: absolute;
    right: 18px;
    top: 10px;
    font-size: 20px;
    color: #999999;
    cursor: pointer;
}

.profile-header .auth-close {
    position: absolute;
    right: 18px;
    top: 10px;
    left: auto;
}

/* 个人中心弹窗样式 */
.profile-modal {
    width: 720px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 35, 95, 0.25);
    padding: 0 0 24px;
    display: flex;
    flex-direction: column;
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow: hidden;
    max-height: 90vh;
}

.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #F0F0F0;
    font-size: 18px;
    font-weight: 500;
    color: #333333;
    position: relative;
    background: linear-gradient(135deg, #F8FAFF 0%, #FFFFFF 100%);
    border-radius: 16px 16px 0 0;
}

.profile-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-header-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #E8F3FF;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.15);
}

.header-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1A73E8, #4B9CFF);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}

.profile-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-header-name {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    line-height: 1.4;
}

.profile-header-mobile {
    font-size: 13px;
    color: #666666;
    line-height: 1.4;
}

.profile-body {
    display: flex;
    padding: 20px 24px 24px;
    gap: 0;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

.profile-menu {
    width: 160px;
    border-right: 1px solid #F5F5F5;
    padding-right: 16px;
    margin-right: 16px;
    flex-shrink: 0;
}

.profile-menu-item {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #666666;
    cursor: pointer;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.profile-menu-item:hover {
    background: #F5F7FA;
    color: #333333;
}

.profile-menu-item.active {
    background: linear-gradient(135deg, #E8F3FF 0%, #F0F7FF 100%);
    color: #1A73E8;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.1);
}

.profile-menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: linear-gradient(135deg, #1A73E8, #4B9CFF);
    border-radius: 0 2px 2px 0;
}

.profile-content {
    flex: 1;
    padding-left: 0;
    min-width: 0;
}

.profile-section {
    margin-bottom: 20px;
}

.profile-section h3 {
    font-size: 15px;
    margin-bottom: 12px;
    color: #333333;
}

.profile-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.profile-row label {
    width: 90px;
    font-size: 13px;
    color: #666666;
}

.profile-row input {
    flex: 1;
    height: 36px;
    border-radius: 18px;
    border: 1px solid #D8E1F0;
    padding: 0 14px;
    font-size: 13px;
    outline: none;
}

.profile-row input:focus {
    border-color: #1A73E8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.12);
}

.text-value {
    font-size: 13px;
    color: #333333;
}

.avatar-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-img,
.avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E8F3FF 0%, #D1E7FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #1A73E8;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #E8F3FF;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.15);
}

.avatar-img:hover,
.avatar-placeholder:hover {
    opacity: 0.9;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.25);
}

.avatar-img {
    object-fit: cover;
    background: linear-gradient(135deg, #E8F3FF 0%, #D1E7FF 100%);
}

.avatar-input {
    display: none;
}

.profile-sms-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

/* 退出登录和注销账户区域样式 */
.logout-section {
    border: 1px solid #E8F3FF;
    border-radius: 12px;
    background: linear-gradient(135deg, #F8FAFF 0%, #FFFFFF 100%);
    padding: 24px;
    margin-bottom: 24px;
}

.delete-section {
    border: 1px solid #FFE5E5;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 100%);
    padding: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F0F0F0;
}

.section-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333333;
}

.danger-title {
    color: #FF6B6B !important;
}

.section-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.section-badge.normal {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    color: #2E7D32;
}

.section-badge.danger {
    background: linear-gradient(135deg, #FFE5E5, #FFCCCB);
    color: #C62828;
}

.logout-content {
    text-align: left;
    padding: 0;
}

.logout-description {
    margin-bottom: 24px;
}

.logout-tip {
    font-size: 14px;
    color: #666666;
    margin-bottom: 16px;
    line-height: 1.6;
}

.delete-account-tip {
    font-size: 14px;
    color: #FF6B6B;
    margin-bottom: 16px;
    line-height: 1.6;
    font-weight: 500;
}

.logout-features,
.delete-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.logout-features li {
    font-size: 13px;
    color: #4CAF50;
    line-height: 1.5;
    padding-left: 4px;
}

.delete-features li {
    font-size: 13px;
    color: #FF6B6B;
    line-height: 1.5;
    padding-left: 4px;
    font-weight: 500;
}

.logout-btn {
    width: 200px;
    height: 44px;
    border-radius: 22px;
    border: none;
    background: linear-gradient(135deg, #4CAF50, #45A049);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transition: all 0.2s ease;
    display: block;
    margin: 0 auto;
}

.logout-btn:hover {
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #45A049, #3D8B40);
}

.logout-btn:active {
    transform: translateY(0);
}

.delete-account-btn {
    width: 200px;
    height: 44px;
    border-radius: 22px;
    border: none;
    background: linear-gradient(135deg, #DC3545, #C82333);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    transition: all 0.2s ease;
    display: block;
    margin: 0 auto;
}

.delete-account-btn:hover {
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.5);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #C82333, #BD2130);
}

.delete-account-btn:active {
    transform: translateY(0);
}

/* 实名认证状态样式 */
.realname-status {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
    border-radius: 12px;
    border: 1px solid #C8E6C9;
    margin-bottom: 20px;
}

.realname-status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.realname-status-text {
    flex: 1;
}

.realname-status-title {
    font-size: 16px;
    font-weight: 600;
    color: #2E7D32;
    margin-bottom: 12px;
}

.realname-status-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.realname-info-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.5;
}

.realname-info-label {
    color: #666666;
    min-width: 80px;
}

.realname-info-value {
    color: #333333;
    font-weight: 500;
}

.mt-20 {
    margin-top: 20px;
}

/* 用户协议/隐私协议弹窗样式 */
.agreement-modal {
    width: 800px;
    max-width: 90vw;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(15, 35, 95, 0.3);
    display: flex;
    flex-direction: column;
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow: hidden;
}

.agreement-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid #F0F0F0;
    background: linear-gradient(135deg, #F8FAFF 0%, #FFFFFF 100%);
    position: relative;
}

.agreement-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1A73E8;
    margin: 0;
}

.agreement-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    color: #999999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.agreement-close:hover {
    background: #F5F5F5;
    color: #666666;
}

.agreement-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
    background: #FAFBFC;
}

.agreement-content {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 28px 32px;
    line-height: 1.8;
    color: #333333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.agreement-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1A73E8;
    margin: 24px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #E8F3FF;
}

.agreement-content h3:first-child {
    margin-top: 0;
}

.agreement-content p {
    font-size: 14px;
    color: #555555;
    margin: 12px 0;
    text-align: justify;
}

.agreement-content ul {
    margin: 12px 0;
    padding-left: 24px;
}

.agreement-content li {
    font-size: 14px;
    color: #555555;
    margin: 8px 0;
    line-height: 1.7;
}

.agreement-content li strong {
    color: #333333;
    font-weight: 600;
}

.agreement-footer {
    padding: 20px 28px;
    border-top: 1px solid #F0F0F0;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
}

.agreement-btn {
    width: 200px;
    height: 44px;
    border-radius: 22px;
    border: none;
    background: linear-gradient(135deg, #1A73E8, #0052D9);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
    transition: all 0.2s ease;
}

.agreement-btn:hover {
    box-shadow: 0 6px 16px rgba(26, 115, 232, 0.4);
    transform: translateY(-1px);
}

.agreement-btn:active {
    transform: translateY(0);
}

/* 滚动条样式 */
.agreement-body::-webkit-scrollbar,
.profile-body::-webkit-scrollbar {
    width: 8px;
}

.agreement-body::-webkit-scrollbar-track,
.profile-body::-webkit-scrollbar-track {
    background: #F5F5F5;
    border-radius: 4px;
}

.agreement-body::-webkit-scrollbar-thumb,
.profile-body::-webkit-scrollbar-thumb {
    background: #D0D0D0;
    border-radius: 4px;
}

.agreement-body::-webkit-scrollbar-thumb:hover,
.profile-body::-webkit-scrollbar-thumb:hover {
    background: #B0B0B0;
}

/* 二维码登录蒙版样式 */
.mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.qr-container, .waiting-container {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.qr-container h2, .waiting-container h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.qr-code {
    margin-bottom: 20px;
}

.qr-code img {
    width: 240px;
    height: 240px;
    border-radius: 8px;
}

.loading {
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
    color: #666;
    font-size: 16px;
    margin: 0 auto;
}

.tip {
    margin: 0;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

/* 等待动画样式 */
.waiting-animation {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1A73E8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
