/* ============================
   客户中心全局样式
   ============================ */

:root {
    --c-primary: var(--secondary-color);
    --c-primary-light: var(--secondary-light);
    --c-accent: var(--primary-color);
    --c-accent-hover: var(--primary-dark);
    --c-bg: #f0f2f5;
    --c-white: #ffffff;
    --c-text: #2d3436;
    --c-text-light: #636e72;
    --c-border: #e1e5eb;
    --c-success: #00b894;
    --c-warning: #fdcb6;
    --c-danger: #e17055;
    --c-info: #0984e3;
    --sidebar-w: 250px;
    --header-h: 56px;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(0,0,0,.06);
    --shadow-hover: 0 6px 20px rgba(0,0,0,.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--c-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-accent-hover); }

/* ============================
   布局
   ============================ */
.customer-layout {
    display: flex;
    min-height: 100vh;
}

.customer-sidebar {
    width: var(--sidebar-w);
    background: linear-gradient(180deg, #6B4226 0%, #8B5E3C 100%);
    color: #fff;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0,0,0,.15);
    transition: transform .3s ease;
}

.customer-main {
    flex: 1;
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.customer-content {
    flex: 1;
    padding: 32px;
    width: 100%;
}

/* ============================
   侧边栏
   ============================ */
.sidebar-brand {
    height: var(--header-h);
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}

.sidebar-brand a {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .3px;
}

.sidebar-brand i { color: var(--c-accent); font-size: 1.3rem; }

.sidebar-menu {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
}

.sidebar-group-title {
    padding: 14px 20px 6px;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,.35);
    font-weight: 600;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: rgba(255,255,255,.7);
    font-size: .88rem;
    font-weight: 400;
    transition: all .2s;
    border-left: 3px solid transparent;
    margin: 2px 0;
}

.sidebar-menu a:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
}

.sidebar-menu a.active {
    background: rgba(255,255,255,.1);
    color: #fff;
    border-left-color: var(--c-accent);
    font-weight: 500;
}

.sidebar-menu a i { width: 20px; text-align: center; font-size: .9rem; opacity: .7; }
.sidebar-menu a:hover i,
.sidebar-menu a.active i { opacity: 1; }

.sidebar-user {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.sidebar-avatar {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--c-accent);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem;
    flex-shrink: 0;
}

.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-info .name { font-size: .85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-info .role { font-size: .7rem; color: rgba(255,255,255,.4); }

/* ============================
   顶部导航（移动端）
   ============================ */
.customer-topbar {
    height: var(--header-h);
    background: var(--c-white);
    border-bottom: 1px solid var(--c-border);
    display: none;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: var(--shadow);
}

.sidebar-toggle {
    background: none; border: none; font-size: 1.2rem; cursor: pointer;
    color: var(--c-text); width: 36px; height: 36px;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.sidebar-toggle:hover { background: var(--c-bg); }

/* ============================
   页面标题
   ============================ */
.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--c-text);
}

.page-title i { color: var(--c-accent); font-size: 1.3rem; }

/* ============================
   卡片
   ============================ */
.card {
    background: var(--c-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid rgba(0,0,0,.03);
    transition: box-shadow .2s;
}

.card:hover { box-shadow: var(--shadow-hover); }

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--c-border);
}

.card-header h3 { font-size: 1.05rem; font-weight: 600; color: var(--c-text); }

/* ============================
   统计卡片
   ============================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--c-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all .25s ease;
    border: 1px solid rgba(0,0,0,.03);
}

.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.stat-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-icon.blue   { background: #e3f2fd; color: #1565c0; }
.stat-icon.green  { background: #e8f5e9; color: #2e7d32; }
.stat-icon.orange { background: #fff3e0; color: #e65100; }
.stat-icon.red    { background: #fce4ec; color: #c62828; }

.stat-info h3 { font-size: 1.6rem; font-weight: 700; line-height: 1.2; color: var(--c-text); }
.stat-info p  { font-size: .8rem; color: var(--c-text-light); margin-top: 3px; }

/* ============================
   快捷操作
   ============================ */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.action-card {
    background: var(--c-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 20px;
    text-align: center;
    transition: all .25s ease;
    display: block;
    border: 1px solid rgba(0,0,0,.03);
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--c-accent);
}

.action-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff3e0, #ffe8d6);
    color: var(--c-accent);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 14px;
    transition: all .25s;
}

.action-card:hover .action-icon {
    background: var(--c-accent);
    color: #fff;
    transform: scale(1.05);
}

.action-card h3 { font-size: .95rem; font-weight: 600; margin-bottom: 4px; color: var(--c-text); }
.action-card p  { font-size: .78rem; color: var(--c-text-light); }

/* ============================
   表格
   ============================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}

.data-table th {
    background: var(--c-bg);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: .78rem;
    color: var(--c-text-light);
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 2px solid var(--c-border);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--c-border);
    vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8f9fb; }

/* ============================
   状态标签
   ============================ */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
}

.badge-pending   { background: #fff8e1; color: #f57f17; }
.badge-confirmed { background: #e3f2fd; color: #1565c0; }
.badge-progress  { background: #e8f5e9; color: #2e7d32; }
.badge-completed { background: #e8f5e9; color: #1b5e20; }
.badge-cancelled { background: #fce4ec; color: #c62828; }

/* ============================
   按钮
   ============================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 20px;
    border: none; border-radius: 8px;
    font-size: .88rem; font-weight: 500;
    cursor: pointer; transition: all .2s;
    text-decoration: none;
    line-height: 1.4;
}

.btn:active { transform: scale(.97); }

.btn-primary   { background: var(--c-accent); color: #fff; }
.btn-primary:hover { background: var(--c-accent-hover); color: #fff; transform: translateY(-1px); }

.btn-outline {
    background: transparent; color: var(--c-text);
    border: 1px solid var(--c-border);
}
.btn-outline:hover { background: var(--c-bg); border-color: var(--c-accent); color: var(--c-accent); }

.btn-sm { padding: 6px 14px; font-size: .8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; }
.w-100 { width: 100%; }

/* ============================
   表单
   ============================ */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--c-text);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--c-border);
    border-radius: 8px;
    font-size: .9rem;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
    color: var(--c-text);
}

.form-control:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(255,107,53,.12);
}

/* ============================
   空状态
   ============================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--c-text-light);
}

.empty-state i { font-size: 3rem; color: var(--c-border); margin-bottom: 16px; display: block; }
.empty-state p { font-size: 1rem; }
.empty-state a { font-weight: 500; }

/* ============================
   分页
   ============================ */
.pagination {
    display: flex; gap: 6px; justify-content: center; margin-top: 24px;
}

.pagination a,
.pagination strong {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: .85rem;
    border: 1px solid var(--c-border);
    background: #fff;
    color: var(--c-text);
    text-decoration: none;
    transition: all .2s;
}

.pagination a:hover { background: var(--c-bg); border-color: var(--c-accent); }
.pagination strong { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }

/* ============================
   页脚
   ============================ */
.customer-footer {
    text-align: center;
    padding: 20px;
    font-size: .78rem;
    color: var(--c-text-light);
    border-top: 1px solid var(--c-border);
    margin-top: auto;
    background: var(--c-white);
}

/* ============================
   欢迎横幅（dashboard）
   ============================ */
.customer-welcome {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--primary-color) 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 36px 32px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(192,69,21,.3);
}

.customer-welcome h1 { font-size: 1.6rem; margin-bottom: 8px; font-weight: 700; }
.customer-welcome p  { opacity: .8; font-size: .95rem; }

/* ============================
   登录/注册页
   ============================ */
.customer-auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--primary-color) 50%, var(--gradient-start) 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.customer-auth-container::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255,107,53,.08);
    top: -100px; right: -100px;
}

.customer-auth-container::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,107,53,.05);
    bottom: -50px; left: -50px;
}

.customer-auth-card {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    padding: 44px 40px;
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.customer-auth-card h2 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 28px;
    color: var(--secondary-color);
    font-weight: 700;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: .88rem;
    font-weight: 500;
}

.alert-error { background: #fce4ec; color: #c62828; border: 1px solid #f8bbd0; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }

.auth-links { text-align: center; margin-top: 20px; font-size: .88rem; color: var(--c-text-light); }
.auth-links a { color: var(--c-accent); font-weight: 600; }

.input-group { display: flex; gap: 10px; }
.input-group .form-control { flex: 1; }
.input-group .btn { flex-shrink: 0; white-space: nowrap; }

.form-hint { font-size: .8rem; margin-top: 6px; }
.form-actions { margin-top: 24px; }

/* ============================
   认证页品牌区域
   ============================ */
.auth-brand {
    text-align: center;
    margin-bottom: 28px;
}

.auth-brand i {
    font-size: 2.5rem;
    color: var(--c-accent);
}

.auth-brand h2 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-top: 8px;
    font-weight: 700;
}

.auth-brand p {
    font-size: 0.85rem;
    color: var(--c-text-light);
    margin-top: 4px;
}

/* ============================
   页面内容头部（标题+操作按钮）
   ============================ */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.content-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--c-text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.content-header h3 i { color: var(--c-accent); }

/* ============================
   订单列表卡片
   ============================ */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.order-card {
    background: var(--c-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 24px;
    transition: box-shadow .2s;
    border: 1px solid rgba(0,0,0,.03);
}
.order-card:hover { box-shadow: var(--shadow-hover); }
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--c-border);
}
.order-number { font-size: .9rem; font-weight: 600; color: var(--c-text); }
.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
}
.status-pending { background: #fff8e1; color: #f57f17; }
.status-confirmed { background: #e3f2fd; color: #1565c0; }
.status-in_progress { background: #f3e5f5; color: #7b1fa2; }
.status-completed { background: #e8f5e9; color: #2e7d32; }
.status-cancelled { background: #fce4ec; color: #c62828; }
.order-body { padding: 4px 0; }
.order-info p { font-size: .88rem; color: var(--c-text-light); margin-bottom: 6px; line-height: 1.5; }
.order-info p strong { color: var(--c-text); }
.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--c-border);
}
.order-time { font-size: .8rem; color: var(--c-text-light); }
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================
   页面标题栏（标题+按钮）
   ============================ */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.page-header h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--c-text);
}
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--c-accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    margin-left: 6px;
}

/* ============================
   空状态提示
   ============================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--c-text-light);
}
.empty-state p { font-size: .95rem; margin-bottom: 16px; }

/* ============================
   个人资料/表单卡片
   ============================ */
.profile-card {
    background: var(--c-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 30px;
    max-width: 680px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 6px;
}
.form-group .form-control,
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    font-size: .9rem;
    font-family: inherit;
    transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--c-accent);
    outline: none;
}

/* ============================
   订单详情页
   ============================ */
.detail-banner {
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 24px;
}
.detail-banner h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.detail-body { margin-bottom: 24px; }
.detail-section {
    background: var(--c-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 24px;
    margin-bottom: 16px;
}
.detail-section h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--c-border);
}
.detail-section p {
    font-size: .88rem;
    color: var(--c-text-light);
    margin-bottom: 6px;
    line-height: 1.6;
}
.detail-section p strong { color: var(--c-text); }

/* ============================
   订单跟踪页
   ============================ */
.tracking-banner {
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 24px;
    text-align: center;
}
.tracking-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 30px 0;
    padding: 0 10px;
}
.tracking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
    flex: 1;
}
.tracking-step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    background: #e0e0e0;
    color: #999;
}
.tracking-step-dot.active {
    background: var(--c-accent);
    color: #fff;
}
.tracking-step-label {
    font-size: .75rem;
    color: var(--c-text-light);
    text-align: center;
}
.tracking-step.active .tracking-step-label { color: var(--c-text); font-weight: 600; }

/* ============================
   投诉/评价卡片
   ============================ */
.complaint-card,
.review-card {
    background: var(--c-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px 28px;
    max-width: 680px;
}
.complaint-card h4,
.review-card h4 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 12px;
}
.complaint-card p,
.review-card p {
    font-size: .88rem;
    color: var(--c-text-light);
    margin-bottom: 6px;
}

/* ============================
   通知列表
   ============================ */
.notification-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.notification-item {
    background: var(--c-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.notification-item.unread {
    border-left: 3px solid var(--c-accent);
}
.notification-item i {
    color: var(--c-accent);
    font-size: 1.1rem;
    margin-top: 2px;
}
.notification-item .notif-content { flex: 1; }
.notification-item .notif-title { font-size: .9rem; font-weight: 600; color: var(--c-text); margin-bottom: 4px; }
.notification-item .notif-msg { font-size: .82rem; color: var(--c-text-light); line-height: 1.5; }
.notification-item .notif-time { font-size: .72rem; color: #aaa; margin-top: 4px; }

/* ============================
   地址卡片
   ============================ */
.address-card {
    background: var(--c-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 24px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.address-info { flex: 1; }
.address-info h4 { font-size: .95rem; font-weight: 600; margin-bottom: 6px; }
.address-info p { font-size: .85rem; color: var(--c-text-light); margin-bottom: 2px; }
.address-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: .72rem;
    font-weight: 600;
    background: var(--c-bg);
    color: var(--c-text-light);
    margin-right: 6px;
}
.address-tag.default { background: #e3f2fd; color: #1565c0; }
.address-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ============================
   客户中心统计容器
   ============================ */
.customer-stats { margin-bottom: 24px; }

/* ============================
   响应式 — 平板 (769px-1024px)
   ============================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .customer-content { padding: 24px 28px; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .actions-grid { grid-template-columns: repeat(4, 1fr); }
    .customer-welcome { padding: 28px 24px; }
    .customer-welcome h1 { font-size: 1.4rem; }
}

/* ============================
   响应式 — 手机 (≤768px)
   ============================ */
@media (max-width: 768px) {
    /* ★ 彻底重构：整个布局从横向flex改为纵向块级流 */
    .customer-layout {
        display: block !important;
        overflow-x: hidden;
    }

    /* 侧边栏 → 固定定位浮层（完全不占文档空间） */
    .customer-sidebar {
        position: fixed;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: var(--sidebar-w);
        transform: translateX(-100%);
        z-index: 9999;
        transition: transform .3s ease;
    }
    .customer-sidebar.open {
        transform: translateX(0);
    }

    /* 顶部栏 → 悬浮覆盖（固定在顶部，不挤内容） */
    .customer-topbar {
        display: flex;
        position: fixed;
        top: 0; left: 0; right: 0;
        width: 100%;
        z-index: 998;
        border-bottom: 1px solid var(--c-border);
        background: #fff;
        box-shadow: var(--shadow);
    }

    /* 主内容区：100%宽度 + 顶部留出导航栏高度 */
    .customer-main {
        margin-left: 0 !important;
        width: 100% !important;
        min-height: 100vh;
        padding-top: var(--header-h); /* 为悬浮顶栏留空间 */
    }

    /* 页脚也全宽 */
    .customer-footer {
        width: 100%;
    }

    .customer-content {
        padding: 16px 12px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .stat-card {
        padding: 16px 12px;
        gap: 10px;
    }
    .stat-icon {
        width: 40px; height: 40px;
        font-size: 1.1rem;
        border-radius: 10px;
    }
    .stat-info h3 { font-size: 1.3rem; }
    .stat-info p { font-size: .72rem; }
    
    .actions-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .action-card {
        padding: 20px 12px;
    }
    .action-icon {
        width: 44px; height: 44px;
        font-size: 1.4rem;
    }
    .action-card h3 { font-size: .85rem; }
    .action-card p { font-size: .72rem; }
    
    .customer-auth-card {
        padding: 32px 24px;
        max-width: 100%;
        margin: 0 12px;
    }
    .customer-welcome {
        padding: 24px 20px;
        border-radius: 12px;
    }
    .customer-welcome h1 { font-size: 1.25rem; }
    .customer-welcome p { font-size: .85rem; }
    
    .card {
        padding: 18px 14px;
        margin-bottom: 16px;
    }
    .card-header h3 { font-size: .95rem; }
    
    .page-title {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }
    
    /* 表格在手机端横向滚动 */
    .data-table {
        font-size: .82rem;
    }
    .data-table th {
        padding: 10px 10px;
        font-size: .72rem;
    }
    .data-table td {
        padding: 10px 10px;
    }
    
    /* 分页在小屏上的优化 */
    .pagination a, .pagination strong {
        min-width: 34px; height: 34px;
        font-size: .8rem;
    }
    
    /* 内容头部 */
    .content-header h3 { font-size: 1rem; }
    .content-header { flex-direction: column; align-items: flex-start; }
    
    /* 订单卡片 */
    .order-card { padding: 16px 14px; border-radius: 8px; }
    .order-header { flex-wrap: wrap; gap: 6px; padding-bottom: 10px; margin-bottom: 10px; }
    .order-number { font-size: .82rem; }
    .order-status { font-size: .72rem; padding: 3px 10px; }
    .order-info p { font-size: .82rem; margin-bottom: 4px; }
    .order-info p strong { min-width: 70px; display: inline-block; }
    .order-footer { flex-direction: column; gap: 10px; align-items: flex-start; padding-top: 10px; }
    .order-time { font-size: .76rem; }
    .order-actions { width: 100%; }
    .order-actions .btn { flex: 1; text-align: center; }
    
    /* ====== !important 覆盖页面内联样式 ====== */
    
    /* 订单详情页：双列网格→单列 */
    .detail-body { grid-template-columns: 1fr !important; gap: 16px !important; }
    
    /* 详情/跟踪页：标题行 flex→竖向 */
    .customer-content > div[style*="display:flex"]:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    
    /* 详情页 detail-banner 内部 flex→竖向 */
    .detail-banner div[style*="display:flex"] {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: flex-start !important;
    }
    .detail-banner div[style*="display:flex"] > div[style*="display:flex"] {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
    
    /* dashboard 未读通知条 flex→竖向 */
    .unread-notice {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: flex-start !important;
        padding: 14px 16px !important;
    }
    
    /* dashboard 订单列表内 flex→竖向 */
    .order-list div[style*="display:flex"],
    .order-item div[style*="display:flex"] {
        flex-direction: column !important;
        gap: 6px !important;
        align-items: flex-start !important;
    }
    .order-item div[style*="display:flex;gap:20px"] {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    
    /* 个人资料/表单卡片 */
    .profile-card { padding: 18px 14px !important; }
    .form-row { grid-template-columns: 1fr !important; gap: 0 !important; }
    
    /* 投诉/评价卡片 */
    .complaint-card, .review-card { padding: 18px 14px !important; }
    
    /* 地址卡片 flex→竖向 */
    .address-card { flex-direction: column !important; align-items: flex-start !important; }
    .address-actions { width: 100%; justify-content: flex-end; }
    
    /* 通知项 */
    .notification-item { padding: 14px 16px !important; }
    
    /* 跟踪步骤缩小 */
    .tracking-step-dot { width: 30px !important; height: 30px !important; font-size: .75rem !important; }
    .tracking-step-label { font-size: .68rem !important; }
    .tracking-banner { padding: 18px 16px !important; }
    .tracking-steps { margin: 20px 0 !important; }
    
    /* detail-section */
    .detail-section { padding: 16px 14px !important; }
    .detail-banner { padding: 18px 16px !important; }
    
    /* 页面标题 */
    .page-header h1 { font-size: 1.15rem !important; }
}

/* ============================
   响应式 — 小手机 (≤480px)
   ============================ */
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .actions-grid { grid-template-columns: 1fr 1fr; }
    .page-title { font-size: 1.1rem; }
    
    .stat-card {
        padding: 14px 12px;
    }
    .stat-icon {
        width: 36px; height: 36px;
        font-size: 1rem;
    }
    .stat-info h3 { font-size: 1.2rem; }
    
    .customer-auth-card {
        padding: 28px 20px;
        margin: 0;
        border-radius: 12px;
    }
    .auth-brand i { font-size: 2rem; }
    .auth-brand h2 { font-size: 1.2rem; }
    
    .customer-welcome {
        padding: 20px 16px;
    }
    .customer-welcome h1 { font-size: 1.1rem; }
    
    .card {
        padding: 14px 12px;
    }
    
    /* 订单卡片小屏优化 */
    .order-card { padding: 14px 12px; }
    .order-info p { font-size: .78rem; }
    .order-info p strong { min-width: 60px; }
    .order-actions { flex-direction: column; gap: 6px; }
    .order-actions .btn { width: 100%; }
    
    /* 小屏额外缩减 */
    .profile-card { padding: 14px 12px !important; }
    .complaint-card, .review-card { padding: 14px 12px !important; }
    .detail-section { padding: 14px 12px !important; }
    .detail-banner { padding: 14px 12px !important; }
    .tracking-banner { padding: 14px 12px !important; }
    .tracking-steps { padding: 0 !important; }
    .tracking-step-dot { width: 28px !important; height: 28px !important; font-size: .7rem !important; }
    .tracking-step-label { font-size: .62rem !important; }
}

/* ============================
   响应式 — 超小屏 (≤360px)
   ============================ */
@media (max-width: 360px) {
    .actions-grid { grid-template-columns: 1fr; }
    .customer-content { padding: 12px 8px; }
    .customer-auth-card { padding: 24px 16px; }
    .order-info p strong { display: block; min-width: auto; }
}
