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

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

:root {
    --app-max-width: 100%;
}

@media (min-width: 769px) {
    :root {
        --app-max-width: 480px;
    }
}

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: var(--app-max-width);
    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(11px, 3.5vw, 14px);
    color: #878787;
    font-family: 'Times New Roman', serif;
    line-height: 1.67;
}

.agreement .agreement-text .link {
    color: #dd0200;
    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: var(--app-max-width);
    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 auto 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: var(--app-max-width);
    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: 0;
    flex: 1;
}

.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: var(--app-max-width);
    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: var(--app-max-width);
    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: var(--app-max-width);
    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: var(--app-max-width);
    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;
}

/* ================================================================
   财政安置房 housing.php 样式
   ================================================================ */

.housing-container {
    width: 100%;
    max-width: var(--app-max-width);
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #f5f5f5;
    padding-bottom: 70px;
}

/* ---- 顶部横幅 ---- */
.housing-banner {
    width: 100%;
    position: relative;
}

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

.housing-navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.housing-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;
}

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

.housing-navbar-title {
    font-size: 16px;
    font-weight: normal;
    color: #fff;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

/* ---- 表单卡片(户主信息/房产信息) ---- */
.housing-body {
    position: relative;
    z-index: 1;
    padding: 12px 1.78%;
    margin-top: -20px;
}

.housing-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3.5px rgba(0,0,0,0.1);
    padding: 11px 10px 0;
    width: 96.69%;
    margin: 0 auto 12px;
}

.housing-card-title {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.housing-card-title-bar {
    width: 3px;
    height: 19px;
    background: #e1251b;
    border-radius: 2px;
    margin-right: 9px;
}

.housing-card-title-text {
    font-size: 20px;
    font-weight: 500;
    color: #000;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

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

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

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

.housing-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;
}

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

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

.housing-form-value {
    font-size: 14px;
    font-weight: 300;
    color: #333;
    text-align: right;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

.housing-form-select {
    font-size: 14px;
    font-weight: 300;
    color: #939393;
    text-align: right;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}

.housing-form-select.selected {
    color: #333;
}

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

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

/* ---- 地区选择弹窗 ---- */
.area-modal-mask {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.area-modal-mask.show {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.area-modal {
    background: #fff;
    width: 100%;
    max-width: var(--app-max-width);
    max-height: 60vh;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

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

.area-modal-close {
    border: none;
    background: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
}

.area-modal-tabs {
    display: flex;
    padding: 0 16px;
    border-bottom: 1px solid #f0f0f0;
}

.area-modal-tab {
    padding: 10px 12px;
    font-size: 14px;
    color: #999;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
}

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

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

.area-modal-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}

.area-modal-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    text-align: left;
    font-size: 14px;
    color: #333;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    cursor: pointer;
}

.area-modal-item:active {
    background: #f5f5f5;
}

.area-modal-item.selected {
    color: #dd0200;
    font-weight: 600;
}

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

/* ---- 选房状态页面 ---- */
.housing-congrats {
    width: 96.69%;
    margin: 0 auto 12px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 8.75px rgba(0,0,0,0.25);
}

.housing-congrats img {
    width: 100%;
    display: block;
}

.housing-vr-tabs {
    width: 70.99%;
    margin: 0 auto 12px;
    height: 29px;
    border-radius: 100px;
    background: #fff;
    display: flex;
    overflow: hidden;
    position: relative;
}

.housing-vr-tab {
    flex: 1;
    border: none;
    background: none;
    font-size: 12px;
    font-weight: 500;
    color: #000;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    cursor: pointer;
    border-radius: 100px;
    transition: all 0.2s;
}

.housing-vr-tab.active {
    background: #ff0000;
    color: #fff;
}

/* ---- VR风格卡片 ---- */
.housing-vr-card {
    width: 96.69%;
    margin: 0 auto 10px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 1px 3.5px rgba(0,0,0,0.15);
}

.housing-vr-card img {
    width: 100%;
    height: 154px;
    object-fit: cover;
    display: block;
}

.housing-vr-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.housing-vr-card-label span {
    font-size: 16px;
    font-weight: 600;
    color: #f7f7f7;
    font-family: 'Inter', 'Alibaba PuHuiTi', sans-serif;
}

/* ---- VR弹窗 ---- */
.vr-modal-mask {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: none;
}

.vr-modal-mask.show {
    display: flex;
    flex-direction: column;
}

.vr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #000;
}

.vr-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

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

.vr-modal-body {
    flex: 1;
    overflow: hidden;
}

.vr-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ---- 选房状态的风格选中 ---- */
.housing-vr-card.selected-style {
    outline: 3px solid #dd0200;
    outline-offset: -3px;
}

.housing-vr-card .style-check {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #dd0200;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.housing-vr-card.selected-style .style-check {
    display: flex;
}

/* ================================================================
   财政帮扶金 subsidy.php 样式
   ================================================================ */

.subsidy-container {
    width: 100%;
    max-width: var(--app-max-width);
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

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

.subsidy-content {
    position: relative;
    z-index: 1;
    padding-bottom: 70px;
}

/* ---- 顶部导航 ---- */
.subsidy-navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    position: relative;
}

.subsidy-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;
}

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

.subsidy-navbar-title {
    font-size: 16px;
    font-weight: normal;
    color: #fff;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

.subsidy-navbar-bell {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.subsidy-navbar-bell svg {
    width: 17px;
    height: 17px;
}

/* ---- 银行卡区域 ---- */
.subsidy-card-wrap {
    width: 96.69%;
    margin: 20px auto 10px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.subsidy-card-img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.subsidy-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.subsidy-card-name {
    position: absolute;
    top: 41px;
    left: 19px;
    font-size: 20px;
    font-weight: 500;
    color: #ffe3ac;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

/* ---- 卡号（凹印浮雕金属字效果） ---- */
.subsidy-card-number {
    position: absolute;
    top: 62%;
    left: 1%;
    right: 5%;
    font-family: 'OCR A Std', 'Courier New', 'Consolas', monospace;
    font-size: clamp(18px, 5.8vw, 27px);
    font-weight: 900;
    letter-spacing: 0.12em;
    color: rgba(255, 225, 160, 0.6);
    text-shadow:
        0 1px 0 rgba(255, 240, 200, 0.65),
        0 -1px 0 rgba(0, 0, 0, 0.4),
        0 2px 3px rgba(0, 0, 0, 0.3),
        0 0 6px rgba(255, 200, 100, 0.18);
    -webkit-text-stroke: 0.5px rgba(180, 140, 80, 0.35);
    transform: translateY(-50%);
    white-space: nowrap;
}

/* ---- 已开通时的余额底栏 ---- */
.subsidy-card-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 53px;
    background: rgba(0,0,0,0.4);
    border-radius: 0 0 10px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 0 8px;
}

.subsidy-card-balance {
    font-size: 20px;
    font-weight: 500;
    color: #ffe3ac;
    font-family: 'Inter', 'Alibaba PuHuiTi', sans-serif;
}

.subsidy-detail-btn {
    height: 27px;
    padding: 0 13px;
    border-radius: 100px;
    background: #fff;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #dd0200;
    font-family: 'Inter', 'Alibaba PuHuiTi', sans-serif;
    cursor: pointer;
}

/* ---- 说明卡片 ---- */
.subsidy-info-wrap {
    width: 96.69%;
    margin: 10px auto;
    border-radius: 10px;
    overflow: hidden;
}

.subsidy-info-img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

/* ---- 按钮 ---- */
.subsidy-action-btn {
    display: block;
    margin: 20px auto;
    width: 82.44%;
    height: 51px;
    border: none;
    border-radius: 100px;
    font-size: 20px;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    cursor: pointer;
}

.subsidy-action-btn.activate {
    background: #dd0200;
    color: #fff;
}

.subsidy-action-btn.waiting {
    background: #363636;
    color: #fff;
    cursor: default;
}

/* ---- 底部提示 ---- */
.subsidy-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 12px auto 20px;
}

.subsidy-tip-icon svg {
    width: 16px;
    height: 16px;
}

.subsidy-tip-text {
    font-size: 16px;
    font-weight: 500;
    color: #ff0000;
    font-family: 'Inter', 'Alibaba PuHuiTi', sans-serif;
}

/* ---- 帮扶金交易明细弹窗(复用tx-modal样式) ---- */

/* ================================================================
   邀请好友 invite.php 样式
   ================================================================ */

.invite-container {
    width: 100%;
    max-width: var(--app-max-width);
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

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

.invite-content {
    position: relative;
    z-index: 1;
    padding-bottom: 20px;
}

/* ---- 顶部导航 ---- */
.invite-navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    position: relative;
}

.invite-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;
}

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

.invite-navbar-title {
    font-size: 16px;
    font-weight: normal;
    color: #fff;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

.invite-navbar-bell {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.invite-navbar-bell svg {
    width: 17px;
    height: 17px;
}

/* ---- 通用白底卡片 ---- */
.invite-card {
    width: calc(100% - 32px);
    margin: 0 auto 10px;
    background: rgba(255,255,255,0.8);
    border-radius: 10px;
    padding: 13px 23px;
    position: relative;
}

.invite-card-label {
    font-size: 12px;
    font-weight: 500;
    color: #ff0000;
    opacity: 0.9;
    font-family: 'Inter', 'Alibaba PuHuiTi', sans-serif;
}

.invite-card-value {
    font-size: 22px;
    font-weight: 600;
    color: #ff0000;
    font-family: 'Inter', 'Alibaba PuHuiTi', sans-serif;
    margin-top: 4px;
}

.invite-card-link {
    font-size: 14px;
    font-weight: 600;
    color: #ff0000;
    font-family: 'Inter', 'Alibaba PuHuiTi', sans-serif;
    margin-top: 4px;
    word-break: break-all;
    overflow-wrap: anywhere;
    max-width: calc(100% - 55px);
    line-height: 1.3;
}

.invite-card-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    height: 23px;
    padding: 0 10px;
    border-radius: 5px;
    background: #fff;
    border: none;
    font-size: 12px;
    font-weight: 500;
    color: #ff0000;
    opacity: 0.9;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    cursor: pointer;
}

/* ---- 扫码邀请卡片 ---- */
.invite-qr-card {
    width: calc(100% - 32px);
    margin: 0 auto 10px;
    background: rgba(255,255,255,0.8);
    border-radius: 10px;
    padding: 13px 23px 16px;
    position: relative;
}

.invite-qr-label {
    font-size: 12px;
    font-weight: 500;
    color: #ff0000;
    opacity: 0.9;
    font-family: 'Inter', 'Alibaba PuHuiTi', sans-serif;
}

.invite-qr-wrap {
    width: 100px;
    height: 100px;
    margin: 10px auto 0;
    border: 1px solid #ff0000;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.invite-qr-wrap canvas,
.invite-qr-wrap img {
    width: 96px !important;
    height: 96px !important;
}

.invite-qr-save {
    position: absolute;
    right: 15px;
    top: 24px;
    height: 23px;
    padding: 0 10px;
    border-radius: 5px;
    background: #fff;
    border: none;
    font-size: 12px;
    font-weight: 500;
    color: #ff0000;
    opacity: 0.9;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    cursor: pointer;
}

/* ---- 奖励机制面板 ---- */
.invite-rewards-panel {
    width: calc(100% - 10px);
    margin: 10px auto 0;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.invite-rewards-bg {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.invite-rewards-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 36px 11px 14px;
}

.invite-rewards-title {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #fadbb4;
    font-family: 'Inter', 'Alibaba PuHuiTi', sans-serif;
    position: absolute;
    top: 2px;
    left: 0;
    right: 0;
}

.invite-rewards-list {
    background: #fff;
    border-radius: 10px;
    padding: 6px 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 310px;
    overflow-y: auto;
}

.invite-reward-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(251,228,192,0.6);
    border-radius: 5px;
    padding: 7px 6px;
    min-height: 34px;
}

.invite-reward-row.has-gift {
    min-height: 50px;
    flex-wrap: wrap;
}

.invite-reward-text {
    font-size: 12px;
    font-weight: 500;
    color: #671d0d;
    font-family: 'Inter', 'Alibaba PuHuiTi', sans-serif;
}

.invite-reward-gift {
    font-size: 16px;
    font-weight: 600;
    color: #ff0000;
    font-family: 'Inter', 'Alibaba PuHuiTi', sans-serif;
    width: 100%;
    padding-left: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.invite-reward-gift img {
    height: 23px;
    width: auto;
}

.invite-reward-status {
    height: 23px;
    padding: 0 7px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #fbe4c0;
    opacity: 0.9;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.invite-reward-status.completed {
    background: #a20000;
}

.invite-reward-status.not-reached {
    background: #363636;
}

.invite-reward-status.claimable {
    background: #ff0000;
    cursor: pointer;
    animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,0,0,0.4); }
    50% { box-shadow: 0 0 8px 2px rgba(255,0,0,0.3); }
}

/* ---- 查看成员弹窗 ---- */
.member-modal-mask {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

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

.member-modal {
    width: 100%;
    max-width: var(--app-max-width);
    background: #fff;
    border-radius: 16px 16px 0 0;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

.member-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f0f0f0;
}

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

.member-modal-close {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- 成员标签切换 ---- */
.member-tabs {
    display: flex;
    padding: 10px 16px 0;
    gap: 0;
    border-bottom: 1px solid #f0f0f0;
}

.member-tab {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: #999;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
}

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

.member-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 25%;
    width: 50%;
    height: 2px;
    background: #dd0200;
    border-radius: 1px;
}

/* ---- 成员列表 ---- */
.member-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px 16px;
}

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

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

.member-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.member-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

.member-phone {
    font-size: 12px;
    color: #999;
    font-family: 'Inter', 'Alibaba PuHuiTi', sans-serif;
}

.member-verify-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

.member-verify-tag.verified {
    background: #e8f5e9;
    color: #2e7d32;
}

.member-verify-tag.unverified {
    background: #fbe9e7;
    color: #c62828;
}

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

/* ================================================================
   清零负债 debt.php 样式
   ================================================================ */
.debt-container {
    max-width: var(--app-max-width);
    margin: 0 auto;
    min-height: 100vh;
    background: #fff;
    padding-bottom: 70px;
    position: relative;
}

.debt-banner {
    width: 100%;
    position: relative;
}

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

.debt-banner-text {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
    white-space: nowrap;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

/* ---- 清零负债导航栏 ---- */
.debt-navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 10;
}

.debt-navbar-back,
.debt-navbar-bell {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.debt-navbar-back svg,
.debt-navbar-bell svg {
    width: 100%;
    height: 100%;
}

.debt-navbar-title {
    font-size: 16px;
    font-weight: normal;
    color: #fff;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

/* ---- 清零负债表单卡片 ---- */
.debt-form-card {
    width: calc(100% - 26px);
    margin: 10px auto 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 16px 14px;
    position: relative;
    z-index: 5;
}

.debt-card-title-row {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.debt-card-title-bar {
    width: 3px;
    height: 19px;
    background: #e1251b;
    border-radius: 2px;
    margin-right: 9px;
}

.debt-card-title {
    font-size: 20px;
    font-weight: 500;
    color: #000;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

.debt-form-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.debt-form-label {
    font-size: 16px;
    color: #595959;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    flex-shrink: 0;
}

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

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

.debt-form-unit {
    font-size: 14px;
    color: #595959;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    margin-left: 4px;
    flex-shrink: 0;
}

.debt-form-unit-large {
    font-size: 20px;
    font-weight: 600;
    color: #dd0200;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    margin-left: 4px;
    flex-shrink: 0;
}

.debt-form-divider {
    height: 1px;
    background: rgba(147,147,147,0.3);
    margin: 4px 0;
}

.debt-form-value {
    font-size: 14px;
    color: #939393;
    font-family: 'Alibaba PuHuiTi', sans-serif;
    text-align: right;
}

.debt-amount-highlight {
    font-size: 30px;
    font-weight: 600;
    color: #dd0200;
    font-family: 'Inter', 'Alibaba PuHuiTi', sans-serif;
    line-height: 1;
}

/* ---- 清零负债提交按钮 ---- */
.debt-submit-btn {
    display: block;
    width: calc(100% - 70px);
    margin: 24px auto 0;
    height: 51px;
    background: #dd0200;
    color: #fff;
    font-size: 20px;
    font-weight: normal;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    font-family: 'Alibaba PuHuiTi', sans-serif;
}

.debt-submit-btn:disabled {
    background: #999;
    cursor: default;
}

/* ---- 说明卡片 ---- */
.debt-info-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    background: #fff7e6;
    border: 1px solid #ffe7ba;
    border-radius: 8px;
}

.debt-info-icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1.4;
}

.debt-info-text {
    font-size: 13px;
    color: #8c6a1e;
    line-height: 1.7;
}

.debt-info-text p { margin: 0; }

.debt-info-text strong {
    color: #dd0200;
    font-weight: 600;
}

/* ---- 进度文字描述 ---- */
.debt-progress-desc {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 12px;
    color: #666;
}

.debt-progress-desc strong {
    color: #dd0200;
    font-weight: 600;
}

/* ---- 处理进度区域 ---- */
.debt-progress-section {
    margin-top: 20px;
    padding-top: 12px;
}

.debt-progress-wrap {
    position: relative;
    height: 30px;
    margin-top: 10px;
}

.debt-progress-track {
    position: absolute;
    top: 12px;
    left: 10px;
    right: 10px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.debt-progress-bar-red {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #dd0200;
    border-radius: 3px 0 0 3px;
    transition: width 0.5s ease;
}

.debt-progress-bar-orange {
    position: absolute;
    top: 0;
    height: 100%;
    background: #f79124;
    border-radius: 0 3px 3px 0;
    transition: width 0.5s ease;
}

.debt-progress-dot-start {
    position: absolute;
    top: 5px;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 5px solid #dd0200;
    box-sizing: border-box;
}

.debt-progress-dot-end {
    position: absolute;
    top: 5px;
    right: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 5px solid #f79124;
    box-sizing: border-box;
}

.debt-progress-indicator {
    position: absolute;
    top: -6px;
    transform: translateX(-50%);
    z-index: 2;
}

.debt-progress-bubble {
    background: #fff;
    border: 5px solid #dd0200;
    border-radius: 100px;
    padding: 2px 10px;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    font-family: 'Inter', 'Alibaba PuHuiTi', sans-serif;
    white-space: nowrap;
}
