/* X.com风格登录页面样式 */
body {
    /*    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;*/
    font-family: --fontStack-sansSerif,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
    background-color: #ffffff;
    color: #000000;
    margin: 0;
    padding: 0;
}
@font-face {
    font-family: money;
    font-weight: normal;
    font-style: normal;
    font-family: 'bahnschrift';
    src: url('../fonts/bahnschrift.ttf') format('truetype');
}
.x-login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* 左侧Logo区域 */
.x-left-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 40px 20px 20px;
    width: 50%;
}

/* 响应式图片设置 */
.x-left-section img {
    width: 500px;
    height: 500px;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}




.x-logo {
    font-size: 120px;
    font-weight: bold;
    color: #000000;
    position: relative;
    width: 100px;
    height: 100px;
}

    .x-logo::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        width: 20px;
        height: 100%;
        background-color: #000;
        transform: translateX(-50%);
    }

    .x-logo::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 20px;
        background-color: #000;
        transform: translateY(-50%);
    }
.logout {
    margin-left:15px;
}


.x-flag-icon {
    margin-right: 6px;
    font-size: 16px;
}

/* 右侧登录区域 */
.x-right-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px 20px 40px;
    width: 50%;
    position: relative; /* 为语言切换按钮定位 */
}

.x-login-form-container {
    width: 100%;
    max-width: 390px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
}

.x-login-header {
    margin-bottom: 40px;
}

    .x-login-header h1 {
        font-size: 60px;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .x-login-header h2 {
        font-size: 30px;
        font-weight: 400;
        margin: 0;
    }

/* 社交媒体登录按钮 */
.x-social-buttons {
    display: flex;
        flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: space-around;
}

.x-social-btn {
    display: flex;
    /*    flex-direction: column;*/
    align-items: center;
    justify-content: center;
    gap: 10px;
    /*    padding: 12px;
    border: 1px solid #e6ecf0;
    border-radius: 25px;
    background-color: #ffffff;*/
    color: #25292e;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #d1d9d0;
    background: #f6f8fa;
    width: 100%;
    height: 40px;
    border-radius: 6px;
}

    .x-social-btn:hover {
        background-color: #f7f9fa;
    }

/* 分隔线 */
.x-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

    .x-divider::before,
    .x-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background-color: #e6ecf0;
    }

    .x-divider span {
        padding: 0 15px;
        font-size: 14px;
        color: #657786;
    }

/* 表单样式 */
.x-login-form {
    margin-bottom: 20px;
    padding: 0;
}

.x-form-group {
    margin-bottom: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.x-form-control {
    width: 100%;
    padding: 0 16px;
    border: 1px solid #e6ecf0;
    border-radius: 6px;
    font-size: 14px;
    background-color: #ffffff;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    height: 40px;
}

    .x-form-control:focus {
        outline: none;
        border-color: #1da1f2;
        box-shadow: 0 0 0 2px rgba(29, 161, 242, 0.1);
    }
.input-lable {
    width: 100%;
    flex-grow: 1;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2328;
}
/* 验证码组 */
.x-verification-code-group {
    display: flex;
    align-items: center;
    position: relative;
    flex-direction: column;
}

.x-verification-code-group .x-form-control {
    padding-right: 110px; /* 为验证码图片留出空间 */
    height:40px;
}

.x-captcha-image {
    position: absolute;
    right: 4px;
    top: 44px;
    transform: translateY(-50%);
    height: 32px;
    cursor: pointer;
    border-radius: 4px;
}

.x-error-message {
    color: #e0245e;
    font-size: 12px;
    margin-top: 5px;
}

/* 忘记密码 */
.x-forgot-password {
    text-align: right;
    margin-bottom: 20px;
    position:absolute;
    right:0;
}

    .x-forgot-password a {
        color: #1da1f2;
        text-decoration: none;
        font-size: 14px;
    }

        .x-forgot-password a:hover {
            text-decoration: underline;
        }

/* Cookie时长选择 */
.x-compact-group {
    margin-bottom: 20px;
}

.x-compact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.x-compact-label {
    font-size: 14px;
    color: #657786;
}

.x-compact-select {
    width: auto;
    min-width: 150px;
    padding: 8px;
    border: 1px solid #e6ecf0;
    border-radius: 4px;
    background-color: #ffffff;
}

/* 登录按钮 */
.x-btn-primary {
    width: 100%;
    border: none;
    border-radius: 6px;
    background-color: #0969da;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 0;
    height: 40px;
    padding:0;
}

    .x-btn-primary:hover {
        background-color: #0050af;
    }
.create-group {
    display:flex;
    justify-content:center;
}
.register {
    font-size: 14px;
    text-align: right;
}
.create-account {
    color: #1da1f2;
    text-decoration: none;
    cursor:pointer;
    margin-left:5px;
    
}
    .create-account:hover {
        text-decoration:underline;
    }
.login-header {
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

        .login-header img {
            width:55px;
            height:auto;
        }
    .login-header h2 {
        font-size: 20px;
        margin-bottom: 10px;
        font-weight: 600;
        margin-top: 10px;
    }
   .login-header h2 .name {

            margin-left:8px;
        }
        /* 注册链接 */
        .x-register-link {
            text-align: center;
            font-size: 14px;
            margin-top: 30px;
        }

    .x-register-link a {
        color: #1da1f2;
        text-decoration: none;
        font-weight: 500;
    }

        .x-register-link a:hover {
            text-decoration: underline;
        }

/* 响应式设计 */
@media (max-width: 900px) {
    .x-login-container {
        flex-direction: column;
    }

    .x-left-section {
        margin-bottom: 30px;
    }

    .x-logo {
        width: 80px;
        height: 80px;
    }

    .x-login-header h1 {
        font-size: 40px;
    }

    .x-login-header h2 {
        font-size: 24px;
    }
}


/* 新增按钮样式 */
.x-create-account-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 25px;
    background-color: #000000;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

    .x-create-account-btn:hover {
        background-color: #14171a;
    }

.x-login-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid #e6ecf0;
    border-radius: 25px;
    background-color: #ffffff;
    color: #000000;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

    .x-login-btn:hover {
        background-color: #f7f9fa;
    }

.x-grok-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid #e6ecf0;
    border-radius: 25px;
    background-color: #ffffff;
    color: #000000;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .x-grok-btn:hover {
        background-color: #f7f9fa;
    }

/* 遮罩层样式 */
.x-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 弹出框样式 */
.x-login-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
    z-index: 1000;
    overflow: hidden;
}

/* 弹出框头部 */
.x-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e6ecf0;
}

    .x-modal-header h3 {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
    }

/* 关闭按钮 */
.x-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #657786;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

    .x-modal-close:hover {
        background-color: #f7f9fa;
    }

/* 弹出框内容 */
.x-modal-body {
 padding: 20px;
    height: 400px;
}

/* 表单样式 */
.x-login-form {
    margin: 0;
}

/* 次要按钮样式 */
.x-btn-secondary {
    width: 100%;
    padding: 12px;
    border: 1px solid #e6ecf0;
    border-radius: 25px;
    background-color: #ffffff;
    color: #1f2328;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px;
}

    .x-btn-secondary:hover {
        background-color: #f7f9fa;
    }

/* 手机号输入组样式 */
.phone-input-group {
    display: flex;
    align-items: stretch;
    margin-bottom: 15px;
    gap: 0;
}

.phone-prefix {
    background-color: #f7f9fa;
    border: 1px solid #e6ecf0;
    border-right: none;
    border-radius: 25px 0 0 25px;
    padding: 12px 15px;
    color: #657786;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 48px;
    box-sizing: border-box;
    margin-right: -1px;
}

.phone-input-group .form-control {
    border-radius: 0 25px 25px 0;
    border: 1px solid #e6ecf0;
    border-left: none;
    flex: 1;
    padding: 12px 15px;
    font-size: 16px;
    background-color: #ffffff;
    height: 48px;
    box-sizing: border-box;
}

/* 验证码输入组样式 */
.verification-code-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: stretch;
}

.verification-code-group .form-control {
    flex: 1;
    border: 1px solid #e6ecf0;
    border-radius: 25px;
    padding: 12px 15px;
    font-size: 16px;
    background-color: #ffffff;
    height: 48px;
    box-sizing: border-box;
}

.verification-code-group .btn-secondary {
    white-space: nowrap;
    padding: 12px 15px;
    border: 1px solid #e6ecf0;
    border-radius: 25px;
    background-color: #ffffff;
    color: #000000;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    height: 48px;
    box-sizing: border-box;
}

.verification-code-group .btn-secondary:hover {
    background-color: #f7f9fa;
}

.verification-code-group .btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 重置密码页面样式 */
.update-password-container {
    background-color: #ffffff;
    padding: 30px 20px;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.update-password-header {
    text-align: center;
    margin-bottom: 30px;
}

.update-password-header h2 {
    color: #000000;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.update-password-form .form-group {
    margin-bottom: 20px;
}

.update-password-form .form-group h3 {
    color: #000000;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.update-password-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e6ecf0;
    border-radius: 25px;
    font-size: 16px;
    background-color: #ffffff;
    transition: border-color 0.2s ease;
}

.update-password-form .form-control:focus {
    border-color: #1da1f2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(29, 161, 242, 0.2);
}

.password-rules {
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #f7f9fa;
    border-radius: 8px;
}

.password-rules p {
    margin: 5px 0;
    color: #657786;
    font-size: 14px;
}

.update-password-form .btn-primary {
    width: 100%;
    padding: 12px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 10px;
}

.update-password-form .btn-primary:hover {
    background-color: #14171a;
}

/* 重置密码页面响应式设计 */
@media (max-width: 768px) {
    .update-password-container {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .update-password-header h2 {
        font-size: 24px;
    }
    
    .update-password-form .form-group h3 {
        font-size: 18px;
    }
}

/* ClientBound页面语言切换按钮样式 */
.language-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.lang-btn {
    background-color: #f5f8fa;
    border: 1px solid #e6ecf0;
    border-radius: 20px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.lang-btn.active {
    background-color: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.lang-btn:hover:not(.active) {
    background-color: #e6ecf0;
}

.flag-icon {
    font-size: 16px;
}

/* ClientBound页面验证码输入组特定样式 */
#boundApp .x-verification-code-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

#boundApp .x-verification-code-group .x-form-control {
    flex: 7;
    height: 56px;
    box-sizing: border-box;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 8px;
    z-index: 1;
    position: relative;
}

#boundApp .x-verification-code-group .x-btn-secondary {
    flex: 3;
    height: 56px;
    padding: 0 12px;
    border-radius: 8px;
    box-sizing: border-box;
    margin: 0;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    min-width: 90px;
    z-index: 2;
    position: relative;
}

/* 微信登录按钮样式 */
.x-weixin-btn {
/*    background-color: #07C160 !important;*/
/*    color: white !important;*/
}

/*.x-weixin-btn:hover {
    background-color: #06AD56 !important;
}

.x-weixin-btn svg {
    fill: white;
}*/
.x-social-btn img {
    width: 16px;
    height: auto;
}
.x-social-btn.x-apple-btn img {
    width:14px;
}
/* 微信扫码登录弹窗样式 */
.x-weixin-modal {
    max-width: 350px;
}

.x-weixin-qrcode-container {
    text-align: center;
    padding: 20px;
}

.x-weixin-qrcode {
    width: 200px;
    height: 200px;
    margin-bottom: 15px;
    border: 1px solid #e6ecf0;
    border-radius: 8px;
}

.x-weixin-qrcode-tip {
    color: #657786;
    font-size: 14px;
    margin-bottom: 10px;
}

.x-weixin-status {
    font-size: 14px;
    min-height: 20px;
}
/* iframe 样式：完全填充分区，无边框 */
.x-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
/* 小屏幕适配 */
@media (max-width: 768px) {
    .x-left-section img {
        width: 250px;
        height: 250px;
    }

    .report-card {
        width: 100% !important;
    }
    .left-card {
        width:120px !important;
        height:auto;
    }
    .chart-card {
        height: 140px !important;
    }
    .chart-wrapper {
        width: 180px !important;
        height: 150px !important;
        margin: -28px auto !important;
    }
    .stat-number {
        font-size: 26px !important;
    }

    .container {
        padding: 1rem;
    }

    .stats-card {
        padding: 1rem;
    }

    .duration-value {
        font-size: 1.5rem;
    }

    .task-item {
        padding: 0.85rem;
        flex-wrap: wrap;
    }

    .task-actions {
        margin-top: 0.5rem;
        width: 100%;
        justify-content: flex-end;
        margin-left: 2.5rem;
    }

    .title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.1rem;
    }

    .duration-tag {
        margin-left: 0;
    }

    .gradient-title {
        font-size: 1.35rem;
    }
}
.share-btn {
    display:flex;
}