/* ==========================================================================
   mall.css —— 代发车商城统一视觉（海鲜干货 · 高端深海系）
   设计基调：深海蓝主色 + 海金点缀 + 米白底 + 大圆角 + 柔和阴影
   多端适配：>=1200 宽屏 / 768-1199 平板 / <768 手机（底部导航 + 单列）
   ========================================================================== */

:root {
    --sea-900: #06263F;
    --sea-800: #0B2B45;
    --sea-700: #123E63;
    --sea-600: #1B5484;
    --sea-500: #2A7BAE;
    --aqua: #00A6A6;
    --gold: #C9A063;
    --gold-light: #E8D3A9;
    --ink: #17222E;
    --ink-2: #4A5A6A;
    --ink-3: #8A97A4;
    --line: #E6ECF2;
    --bg: #F5F8FA;
    --white: #FFFFFF;
    --danger: #E4573D;
    --success: #2FA36B;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 4px 20px rgba(11, 43, 69, 0.06);
    --shadow-hover: 0 12px 32px rgba(11, 43, 69, 0.14);
    --nav-h: 68px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
                 "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px; }

/* ============================ 顶部导航 ============================ */
.mall-header {
    background: linear-gradient(135deg, var(--sea-800) 0%, var(--sea-700) 100%);
    position: sticky; top: 0; z-index: 500;
    box-shadow: 0 2px 16px rgba(6, 38, 63, 0.18);
}
.mall-header .container {
    height: var(--nav-h);
    display: flex; align-items: center; gap: 24px;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 21px; font-weight: 700; color: #fff; letter-spacing: 1px;
    flex-shrink: 0;
}
.logo-mark {
    width: 38px; height: 38px; border-radius: 11px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--sea-800); font-weight: 800;
}
.logo-sub { font-size: 11px; color: rgba(255,255,255,.65); font-weight: 400; letter-spacing: 2px; }

.mall-nav { display: flex; gap: 4px; margin-left: 8px; }
.mall-nav a {
    padding: 9px 16px; border-radius: 10px; color: rgba(255,255,255,.82);
    font-size: 15px; font-weight: 500; transition: .18s;
}
.mall-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.mall-nav a.active { background: rgba(255,255,255,.18); color: #fff; }

/* 搜索框 */
.mall-search { flex: 1; max-width: 460px; position: relative; }
.mall-search input {
    width: 100%; height: 42px; border: none; border-radius: 21px;
    padding: 0 92px 0 20px; font-size: 14px; outline: none;
    background: rgba(255,255,255,.14); color: #fff;
    border: 1px solid rgba(255,255,255,.22);
}
.mall-search input::placeholder { color: rgba(255,255,255,.6); }
.mall-search input:focus { background: rgba(255,255,255,.22); }
.mall-search button {
    position: absolute; right: 4px; top: 4px; height: 34px; padding: 0 20px;
    border: none; border-radius: 17px; cursor: pointer;
    background: linear-gradient(135deg, var(--gold) 0%, #B98D4E 100%);
    color: #fff; font-size: 14px; font-weight: 600;
}

.mall-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.mall-actions a {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 10px; font-size: 14px;
    color: rgba(255,255,255,.88); transition: .18s; white-space: nowrap;
}
.mall-actions a:hover { background: rgba(255,255,255,.14); color: #fff; }
.cart-badge {
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--danger); color: #fff; font-size: 11px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #B98D4E 100%);
    color: #fff !important; font-weight: 600;
}

/* ============================ 首页 Hero ============================ */
.hero {
    position: relative; height: 420px; border-radius: var(--radius);
    overflow: hidden; margin: 24px 0 32px;
    background: linear-gradient(120deg, var(--sea-900), var(--sea-600));
}
.hero img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-text {
    position: absolute; left: 0; right: 0; top: 0; bottom: 0;
    display: flex; flex-direction: column; justify-content: center;
    padding: 0 64px; color: #fff;
}
.hero-text h1 {
    margin: 0 0 14px; font-size: 44px; font-weight: 800; letter-spacing: 2px;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-text p { margin: 0 0 26px; font-size: 17px; opacity: .92; max-width: 560px; }
.hero-text .hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-tag {
    padding: 6px 16px; border-radius: 20px; font-size: 13px;
    background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
    backdrop-filter: blur(4px);
}
.btn-hero {
    align-self: flex-start; padding: 14px 38px; border-radius: 30px;
    background: linear-gradient(135deg, var(--gold) 0%, #B98D4E 100%);
    color: #fff; font-size: 16px; font-weight: 700;
    box-shadow: 0 8px 24px rgba(201,160,99,.4);
}

/* ============================ 分类导航 ============================ */
.cat-bar { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; margin-bottom: 32px; }
.cat-item {
    background: var(--white); border-radius: var(--radius-sm); padding: 18px 8px;
    text-align: center; transition: .2s; box-shadow: var(--shadow); cursor: pointer;
}
.cat-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.cat-icon {
    width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(0,166,166,.12), rgba(42,123,174,.12));
    display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.cat-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.cat-count { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* ============================ 版块 ============================ */
.section { margin-bottom: 40px; }
.section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--line);
}
.section-head h2 {
    margin: 0; font-size: 24px; font-weight: 800; color: var(--sea-800);
    position: relative; padding-left: 16px;
}
.section-head h2::before {
    content: ''; position: absolute; left: 0; top: 6px; bottom: 6px;
    width: 5px; border-radius: 3px;
    background: linear-gradient(180deg, var(--gold), var(--aqua));
}
.section-head .more { font-size: 14px; color: var(--ink-3); }
.section-head .more:hover { color: var(--sea-600); }

/* ============================ 商品卡片 ============================ */
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.product-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    transition: .22s; box-shadow: var(--shadow); cursor: pointer; position: relative;
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.product-img {
    position: relative; width: 100%; padding-top: 100%; overflow: hidden;
    background: linear-gradient(135deg, #EEF3F7, #E2EAF1);
}
.product-img img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: .3s;
}
.product-card:hover .product-img img { transform: scale(1.07); }
.product-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700;
    background: linear-gradient(135deg, var(--gold), #B98D4E); color: #fff;
}
.product-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.product-title {
    font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px;
    line-height: 1.4; height: 42px; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.product-desc { font-size: 12px; color: var(--ink-3); height: 20px; overflow: hidden; margin-bottom: 8px; }
.product-price { display: flex; align-items: baseline; gap: 4px; margin-top: auto; }
.price-symbol { font-size: 14px; color: var(--danger); font-weight: 700; }
.price-value { font-size: 22px; color: var(--danger); font-weight: 800; line-height: 1; }
.price-unit { font-size: 12px; color: var(--ink-3); }
.product-meta {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line);
    font-size: 12px; color: var(--ink-3);
}
.shop-name { color: var(--sea-600); font-weight: 500; }

/* ============================ 店铺卡片 ============================ */
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.shop-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: .22s; cursor: pointer;
}
.shop-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.shop-banner { height: 96px; background: linear-gradient(135deg, var(--sea-700), var(--sea-500)); }
.shop-banner img { width: 100%; height: 100%; object-fit: cover; }
.shop-body { padding: 0 18px 18px; text-align: center; margin-top: -34px; }
.shop-avatar {
    width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 12px;
    background: var(--white); border: 3px solid var(--white);
    box-shadow: 0 4px 14px rgba(11,43,69,.16);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; overflow: hidden;
}
.shop-avatar img { width: 100%; height: 100%; object-fit: cover; }
.shop-title { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.shop-desc {
    font-size: 13px; color: var(--ink-3); height: 22px; overflow: hidden;
    white-space: nowrap; text-overflow: ellipsis; margin-bottom: 10px;
}
.shop-stats { display: flex; justify-content: center; gap: 20px; font-size: 12px; color: var(--ink-2); }
.shop-stats b { display: block; font-size: 16px; color: var(--sea-700); }

/* ============================ 筛选栏 ============================ */
.filter-bar {
    background: var(--white); border-radius: var(--radius); padding: 16px 20px;
    margin-bottom: 22px; box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-label { font-size: 13px; color: var(--ink-3); }
.filter-item {
    padding: 6px 14px; border-radius: 8px; font-size: 13px; cursor: pointer;
    background: #F1F5F9; color: var(--ink-2); transition: .16s;
}
.filter-item:hover { background: #E3EBF3; }
.filter-item.active { background: var(--sea-700); color: #fff; font-weight: 600; }
.filter-price { display: flex; align-items: center; gap: 6px; }
.filter-price input {
    width: 78px; height: 32px; border: 1px solid var(--line); border-radius: 8px;
    padding: 0 10px; font-size: 13px; outline: none;
}
.filter-price input:focus { border-color: var(--sea-500); }

/* ============================ 商品详情 ============================ */
.detail-wrap {
    background: var(--white); border-radius: var(--radius); padding: 28px;
    box-shadow: var(--shadow); display: grid; grid-template-columns: 440px 1fr; gap: 36px;
}
.detail-gallery {
    border-radius: var(--radius-sm); overflow: hidden; background: #F1F5F9;
}
.detail-gallery .main-img { width: 100%; padding-top: 100%; position: relative; }
.detail-gallery .main-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-title { font-size: 26px; font-weight: 800; color: var(--ink); margin: 0 0 10px; }
.detail-sub { font-size: 14px; color: var(--ink-3); margin-bottom: 20px; }
.price-box {
    background: linear-gradient(135deg, #FFF6E9, #FFF1DE);
    border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 22px;
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.price-box .now { font-size: 34px; font-weight: 800; color: var(--danger); line-height: 1; }
.price-box .now small { font-size: 18px; }
.price-box .origin { font-size: 14px; color: var(--ink-3); text-decoration: line-through; }

.spec-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.spec-item {
    padding: 9px 18px; border-radius: 10px; border: 2px solid var(--line);
    font-size: 14px; cursor: pointer; transition: .16s; background: var(--white);
}
.spec-item:hover { border-color: var(--sea-500); }
.spec-item.active { border-color: var(--sea-700); background: rgba(27,84,132,.06); color: var(--sea-700); font-weight: 600; }
.spec-item.disabled { opacity: .45; cursor: not-allowed; }

.qty-box { display: flex; align-items: center; gap: 0; margin-bottom: 24px; }
.qty-btn {
    width: 42px; height: 42px; border: 1px solid var(--line); background: var(--white);
    font-size: 20px; cursor: pointer; color: var(--ink-2);
}
.qty-btn:first-child { border-radius: 10px 0 0 10px; }
.qty-btn:last-child { border-radius: 0 10px 10px 0; }
.qty-input {
    width: 68px; height: 42px; border: 1px solid var(--line); border-left: none; border-right: none;
    text-align: center; font-size: 16px; font-weight: 600; outline: none;
}
.buy-actions { display: flex; gap: 14px; }
.btn {
    padding: 14px 34px; border-radius: 12px; border: none; cursor: pointer;
    font-size: 16px; font-weight: 700; transition: .18s; text-align: center;
}
.btn-primary { background: linear-gradient(135deg, var(--sea-700), var(--sea-500)); color: #fff; }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(27,84,132,.35); }
.btn-gold-solid { background: linear-gradient(135deg, var(--gold), #B98D4E); color: #fff; }
.btn-gold-solid:hover { box-shadow: 0 8px 22px rgba(201,160,99,.4); }
.btn-outline { background: var(--white); border: 2px solid var(--sea-700); color: var(--sea-700); }
.btn-outline:hover { background: var(--sea-700); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 40px; font-size: 17px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ============================ 购物车 / 结算 ============================ */
.cart-table {
    background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.cart-head {
    display: grid; grid-template-columns: 40px 1fr 160px 130px 120px 80px;
    padding: 16px 20px; background: #F7FAFC; font-size: 13px; color: var(--ink-2); font-weight: 600;
}
.cart-row {
    display: grid; grid-template-columns: 40px 1fr 160px 130px 120px 80px;
    padding: 18px 20px; border-top: 1px solid var(--line); align-items: center;
}
.cart-goods { display: flex; align-items: center; gap: 14px; }
.cart-goods img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; background: #F1F5F9; }
.cart-goods .name { font-size: 15px; font-weight: 600; }
.cart-goods .spec { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.cart-price { color: var(--danger); font-weight: 700; font-size: 16px; }
.cart-total {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px; background: #F7FAFC;
}
.cart-total .amount { font-size: 26px; color: var(--danger); font-weight: 800; }

.checkout-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; }
.panel {
    background: var(--white); border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow); margin-bottom: 20px;
}
.panel-title { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 16px; }
.addr-item {
    border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px;
    margin-bottom: 12px; cursor: pointer; transition: .16s;
}
.addr-item:hover { border-color: var(--sea-500); }
.addr-item.active { border-color: var(--sea-700); background: rgba(27,84,132,.05); }
.addr-item .who { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.addr-item .where { font-size: 13px; color: var(--ink-2); }
.summary-row {
    display: flex; justify-content: space-between; padding: 9px 0; font-size: 14px; color: var(--ink-2);
}
.summary-row.total {
    border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px;
    font-size: 16px; color: var(--ink); font-weight: 600;
}
.summary-row.total b { font-size: 26px; color: var(--danger); }

/* 收款码 */
.pay-channels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pay-channel {
    border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 14px;
    text-align: center; cursor: pointer; transition: .16s;
}
.pay-channel:hover { border-color: var(--sea-500); }
.pay-channel.active { border-color: var(--gold); background: rgba(201,160,99,.08); }
.pay-channel .pc-name { font-weight: 600; font-size: 14px; }
.remark-code {
    text-align: center; padding: 22px; background: linear-gradient(135deg, var(--sea-800), var(--sea-600));
    border-radius: var(--radius-sm); color: #fff; margin: 16px 0;
}
.remark-code .code { font-size: 40px; font-weight: 800; letter-spacing: 10px; color: var(--gold-light); }
.remark-code .tip { font-size: 12px; opacity: .8; margin-top: 8px; }

/* ============================ 会员中心 ============================ */
.member-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; }
.member-side { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.member-user { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.member-avatar {
    width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 12px; overflow: hidden;
    background: linear-gradient(135deg, var(--sea-600), var(--aqua));
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 30px;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-name { font-size: 17px; font-weight: 700; }
.member-level {
    display: inline-block; margin-top: 6px; padding: 3px 12px; border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), #B98D4E); color: #fff; font-size: 11px; font-weight: 700;
}
.member-menu a {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px;
    border-radius: 10px; font-size: 14px; color: var(--ink-2); transition: .16s; margin-bottom: 2px;
}
.member-menu a:hover { background: #F1F5F9; color: var(--sea-700); }
.member-menu a.active { background: rgba(27,84,132,.08); color: var(--sea-700); font-weight: 600; }
.member-menu .mi { width: 20px; text-align: center; font-size: 16px; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat-card {
    background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 16px;
}
.stat-icon {
    width: 52px; height: 52px; border-radius: 14px; font-size: 24px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(0,166,166,.14), rgba(42,123,174,.14));
}
.stat-value { font-size: 24px; font-weight: 800; color: var(--sea-800); line-height: 1.2; }
.stat-label { font-size: 12px; color: var(--ink-3); }

/* 订单卡片 */
.order-card {
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
    margin-bottom: 16px; overflow: hidden;
}
.order-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 20px; background: #F7FAFC; font-size: 13px; color: var(--ink-2);
}
.order-status { font-weight: 700; color: var(--gold); }
.order-shop { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 13px; }
.order-goods { display: flex; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line); }
.order-goods img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #F1F5F9; }
.order-foot { padding: 14px 20px; border-top: 1px solid var(--line); text-align: right; font-size: 14px; }
.order-foot b { font-size: 18px; color: var(--danger); }

/* ============================ 商家端 ============================ */
.seller-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
.seller-side { background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.seller-side h3 { margin: 0 0 14px; font-size: 15px; color: var(--sea-800); }
.seller-side a {
    display: block; padding: 11px 14px; border-radius: 10px; font-size: 14px;
    color: var(--ink-2); margin-bottom: 3px; transition: .16s;
}
.seller-side a:hover { background: #F1F5F9; color: var(--sea-700); }
.seller-side a.active { background: var(--sea-700); color: #fff; font-weight: 600; }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
    background: #F7FAFC; padding: 13px 14px; text-align: left;
    font-size: 13px; color: var(--ink-2); font-weight: 600; white-space: nowrap;
}
.data-table td { padding: 13px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.data-table tr:hover td { background: #FAFCFD; }
.table-scroll { overflow-x: auto; }

.status-tag {
    display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600;
}
.st-pending { background: #FFF4E5; color: #C77C16; }
.st-ship { background: #E8F2FF; color: #2A6BB0; }
.st-done { background: #E8F7EF; color: #2FA36B; }
.st-cancel { background: #F2F4F6; color: #8A97A4; }

/* ============================ 表单 ============================ */
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.form-row input, .form-row select, .form-row textarea {
    width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 10px;
    padding: 0 14px; font-size: 14px; outline: none; transition: .16s; background: var(--white);
    font-family: inherit;
}
.form-row textarea { height: auto; min-height: 90px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    border-color: var(--sea-500); box-shadow: 0 0 0 3px rgba(42,123,174,.1);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.form-inline { display: flex; gap: 10px; align-items: center; }
.form-inline input { flex: 1; }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; }
.alert-success { background: #E8F7EF; color: #2FA36B; border: 1px solid #BFE5D0; }
.alert-error { background: #FDECE9; color: var(--danger); border: 1px solid #F6CBC4; }
.alert-info { background: #E8F2FF; color: #2A6BB0; border: 1px solid #C5DCF5; }

.empty {
    text-align: center; padding: 70px 20px; color: var(--ink-3);
}
.empty .ei { font-size: 56px; margin-bottom: 14px; opacity: .5; }

/* 分页 */
.pager { display: flex; justify-content: center; gap: 8px; margin: 32px 0; flex-wrap: wrap; }
.pager a, .pager span {
    min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--white); color: var(--ink-2); font-size: 14px; box-shadow: var(--shadow);
}
.pager a:hover { background: var(--sea-700); color: #fff; }
.pager .current { background: var(--sea-700); color: #fff; font-weight: 700; }

/* ============================ 页脚 ============================ */
.mall-footer {
    background: var(--sea-900); color: rgba(255,255,255,.7);
    margin-top: 60px; padding: 48px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 32px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin: 0 0 16px; font-weight: 700; }
.footer-grid a { display: block; font-size: 13px; padding: 5px 0; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand p { font-size: 13px; line-height: 1.9; margin: 12px 0 0; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px;
    font-size: 12px; text-align: center; color: rgba(255,255,255,.45);
}

/* 移动端底部导航 */
.mobile-tabbar { display: none; }

/* ============================ 多端适配 ============================ */
@media (max-width: 1199px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .shop-grid { grid-template-columns: repeat(3, 1fr); }
    .cat-bar { grid-template-columns: repeat(6, 1fr); }
    .detail-wrap { grid-template-columns: 380px 1fr; gap: 26px; }
    .hero-text h1 { font-size: 36px; }
}

@media (max-width: 991px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .checkout-wrap { grid-template-columns: 1fr; }
    .member-wrap { grid-template-columns: 1fr; }
    .member-side { display: flex; gap: 8px; overflow-x: auto; padding: 14px; }
    .member-user { display: none; }
    .member-menu { display: flex; gap: 8px; }
    .member-menu a { white-space: nowrap; margin-bottom: 0; }
    .seller-wrap { grid-template-columns: 1fr; }
    .seller-side { display: flex; gap: 8px; overflow-x: auto; }
    .seller-side h3 { display: none; }
    .seller-side a { white-space: nowrap; margin-bottom: 0; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
    body { font-size: 14px; padding-bottom: 60px; }
    .container { padding: 0 14px; }
    .mall-header .container { height: auto; flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
    .logo { font-size: 18px; }
    .mall-nav { display: none; }
    .mall-search { order: 3; max-width: none; flex-basis: 100%; }
    .mall-actions { margin-left: auto; }
    .mall-actions .hide-sm { display: none; }

    .hero { height: 260px; margin: 14px 0 20px; border-radius: 14px; }
    .hero-text { padding: 0 24px; }
    .hero-text h1 { font-size: 26px; }
    .hero-text p { font-size: 14px; margin-bottom: 16px; }
    .btn-hero { padding: 11px 26px; font-size: 14px; }

    .cat-bar { grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
    .cat-item { padding: 12px 4px; }
    .cat-icon { width: 40px; height: 40px; font-size: 20px; }
    .cat-name { font-size: 12px; }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card { border-radius: 14px; }
    .product-body { padding: 10px 12px 12px; }
    .product-title { font-size: 13px; height: 36px; }
    .price-value { font-size: 18px; }
    .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .section-head h2 { font-size: 19px; }
    .section { margin-bottom: 28px; }

    .detail-wrap { grid-template-columns: 1fr; padding: 14px; gap: 18px; }
    .detail-title { font-size: 20px; }
    .price-box .now { font-size: 28px; }
    .buy-actions { gap: 10px; }
    .btn { padding: 12px 18px; font-size: 15px; flex: 1; }

    .cart-head { display: none; }
    .cart-row {
        grid-template-columns: 1fr auto; grid-template-areas: "goods goods" "price qty" ". del";
        gap: 10px; padding: 14px;
    }
    .cart-row .cart-goods { grid-area: goods; }
    .cart-row .cart-price { grid-area: price; }
    .cart-row .cart-qty { grid-area: qty; }
    .cart-row .cart-del { grid-area: del; text-align: right; }
    .cart-total { flex-direction: column; gap: 12px; align-items: stretch; }
    .cart-total .amount { font-size: 22px; }

    .stat-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 14px; gap: 10px; }
    .stat-icon { width: 42px; height: 42px; font-size: 20px; }
    .stat-value { font-size: 19px; }

    .panel { padding: 16px; }
    .pay-channels { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .order-goods { padding: 12px 14px; }

    .footer-grid { grid-template-columns: 1fr; gap: 22px; margin-bottom: 22px; }
    .mall-footer { padding: 30px 0 18px; margin-top: 36px; }

    /* 移动端底部导航 */
    .mobile-tabbar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
        background: var(--white); border-top: 1px solid var(--line);
        box-shadow: 0 -2px 14px rgba(11,43,69,.08);
    }
    .mobile-tabbar a {
        flex: 1; padding: 8px 0 7px; text-align: center; font-size: 11px; color: var(--ink-3);
        display: flex; flex-direction: column; align-items: center; gap: 3px;
    }
    .mobile-tabbar a .ti { font-size: 20px; }
    .mobile-tabbar a.active { color: var(--sea-700); font-weight: 700; }
}
