/* ============================================================
   VietFinder Mall · 前台视觉系统
   淘宝黄主色 + 大圆角 + 柔和阴影
   ============================================================ */

:root {
    --brand: #ff5000;
    --brand-2: #ff9000;
    --brand-soft: #fff1e6;
    --brand-line: #ffe2cc;
    --ink: #201a16;
    --ink-2: #5f554d;
    --muted: #9a8f86;
    --bg: #fffaf5;
    --card: #ffffff;
    --line: #f2e7dd;
    --ok: #16a34a;
    --danger: #e11d48;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 14px 40px rgba(255, 80, 0, .10);
    --shadow-sm: 0 6px 18px rgba(32, 26, 22, .06);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 14px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; display: block; border: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: 14px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 12px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.clearfix::after { content: ""; display: table; clear: both; }
.hide { display: none !important; }

/* ---------------- 顶部信息条 ---------------- */
.topbar {
    background: linear-gradient(90deg, #2b211b, #3a2a1e);
    color: #f6ede6;
    font-size: 12px;
    letter-spacing: .02em;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 34px; }
.topbar a { color: #d8c7b8; }
.topbar a:hover { color: #fff; }
.topbar .dot { margin: 0 8px; opacity: .4; }
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 12px;
    padding: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    vertical-align: middle;
}
.lang-switch a {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.4;
}
.lang-switch a.active { background: #ff6a00; color: #fff; font-weight: 700; }
.lang-switch a:hover { color: #fff; }

/* ---------------- 头部 ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 252, 248, .92);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--brand-line);
}
.header-main { display: flex; align-items: center; gap: 26px; height: 78px; }

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}
.logo-mark {
    width: 42px; height: 42px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    display: grid; place-items: center;
    font-weight: 800; font-size: 18px;
    box-shadow: 0 8px 20px rgba(255, 80, 0, .28);
}
.logo-text { line-height: 1.1; }
.logo-text strong { display: block; font-size: 19px; letter-spacing: -.02em; }
.logo-text span { font-size: 11px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }

.search-box {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid var(--brand);
    border-radius: 999px;
    padding: 4px 4px 4px 18px;
    max-width: 560px;
    box-shadow: 0 6px 22px rgba(255, 80, 0, .10);
}
.search-box input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    height: 36px;
    font-size: 14px;
    color: var(--ink);
}
.search-box input::placeholder { color: #b9aca1; }
.search-box button {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    height: 36px;
    padding: 0 24px;
    font-weight: 600;
    cursor: pointer;
}

.header-actions { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.header-actions .icon-btn { display: flex; align-items: center; gap: 7px; color: var(--ink-2); }
.header-actions .icon-btn:hover { color: var(--brand); }
.cart-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 600;
}
.cart-pill .badge {
    position: absolute;
    top: -6px; right: -4px;
    min-width: 18px; height: 18px;
    border-radius: 9px;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    padding: 0 5px;
}

.user-menu { display: flex; align-items: center; gap: 10px; }
.user-menu .avatar {
    width: 34px; height: 34px; border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: var(--shadow-sm);
}
.user-menu .name { font-weight: 600; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 分类导航 ---------------- */
.cat-nav { border-top: 1px solid #f7ede4; background: rgba(255, 255, 255, .7); }
.cat-nav .wrap { display: flex; align-items: center; gap: 22px; height: 46px; overflow-x: auto; }
.cat-nav a { color: var(--ink-2); font-size: 13px; white-space: nowrap; padding: 4px 0; border-bottom: 2px solid transparent; }
.cat-nav a:hover { color: var(--brand); border-color: var(--brand); }
.cat-nav .all { color: var(--brand); font-weight: 600; }

/* ---------------- 通用按钮 ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    padding: 11px 22px;
    font-weight: 600;
    cursor: pointer;
    transition: .18s ease;
    line-height: 1.2;
}
.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(255, 80, 0, .22);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(255, 80, 0, .28); }
.btn-ghost {
    background: #fff;
    color: var(--brand) !important;
    border: 1px solid var(--brand-line);
}
.btn-ghost:hover { background: var(--brand-soft); }
.btn-plain { background: #fff; color: var(--ink-2) !important; border: 1px solid var(--line); }
.btn-plain:hover { border-color: var(--brand-line); color: var(--brand) !important; }
.btn-sm { padding: 8px 14px; font-size: 12px; border-radius: 10px; }
.btn-lg { padding: 14px 34px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* ---------------- 卡片 / 区块 ---------------- */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.card-pad { padding: 24px; }

.section { margin: 42px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.section-title::before {
    content: "";
    width: 5px; height: 22px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--brand), var(--brand-2));
}
.section-sub { color: var(--muted); font-size: 13px; margin-left: 34px; margin-top: -6px; }
.section-more { font-size: 13px; color: var(--muted); }
.section-more:hover { color: var(--brand); }

/* ---------------- 首页 Hero ---------------- */
.hero {
    margin-top: 22px;
    border-radius: 26px;
    padding: 40px 46px;
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 255, 255, .55), transparent 42%),
        linear-gradient(120deg, #ffe9d6 0%, #ffd0ac 48%, #ffb27a 100%);
    position: relative;
    overflow: hidden;
    border: 1px solid #ffe0c8;
}
.hero::after {
    content: "";
    position: absolute;
    right: -60px; bottom: -120px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
}
.hero-inner { position: relative; z-index: 2; max-width: 640px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .7);
    color: #a63a00;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
}
.hero h1 { font-size: 44px; line-height: 1.18; margin: 18px 0 12px; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: #fff; }
.hero p { color: #7c3a12; font-size: 15px; max-width: 520px; }
.hero-cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    margin: -30px 26px 0;
    position: relative;
    z-index: 5;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 18px 44px rgba(255, 106, 0, .10);
    padding: 18px 6px;
}
.hero-stats div { flex: 1; text-align: center; border-right: 1px solid var(--line); }
.hero-stats div:last-child { border-right: 0; }
.hero-stats div strong { display: block; font-size: 22px; color: #3a2318; letter-spacing: -.02em; }
.hero-stats div span { font-size: 12px; color: var(--muted); letter-spacing: .02em; }

/* 首页右侧推荐小卡 */
.hero-side {
    position: absolute;
    right: 44px; top: 50%;
    transform: translateY(-50%);
    width: 300px;
    z-index: 3;
}
.hero-mini {
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 16px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 14px 34px rgba(160, 70, 20, .14);
}
.hero-mini img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.hero-mini .t { font-size: 13px; font-weight: 700; line-height: 1.35; }
.hero-mini .p { color: var(--brand); font-weight: 800; font-size: 14px; }

/* ---------------- 商品卡片 ---------------- */
.goods-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.goods-grid--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.banner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.goods-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: .22s ease;
    display: flex;
    flex-direction: column;
}
.goods-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-line); }
.goods-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #fff6ee;
    overflow: hidden;
}
.goods-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.goods-card:hover .goods-thumb img { transform: scale(1.05); }
.goods-tag {
    position: absolute; left: 12px; top: 12px;
    background: rgba(255, 80, 0, .92);
    color: #fff;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 999px;
    font-weight: 600;
}
.goods-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.goods-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}
.goods-sub { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goods-meta { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; }
.price { color: var(--brand); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.price small { font-size: 12px; font-weight: 600; margin-right: 2px; }
.price-old { color: #b9aca1; font-size: 12px; text-decoration: line-through; margin-left: 6px; font-weight: 400; }
.goods-sales { font-size: 12px; color: var(--muted); }

/* 商品行（列表/购物车） */
.goods-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-bottom: 1px solid #faf3ed;
}
.goods-row:last-child { border-bottom: 0; }
.goods-row img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #fff6ee; }
.goods-row .info { flex: 1; min-width: 0; }
.goods-row .info h4 { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.goods-row .info p { color: var(--muted); font-size: 12px; margin: 0; }

/* ---------------- 店铺卡片 ---------------- */
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.shop-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: .2s ease;
}
.shop-card:hover { border-color: var(--brand-line); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.shop-logo { width: 62px; height: 62px; border-radius: 16px; object-fit: cover; background: var(--brand-soft); }
.shop-info h4 { font-size: 16px; margin: 0 0 4px; }
.shop-info p { margin: 0; font-size: 12px; color: var(--muted); }
.shop-badge {
    display: inline-block;
    font-size: 11px;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 999px;
    padding: 2px 8px;
    margin-left: 6px;
    vertical-align: 1px;
}

/* ---------------- 商品详情 ---------------- */
.detail-grid { display: grid; grid-template-columns: 480px minmax(0, 1fr); gap: 30px; padding: 30px; }
.gallery-main {
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff6ee;
    border: 1px solid var(--line);
}
.gallery-main img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs img {
    width: 72px; height: 72px; border-radius: 12px; object-fit: cover;
    border: 2px solid transparent; cursor: pointer; background: #fff6ee;
}
.gallery-thumbs img.active { border-color: var(--brand); }

.detail-info h1 { font-size: 26px; line-height: 1.35; margin-bottom: 8px; }
.detail-sub { color: var(--ink-2); font-size: 14px; margin-bottom: 18px; }
.price-panel {
    background: linear-gradient(135deg, #fff5ec, #ffefe1);
    border: 1px solid #ffe2cb;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 20px;
}
.price-panel .price { font-size: 34px; }
.price-panel .label { color: #a55a2a; font-size: 12px; }
.detail-meta { display: flex; gap: 26px; color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.option-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.option-row label { color: var(--muted); width: 64px; flex: 0 0 auto; }
.qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.qty button { width: 34px; height: 34px; border: 0; background: #fff; cursor: pointer; color: var(--ink-2); }
.qty button:hover { background: var(--brand-soft); color: var(--brand); }
.qty input { width: 52px; height: 34px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; outline: none; }
.detail-actions { display: flex; gap: 12px; margin-top: 24px; }
.shop-mini {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; background: #fffaf5; border-radius: 14px;
    border: 1px solid var(--line); margin-top: 22px;
}
.shop-mini img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.shop-mini .n { font-weight: 600; }
.shop-mini .s { font-size: 12px; color: var(--muted); }

.detail-body { padding: 30px; }
.detail-body h3 { font-size: 18px; margin-bottom: 16px; }
.detail-body img { border-radius: 14px; margin: 12px 0; }

/* ---------------- 表单 / 登录 ---------------- */
.form-item { margin-bottom: 18px; }
.form-item label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 7px; font-weight: 600; }
.input, textarea.input, select.input {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    outline: none;
    transition: .18s;
    color: var(--ink);
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 80, 0, .08); }
textarea.input { min-height: 110px; resize: vertical; }
.input-row { display: flex; gap: 12px; }
.input-row .form-item { flex: 1; }
.code-row { display: flex; gap: 10px; }
.code-row .btn { white-space: nowrap; }

.auth-layout {
    display: grid;
    grid-template-columns: 1fr 460px;
    min-height: 620px;
    margin: 40px 0;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
}
.auth-side {
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.45), transparent 50%),
        linear-gradient(140deg, #ff8a2b, #ff5000 70%);
    color: #fff;
    padding: 56px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.auth-side h2 { font-size: 36px; line-height: 1.25; margin-bottom: 14px; }
.auth-side p { color: rgba(255, 255, 255, .82); max-width: 380px; }
.auth-side .points { margin-top: 34px; display: grid; gap: 12px; }
.auth-side .points div { display: flex; gap: 10px; align-items: center; font-size: 14px; color: rgba(255,255,255,.9); }
.auth-side .points i { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-style: normal; font-size: 12px; }
.auth-form { padding: 54px 50px; }
.auth-form h3 { font-size: 24px; margin-bottom: 6px; }
.auth-form .tip { color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.auth-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.auth-tabs a { padding-bottom: 12px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.auth-tabs a.active { color: var(--brand); border-color: var(--brand); }
.oauth-row { display: flex; gap: 12px; margin: 18px 0; }
.oauth-btn {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 600;
}
.oauth-btn:hover { border-color: var(--brand-line); color: var(--brand); }
.oauth-btn.wechat { color: #07c160; }
.oauth-btn.zalo { color: #0068ff; }

/* ---------------- 购物车 ---------------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.cart-list { padding: 8px 20px; }
.cart-row { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid #faf3ed; }
.cart-row:last-child { border-bottom: 0; }
.cart-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); }
.cart-row img { width: 78px; height: 78px; border-radius: 14px; object-fit: cover; background: #fff6ee; }
.cart-row .info { flex: 1; min-width: 0; }
.cart-row .info h4 { font-size: 15px; margin: 0 0 4px; }
.cart-row .info .shop { font-size: 12px; color: var(--muted); }
.cart-row .price { font-size: 17px; }
.cart-summary { position: sticky; top: 130px; padding: 24px; }
.cart-summary .line { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--ink-2); }
.cart-summary .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px dashed var(--line); }
.cart-summary .total .price { font-size: 28px; }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty .emoji { font-size: 46px; display: block; margin-bottom: 12px; opacity: .6; }

/* ---------------- 用户中心 ---------------- */
.uc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 26px; align-items: start; margin: 32px 0 60px; }
.uc-side { padding: 18px; }
.uc-user { display: flex; gap: 12px; align-items: center; padding: 8px 8px 18px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.uc-user img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); }
.uc-user h4 { margin: 0 0 2px; font-size: 15px; }
.uc-user p { margin: 0; font-size: 12px; color: var(--muted); }
.uc-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-size: 13px; }
.uc-nav a:hover, .uc-nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.uc-main { padding: 26px; }
.uc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.uc-head h3 { font-size: 20px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
    background: #fffaf5;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
}
.stat strong { display: block; font-size: 24px; color: var(--brand); }
.stat span { font-size: 12px; color: var(--muted); }

.order-card { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 16px; overflow: hidden; }
.order-head { display: flex; justify-content: space-between; padding: 12px 18px; background: #fffaf5; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.order-head .status { color: var(--brand); font-weight: 700; }
.order-body .goods-row { padding: 12px 18px; }
.order-foot { padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #faf3ed; }
.order-foot .amt { font-size: 13px; color: var(--ink-2); }
.order-foot .amt strong { color: var(--brand); font-size: 18px; }

/* ---------------- 地址 ---------------- */
.address-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.address-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; position: relative; }
.address-card.default { border-color: var(--brand); background: #fffaf5; }
.address-card h4 { font-size: 14px; margin: 0 0 6px; }
.address-card p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.address-card .default-badge { position: absolute; right: 12px; top: 12px; background: var(--brand); color: #fff; border-radius: 999px; font-size: 11px; padding: 2px 8px; }
.address-actions { display: flex; gap: 10px; font-size: 12px; }

/* ---------------- 结算 ---------------- */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.checkout-card { padding: 24px; margin-bottom: 18px; }
.checkout-card h3 { font-size: 18px; margin-bottom: 16px; }
.address-pick { display: grid; gap: 12px; }
.address-pick label {
    display: flex; gap: 12px; padding: 14px 16px;
    border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.address-pick input { accent-color: var(--brand); }
.address-pick label.selected { border-color: var(--brand); background: #fffaf5; }
.checkout-summary { padding: 24px; position: sticky; top: 130px; }
.checkout-summary h3 { font-size: 18px; margin-bottom: 16px; }
.pay-methods { display: grid; gap: 10px; margin: 16px 0; }
.pay-method { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.pay-method.selected { border-color: var(--brand); background: #fffaf5; }

/* ---------------- 商家中心 ---------------- */
.seller-banner {
    background: linear-gradient(120deg, #2b211b, #46301f 60%, #6a4423);
    color: #fff;
    border-radius: 22px;
    padding: 32px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.seller-banner h2 { font-size: 26px; margin-bottom: 6px; }
.seller-banner p { color: rgba(255,255,255,.7); margin: 0; font-size: 13px; }
.seller-banner .badge { background: rgba(255,144,0,.18); color: #ffb15c; border: 1px solid rgba(255,144,0,.35); border-radius: 999px; padding: 5px 14px; font-size: 12px; }
.seller-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.seller-tabs a { padding: 9px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.seller-tabs a.active, .seller-tabs a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------------- 表格 ---------------- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 13px 12px; border-bottom: 1px solid #faf3ed; text-align: left; font-size: 13px; vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; background: #fffaf5; }
.table tr:hover td { background: #fffcf8; }
.table .thumb { width: 50px; height: 50px; border-radius: 10px; object-fit: cover; }
.table .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.badge-status { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; background: #f4f1ee; color: var(--ink-2); }
.badge-ok { background: #e8f7ee; color: #15803d; }
.badge-warn { background: #fff4e5; color: #b45309; }
.badge-danger { background: #ffe9ee; color: #be123c; }

/* ---------------- 分页 ---------------- */
.vfm-pager { display: flex; gap: 8px; justify-content: center; margin: 30px 0; flex-wrap: wrap; }
.vfm-pager li a, .vfm-pager li span {
    display: inline-flex; min-width: 38px; height: 38px;
    align-items: center; justify-content: center;
    border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); padding: 0 12px;
}
.vfm-pager li.active a { background: var(--brand); border-color: var(--brand); color: #fff; }
.vfm-pager li a:hover { border-color: var(--brand); color: var(--brand); }

/* ---------------- 提示 ---------------- */
.alert { border-radius: 12px; padding: 12px 16px; font-size: 13px; margin-bottom: 16px; }
.alert-info { background: #fff8ed; border: 1px solid #ffe6bf; color: #a15c00; }
.alert-error { background: #fff0f3; border: 1px solid #ffd6df; color: #be123c; }
.alert-success { background: #ecfdf3; border: 1px solid #c7f0d8; color: #15803d; }
.msg-tip { text-align: center; padding: 80px 20px; }
.msg-tip h2 { font-size: 24px; margin-bottom: 8px; }
.msg-tip p { color: var(--muted); }

/* ---------------- 页脚 ---------------- */
.site-footer { margin-top: 70px; background: #241c17; color: #b9a89a; padding: 46px 0 30px; }
.footer-disclaimer {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 16px 20px; margin-bottom: 28px; border-radius: 14px;
    background: rgba(255, 177, 92, .07); border: 1px solid rgba(255, 177, 92, .22);
}
.footer-disclaimer strong { display: block; color: #fff; font-size: 14px; margin-bottom: 5px; }
.footer-disclaimer p { margin: 0; color: #d8c6b6; font-size: 12px; line-height: 1.75; }
.footer-disclaimer a { flex: 0 0 auto; color: #ffb15c; font-size: 12px; white-space: nowrap; }
.footer-disclaimer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-grid p, .footer-grid a { font-size: 12px; color: #b9a89a; display: block; margin-bottom: 6px; }
.footer-grid a:hover { color: #ffb15c; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.footer-brand .logo-mark { width: 38px; height: 38px; font-size: 16px; box-shadow: none; }
.footer-brand strong { color: #fff; font-size: 18px; }
.copyright { text-align: center; font-size: 12px; padding-top: 22px; color: #8a7a6d; }

/* ---------------- 平台声明 ---------------- */
.disclaimer-body { line-height: 1.85; }
.disclaimer-lead {
    padding: 16px 18px; border-radius: 12px; font-size: 14px; font-weight: 600;
    color: #7c2d12; background: #fff7ed; border: 1px solid #fed7aa;
}
.disclaimer-section { margin-top: 24px; }
.disclaimer-section h2 { font-size: 16px; color: #221d19; margin: 0 0 8px; }
.disclaimer-section p { margin: 0; font-size: 14px; color: var(--ink-2); }
.disclaimer-foot { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.agreement-list { margin: 0; padding-left: 22px; }
.agreement-list li { margin: 0 0 16px; font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.platform-note {
    margin-top: 14px; padding: 12px 16px; border-radius: 10px; font-size: 12px; line-height: 1.7;
    color: #7c2d12; background: #fff7ed; border: 1px solid #fed7aa;
}
.platform-note strong { color: #9a3412; }

/* ---------------- 通用页面块 ---------------- */
.page-title { display: flex; align-items: baseline; gap: 12px; margin: 34px 0 18px; }
.page-title h1 { font-size: 26px; }
.page-title span { color: var(--muted); font-size: 13px; }
.link-danger { border: 0; background: none; color: var(--danger); cursor: pointer; font-size: 12px; padding: 0; }
.link-danger:hover { text-decoration: underline; }

.goods-row { display: flex; align-items: center; gap: 14px; }
.goods-row img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; }
.goods-row .info { flex: 1; min-width: 0; }
.goods-row .info h4 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goods-row .price { flex: none; color: var(--brand); font-weight: 700; }

/* ---------------- 购物车 ---------------- */
.cart-table { padding: 0 0 8px; overflow: hidden; }
.cart-head, .cart-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 110px 132px 108px 72px;
    align-items: center; gap: 10px; padding: 14px 20px;
}
.cart-head { background: #fffaf5; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); font-weight: 600; }
.cart-row { border-bottom: 1px solid #faf3ed; }
.cart-row .cart-goods { display: flex; gap: 14px; align-items: center; min-width: 0; }
.cart-row .cart-goods img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.cart-row .cart-goods div { min-width: 0; }
.cart-row .cart-goods a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-row .unit { color: var(--ink-2); }
.cart-row .subtotal { color: var(--brand); font-weight: 700; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; width: fit-content; }
.qty button { width: 30px; height: 32px; border: 0; background: #fffaf5; cursor: pointer; color: var(--ink-2); }
.qty button:hover { color: var(--brand); }
.qty input { width: 44px; height: 32px; border: 0; text-align: center; font-size: 13px; color: var(--ink); }
.cart-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 20px 10px; }
.cart-foot .cart-total { color: var(--brand); font-size: 22px; }
.check-all-label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
    .goods-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero-side { display: none; }
    .hero h1 { font-size: 36px; }
    .detail-grid { grid-template-columns: 1fr; }
    .auth-layout { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .uc-layout, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .cart-summary, .checkout-summary { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-disclaimer { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 720px) {
    .topbar .wrap { height: auto; padding: 7px 20px; justify-content: center; }
    .topbar .wrap > div:first-child { display: none; }
    .topbar .wrap > div:last-child { font-size: 11px; white-space: nowrap; }
    .topbar .dot { margin: 0 5px; }
    .topbar .admin-link,
    .topbar .admin-link + .dot { display: none; }
    .lang-switch { margin-left: 7px; }
    .lang-switch a { padding: 2px 7px; font-size: 10px; }
    .header-main { height: auto; padding: 14px 0; flex-wrap: wrap; gap: 10px; }
    .logo-text strong { font-size: 16px; }
    .logo-text span { display: none; }
    .search-box { order: 3; max-width: none; width: 100%; }
    .header-actions { margin-left: auto; gap: 10px; font-size: 12px; }
    .goods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .goods-grid--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .banner-grid { grid-template-columns: 1fr; }
    .shop-grid, .address-grid, .stat-grid { grid-template-columns: 1fr 1fr; }
    .hero { margin-top: 14px; padding: 24px 18px; border-radius: 20px; }
    .hero h1 { font-size: 26px; margin: 14px 0 10px; }
    .hero p { font-size: 13px; }
    .hero-cta { margin-top: 18px; gap: 10px; }
    .hero-stats { margin: -18px 10px 0; padding: 12px 2px; border-radius: 16px; }
    .hero-stats div strong { font-size: 17px; }
    .hero-stats div span { font-size: 11px; }
    .section { margin-top: 30px; }
}

/* ---------------- 店内沟通 ---------------- */
.chat-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    margin-top: 18px;
}
.chat-side {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 620px;
    min-height: 420px;
}
.chat-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px 14px;
    border-bottom: 1px solid var(--line);
    background: #fffaf5;
}
.chat-side-head h2 { margin: 0; font-size: 16px; }
.chat-total-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    line-height: 22px;
    text-align: center;
    font-weight: 700;
}
.chat-thread-list { flex: 1; overflow-y: auto; }
.chat-thread {
    display: flex;
    gap: 11px;
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    transition: background .15s;
}
.chat-thread:hover, .chat-thread.active { background: #fff5ec; }
.chat-thread.active { box-shadow: inset 3px 0 0 var(--brand); }
.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    background: #f5efe9;
    flex: 0 0 auto;
}
.chat-avatar-lg { width: 46px; height: 46px; border-radius: 14px; }
.chat-thread-main { min-width: 0; flex: 1; }
.chat-thread-top { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.chat-thread-top strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-thread-time { color: var(--muted); font-size: 11px; flex: 0 0 auto; }
.chat-thread-bottom { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.chat-thread-preview {
    flex: 1;
    color: var(--muted);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-count {
    flex: 0 0 auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 10px;
    line-height: 18px;
    text-align: center;
}
.chat-side-empty { padding: 24px 18px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.chat-panel { padding: 0; overflow: hidden; display: flex; flex-direction: column; min-width: 0; height: 620px; min-height: 420px; }
.chat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: #fffaf5;
}
.chat-head h3 { margin: 0; font-size: 15px; }
.chat-head p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px 18px; background: #fffdfb; }
.chat-no-msg, .chat-placeholder { color: var(--muted); text-align: center; }
.chat-no-msg { padding: 40px 10px; font-size: 13px; }
.chat-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.chat-placeholder h3 { margin: 10px 0 4px; font-size: 16px; color: var(--ink); }
.chat-placeholder p { margin: 0; font-size: 12px; }
.chat-msg { display: flex; margin-bottom: 12px; }
.chat-msg.mine { justify-content: flex-end; }
.chat-bubble {
    max-width: min(72%, 620px);
    padding: 10px 13px 7px;
    border-radius: 14px 14px 14px 4px;
    background: #f2ebe4;
    border: 1px solid #eadfd5;
}
.chat-msg.mine .chat-bubble {
    border-radius: 14px 14px 4px 14px;
    background: #fff1e6;
    border-color: #ffd6b8;
}
.chat-text { font-size: 13px; line-height: 1.65; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.chat-meta { margin-top: 4px; color: var(--muted); font-size: 10px; text-align: right; }
.chat-compose { padding: 12px 14px 14px; border-top: 1px solid var(--line); background: #fff; }
.chat-compose textarea {
    width: 100%;
    min-height: 58px;
    max-height: 140px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font: inherit;
    font-size: 13px;
    line-height: 1.6;
    outline: none;
    resize: vertical;
    background: #fffdfb;
    box-sizing: border-box;
}
.chat-compose textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.chat-compose-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.chat-compose-foot span { color: var(--muted); font-size: 11px; }
.chat-top-link { position: relative; }
.chat-top-link .badge { position: absolute; top: -7px; right: -10px; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; font-size: 9px; }
.nav-badge { display: inline-block; margin-left: 4px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 10px; line-height: 17px; text-align: center; }
.seller-tabs a.active .nav-badge { background: #fff; color: var(--brand); }

@media (max-width: 820px) {
    .chat-layout { grid-template-columns: 1fr; }
    .chat-side { height: 240px; min-height: 0; }
    .chat-panel { height: 62vh; min-height: 460px; }
    .chat-bubble { max-width: 84%; }
    .chat-compose-foot span { display: none; }
}
