/* ============================================
   点点租号玩 V11 - 移动端专属样式
   Mobile First Design - 原生APP体验
   ============================================ */

/* ============================================
   移动端底部Tab导航栏
   ============================================ */
.mobile-tab-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-tab-bar-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    max-width: 600px;
    margin: 0 auto;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #86868b;
    font-size: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.tab-item:active {
    transform: scale(0.92);
}

.tab-item.active {
    color: #007AFF;
}

.tab-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-icon svg {
    width: 22px;
    height: 22px;
}

.tab-label {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
}

.tab-badge {
    position: absolute;
    top: 6px;
    right: 50%;
    transform: translateX(12px);
    background: #FF3B30;
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ============================================
   移动端顶部搜索栏
   ============================================ */
.mobile-search-bar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(142, 142, 147, 0.12);
    border-radius: 10px;
    padding: 8px 12px;
    height: 36px;
}

.search-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    color: #86868b;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #1d1d1f;
    outline: none;
    width: 100%;
}

.search-input::placeholder {
    color: #86868b;
}

.search-cancel {
    display: none;
    margin-left: 12px;
    color: #007AFF;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
}

/* ============================================
   移动端卡片优化 - 更大更适合手指点击
   ============================================ */
@media (max-width: 768px) {
    /* 显示移动端底部Tab */
    .mobile-tab-bar {
        display: block;
    }

    /* 显示移动端搜索栏 */
    .mobile-search-bar {
        display: block;
    }

    /* 隐藏桌面端导航 */
    .header {
        display: none;
    }

    /* 主内容区底部留白，给Tab栏留出空间 */
    .main-container {
        padding-bottom: 80px;
        padding-top: 0;
    }

    /* 页面容器优化 */
    .container {
        padding: 12px;
        max-width: 100%;
    }

    /* 卡片优化 - 更大更圆润 */
    .account-card {
        width: 100%;
        margin-bottom: 12px;
        border-radius: 16px;
        overflow: hidden;
        transition: transform 0.2s ease;
    }

    .account-card:active {
        transform: scale(0.98);
    }

    .account-card .card-image {
        height: 180px;
        border-radius: 16px 16px 0 0;
    }

    .account-card .card-content {
        padding: 14px;
    }

    .account-card .card-title {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 6px;
    }

    .account-card .card-subtitle {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .account-card .card-tags {
        margin-bottom: 10px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .account-card .tag {
        font-size: 11px;
        padding: 3px 8px;
        border-radius: 6px;
    }

    .account-card .card-footer {
        padding-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .account-card .price {
        font-size: 20px;
        font-weight: 700;
    }

    .account-card .price-unit {
        font-size: 12px;
        font-weight: 400;
    }

    /* 热力值展示 */
    .heat-value {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 12px;
        color: #FF9500;
        font-weight: 500;
    }

    .heat-icon {
        width: 14px;
        height: 14px;
    }

    .heat-value.hot {
        color: #FF3B30;
    }

    .heat-value.warm {
        color: #FF9500;
    }

    .heat-value.cool {
        color: #86868b;
    }

    /* 卡片网格 - 移动端单列 */
    .account-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* 分类横滑 */
    .category-scroll {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding: 4px 0 12px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .category-scroll::-webkit-scrollbar {
        display: none;
    }

    .category-item {
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 12px 16px;
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(10px);
        border-radius: 14px;
        min-width: 70px;
        transition: all 0.2s ease;
    }

    .category-item:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.8);
    }

    .category-item.active {
        background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
        color: white;
    }

    .category-icon {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
    }

    .category-name {
        font-size: 12px;
        font-weight: 500;
        white-space: nowrap;
    }

    /* 轮播图优化 */
    .banner-slider {
        height: 160px;
        border-radius: 16px;
        margin-bottom: 16px;
    }

    .banner-slide img {
        height: 160px;
        border-radius: 16px;
    }

    /* 公告栏优化 */
    .notice-bar {
        padding: 10px 14px;
        border-radius: 12px;
        margin-bottom: 16px;
        font-size: 13px;
    }

    /* 区块标题优化 */
    .section-header {
        margin-bottom: 12px;
    }

    .section-title {
        font-size: 18px;
        font-weight: 700;
    }

    .section-more {
        font-size: 13px;
    }

    /* 热门排行 */
    .hot-ranking {
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(10px);
        border-radius: 16px;
        padding: 16px;
        margin-bottom: 16px;
    }

    .ranking-title {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .ranking-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .ranking-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px;
        border-radius: 10px;
        transition: background 0.2s ease;
    }

    .ranking-item:active {
        background: rgba(0, 0, 0, 0.04);
    }

    .ranking-number {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-weight: 700;
        border-radius: 6px;
        background: rgba(0, 0, 0, 0.06);
        color: #86868b;
        flex-shrink: 0;
    }

    .ranking-item:nth-child(1) .ranking-number {
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
        color: white;
    }

    .ranking-item:nth-child(2) .ranking-number {
        background: linear-gradient(135deg, #C0C0C0 0%, #A0A0A0 100%);
        color: white;
    }

    .ranking-item:nth-child(3) .ranking-number {
        background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
        color: white;
    }

    .ranking-avatar {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        object-fit: cover;
        flex-shrink: 0;
    }

    .ranking-info {
        flex: 1;
        min-width: 0;
    }

    .ranking-name {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ranking-heat {
        font-size: 12px;
        color: #FF9500;
        display: flex;
        align-items: center;
        gap: 3px;
    }

    /* 筛选栏优化 */
    .filter-bar {
        padding: 10px 0;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .filter-bar::-webkit-scrollbar {
        display: none;
    }

    .filter-item {
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 18px;
    }

    /* 详情页优化 */
    .detail-container {
        padding: 0;
    }

    .detail-gallery {
        height: 280px;
        border-radius: 0;
    }

    .detail-gallery img {
        height: 280px;
        border-radius: 0;
    }

    .detail-info {
        padding: 16px;
        border-radius: 20px 20px 0 0;
        margin-top: -20px;
        position: relative;
        z-index: 10;
        background: var(--bg-primary);
    }

    .detail-title {
        font-size: 20px;
        font-weight: 700;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .detail-price {
        font-size: 28px;
        font-weight: 700;
    }

    .detail-price-unit {
        font-size: 14px;
        font-weight: 400;
    }

    /* 底部操作栏 */
    .detail-action-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        padding: 10px 16px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
        display: flex;
        align-items: center;
        gap: 12px;
        z-index: 999;
    }

    .action-btn {
        flex: 1;
        height: 44px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        font-weight: 600;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .action-btn:active {
        transform: scale(0.97);
    }

    .action-btn-primary {
        background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
        color: white;
    }

    .action-btn-secondary {
        background: rgba(0, 122, 255, 0.1);
        color: #007AFF;
    }

    .action-btn-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.05);
        color: #1d1d1f;
        flex-shrink: 0;
    }

    .action-btn-icon.active {
        color: #FF3B30;
        background: rgba(255, 59, 48, 0.1);
    }

    /* 用户中心优化 */
    .user-center {
        padding-bottom: 80px;
    }

    .user-header {
        padding: 30px 20px 20px;
        border-radius: 0 0 24px 24px;
    }

    .user-avatar {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }

    .user-name {
        font-size: 20px;
        font-weight: 700;
    }

    .user-menu-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .menu-item {
        padding: 16px 8px;
        border-radius: 14px;
    }

    .menu-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 18px;
        margin-bottom: 6px;
    }

    .menu-label {
        font-size: 12px;
    }

    /* 订单列表优化 */
    .order-card {
        border-radius: 14px;
        padding: 14px;
        margin-bottom: 12px;
    }

    .order-header {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .order-title {
        font-size: 15px;
        font-weight: 600;
    }

    .order-status {
        font-size: 13px;
        font-weight: 500;
    }

    .order-info {
        font-size: 13px;
        gap: 8px;
    }

    .order-actions {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        gap: 10px;
    }

    .order-btn {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 8px;
    }

    /* 登录注册页优化 */
    .auth-container {
        min-height: 100vh;
        padding: 40px 24px;
    }

    .auth-logo {
        width: 72px;
        height: 72px;
        border-radius: 20px;
        font-size: 28px;
        margin-bottom: 20px;
    }

    .auth-title {
        font-size: 24px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .auth-subtitle {
        font-size: 14px;
        margin-bottom: 32px;
    }

    .auth-form {
        gap: 14px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-input {
        height: 48px;
        font-size: 15px;
        border-radius: 12px;
        padding: 0 14px;
    }

    .form-btn {
        height: 48px;
        font-size: 16px;
        border-radius: 12px;
        margin-top: 8px;
    }

    /* 帮助中心优化 */
    .help-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .help-category-card {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .help-category-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 20px;
        margin-bottom: 10px;
    }

    .help-category-name {
        font-size: 14px;
        font-weight: 600;
    }

    /* 客服聊天优化 */
    .chat-container {
        height: calc(100vh - 60px);
        padding-bottom: 0;
    }

    .chat-messages {
        padding: 16px 12px;
    }

    .chat-input-area {
        padding: 10px 12px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }

    .chat-input {
        height: 40px;
        font-size: 15px;
        border-radius: 20px;
        padding: 0 14px;
    }

    .chat-send-btn {
        width: 40px;
        height: 40px;
        border-radius: 20px;
        font-size: 16px;
    }

    .message-bubble {
        max-width: 75%;
        padding: 10px 14px;
        border-radius: 18px;
        font-size: 15px;
        line-height: 1.4;
    }

    /* 空状态优化 */
    .empty-state {
        padding: 60px 20px;
    }

    .empty-icon {
        width: 80px;
        height: 80px;
        font-size: 40px;
        margin-bottom: 16px;
    }

    .empty-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .empty-desc {
        font-size: 13px;
    }

    /* 加载更多 */
    .load-more {
        padding: 20px;
        text-align: center;
        font-size: 13px;
        color: #86868b;
    }

    .loading-spinner {
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 2px solid rgba(0, 122, 255, 0.2);
        border-top-color: #007AFF;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        margin-right: 8px;
        vertical-align: middle;
    }

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

    /* 下拉刷新指示器 */
    .pull-refresh {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
        font-size: 13px;
        color: #86868b;
    }

    .pull-refresh.active {
        height: 50px;
    }

    /* 滑动删除 */
    .swipe-delete {
        position: relative;
        overflow: hidden;
    }

    .swipe-delete-content {
        position: relative;
        z-index: 1;
        background: var(--bg-secondary);
        transition: transform 0.3s ease;
    }

    .swipe-delete-actions {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        z-index: 0;
    }

    .swipe-delete-btn {
        width: 80px;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #FF3B30;
        color: white;
        font-size: 14px;
        font-weight: 500;
    }

    /* 底部弹窗 */
    .bottom-sheet {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-radius: 20px 20px 0 0;
        z-index: 2000;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: 80vh;
        overflow-y: auto;
    }

    .bottom-sheet.show {
        transform: translateY(0);
    }

    .bottom-sheet-handle {
        width: 36px;
        height: 5px;
        background: rgba(0, 0, 0, 0.15);
        border-radius: 3px;
        margin: 8px auto;
    }

    .bottom-sheet-header {
        padding: 12px 20px 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .bottom-sheet-title {
        font-size: 17px;
        font-weight: 600;
        text-align: center;
    }

    .bottom-sheet-body {
        padding: 16px 20px;
    }

    .bottom-sheet-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .bottom-sheet-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    /* Toast提示 */
    .toast-container {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 3000;
        pointer-events: none;
    }

    .toast {
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 12px 20px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 500;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        opacity: 0;
        transform: scale(0.9);
        transition: all 0.2s ease;
        white-space: nowrap;
    }

    .toast.show {
        opacity: 1;
        transform: scale(1);
    }

    /* 页面切换动画 */
    .page-enter {
        animation: pageEnter 0.3s ease;
    }

    @keyframes pageEnter {
        from {
            opacity: 0;
            transform: translateX(20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* 骨架屏 */
    .skeleton {
        background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: skeleton-loading 1.5s infinite;
        border-radius: 8px;
    }

    @keyframes skeleton-loading {
        0% {
            background-position: 200% 0;
        }
        100% {
            background-position: -200% 0;
        }
    }

    .skeleton-card {
        height: 200px;
        border-radius: 16px;
        margin-bottom: 12px;
    }

    .skeleton-text {
        height: 14px;
        margin-bottom: 8px;
    }

    .skeleton-text.short {
        width: 60%;
    }

    /* 安全区域适配 */
    .safe-area-top {
        padding-top: env(safe-area-inset-top);
    }

    .safe-area-bottom {
        padding-bottom: env(safe-area-inset-bottom);
    }

    /* 隐藏滚动条但保留滚动功能 */
    .hide-scrollbar {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .hide-scrollbar::-webkit-scrollbar {
        display: none;
    }

    /* 点击反馈 */
    .tap-feedback {
        transition: transform 0.1s ease, opacity 0.1s ease;
    }

    .tap-feedback:active {
        transform: scale(0.97);
        opacity: 0.8;
    }

    /* 毛玻璃卡片增强 */
    .glass-card-mobile {
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.8);
        border-radius: 16px;
        box-shadow: 0 4px 24px rgba(31, 38, 135, 0.08);
    }

    /* 渐变文字 */
    .gradient-text {
        background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    /* 分隔线 */
    .divider {
        height: 1px;
        background: rgba(0, 0, 0, 0.08);
        margin: 12px 0;
    }

    /* 弹性布局工具类 */
    .flex-center {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .flex-between {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .flex-start {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .flex-end {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .flex-col {
        display: flex;
        flex-direction: column;
    }

    .flex-1 {
        flex: 1;
    }

    .gap-4 { gap: 4px; }
    .gap-8 { gap: 8px; }
    .gap-12 { gap: 12px; }
    .gap-16 { gap: 16px; }
    .gap-20 { gap: 20px; }

    /* 间距工具类 */
    .m-0 { margin: 0; }
    .m-4 { margin: 4px; }
    .m-8 { margin: 8px; }
    .m-12 { margin: 12px; }
    .m-16 { margin: 16px; }

    .mt-4 { margin-top: 4px; }
    .mt-8 { margin-top: 8px; }
    .mt-12 { margin-top: 12px; }
    .mt-16 { margin-top: 16px; }
    .mt-20 { margin-top: 20px; }
    .mt-24 { margin-top: 24px; }

    .mb-4 { margin-bottom: 4px; }
    .mb-8 { margin-bottom: 8px; }
    .mb-12 { margin-bottom: 12px; }
    .mb-16 { margin-bottom: 16px; }
    .mb-20 { margin-bottom: 20px; }
    .mb-24 { margin-bottom: 24px; }

    .ml-4 { margin-left: 4px; }
    .ml-8 { margin-left: 8px; }
    .ml-12 { margin-left: 12px; }
    .ml-16 { margin-left: 16px; }

    .mr-4 { margin-right: 4px; }
    .mr-8 { margin-right: 8px; }
    .mr-12 { margin-right: 12px; }
    .mr-16 { margin-right: 16px; }

    .p-0 { padding: 0; }
    .p-4 { padding: 4px; }
    .p-8 { padding: 8px; }
    .p-12 { padding: 12px; }
    .p-16 { padding: 16px; }
    .p-20 { padding: 20px; }

    .pt-4 { padding-top: 4px; }
    .pt-8 { padding-top: 8px; }
    .pt-12 { padding-top: 12px; }
    .pt-16 { padding-top: 16px; }
    .pt-20 { padding-top: 20px; }

    .pb-4 { padding-bottom: 4px; }
    .pb-8 { padding-bottom: 8px; }
    .pb-12 { padding-bottom: 12px; }
    .pb-16 { padding-bottom: 16px; }
    .pb-20 { padding-bottom: 20px; }

    .pl-4 { padding-left: 4px; }
    .pl-8 { padding-left: 8px; }
    .pl-12 { padding-left: 12px; }
    .pl-16 { padding-left: 16px; }

    .pr-4 { padding-right: 4px; }
    .pr-8 { padding-right: 8px; }
    .pr-12 { padding-right: 12px; }
    .pr-16 { padding-right: 16px; }

    /* 文字工具类 */
    .text-xs { font-size: 11px; }
    .text-sm { font-size: 13px; }
    .text-base { font-size: 15px; }
    .text-lg { font-size: 17px; }
    .text-xl { font-size: 20px; }
    .text-2xl { font-size: 24px; }

    .font-normal { font-weight: 400; }
    .font-medium { font-weight: 500; }
    .font-semibold { font-weight: 600; }
    .font-bold { font-weight: 700; }

    .text-left { text-align: left; }
    .text-center { text-align: center; }
    .text-right { text-align: right; }

    .text-primary { color: #007AFF; }
    .text-secondary { color: #86868b; }
    .text-success { color: #34C759; }
    .text-warning { color: #FF9500; }
    .text-error { color: #FF3B30; }
    .text-info { color: #5AC8FA; }

    /* 圆角工具类 */
    .rounded-sm { border-radius: 8px; }
    .rounded-md { border-radius: 12px; }
    .rounded-lg { border-radius: 16px; }
    .rounded-xl { border-radius: 20px; }
    .rounded-full { border-radius: 50%; }

    /* 阴影工具类 */
    .shadow-sm { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
    .shadow-md { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); }
    .shadow-lg { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08); }

    /* 溢出处理 */
    .overflow-hidden { overflow: hidden; }
    .overflow-auto { overflow: auto; }
    .overflow-scroll { overflow: scroll; }
    .truncate {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .line-clamp-2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .line-clamp-3 {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 定位 */
    .relative { position: relative; }
    .absolute { position: absolute; }
    .fixed { position: fixed; }
    .sticky { position: sticky; }

    .top-0 { top: 0; }
    .bottom-0 { bottom: 0; }
    .left-0 { left: 0; }
    .right-0 { right: 0; }

    .inset-0 {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
    }

    /* 显示隐藏 */
    .hidden { display: none; }
    .block { display: block; }
    .inline-block { display: inline-block; }
    .flex { display: flex; }
    .grid { display: grid; }

    /* 宽度高度 */
    .w-full { width: 100%; }
    .h-full { height: 100%; }
    .w-auto { width: auto; }
    .h-auto { height: auto; }

    /* 指针事件 */
    .pointer-events-none { pointer-events: none; }
    .pointer-events-auto { pointer-events: auto; }

    /* 用户选择 */
    .select-none { user-select: none; }
    .select-all { user-select: all; }
}

/* ============================================
   小屏手机优化 (480px以下)
   ============================================ */
@media (max-width: 480px) {
    .account-card .card-image {
        height: 160px;
    }

    .account-card .card-content {
        padding: 12px;
    }

    .account-card .card-title {
        font-size: 15px;
    }

    .account-card .price {
        font-size: 18px;
    }

    .banner-slider {
        height: 140px;
    }

    .banner-slide img {
        height: 140px;
    }

    .section-title {
        font-size: 17px;
    }

    .detail-gallery {
        height: 240px;
    }

    .detail-gallery img {
        height: 240px;
    }

    .detail-title {
        font-size: 18px;
    }

    .detail-price {
        font-size: 24px;
    }

    .user-menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .menu-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .menu-label {
        font-size: 11px;
    }

    .auth-logo {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }

    .auth-title {
        font-size: 22px;
    }

    .form-input {
        height: 44px;
        font-size: 14px;
    }

    .form-btn {
        height: 44px;
        font-size: 15px;
    }
}

/* ============================================
   平板优化 (768px - 1024px)
   ============================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .mobile-tab-bar {
        display: none;
    }

    .mobile-search-bar {
        display: none;
    }

    .header {
        display: block;
    }

    .account-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .main-container {
        padding-bottom: 0;
    }
}

/* ============================================
   iOS浏览器滑动修复 - 移动端专属
   ============================================ */

/* 完全禁止横向滑动 */
html, body {
    overflow-x: hidden !important;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

/* 防止页面左右晃动 */
body {
    position: relative;
    touch-action: pan-y;
    -webkit-touch-callout: none;
}

/* 确保极光背景不超出视口 */
.aurora-background, .aurora-blob {
    max-width: 100%;
    overflow: hidden;
}

/* 移动端主容器 */
.main-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* 防止卡片和列表横向溢出 */
.card, .account-card, .list-item {
    max-width: 100%;
    overflow: hidden;
}

/* 我的Tab头像样式 */
.tab-avatar-icon {
    overflow: hidden;
    border-radius: 50%;
}

.tab-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Tab栏头像样式 */
.tab-avatar-icon {
    overflow: hidden;
    border-radius: 50%;
}

.tab-avatar-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
