/*
 * 阳光财政 - 登录注册页面样式
 * 设计稿基准: 393px × 852px
 * 所有比例以此为基准换算百分比，确保各尺寸手机等比还原
 */

/* ========== 全局重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    font-family: 'Alibaba PuHuiTi', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f5f5f5;
}

body {
    display: flex;
    justify-content: center;
}

/* ========== 手机容器 ========== */
/* 宽高比 393:852 ≈ 1:2.168, 用 aspect-ratio 保持设计稿比例 */
.phone-container {
    width: 100%;
    max-width: 393px;
    aspect-ratio: 393 / 852;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    background: #fff;
    overflow: hidden;
}

/* ========== 背景图 ========== */
.bg-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ========== 白色卡片 (绝对定位还原设计稿) ========== */
/* 注册页卡片: x=6/393=1.527%, y=108/852=12.676%, w=380/393=96.692%, h=562/852=65.962% */
.card-bg-register {
    position: absolute;
    top: 12.676%;
    left: 1.527%;
    width: 96.692%;
    height: 65.962%;
    background: #fff;
    border-radius: 2.545%; /* 10/393 */
    z-index: 1;
}
/* 登录页卡片: h=616/852=72.3% */
.card-bg-login {
    position: absolute;
    top: 12.676%;
    left: 1.527%;
    width: 96.692%;
    height: 72.3%;
    background: #fff;
    border-radius: 2.545%;
    z-index: 1;
}

/* ========== Logo 国徽 ========== */
/* x=156(居中), y=173/852=20.305%, w=80/393=20.356%, h=80/852=9.39% */
.logo {
    position: absolute;
    top: 20.305%;
    left: 50%;
    transform: translateX(-50%);
    width: 20.356%;
    aspect-ratio: 1;
    border-radius: 2.545%;
    object-fit: cover;
    z-index: 2;
}

/* ========== 标题 ========== */
/* x=58/393=14.758%, y=265/852=31.103% */
.title {
    position: absolute;
    top: 31.103%;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: clamp(16px, 5.6vw, 22px);
    font-weight: 500;
    color: #2f2f2f;
    line-height: 0.91;
    z-index: 2;
}

/* ========== 表单输入组 ========== */
/* left=34/393=8.651%, width=325/393=82.697% */
.form-group {
    position: absolute;
    z-index: 2;
    left: 8.651%;
    width: 82.697%;
}

.form-group input {
    width: 100%;
    border: none;
    outline: none;
    font-size: clamp(13px, 4.07vw, 16px);
    font-family: 'Alibaba PuHuiTi', 'PingFang SC', sans-serif;
    color: #2f2f2f;
    padding: 0 5.846%; /* 19/325 */
    padding-bottom: 2.46%; /* 8/325 */
    background: transparent;
}

.form-group input::placeholder {
    color: #acacac;
    font-size: clamp(13px, 4.07vw, 16px);
    font-family: 'Alibaba PuHuiTi', 'PingFang SC', sans-serif;
}

.form-group .line {
    width: 100%;
    height: 0;
    border-bottom: 0.3px solid #acacac;
}

.form-group.has-error .line {
    border-bottom-color: #dd0200;
}

.form-group .error-text {
    display: none;
    color: #dd0200;
    font-size: clamp(9px, 3.05vw, 12px);
    margin-top: 3px;
    padding-left: 5.846%;
}

.form-group.has-error .error-text {
    display: block;
}

/* ---- 注册页输入框 y 坐标 ---- */
/* 330/852=38.732%, 376/852=44.131%, 422/852=49.531%, 468/852=54.93% */
.reg-phone    { top: 38.732%; }
.reg-password { top: 44.131%; }
.reg-confirm  { top: 49.531%; }
.reg-referrer { top: 54.93%;  }

/* ---- 登录页输入框 ---- */
/* 手机号: y=331/852=38.849%, 密码: y=400/852=46.948% */
/* 分隔线: y=378/852=44.366%, y=445/852=52.23% */
.login-phone    { top: 38.849%; }
.login-password { top: 46.948%; }

/* ---- 登录页分隔线(独立元素) ---- */
.login-line {
    position: absolute;
    z-index: 2;
    left: 8.651%;
    width: 82.697%;
    height: 0;
    border-bottom: 0.3px solid #acacac;
}
.login-line-1 { top: 44.366%; }
.login-line-2 { top: 52.23%;  }

/* ---- 验证码登录模式输入框 ---- */
.code-input-group {
    position: absolute;
    z-index: 2;
    left: 8.651%;
    width: 82.697%;
    top: 46.948%;
    display: none;
}

.code-input-group .code-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-input-group input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font-size: clamp(13px, 4.07vw, 16px);
    font-family: 'Alibaba PuHuiTi', 'PingFang SC', sans-serif;
    color: #2f2f2f;
    padding: 0 5.846%;
    padding-bottom: 2.46%;
    background: transparent;
}

.code-input-group input::placeholder {
    color: #acacac;
    font-size: clamp(13px, 4.07vw, 16px);
}

.code-input-group .send-code-btn {
    white-space: nowrap;
    font-size: clamp(11px, 3.56vw, 14px);
    color: #dd0200;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Alibaba PuHuiTi', 'PingFang SC', sans-serif;
    padding-bottom: 2.46%;
    flex-shrink: 0;
}

.code-input-group .send-code-btn:disabled {
    color: #acacac;
    cursor: not-allowed;
}

.code-input-group .line {
    width: 100%;
    height: 0;
    border-bottom: 0.3px solid #acacac;
}

/* ========== 注册按钮 ========== */
/* x=34/393=8.651%, y=514/852=60.329%, w=324/393=82.443%, h=51/852=5.986% */
.btn-register {
    position: absolute;
    top: 60.329%;
    left: 8.651%;
    width: 82.443%;
    height: 5.986%;
    background: #dd0200;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-register span {
    color: #fff;
    font-size: clamp(16px, 5.09vw, 20px);
    font-family: 'Alibaba PuHuiTi', 'PingFang SC', sans-serif;
}

.btn-register:active { opacity: 0.85; }

/* ========== 登录按钮 ========== */
/* x=34/393=8.651%, y=490/852=57.512%, w=324/393=82.443%, h=51/852=5.986% */
.btn-login {
    position: absolute;
    top: 57.512%;
    left: 8.651%;
    width: 82.443%;
    height: 5.986%;
    background: #e4e4e4;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.btn-login.active { background: #dd0200; }

.btn-login span {
    color: #fff;
    font-size: clamp(16px, 5.09vw, 20px);
    font-family: 'Alibaba PuHuiTi', 'PingFang SC', sans-serif;
}

.btn-login:active { opacity: 0.85; }

/* ========== 底部切换区域 ========== */
/* 注册页: x=108/393=27.481%, y=595/852=69.836% */
/* 登录页: x=108/393=27.481%, y=568/852=66.667% */
.switch-group {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
}

.reg-switch  { top: 69.836%; left: 27.481%; }
.login-switch { top: 66.667%; left: 27.481%; }

.switch-group .switch-link {
    font-size: clamp(13px, 4.07vw, 16px);
    color: #808080;
    font-family: 'Alibaba PuHuiTi', 'PingFang SC', sans-serif;
    cursor: pointer;
    text-decoration: none;
    background: none;
    border: none;
}

.switch-group .switch-link:hover { color: #dd0200; }

.switch-group .divider {
    width: 0;
    height: 8px;
    border-left: 0.5px solid #808080;
    margin: 0 16px;
}

/* ========== 协议勾选 ========== */
/* 注册页: x=19/393=4.835%, y=627/852=73.592% */
/* 登录页: x=19/393=4.835%, y=615/852=72.183% */
.agreement {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
}

.reg-agreement   { top: 73.592%; left: 4.835%; }
.login-agreement { top: 72.183%; left: 4.835%; }

.agreement .checkbox {
    width: 10px;
    height: 11px;
    border: 1px solid #e0e0e0;
    border-radius: 1px;
    cursor: pointer;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.agreement .checkbox:checked {
    background: #dd0200;
    border-color: #dd0200;
}

.agreement .checkbox:checked::after {
    content: '✓';
    color: #fff;
    font-size: 8px;
    position: absolute;
    top: -1px;
    left: 1px;
}

.agreement .agreement-text {
    font-size: clamp(9px, 3.05vw, 12px);
    color: #878787;
    font-family: 'Times New Roman', serif;
    line-height: 1.67;
}

.agreement .agreement-text .link {
    color: #878787;
    cursor: pointer;
    text-decoration: none;
}

.agreement .agreement-text .link:hover { color: #dd0200; }

/* ========== 底部红色栏 ========== */
/* y=740/852=86.854%, h=112/852=13.146%, full width */
.footer-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 13.146%;
    background: #e1251b;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 1.526%; /* 13/852 距顶部 */
}

/* 第一段文字：全宽居中 */
.footer-bar .footer-text-primary {
    color: #fff;
    font-size: clamp(9px, 3.56vw, 14px);
    font-family: 'Times New Roman', serif;
    text-align: center;
    line-height: 1.43;
    width: 100%;
    padding: 0 4%;
}

.footer-bar .footer-text-primary a {
    color: #fff;
    text-decoration: none;
}

/* 第二段: 文字居中，图标绝对定位紧贴"北"字左侧 */
.footer-bar .footer-row {
    position: relative;
    width: 100%;
    margin-top: 1px;
    padding: 0 4%;
}

.footer-bar .footer-text-secondary {
    color: #fff;
    font-size: clamp(9px, 3.56vw, 14px);
    font-family: 'Times New Roman', serif;
    text-align: center;
    line-height: 1.43;
    width: 100%;
}

.footer-bar .footer-text-secondary a {
    color: #fff;
    text-decoration: none;
}

/* 第二行"北京市..."前面的图标 - 用 inline 方式让它自然跟在文字流里 */
.footer-bar .footer-icon {
    width: 25px;
    height: 25px;
    vertical-align: middle;
    margin-right: 0;
    object-fit: contain;
}

/* ========== 协议弹窗 ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.show { display: flex; }

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 350px;
    max-height: 80vh;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: #dd0200;
    color: #fff;
    padding: 14px 16px;
    font-size: clamp(15px, 4.58vw, 18px);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.modal-body {
    padding: 16px;
    overflow-y: auto;
    font-size: clamp(12px, 3.56vw, 14px);
    color: #333;
    line-height: 1.8;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.modal-body h3 {
    font-size: clamp(13px, 4.07vw, 16px);
    color: #2f2f2f;
    margin: 14px 0 6px;
}

.modal-body h3:first-child { margin-top: 0; }

.modal-body p { margin-bottom: 8px; }

.modal-footer {
    padding: 10px 16px;
    text-align: center;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.modal-footer button {
    background: #dd0200;
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 10px 50px;
    font-size: clamp(13px, 4.07vw, 16px);
    cursor: pointer;
    font-family: 'Alibaba PuHuiTi', 'PingFang SC', sans-serif;
}

.modal-footer button:active { opacity: 0.85; }

/* ========== Toast 提示 ========== */
.toast {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 2000;
    max-width: 85vw;
    text-align: center;
    word-break: break-word;
}

.toast.show {
    display: block;
    animation: toastFade 2s forwards;
}

@keyframes toastFade {
    0%   { opacity: 1; }
    70%  { opacity: 1; }
    100% { opacity: 0; }
}

/* ========== Loading ========== */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.5);
    z-index: 1500;
    justify-content: center;
    align-items: center;
}

.loading-overlay.show { display: flex; }

.loading-spinner {
    width: 40px; height: 40px;
    border: 3px solid #eee;
    border-top-color: #dd0200;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   首页 index.php 样式
   设计稿: 393px × 1089px (可滚动)
   ================================================================ */

/* ---- 首页容器 ---- */
.home-container {
    width: 100%;
    max-width: 393px;
    margin: 0 auto;
    background: #fff6f0;
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 56px; /* 给 Tab 栏留出空间 */
}

/* ---- 首页内容区(相对定位，自然流式) ---- */
.home-content {
    position: relative;
    width: 100%;
}

/* ---- 顶部头图 ---- */
/* h=262/393=66.67% of width → 保持图片宽高比 */
.home-header-img {
    width: 100%;
    display: block;
}

/* ---- 轮播/会议大图卡片 ---- */
/* x=7/393=1.78%, y=138/393=35.11% of container width, w=380/393=96.69%, h=214 */
.home-banner-card {
    position: absolute;
    top: 27vw;
    max-width: 380px;
    left: 1.78%;
    width: 96.69%;
    border-radius: 10px;
    box-shadow: 0 4px 7px rgba(0,0,0,0.25);
    overflow: hidden;
    z-index: 2;
}

.home-banner-card img {
    width: 100%;
    display: block;
}

/* ---- 4个功能入口 ---- */
/* x=37/393=9.41%, 从顶部头图底部算起 */
.home-functions {
    display: flex;
    justify-content: space-between;
    padding: 0 9.41%;
    margin-top: 27vw; /* banner卡片延伸到头图下方，需要留出空间 */
}

.home-func-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 60px;
}

.home-func-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.home-func-text {
    font-size: clamp(11px, 3.56vw, 14px);
    font-weight: 500;
    color: #000;
    text-align: center;
    margin-top: 8px;
    font-family: 'Inter', 'Alibaba PuHuiTi', sans-serif;
}

/* ---- 人民视频区域 ---- */
/* x=5/393=1.27%, w=384/393=97.71%, h=248 */
.home-video-section {
    margin: 20px 1.27% 0;
    width: 97.71%;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 3.5px rgba(0,0,0,0.25);
}

.home-video-bg {
    width: 100%;
    display: block;
}

.home-video-title {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    color: #fadbb4;
    font-size: clamp(13px, 4.07vw, 16px);
    font-weight: 600;
    font-family: 'Inter', 'Alibaba PuHuiTi', sans-serif;
    white-space: nowrap;
}

.home-video-content {
    position: absolute;
    top: 9%; /* slightly higher */
    left: 2.86%; /* 11/384 */
    width: 94.27%; /* 362/384 */
    border-radius: 10px;
    overflow: hidden;
}

.home-video-content img {
    width: 100%;
    display: block;
}

/* ---- 会议系统卡片 ---- */
/* w=380/393=96.69%, h=88, 圆角10, 阴影 */
.home-meeting-card {
    margin: 8px 1.53% 0;
    width: 96.69%;
    border-radius: 10px;
    box-shadow: 0 2px 3.5px rgba(0,0,0,0.25);
    overflow: hidden;
}

.home-meeting-card img {
    width: 100%;
    display: block;
}

/* ---- 底部红色背景装饰 ---- */
.home-bottom-bg {
    width: 100%;
    display: block;
    margin-top: 16px;
}

/* ================================================================
   底部 Tab 导航栏 (固定)
   ================================================================ */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 393px;
    height: 51px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    border-top: 1px solid #f0f0f0;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    background: none;
    border: none;
    padding: 4px 0;
    min-width: 60px;
}

.tab-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.tab-label {
    font-size: 8px;
    color: #dd0200;
    font-family: 'Inter', 'Alibaba PuHuiTi', sans-serif;
    margin-top: 2px;
    white-space: nowrap;
}

/* ================================================================
   我的中心 profile.php 样式
   设计稿: 393px × 865px
   ================================================================ */

.profile-container {
    width: 100%;
    max-width: 393px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 56px;
}

/* 全屏背景图 */
.profile-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: auto;
    z-index: 0;
}

.profile-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 2.54%; /* ~10/393 */
}

/* ---- 用户信息区 ---- */
.profile-user {
    display: flex;
    align-items: flex-start;
    padding-top: 62px; /* y=62 in design */
    position: relative;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    border: 1px solid #fff2ab;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-user-info {
    margin-left: 10px;
    color: #fff;
    flex: 1;
}

.profile-username {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    line-height: 1;
}

.profile-verified {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border-radius: 100px;
    padding: 2px 10px 2px 6px;
    margin-left: 8px;
    vertical-align: middle;
    height: 23px;
}

.profile-verified-icon {
    width: 14px;
    height: 14px;
    margin-right: 4px;
}

.profile-verified-text {
    font-size: 14px;
    font-weight: 500;
    color: #55d85a;
    letter-spacing: 0.5px;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

.profile-phone {
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-top: 12px;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    line-height: 1.67;
}

.profile-invite-row {
    display: flex;
    align-items: center;
    margin-top: 2px;
}

.profile-invite-code {
    font-size: 12px;
    letter-spacing: 0.5px;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    line-height: 1.67;
}

.profile-copy-btn {
    margin-left: 8px;
    background: #fff;
    border: none;
    border-radius: 15px;
    padding: 3px 12px;
    font-size: 12px;
    color: #ff0000;
    cursor: pointer;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    line-height: 1.25;
}

/* 设置图标 */
.profile-settings {
    position: absolute;
    right: 0;
    top: 52px;
    width: 17px;
    height: 16px;
    cursor: pointer;
    object-fit: contain;
    opacity: 0.9;
}

/* ---- 每日签到栏 ---- */
.profile-checkin {
    margin-top: 12px;
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    height: 46px;
    background: rgba(221, 2, 0, 0.8);
}

.profile-checkin-left {
    display: flex;
    align-items: center;
}

.profile-checkin-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-right: 8px;
}

.profile-checkin-text {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    font-family: 'Inter', 'Alibaba PuHuiTi', sans-serif;
}

.profile-checkin-btn {
    background: #fff;
    border: none;
    border-radius: 30px;
    width: 60px;
    height: 24px;
    font-size: 14px;
    font-weight: 500;
    color: #dd0200;
    cursor: pointer;
    font-family: 'Inter', 'Alibaba PuHuiTi', sans-serif;
}

/* ---- 余额卡片（通用） ---- */
.profile-balance-card {
    margin-top: 8px;
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.profile-balance-card-bg {
    width: 100%;
    display: block;
}

.profile-balance-card-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.profile-balance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 0;
}

.profile-balance-label-wrap {
    display: flex;
    align-items: center;
}

.profile-balance-eye {
    height: 16px;
    object-fit: contain;
    margin-left: 4px;
    vertical-align: middle;
}

.profile-balance-label {
    font-size: 14px;
    color: #fff2ab;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

.profile-balance-detail {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.profile-balance-detail-icon {
    height: 22px;
    object-fit: contain;
}

.profile-balance-amount {
    padding: 8px 12px 0;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    font-family: 'DIN', 'Alibaba PuHuiTi', sans-serif;
    line-height: 1;
}

.profile-balance-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 12px 8px;
}

.profile-balance-card-decor {
    position: absolute;
    right: 0;
    top: 28%;
    width: 34%;
    object-fit: contain;
    opacity: 0.8;
}

.profile-withdraw-btn {
    background: #fff;
    border: none;
    border-radius: 30px;
    width: 60px;
    height: 24px;
    font-size: 14px;
    font-weight: 500;
    color: #dd0200;
    cursor: pointer;
    font-family: 'Inter', 'Alibaba PuHuiTi', sans-serif;
    z-index: 2;
}

/* ---- 常用功能区 ---- */
.profile-functions {
    margin-top: 16px;
    width: 100%;
}

.profile-functions-title-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-left: 4px;
}

.profile-functions-bar {
    width: 3px;
    height: 19px;
    background: #e1251b;
    margin-right: 6px;
    border-radius: 1px;
}

.profile-functions-title {
    font-size: 20px;
    font-weight: 500;
    color: #000;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    line-height: 1.1;
}

.profile-functions-grid {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10.5px rgba(0,0,0,0.1);
    padding: 14px 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 0;
}

.profile-func-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.profile-func-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.profile-func-text {
    font-size: 14px;
    color: #000;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    text-align: center;
    margin-top: 6px;
    line-height: 1.57;
}

/* ---- 交易明细弹窗 ---- */
.tx-modal-mask {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    justify-content: center;
    align-items: flex-end;
}

.tx-modal-mask.active {
    display: flex;
}

.tx-modal {
    width: 100%;
    max-width: 393px;
    max-height: 70vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    animation: txSlideUp 0.25s ease-out;
}

@keyframes txSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.tx-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.tx-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

.tx-modal-close {
    width: 28px;
    height: 28px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.tx-modal-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px 16px;
}

.tx-empty {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 40px 0;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

.tx-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
}

.tx-item:last-child {
    border-bottom: none;
}

.tx-item-left {
    flex: 1;
    min-width: 0;
}

.tx-item-desc {
    font-size: 14px;
    color: #333;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tx-item-time {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

.tx-item-amount {
    font-size: 16px;
    font-weight: 600;
    font-family: 'DIN', 'Alibaba PuHuiTi', sans-serif;
    margin-left: 12px;
    flex-shrink: 0;
}

.tx-item-amount.income {
    color: #dd0200;
}

.tx-item-amount.expense,
.tx-item-amount.withdraw {
    color: #333;
}

/* ---- 安全退出按钮 ---- */
.profile-logout-btn {
    display: block;
    margin: 24px auto 30px;
    width: 82.44%; /* 324/393 */
    height: 51px;
    border: none;
    border-radius: 100px;
    background: #dd0200;
    color: #fff;
    font-size: 20px;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    cursor: pointer;
}

/* ================================================================
   实名认证 verify.php 样式
   ================================================================ */

.verify-container {
    width: 100%;
    max-width: 393px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.verify-bg {
    position: fixed;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 393px;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ---- 顶部导航栏 ---- */
.verify-navbar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 50px;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-bottom: 1px solid #f0f0f0;
}

.verify-navbar-back {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.verify-navbar-back svg {
    width: 20px;
    height: 20px;
}

.verify-navbar-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

/* ---- 表单内容区 ---- */
.verify-body {
    position: relative;
    z-index: 1;
    padding: 16px 1.78%; /* 7/393 */
}

/* ---- 表单卡片 (参考设计稿 2lZbp) ---- */
.verify-form-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3.5px rgba(0,0,0,0.25);
    padding: 0 10px;
    width: 96.69%; /* 380/393 */
    margin: 0 auto;
}

.verify-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 0.3px solid #939393;
}

.verify-form-row:last-child {
    border-bottom: none;
}

.verify-form-label {
    font-size: 16px;
    color: #595959;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    font-weight: normal;
    flex-shrink: 0;
    min-width: 70px;
}

.verify-form-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 300;
    color: #333;
    text-align: right;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    background: transparent;
}

.verify-form-input::placeholder {
    color: #939393;
}

.verify-form-input:read-only {
    color: #939393;
}

/* ---- 提交按钮 ---- */
.verify-submit-btn {
    display: block;
    margin: 20px auto 0;
    width: 96.69%;
    height: 48px;
    border: none;
    border-radius: 100px;
    background: #dd0200;
    color: #fff;
    font-size: 18px;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    cursor: pointer;
}

.verify-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ---- 温馨提示卡片 ---- */
.verify-tips-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3.5px rgba(0,0,0,0.25);
    width: 96.69%;
    margin: 16px auto 30px;
    overflow: hidden;
}

.verify-tips-header {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
}

.verify-tips-icon {
    font-size: 16px;
    margin-right: 6px;
}

.verify-tips-title {
    font-size: 16px;
    font-weight: 600;
    color: #dd0200;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

.verify-tips-body {
    padding: 12px 14px;
}

.verify-tips-body li {
    font-size: 13px;
    color: #666;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    line-height: 2;
    list-style: none;
    padding-left: 12px;
    position: relative;
}

.verify-tips-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: #dd0200;
    border-radius: 50%;
}

/* ================================================================
   资金明细 transactions.php 样式
   ================================================================ */

.txn-tab-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3.5px rgba(0,0,0,0.25);
    width: 96.69%;
    margin: 0 auto 12px;
    display: flex;
    overflow: hidden;
}

.txn-tab {
    flex: 1;
    border: none;
    background: none;
    padding: 14px 0;
    font-size: 16px;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    color: #999;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.txn-tab.active {
    color: #dd0200;
    font-weight: 600;
}

.txn-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #dd0200;
    border-radius: 2px;
}

.txn-list-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3.5px rgba(0,0,0,0.25);
    width: 96.69%;
    margin: 0 auto;
    padding: 0 14px;
    min-height: 200px;
}

.txn-list-empty {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 60px 0;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

.txn-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
}

.txn-list-item:last-child {
    border-bottom: none;
}

.txn-list-left {
    flex: 1;
    min-width: 0;
}

.txn-list-desc {
    font-size: 14px;
    color: #333;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.txn-list-time {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

.txn-list-amount {
    font-size: 16px;
    font-weight: 600;
    font-family: 'DIN', 'Alibaba PuHuiTi', sans-serif;
    margin-left: 12px;
    flex-shrink: 0;
}

.txn-list-amount.income {
    color: #dd0200;
}

.txn-list-amount.expense,
.txn-list-amount.withdraw {
    color: #333;
}

/* ================================================================
   银行卡绑定 bankcard.php 样式
   ================================================================ */

.bc-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    margin: 0 auto 10px;
    width: 96.69%;
}

/* ---- 银行卡卡片列表 ---- */
.bc-list {
    width: 96.69%;
    margin: 0 auto 16px;
}

.bc-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3.5px rgba(0,0,0,0.25);
    padding: 14px;
    margin-bottom: 10px;
    position: relative;
}

.bc-card-top {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.bc-card-bank-icon {
    width: 28px;
    height: 28px;
    background: #dd0200;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-right: 10px;
    flex-shrink: 0;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

.bc-card-bank-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

.bc-card-name {
    font-size: 13px;
    color: #666;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    margin-bottom: 4px;
}

.bc-card-number {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    font-family: 'DIN', 'Alibaba PuHuiTi', sans-serif;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.bc-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bc-badge-default {
    display: inline-block;
    padding: 3px 10px;
    background: #dd0200;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

.bc-btn-set-default {
    padding: 3px 10px;
    border: 1px solid #dd0200;
    background: none;
    color: #dd0200;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

.bc-btn-delete {
    padding: 3px 10px;
    border: 1px solid #999;
    background: none;
    color: #999;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

.bc-empty {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 30px 0;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

/* ---- 添加银行卡表单 ---- */
.bc-form-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3.5px rgba(0,0,0,0.25);
    padding: 0 10px;
    width: 96.69%;
    margin: 0 auto;
}

.bc-add-btn {
    display: block;
    margin: 16px auto 0;
    width: 96.69%;
    height: 48px;
    border: none;
    border-radius: 100px;
    background: #dd0200;
    color: #fff;
    font-size: 18px;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    cursor: pointer;
}

.bc-add-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.bc-full-hint {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding: 10px 0 0;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    width: 96.69%;
    margin: 0 auto;
}
