/* ============================================
   Tab 栏 SVG 图标风格（追加到 style.css 末尾）
   ============================================ */

/* ---- Tab 栏 Apple Glassmorphism ---- */
.tab-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--tab-height);
    background: var(--glass-bg-strong, rgba(255,255,255,0.18));
    backdrop-filter: blur(var(--glass-blur, 40px)) saturate(var(--glass-saturated, 180%)) brightness(1.1);
    -webkit-backdrop-filter: blur(var(--glass-blur, 40px)) saturate(var(--glass-saturated, 180%)) brightness(1.1);
    display: flex;
    border-top: 1px solid var(--glass-border, rgba(255,255,255,0.30));
    box-shadow: 0 -4px 30px rgba(0,0,0,0.08);
    z-index: 200;
}

.tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: rgba(60, 60, 67, 0.6);
    font-size: 10px;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.tab.active { color: var(--primary); }
.tab:active { opacity: 0.7; }

.tab svg {
    width: 24px; height: 24px;
    fill: rgba(60, 60, 67, 0.55);
    stroke: none;
    transition: fill 0.2s ease, transform 0.2s ease;
}

.tab.active svg {
    fill: var(--primary);
    transform: scale(1.08);
}

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

/* 消息红点 */
.tab-dot {
    position: absolute;
    top: 6px; right: calc(50% - 18px);
    width: 7px; height: 7px;
    background: #FF4444;
    border-radius: 50%;
    border: 1.5px solid #fff;
}

/* ============================================
   订单页
   ============================================ */
.order-page-header {
    background: #fff;
    padding: 14px 16px 0;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
}

.order-page-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.order-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.order-tabs::-webkit-scrollbar { display: none; }

.order-tab-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-sub);
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.order-tab-btn.active {
    color: var(--primary);
    font-weight: 600;
    border-bottom-color: var(--primary);
}

.order-content { padding: 12px; }

.order-card {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 10px;
    border-bottom: 1px solid var(--border);
}

.order-store {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.order-store-icon { font-size: 16px; }

.order-status {
    font-size: 13px;
    font-weight: 600;
}
.order-status.pending { color: #FF9500; }
.order-status.delivering { color: #007AFF; }
.order-status.completed { color: #4CAF50; }
.order-status.cancelled { color: #999; }
.order-status.refund { color: #FF4444; }

.order-items {
    padding: 10px 14px;
}

.order-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}
.order-item-row:last-child { border-bottom: none; }

.order-item-img {
    width: 52px; height: 52px;
    border-radius: 8px;
    background: #F5F5F5;
    object-fit: cover;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.order-item-info { flex: 1; min-width: 0; }
.order-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.order-item-spec { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.order-item-price-qty {
    text-align: right;
    flex-shrink: 0;
}
.order-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.order-item-qty {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.order-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 12px;
    border-top: 1px solid var(--border);
}

.order-total-wrap { font-size: 12px; color: var(--text-sub); }
.order-total-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}
.order-total-price span { font-size: 12px; font-weight: 400; color: var(--text-sub); }

.order-actions { display: flex; gap: 8px; }

.btn-order-action {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    border: 0.5px solid rgba(120,120,128,0.2);
    background: rgba(120,120,128,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #555;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-order-action:hover {
    background: rgba(120,120,128,0.14);
}

.btn-order-action.primary {
    background: #007AFF;
    border-color: #007AFF;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,122,255,0.3),
                inset 0 0.5px 0 rgba(255,255,255,0.25);
}

.btn-order-action.primary:hover {
    background: #0A84FF;
    box-shadow: 0 4px 14px rgba(0,122,255,0.4);
}

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

.order-empty {
    text-align: center;
    padding: 60px 0 40px;
    color: var(--text-muted);
}
.order-empty-icon { font-size: 52px; margin-bottom: 12px; }
.order-empty-text { font-size: 14px; }

/* ============================================
   消息页
   ============================================ */
.msg-page-header {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    position: sticky;
    top: 0; z-index: 50;
    border-bottom: 1px solid var(--border);
}

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

.msg-edit-btn {
    font-size: 14px;
    color: var(--primary);
    cursor: pointer;
}

/* 通知横幅 */
.msg-notice-card {
    margin: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FF6B35, #FF8C42);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

.msg-notice-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.msg-notice-content { flex: 1; }
.msg-notice-title { font-size: 15px; font-weight: 700; color: #fff; }
.msg-notice-sub { font-size: 13px; color: rgba(255,255,255,0.95); margin-top: 2px; }

.msg-notice-badge {
    background: #fff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

/* 消息分组标题 */
.msg-section-title {
    font-size: 12px;
    color: var(--text-muted);
    padding: 12px 16px 6px;
    font-weight: 500;
}

/* 消息列表 */
.msg-list { background: #fff; }

.msg-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    position: relative;
    transition: background 0.15s;
}

.msg-item:active { background: #f9f9f9; }
.msg-item:last-child { border-bottom: none; }

.msg-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    position: relative;
}

.msg-avatar-dot {
    position: absolute;
    top: 0; right: 0;
    width: 10px; height: 10px;
    background: #FF4444;
    border-radius: 50%;
    border: 2px solid #fff;
}

.msg-body { flex: 1; min-width: 0; }
.msg-name { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.msg-preview {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

.msg-time { font-size: 11px; color: var(--text-muted); }
.msg-unread {
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-weight: 600;
}

/* 情侣订单通知气泡 */
.couple-notice {
    margin: 12px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    border-left: 4px solid #FF6B35;
}

.couple-notice-header {
    background: var(--primary-bg);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.couple-notice-body {
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.6;
}

.couple-notice-footer {
    display: flex;
    gap: 8px;
    padding: 0 14px 12px;
}

.btn-couple-accept {
    flex: 1;
    padding: 8px;
    background: #34C759;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    box-shadow: 0 2px 8px rgba(52,199,89,0.3),
                inset 0 0.5px 0 rgba(255,255,255,0.25);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-couple-accept:hover {
    background: #30D158;
    box-shadow: 0 4px 14px rgba(52,199,89,0.4);
}

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

.btn-couple-reject {
    padding: 8px 16px;
    background: rgba(120,120,128,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #888;
    border: 0.5px solid rgba(120,120,128,0.2);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-couple-reject:hover {
    background: rgba(120,120,128,0.14);
    color: #555;
}

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

/* ============================================
   发现页
   ============================================ */
.discover-header {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    position: sticky;
    top: 0; z-index: 50;
    border-bottom: 1px solid var(--border);
}

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

.discover-search-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
}

.discover-content { padding-bottom: 12px; }

/* 活动 Banner */
.discover-banner {
    margin: 12px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, #FF6B35, #FF8C42);
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 4px 16px rgba(255,107,53,0.3);
}

.discover-banner-text {
    color: #fff;
}
.discover-banner-text h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.discover-banner-text p { font-size: 13px; opacity: 0.9; }

.discover-banner-btn {
    margin-left: auto;
    background: #fff;
    color: #FF6B35;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    box-shadow: 0 2px 8px rgba(255,107,53,0.25),
                inset 0 0.5px 0 rgba(255,255,255,0.6);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.discover-banner-btn:hover {
    background: #FFF5F0;
    box-shadow: 0 4px 14px rgba(255,107,53,0.35);
}

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

/* 快捷入口行 */
.discover-quick {
    display: flex;
    gap: 10px;
    padding: 0 12px 12px;
    overflow-x: auto;
    scrollbar-width: none;
}
.discover-quick::-webkit-scrollbar { display: none; }

.discover-quick-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    min-width: 60px;
}

.discover-quick-icon {
    width: 50px; height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.discover-quick-label { font-size: 11px; color: var(--text-sub); text-align: center; }

/* 榜单卡片 */
.discover-section {
    margin: 0 12px 14px;
}

.discover-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.discover-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.discover-section-more {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 2px;
}

/* 水平滚动卡片 */
.discover-scroll-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.discover-scroll-list::-webkit-scrollbar { display: none; }

.discover-restaurant-card {
    flex-shrink: 0;
    width: 160px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
}

.discover-restaurant-img {
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, #f5f5f5, #eee);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    position: relative;
}

.discover-restaurant-rank {
    position: absolute;
    top: 6px; left: 6px;
    background: rgba(0,0,0,0.55);
    color: #FFD700;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
}
.rank-1 { background: #FF4444; color: #fff; }
.rank-2 { background: #FF9500; color: #fff; }
.rank-3 { background: #FF6B35; color: #fff; }

.discover-restaurant-info {
    padding: 8px 10px 10px;
}
.discover-restaurant-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.discover-restaurant-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.discover-restaurant-rating { color: #FF9500; font-weight: 600; }

/* 活动列表 */
.activity-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    cursor: pointer;
}

.activity-card-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.activity-card-body { flex: 1; min-width: 0; }
.activity-card-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.activity-card-desc { font-size: 12px; color: var(--text-sub); margin-bottom: 6px; line-height: 1.4; }
.activity-card-tag {
    display: inline-block;
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 8px;
}
.activity-card-tag.green {
    background: #EFF8F0;
    color: #4CAF50;
}
.activity-card-tag.blue {
    background: #EBF5FF;
    color: #007AFF;
}

.activity-card-arrow {
    font-size: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* ============================================
   我的页面
   ============================================ */
.profile-page { background: var(--bg); }

.profile-hero {
    background: linear-gradient(160deg, var(--primary) 0%, #FF8C42 100%);
    padding: 20px 16px 30px;
    position: relative;
    overflow: hidden;
}

.profile-hero::after {
    content: '';
    position: absolute;
    bottom: -20px; left: 0; right: 0;
    height: 40px;
    background: var(--bg);
    border-radius: 50% 50% 0 0 / 20px 20px 0 0;
}

.profile-user-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.profile-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
    cursor: pointer;
}

.profile-user-info { flex: 1; min-width: 0; }
.profile-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.profile-phone {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

.profile-vip-badge {
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.profile-vip-text {
    font-size: 12px;
    color: #fff;
    font-weight: 600;
}
.profile-vip-arrow {
    font-size: 10px;
    color: rgba(255,255,255,0.7);
}

/* 积分卡 */
.profile-stats-row {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 12px 0;
    backdrop-filter: blur(4px);
}

.profile-stat-item {
    flex: 1;
    text-align: center;
    position: relative;
}
.profile-stat-item + .profile-stat-item::before {
    content: '';
    position: absolute;
    left: 0; top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,0.3);
}

.profile-stat-num {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.profile-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    margin-top: 4px;
}

/* 订单快捷 4宫格 */
.profile-orders-card {
    margin: 12px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.profile-orders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}
.profile-orders-title {
    font-size: 15px;
    font-weight: 700;
}
.profile-orders-all {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 3px;
}

.profile-orders-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.profile-order-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 14px 0;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}
.profile-order-type:active { background: #f9f9f9; }

.profile-order-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    position: relative;
}

.profile-order-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: #FF4444;
    color: #fff;
    font-size: 9px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    font-weight: 700;
    border: 1.5px solid #fff;
}

.profile-order-label { font-size: 12px; color: var(--text-sub); }

/* 服务卡片 */
.profile-service-card {
    margin: 0 12px 12px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.profile-service-title {
    font-size: 15px;
    font-weight: 700;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}

.profile-service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 6px 0 8px;
}

.profile-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}
.profile-service-item:active { background: #f9f9f9; }

.profile-service-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.profile-service-label { font-size: 11px; color: var(--text-sub); }

/* 菜单列表 */
.profile-menu-card {
    margin: 0 12px 12px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s;
}
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:active { background: #f9f9f9; }

.profile-menu-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.profile-menu-label { flex: 1; font-size: 15px; }
.profile-menu-sub { font-size: 12px; color: var(--text-muted); margin-right: 4px; }
.profile-menu-arrow { font-size: 14px; color: #ccc; }

/* 登出按钮 */
.btn-logout {
    display: block;
    width: calc(100% - 24px);
    margin: 0 12px 20px;
    padding: 13px;
    background: #fff;
    color: #FF4444;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.btn-logout:active { opacity: 0.8; }

/* 通用页面 body 不要额外底部内边距（只有tab高度） */
.page-body {
    padding-bottom: calc(var(--tab-height) + 8px);
}