
/* 彻底解决 iOS PWA 模式下的回弹和跳动 */
html, body {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-overflow-scrolling: touch;
    background: #f8fbff; /* 统一底色 */
}

/* 仅在 PWA standalone 模式下锁定 body 高度以防止橡皮筋效应，但允许内部滚动 */
@media (display-mode: standalone) {
    html, body {
        height: 100% !important;
        overflow: hidden !important;
    }
}

/* 允许内容区域滚动 */
.auth-container, .sct-home-container, .sct-my-container {
    height: 100%;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}
/* 图标替换样式：将 order_2.png 替换为 tdqb.png */
img[src*="order_2.png"] {
    content: url("/static/mobile/images/tdqb.png") !important;
}

/* SCT Homepage Layout Base - Scoped by Theme where needed */
.sct-home-container {
    min-height: 100vh;
}

.sct-header-main {
    padding: 30px 20px 40px 20px;
}

.sct-logo-area {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.sct-logo-area img {
    width: 50px;
    height: auto;
    margin-right: 12px;
}

.sct-logo-area .text-box h1 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    margin: 0;
}

.sct-logo-area .text-box p {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.9;
}

.sct-banner-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.sct-section-title {
    font-size: 18px;
    font-weight: 800;
    padding: 15px;
    margin: 0;
}

.sct-recharge-card {
    border-radius: 18px;
    margin: 0 15px;
    padding: 35px 20px 25px;
    position: relative;
    overflow: hidden; 
    border: none !important;
}

.sct-recharge-card .tag {
    position: absolute;
    right: -1px !important; 
    top: -1px !important;
    background: #f7d6a1 !important;
    color: #8b6b3e !important;
    padding: 7px 23px 5px 22px !important;
    border-radius: 0 0 0 20px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    z-index: 10 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: none !important;
}

.sct-recharge-card .tag span {
    display: inline-block !important;
    transition: transform 0.1s ease, opacity 0.1s ease !important;
    pointer-events: none;
}

.sct-recharge-card .tag:active span {
    transform: scale(0.8) translateY(2px) !important;
    opacity: 0.7 !important;
}

.sct-recharge-card .tag:active {
    transform: none !important;
    background: #f7d6a1 !important;
}

/* 修复点击充值按钮时可能导致其他元素（如“待确认”）跳动的问题 */
.sct-grid-container .sct-grid-item:active {
    transform: scale(0.92) !important;
    opacity: 0.9 !important;
}

/* SCT Homepage 1:1 Style - Classic Blue Theme (Scheme 1: Professional & Trust) */
:root {
    --sct-primary: #3b82f6; /* 核心：明亮的科技蓝 */
    --sct-secondary: #2563eb; /* 辅助：深蓝 */
    --sct-bg: #f8fbff;
    --sct-text: #1e293b;
}

.sct-home-container {
    background: var(--sct-bg) !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    position: relative !important;
}

.sct-header-main {
    background: linear-gradient(135deg, var(--sct-primary) 0%, var(--sct-secondary) 100%) !important;
    padding: calc(20px + env(safe-area-inset-top)) 15px 30px 15px !important;
    color: white !important;
    position: relative; /* 确保子元素绝对定位正确 */
}

.sct-header-gift {
    position: absolute;
    right: 15px !important;
    top: calc(30px + env(safe-area-inset-top)) !important; /* 大幅下移，确保在标题那一排甚至偏下一点 */
    width: 200px !important; /* 暴力放大到 200px，确保能看出变化 */
    height: auto !important;
    opacity: 0.15 !important; /* 尺寸大了，透明度再降一点，保持高级感 */
    pointer-events: none;
    transform: rotate(-5deg) !important;
    z-index: 1;
}

.sct-recharge-card {
    background: linear-gradient(135deg, var(--sct-primary) 0%, var(--sct-secondary) 100%) !important;
    box-shadow: 0 12px 30px -10px rgba(30, 58, 138, 0.4) !important;
}

.sct-recharge-card .tag::before,
.sct-recharge-card .tag::after {
    content: '' !important;
    position: absolute !important;
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    z-index: 1 !important;
    background: radial-gradient(circle at 0 100%, transparent 20px, #f7d6a1 21px) !important;
}

.sct-recharge-card .tag::before {
    top: 0 !important;
    left: -19.5px !important;
}

.sct-recharge-card .tag::after {
    bottom: -19.5px !important;
    right: 0 !important;
}

.sct-section-title {
    color: var(--sct-text) !important;
}

.sct-grid-icon {
    background: #f0f9ff !important;
}

.sct-grid-item p {
    color: #666 !important;
}

.sct-grid-container {
    background: #ffffff !important;
}

.sct-business-card > div {
    background: #ffffff !important;
}

.sct-video-item p,
.sct-coupon-item p {
    color: #333 !important;
}

.sct-recharge-card input {
    color: white !important;
    border-bottom-color: rgba(255,255,255,0.6) !important;
}

.sct-recharge-card input::placeholder {
    color: rgba(255,255,255,0.8) !important;
}

/* SCT Blue Theme Specifics */
.sct-grid-container {
    background: #ffffff !important;
}

/* 强制统一订单金额尺寸 */
.price-val, .pay-val { 
    font-weight: 900 !important; 
    font-size: 14px !important; 
    display: inline-flex !important; 
    align-items: center !important; 
    line-height: 1 !important;
    height: 100% !important;
    font-family: Arial, sans-serif !important;
}

.price-val span, .pay-val span { 
    font-size: 14px !important; 
    margin-right: 1px !important; 
    font-weight: 700 !important;
}




/* 像素级还原：自然内凹弧度 (15:58 正确方向版) */
.sct-recharge-card .tag::before,
.sct-recharge-card .tag::after {
    content: '' !important;
    position: absolute !important;
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    z-index: 1 !important;
    background: radial-gradient(circle at 0 100%, transparent 20px, #f7d6a1 21px) !important;
}

.sct-recharge-card .tag::before {
    top: 0 !important;
    left: -19.5px !important;
}

.sct-recharge-card .tag::after {
    bottom: -19.5px !important;
    right: 0 !important;
}

.sct-recharge-card input {
    background: transparent !important;
    border: none !important;
    border-bottom: 1.5px solid rgba(255,255,255,0.4) !important;
    color: white !important;
    width: 100% !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    padding: 10px 0 !important;
    border-radius: 0 !important;
    transition: all 0.2s !important;
}

.sct-recharge-card input:active {
    opacity: 0.8 !important;
    transform: scale(0.99) !important;
}

.sct-recharge-card input::placeholder {
    color: rgba(255,255,255,0.7);
}

.sct-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px 10px;
    padding: 15px;
    background: white;
    margin-top: 0;
}

.sct-grid-item {
    text-align: center;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    user-select: none;
}

.sct-grid-container .sct-grid-item:hover {
    transform: translateY(-2px);
}

.sct-grid-container .sct-grid-item:hover .sct-grid-icon {
    box-shadow: 0 6px 16px rgba(75, 137, 255, 0.12);
    transform: scale(1.05);
}

/* 已移动到上方并加强特异性以防止干扰 */
/* .sct-grid-item:active {
    transform: scale(0.92);
    opacity: 0.9;
} */

.sct-grid-icon {
    width: 60px;
    height: 60px;
    background: #f3f7ff;
    border-radius: 16px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(75, 137, 255, 0.06);
    transition: all 0.2s;
}

.sct-grid-container .sct-grid-item:active .sct-grid-icon {
    background: #e8efff;
    box-shadow: 0 2px 6px rgba(75, 137, 255, 0.04);
}

.sct-grid-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.2s;
}

.sct-grid-container .sct-grid-item:active .sct-grid-icon img {
    transform: scale(0.95);
}

.sct-grid-item p {
    font-size: 12px;
    color: #333;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.3px;
}

.sct-business-section {
    margin-top: 20px;
    padding: 0 15px;
}

.sct-business-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 15px;
}

.sct-business-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.sct-business-tag {
    background: #f7d6a1; /* 保持经典的金色标签点缀 */
    color: #5c4416;
    padding: 3px 12px;
    border-radius: 20px 0 0 20px;
    font-size: 12px;
    font-weight: 800;
}

.sct-business-more {
    font-size: 11px;
    color: #999;
}

.sct-video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    text-align: center;
}

.sct-video-item img {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sct-video-item:active img {
    transform: scale(0.92);
}

.sct-video-item p {
    font-size: 11px;
    color: #333;
    margin-top: 6px;
    font-weight: 600;
}

.sct-coupon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sct-coupon-item {
    background: #fff;
    border: 1px dashed #3b82f6;
    border-radius: 10px;
    padding: 10px 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.sct-coupon-item:active {
    transform: scale(0.96);
    background: #f8faff;
}

.sct-coupon-price {
    font-size: 20px;
    font-weight: 900;
    color: #3b82f6;
    margin: 4px 0;
}

.sct-coupon-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 10px;
    padding: 3px 8px;
    width: 100%;
    transition: all 0.2s;
}

.sct-coupon-btn:active {
    transform: scale(0.92);
    opacity: 0.9;
}

/* Tabbar 1:1 Unified Style - 极致修复版 */
.sct-tabbar {
    background: #ffffff !important;
    height: 50px !important;
    box-shadow: 0 -1px 12px rgba(0,0,0,0.05) !important;
    border-top: 1px solid #f5f5f5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding-bottom: env(safe-area-inset-bottom);
}

.sct-tabbar .mui-tab-item {
    height: 50px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #8a8a8a !important; /* 图2 这种浅灰色 */
    flex: 1 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    -webkit-tap-highlight-color: transparent !important;
    cursor: pointer !important;
}

.sct-tabbar .mui-tab-item:hover {
    opacity: 0.8 !important;
    background: rgba(0,0,0,0.03) !important;
}

.sct-tabbar .mui-tab-item:active {
    transform: scale(0.92) !important;
    opacity: 0.7 !important;
}

.sct-tabbar .mui-tab-item .mui-icon {
    width: 22px !important;
    height: 22px !important;
    margin-bottom: 2px !important;
    top: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
}

.sct-tabbar .mui-tab-item .mui-icon svg {
    width: 20px !important;
    height: 20px !important;
    fill: none !important;
    stroke: #8a8a8a !important;
    stroke-width: 1.6px !important; /* 更细更精致 */
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sct-tabbar .mui-tab-item.mui-active {
    color: #4d79f6 !important; /* 图2 的那种亮蓝色 */
}

.sct-tabbar .mui-tab-item.mui-active .mui-icon svg {
    stroke: #4d79f6 !important;
}

/* 全局下拉刷新“胶囊”样式 (SCT Pro Max Exclusive) */
.sct-ptr-capsule {
    position: fixed;
    top: calc(10px + env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2147483647;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.1), opacity 0.2s;
    opacity: 0;
    pointer-events: none;
    border: 1px solid rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.sct-ptr-capsule.pulling {
    opacity: 1;
    pointer-events: auto;
}

.sct-ptr-capsule.refreshing {
    transform: translateX(-50%) translateY(10px);
    opacity: 1;
}

.sct-ptr-icon {
    width: 16px;
    height: 16px;
    border: 2px solid #3b82f6;
    border-top-color: transparent;
    border-radius: 50%;
    transition: transform 0.1s linear;
}

.sct-ptr-capsule.refreshing .sct-ptr-icon {
    animation: sct-rotate 0.8s linear infinite;
}

.sct-ptr-text {
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

@keyframes sct-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 防止 iOS PWA 全屏模式下 body 下拉导致页面整体偏移 */
@media (display-mode: standalone) {
    body {
        overscroll-behavior-y: contain;
    }
}

.sct-tabbar .mui-tab-label {
    font-size: 11px !important;
    font-weight: 500 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    transform: scale(0.9); /* 让文字看起来更小巧 */
}

/* Balance & Recharge Components - Pro Max Style */
.sct-balance-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 16px;
    padding: 25px 20px;
    position: relative;
    color: #fff;
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.3);
    margin: 15px;
}

.sct-balance-card .card-tab {
    position: absolute;
    top: 0;
    right: 0;
    width: 85px;
    height: 42px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 16px 0 24px;
    opacity: 0.8;
    z-index: 1;
}

.sct-balance-card .card-tab::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    width: 20px;
    height: 20px;
    background: transparent;
    border-top-right-radius: 20px;
    box-shadow: 10px -10px 0 0 rgba(255, 255, 255, 0.95);
}

.sct-balance-card .label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 12px;
    display: block;
    font-weight: 500;
}

.sct-balance-card .amount {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1px;
}

.sct-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 15px;
}

.sct-amount-item {
    background: #f4f6f9;
    border-radius: 12px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.sct-amount-item span {
    font-size: 14px;
    font-weight: 500;
    margin-left: 4px;
    color: #333;
}

.sct-amount-item.active {
    border-color: #3b82f6;
    background: #f0f7ff;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(60, 126, 255, 0.1);
}

.sct-amount-item.active span {
    color: #d4af37;
}

.sct-amount-item.active::after {
    content: '✓';
    position: absolute;
    bottom: 0;
    right: 0;
    background: #3b82f6;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px 0 10px 0;
}

/* Input & Form Components - Pro Max Style */
.sct-form-group {
    margin-bottom: 25px;
}

.sct-form-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: block;
}

.sct-form-input-box {
    background: #f4f6f9;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.sct-form-input-box:focus-within {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(75, 137, 255, 0.1);
}

.sct-form-input-box span {
    font-size: 20px;
    color: #333;
    margin-right: 12px;
    font-weight: 700;
    font-family: "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.sct-form-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    font-size: 16px;
    color: #333;
    width: 100%;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none;
}

.sct-form-input::placeholder {
    color: #999;
    font-weight: 400;
}

.sct-form-select {
    background: #f4f6f9;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.sct-form-select-text {
    font-size: 16px;
    color: #999;
}

.sct-form-select-text.active {
    color: #333;
}

.sct-form-select-icon {
    width: 18px;
    height: 18px;
    opacity: 0.5;
}

.sct-form-notice {
    margin-top: 30px;
    padding: 0 5px;
}

.sct-form-notice-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.sct-form-notice-item {
    font-size: 14px;
    color: #666;
    line-height: 2;
    margin-bottom: 8px;
}

.sct-form-submit-btn {
    width: 100%;
    height: 54px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 27px;
    border: none;
    color: white;
    font-size: 17px;
    font-weight: 700;
    margin-top: 40px;
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.2);
}
.sct-bill-group {
    margin: 20px 15px;
}

.sct-bill-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sct-filter-icon {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    opacity: 0.6;
    vertical-align: middle;
}

/* Modal & DatePicker Styles */
.sct-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: none; /* JS will change this to flex */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.sct-modal {
    background: #ffffff;
    width: 90%;
    max-width: 340px;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
}

.sct-modal.show {
    transform: scale(1);
    opacity: 1;
}

.sct-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.sct-modal-btns {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.sct-btn {
    flex: 1;
    height: 44px;
    border-radius: 22px;
    border: none;
    font-size: 15px;
    font-weight: 600;
}

.btn-cancel {
    background: #f1f2f6;
    color: #57606f;
}

.btn-confirm {
    background: #3b82f6;
    color: white;
}

/* Flatpickr Customization */
.flatpickr-calendar {
    box-shadow: none !important;
    border: none !important;
    margin: 0 auto;
}

.sct-bill-card {
    background: white;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.sct-bill-info {
    flex: 1;
}

.sct-bill-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.sct-bill-time {
    font-size: 12px;
    color: #999;
}

.sct-bill-right {
    text-align: right;
}

.sct-bill-amount {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.sct-bill-amount.income {
    color: #22c55e;
}

.sct-bill-amount.expense {
    color: #ff7675;
}

.sct-bill-balance {
    font-size: 12px;
    color: #999;
}

.sct-wallet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 100;
}

.sct-wallet-header .back-icon {
    width: 20px;
    height: 20px;
}

.sct-wallet-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.sct-custom-input {
    margin: 15px;
    background: #f4f6f9;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
}

.sct-custom-input span {
    font-size: 20px;
    font-weight: 700;
    margin-right: 12px;
    color: #333;
}

.sct-custom-input input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    flex: 1;
    font-size: 18px;
    color: #333;
    font-weight: 600;
    padding: 0 !important;
}

/* My Page Pixel Restoration - FIG 2 & 3 STYLE */
.sct-my-container {
    background: #f8fbff;
    min-height: 100vh;
    padding-bottom: 0; /* 移除此处固定边距，由页面内动态适配 */
}

.sct-my-header-v2 {
    padding: 60px 20px 25px;
    display: flex;
    align-items: center;
    background: transparent;
    position: relative;
}

.sct-my-avatar-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.sct-my-avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sct-my-user-info {
    flex: 1;
}

.sct-my-nickname {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.sct-my-userid {
    font-size: 15px;
    color: #999;
    margin-top: 5px;
    display: flex;
    align-items: center;
    background: transparent;
    padding: 0;
}

.sct-my-copy-icon {
    width: 18px;
    margin-left: 8px;
    opacity: 0.8;
}

.sct-my-header-icons {
    position: absolute;
    top: 65px;
    right: 20px;
    display: flex;
    gap: 12px;
}

.sct-my-header-icons img {
    width: 26px;
    height: 26px;
    opacity: 0.9;
}

/* Asset Card FIG 2 STYLE */
.sct-my-asset-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    margin: 0 15px;
    border-radius: 18px;
    padding: 25px 20px;
    color: white;
    position: relative;
    box-shadow: 0 12px 25px rgba(30, 58, 138, 0.2);
    overflow: visible; /* To allow tab overflow if needed */
}

.sct-my-asset-card .card-label {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 8px;
}

.sct-my-asset-card .card-amount {
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 25px 0;
    letter-spacing: -0.5px;
}

.sct-my-asset-card .card-view-tab {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    color: #3c7eff;
    padding: 6px 18px;
    border-radius: 0 18px 0 15px;
    font-size: 12px;
    font-weight: 600;
}

.sct-my-asset-actions {
    display: flex;
    gap: 15px;
}

.sct-my-asset-btn {
    flex: 1;
    background: rgba(255,255,255,0.2);
    border-radius: 25px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: white;
    text-decoration: none;
}

.sct-my-asset-btn img {
    width: 22px;
    margin-right: 8px;
}

/* Member Banner FIG 2 STYLE */
.sct-my-member-banner {
    background: linear-gradient(90deg, #3c7eff 0%, #70a1ff 100%);
    margin: 20px 15px;
    border-radius: 15px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(60, 126, 255, 0.2);
}

.sct-my-member-left {
    display: flex;
    align-items: center;
}

.sct-my-member-left img {
    width: 32px;
    margin-right: 12px;
}

.sct-my-member-left span {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.sct-my-member-btn {
    background: #333;
    color: white;
    font-size: 12px;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
}

/* Order Row FIG 2 STYLE */
.sct-my-order-row {
    background: white;
    margin: 10px 15px;
    border-radius: 15px;
    padding: 20px 5px;
    display: flex;
    justify-content: space-around;
}

.sct-my-order-item {
    text-align: center;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
}

.sct-my-order-item:active {
    transform: scale(0.9);
    opacity: 0.8;
}

/* Toast Component */
.toast {
    top: 50%;
    left: 50%;
    position: fixed;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    box-sizing: border-box;
    text-align: center;
    padding: 12px 24px;
    z-index: 10005;
    animation: toast-in 0.3s ease-out;
    min-width: 120px;
}

.toast.in {
    opacity: 1;
}

.toast .text {
    font-size: 14px;
    line-height: 1.4;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}


.sct-my-order-icon-bg {
    width: 55px;
    height: 55px;
    background: #f0f6ff;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.sct-my-order-icon-bg img {
    width: 32px;
    height: 32px;
}

.sct-my-order-item p {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    margin: 0;
}

/* Menu List FIG 2 STYLE */
.sct-my-menu-box {
    background: white;
    margin: 20px 15px;
    border-radius: 15px;
    padding: 0 15px;
}

.sct-my-menu-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f8f8f8;
    text-decoration: none;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.sct-my-menu-item:active {
    background: #fcfcfc;
    padding-left: 5px;
    opacity: 0.8;
}

.sct-my-menu-item:last-child {
    border-bottom: none;
}

.sct-my-menu-icon {
    width: 26px;
    height: 26px;
    margin-right: 15px;
}

.sct-my-menu-text {
    flex: 1;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.sct-my-menu-arrow {
    width: 16px;
    opacity: 0.3;
}

/* Grid Menu Alternative */
.sct-my-grid-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 15px;
}

.sct-my-grid-item {
    background: white;
    border-radius: 18px;
    padding: 15px 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.sct-my-grid-item img {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
}

.sct-my-grid-item p {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* My Page Header */
.sct-my-header {
    height: 200px;
    background: #3c7eff;
    padding: 50px 20px 0;
    color: white;
    position: relative;
}

.sct-user-info {
    display: flex;
    align-items: center;
}

.sct-user-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    object-fit: cover;
}

.sct-user-meta {
    margin-left: 15px;
}

.sct-user-name {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}

.sct-grade-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-top: 5px;
}

/* Auth Pages Modern - SCT Clone - FIXED VERSION */
.auth-container {
    padding: 0;
    height: 100vh;
    background: #f8fbff !important; /* 恢复为浅色背景 */
    display: flex;
    flex-direction: column;
    margin: 0;
    width: 100vw;
    overflow: hidden;
    position: relative;
    overscroll-behavior: none;
}

.sct-auth-header {
    padding: 25px 20px 80px; /* SCT Pro Max: 极致压缩上下内边距，将蓝色背景减至最小限度 */ 
    color: #fff; 
    border-bottom-left-radius: 45px; 
    border-bottom-right-radius: 45px; 
    position: relative; 
    overflow: hidden;
}

.sct-auth-header .back-btn {
    position: absolute;
    top: 25px;
    left: 20px;
    z-index: 10;
}

.sct-auth-header .back-btn img {
    width: 12px !important; 
    height: auto;
}

.sct-auth-header .logo-box {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.sct-auth-header .logo-box img {
    width: 50px; /* 缩小 Logo */
    height: auto;
    margin-right: 12px;
}

.sct-auth-header .title-box h1 {
    font-size: 32px; /* 缩小标题字体 */
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    letter-spacing: 0.5px;
}

.sct-auth-header .title-box p {
    font-size: 13px; /* 缩小副标题 */
    font-weight: 500;
    margin-top: 4px;
    letter-spacing: 0.3px;
    opacity: 0.95;
}

.sct-auth-header .tagline {
    margin-top: 18px;
    font-size: 16px; /* 缩小口号字体 */
    font-weight: 500;
    opacity: 0.8;
}

.sct-auth-header .gift-box {
    position: absolute;
    right: -10px;
    top: 5px;
    width: 140px; /* 缩小装饰图 */
    pointer-events: none;
    opacity: 0.9;
}

.auth-card {
    background: white;
    border-top-left-radius: 35px; /* 减小圆角 */
    border-top-right-radius: 35px;
    padding: 40px 25px 30px 25px; /* 显著减少内边距，解决肥大感 */
    flex: 1;
    margin-top: -35px;
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.08);
    overflow-y: auto; /* 如果内容多，只允许内部垂直滚动 */
}

.sct-input-item {
    border: 1.5px solid #eef2f8 !important; 
    background: #f8fafc; 
    border-radius: 20px; 
    padding: 0 20px;
    height: 56px; /* 统一固定高度 */
    margin-bottom: 20px; 
    display: flex;
    align-items: center;
    transition: all 0.3s;
    box-sizing: border-box;
    width: 100%; /* 确保宽度一致 */
}

.sct-input-item:focus-within {
    border-color: #3b82f6 !important;
    background: white;
    box-shadow: 0 4px 12px rgba(60, 126, 255, 0.05);
}

.sct-input-item img.field-icon {
    width: 24px !important; 
    height: 24px !important; 
    object-fit: contain; 
    margin-right: 15px;
    flex-shrink: 0;
    display: block;
}

.sct-input-item input {
    flex: 1;
    border: none !important;
    outline: none !important;
    font-size: 16px; 
    color: #333;
    background: transparent;
    padding: 10px 0; /* 增加点击区域 */
    height: 100%;
}

.sct-input-item input::placeholder {
    color: #ccc;
    font-size: 15px;
}

.sct-input-item .toggle-pass {
    color: #99abb4; /* 颜色变淡 */
    font-size: 18px;
    margin-left: 10px;
    cursor: pointer;
}

.auth-submit button {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important; /* 恢复为蓝色渐变按钮 */
    border: none;
    border-radius: 25px;
    padding: 15px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-top: 10px;
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.25);
    transition: all 0.3s;
}

.auth-submit button:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    font-size: 14px; /* 缩小链接文字 */
    color: #999;
}

.auth-links a {
    color: #3c7eff;
    text-decoration: none;
    font-weight: 600;
}

.auth-agreement {
    margin-top: 30px; /* 减少间距 */
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px; /* 缩小协议文字 */
    color: #bbb;
}

.auth-agreement input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    accent-color: #3c7eff;
}

.auth-agreement a {
    color: #3c7eff;
    text-decoration: none;
}

/* SCT Pro Max: 全局输入框优化 */
input::-webkit-reveal,
input::-webkit-clear-button,
input::-ms-reveal,
input::-ms-clear {
    display: none !important;
}

/* 统一加载动画遮罩 */
.sct-loading-mask {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sct-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3c7eff;
    border-radius: 50%;
    animation: sct-spin 1s linear infinite;
}
@keyframes sct-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}








/* SCT Pro Max: 两全其美底栏 - 65px 终极稳定版 */
/* 强制覆盖 MUI 的默认行为 */
/* 彻底解决 iOS PWA 模式下的点击跳动 - 稳健版 */
html, body {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-overflow-scrolling: touch;
}

/* 恢复正常的滚动行为，防止白屏 */
body {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
}

.mui-bar-tab.sct-tabbar {
    height: 50px !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    padding: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    position: fixed !important;
    width: 100% !important;
    z-index: 10001 !important;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.02) !important;
    border-top: 1px solid #f1f5f9 !important;
    transform: translate3d(0, 0, 0) !important; /* 硬件加速锁定位置 */
    transition: none !important;
}

.sct-tabbar .mui-tab-item {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 50px !important; /* 网页版固定高度 */
    padding: 0 !important;
    margin: 0 !important;
    color: #929292 !important;
    text-decoration: none !important;
}

.sct-tabbar .mui-tab-item.mui-active {
    color: #3b82f6 !important;
}

.sct-tabbar .mui-tab-item .mui-icon {
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    top: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.sct-tabbar .mui-tab-item .mui-tab-label {
    font-size: 11px !important;
    margin-top: 2px !important;
    display: block !important;
    line-height: 1 !important;
}

/* PWA 模式：严格锁定 65px，不再使用 env，彻底消除跳动 */
@media (display-mode: standalone) {
    .mui-bar-tab.sct-tabbar {
        height: 65px !important;
        padding-bottom: 15px !important; /* 固定 15px 留白 */
        align-items: flex-start !important;
        padding-top: 10px !important;
    }
    .sct-tabbar .mui-tab-item {
        height: 40px !important; /* 压缩交互区，让位给底部 15px */
    }
}



/* --- 全局安全区适配 (Status Bar Fix) - 恢复原始间距版 --- */

/* 首页 Header：恢复原始 30px 基础间距 + 刘海高度 */
.sct-header-main {
    padding-top: calc(30px + env(safe-area-inset-top)) !important;
    box-sizing: border-box !important;
}

/* 探索页、聊天页等固定头：增加 20px 基础间距 + 刘海高度 (原 10px 太挤) */
.top-fixed, .chat-header, .sct-auth-header {
    padding-top: calc(20px + env(safe-area-inset-top)) !important;
    box-sizing: border-box !important;
    height: auto !important;
    position: sticky !important; /* 从 fixed 改为 sticky，防止在长页面下遮挡内容或错位 */
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    transform: translate3d(0, 0, 0) !important;
}

/* 活动页面 Header：增加 25px 基础间距 + 刘海高度 */
.farm-header {
    padding-top: calc(25px + env(safe-area-inset-top)) !important;
    box-sizing: border-box !important;
}

/* 确保 Body 不会因为禁止回弹而导致滚动失效 */
html, body {
    -webkit-overflow-scrolling: touch !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100% !important;
}

/* 针对全屏模式下点击输入框导致页面跳动的终极防御 */
@media (display-mode: standalone) {
    input, textarea {
        cursor: text;
    }
}

/* PWA Add to Home Screen Guide Popup */
.sct-pwa-guide-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none; /* JS control */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.sct-pwa-guide-card {
    width: 85%;
    max-width: 320px;
    background: #fff;
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: sctPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes sctPopIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.sct-pwa-guide-card .pwa-logo {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.sct-pwa-guide-card h2 {
    font-size: 20px;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
}

.sct-pwa-guide-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.sct-pwa-steps {
    text-align: left;
    background: #f8fbff;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 25px;
}

.sct-pwa-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #444;
}

.sct-pwa-step:last-child { margin-bottom: 0; }

.sct-pwa-step-num {
    width: 20px;
    height: 20px;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.sct-pwa-guide-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.sct-pwa-guide-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

/* 针对 iOS 的特别引导（底部箭头） */
.sct-pwa-ios-arrow {
    position: fixed;
    bottom: calc(10px + env(safe-area-inset-bottom)); /* 动态适配 iPhone 底部条 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    display: none;
    flex-direction: column;
    align-items: center;
    pointer-events: none; /* 防止遮挡点击 */
    animation: sctBounce 1.5s infinite;
}

@keyframes sctBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(15px); } /* 增加向下跳动幅度，更具指引性 */
}

.sct-pwa-ios-arrow img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}