/* 邻豆豆 - 移动端风格 CSS（红橙色主题） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    background: #f5f5f5;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 移动端容器（模拟手机视口） */
.mobile-app {
    max-width: 480px;
    margin: 0 auto;
    background: #f5f5f5;
    min-height: 100vh;
    position: relative;
    padding-bottom: 80px; /* 底部 tabbar 留位 */
}

/* 顶部标题栏 */
.header {
    background: #ff7820;
    color: #fff;
    padding: 14px 16px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(255, 120, 32, 0.2);
    position: relative;
}

.header .back {
    position: absolute;
    left: 16px;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
}

/* ========== 广告位（4 处标准化预留，可灵活运营） ========== */

/*
 * 广告位置                 尺寸           用途
 * 首页顶部轮播广告          460 * 120px   大型活动、平台活动、商家置顶推广（多图轮播、点击跳转）
 * 首页中部横幅广告          460 * 80px    团购优惠、限时满减、优惠券活动
 * 全局右侧悬浮竖版广告      80 * 300px    本地商家、家政、租赁长期广告（常驻悬浮）
 * 个人中心底部广告          460 * 70px    本地门店、二手租赁推广
 * 宽度在移动端容器内自适应：最大 460px，小屏时自动占满可用宽度
 */

/* 通用广告容器 —— 移动端最大 460px */
.ad-slot {
    max-width: 460px;
    width: calc(100% - 20px);
    margin: 10px auto;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
}

/* 广告位1：首页顶部轮播广告 460 * 120px */
.ad-top {
    height: 120px;
    background: #eeeeee;
    border: 1px dashed #ff4444;
    border-radius: 8px;
    color: #ff4444;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    display: block;
}

.ad-top .slide-track {
    position: absolute;
    inset: 0;
}

.ad-top .slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ad-top .slide.active { opacity: 1; }
.ad-top .slide-1 { background: linear-gradient(135deg, #ff7820, #ff4444); }
.ad-top .slide-2 { background: linear-gradient(135deg, #667eea, #764ba2); }
.ad-top .slide-3 { background: linear-gradient(135deg, #f6d365, #fda085); }

.ad-top .dots {
    position: absolute;
    bottom: 8px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}
.ad-top .dots span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
}
.ad-top .dots span.active {
    width: 18px; border-radius: 3px; background: #fff;
}

/* 广告位2：首页中部横幅广告 460 * 80px */
.ad-banner {
    height: 80px;
    background: #f0f0f0;
    border: 1px dashed #2288ff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2288ff;
    font-size: 14px;
    margin-top: 15px;
}

/* 广告位3：全局右侧悬浮竖版广告 80 * 300px */
.ad-sidebar {
    width: 80px;
    height: 300px;
    position: fixed;
    right: 5px;
    top: 200px;
    background: #f8f8f8;
    border: 1px dashed #9922ff;
    border-radius: 8px;
    font-size: 12px;
    color: #9922ff;
    display: flex;
    writing-mode: vertical-lr;
    align-items: center;
    justify-content: center;
    z-index: 200;
    cursor: pointer;
    max-width: none; /* 悬浮广告尺寸固定，不跟随移动端缩放 */
    width: 80px;
    margin: 0;
}

/* 广告位4：个人中心 / 订单页底部横幅广告 460 * 70px */
.ad-bottom {
    height: 70px;
    background: #f2f2f2;
    border: 1px dashed #00aa66;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00aa66;
    font-size: 14px;
    margin-top: 20px;
}

/* ========== 卡片 / 列表 ========== */

.card {
    background: #fff;
    margin: 10px 10px;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.card h3 {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.service-item {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

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

.service-img {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff9966, #ff5e62);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    flex-shrink: 0;
}

.service-img.type-rent { background: linear-gradient(135deg, #667eea, #764ba2); }
.service-img.type-group { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.service-img.type-coupon { background: linear-gradient(135deg, #fa709a, #fee140); }
.service-img.type-after { background: linear-gradient(135deg, #a78bfa, #7c3aed); }

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

.service-info .title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-info .desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

.price {
    color: #ff4444;
    font-weight: bold;
    font-size: 15px;
}

.btn-orange {
    background: #ff7820;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-orange:active {
    opacity: 0.8;
}

.btn-outline {
    background: #fff;
    color: #ff7820;
    border: 1px solid #ff7820;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 6px;
}

.btn-big {
    display: block;
    width: calc(100% - 20px);
    margin: 12px 10px;
    padding: 12px;
    font-size: 15px;
    text-align: center;
    background: #ff7820;
    color: #fff;
    border: none;
    border-radius: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 120, 32, 0.3);
}

/* 顶部功能按钮区 */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 10px;
    background: #fff;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.menu-grid .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 4px;
    border-radius: 8px;
    transition: background 0.2s;
}

.menu-grid .item:active { background: #fafafa; }

.menu-grid .icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff1e6;
    color: #ff7820;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.menu-grid .label {
    font-size: 12px;
    color: #555;
}

/* 订单状态标签 */
.order-status {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #fff7e6;
    color: #fa8c16;
}

.order-status.ok { background: #f6ffed; color: #52c41a; }
.order-status.danger { background: #fff1f0; color: #ff4d4f; }
.order-status.gray { background: #f0f0f0; color: #666; }

/* ========== 底部 tabbar ========== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 60px;
    background: #fff;
    display: flex;
    text-align: center;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 99;
}

.nav-item {
    flex: 1;
    color: #666;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
}

.nav-item .ico {
    font-size: 20px;
}

.nav-item.active {
    color: #ff7820;
    font-weight: bold;
}

/* ========== 用户卡片 ========== */

.user-card {
    background: linear-gradient(135deg, #ff9a44, #ff5e62);
    margin: 10px;
    border-radius: 12px;
    padding: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 14px rgba(255, 94, 98, 0.2);
}

.user-card .avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.user-card .name {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 4px;
}

.user-card .tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 6px;
}

.user-card .phone {
    font-size: 12px;
    opacity: 0.9;
}

/* 钱包大数字 */
.wallet-big {
    background: linear-gradient(135deg, #ff9a44, #ff5e62);
    margin: 10px;
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 94, 98, 0.25);
}

.wallet-big .label { font-size: 13px; opacity: 0.9; }
.wallet-big .amount { font-size: 28px; font-weight: bold; margin: 6px 0; }
.wallet-big .small { font-size: 12px; opacity: 0.85; }

.wallet-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 10px;
}

.wallet-row .box {
    background: #fff;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.wallet-row .box .num {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.wallet-row .box .num.danger { color: #ff4444; }
.wallet-row .box .num.ok { color: #52c41a; }

.wallet-row .box .lbl {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* 功能菜单列表（我的） */
.menu-list .row {
    background: #fff;
    padding: 14px 16px;
    margin: 0 10px 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

.menu-list .row .left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-list .row .ico {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #fff1e6;
    color: #ff7820;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.menu-list .row .ico.blue { background: #e6f7ff; color: #1890ff; }
.menu-list .row .ico.green { background: #f6ffed; color: #52c41a; }
.menu-list .row .ico.purple { background: #f9f0ff; color: #722ed1; }
.menu-list .row .ico.orange { background: #fff7e6; color: #fa8c16; }

.menu-list .row .text { font-size: 14px; }
.menu-list .row .arrow { color: #ccc; font-size: 14px; }

/* 表单 */
.form-group {
    margin: 10px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    background: #fafafa;
    outline: none;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #ff7820;
    background: #fff;
}

/* Tab 切换 */
.tabs {
    background: #fff;
    display: flex;
    padding: 0 12px;
    gap: 14px;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.tabs .tab {
    padding: 12px 4px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.tabs .tab.active {
    color: #ff7820;
    font-weight: bold;
}

.tabs .tab.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    width: 22px;
    height: 3px;
    background: #ff7820;
    border-radius: 2px;
}

/* 公告条 */
.notice-bar {
    margin: 10px;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    padding: 10px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #613400;
}

.notice-bar .ico {
    color: #fa8c16;
    font-weight: bold;
}

/* Toast */
.toast {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.toast.show { opacity: 1; }

/* 空状态 */
.empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 13px;
}

.empty .ico {
    font-size: 48px;
    opacity: 0.4;
    margin-bottom: 10px;
}

/* 轮播图（首页） */
.banner {
    position: relative;
    margin: 10px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.banner .slides { height: 100%; position: relative; }

.banner .slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.banner .slide.active { opacity: 1; }
.banner .slide-1 { background: linear-gradient(135deg, #ff9a44, #ff5e62); }
.banner .slide-2 { background: linear-gradient(135deg, #667eea, #764ba2); }
.banner .slide-3 { background: linear-gradient(135deg, #f6d365, #fda085); }

.banner .dots {
    position: absolute;
    bottom: 8px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.banner .dots span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
}

.banner .dots span.active {
    width: 18px; border-radius: 3px; background: #fff;
}

/* 部署说明页样式 */
.deploy {
    padding: 16px;
    color: #333;
}

.deploy h2 {
    color: #ff7820;
    margin: 14px 0 8px;
    font-size: 16px;
    border-left: 3px solid #ff7820;
    padding-left: 10px;
}

.deploy pre {
    background: #2d2d2d;
    color: #f8c555;
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
    overflow-x: auto;
    margin: 8px 0;
}

.deploy code {
    background: #fff7e6;
    color: #d46b08;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.deploy ul {
    padding-left: 22px;
    margin-bottom: 10px;
}

.deploy li {
    margin-bottom: 4px;
}


/* ========== ���λ������ֲ���������� ========== */
.ad-top .slide { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 12px 16px; color: #fff; }
.sl-title { font-size: 16px; font-weight: bold; }
.sl-sub { font-size: 12px; opacity: 0.92; margin-top: 4px; }
.sl-price { font-size: 18px; font-weight: bold; margin-top: 6px; color: #ffffcc; }
.sl-left { flex: 1; }
.sl-badge {
    position: absolute; top: 8px; right: 10px;
    background: rgba(255,255,255,0.88); color: #ff4444;
    font-size: 11px; padding: 2px 8px; border-radius: 10px;
}

/* �в���� */
.ad-banner { display: flex; justify-content: space-between; align-items: center; padding: 0 16px; }
.ad-banner .bn-left { display: flex; align-items: center; gap: 8px; }
.ad-banner .bn-tag {
    background: #ff7820; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px;
}
.ad-banner .bn-title { font-size: 14px; font-weight: bold; }
.ad-banner .bn-go { font-size: 12px; color: #999; }

/* ������ */
.ad-sidebar { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 6px; text-align: center; gap: 4px; }
.ad-sidebar .sb-tag { background: rgba(153, 34, 255, 0.12); color: #9922ff; font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.ad-sidebar .sb-title { font-size: 13px; color: #9922ff; font-weight: bold; }
.ad-sidebar .sb-sub { font-size: 11px; color: #666; }
.ad-sidebar .sb-btn { font-size: 11px; color: #9922ff; border: 1px solid #9922ff; border-radius: 10px; padding: 2px 8px; }

/* �ײ�������λ */
.ad-bottom { display: flex; justify-content: space-between; align-items: center; }

/* ========== ���������� ========== */
.modal {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55); z-index: 999;
    display: flex; align-items: center; justify-content: center;
    max-width: 480px; margin: 0 auto;
}
.modal-box {
    width: 88%; max-height: 82vh; overflow-y: auto;
    background: #fff; border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; border-bottom: 1px solid #f0f0f0;
    font-size: 15px; font-weight: bold; color: #333;
}
.modal-header .close { color: #999; cursor: pointer; font-size: 18px; }
.modal-body { padding: 12px 16px; }
.modal-footer {
    display: flex; gap: 10px; justify-content: flex-end;
    padding: 10px 16px; border-top: 1px solid #f0f0f0;
}
.modal-footer .btn-orange, .modal-footer .btn-outline {
    padding: 6px 14px; border-radius: 6px;
}

/* ����״̬���� */
.order-status {
    background: #fff7e6; color: #fa8c16; font-size: 11px;
    padding: 2px 8px; border-radius: 10px; margin-left: 6px;
}
.order-status.ok { background: #f6ffed; color: #52c41a; }
