/* =====================================================
   VELORA 前台样式 —— 优雅高端女性风格
   ===================================================== */

:root {
    --ink: #241f21;
    --muted: #827379;
    --rose: #c98b8e;
    --rose-deep: #a96568;
    --blush: #f7ecea;
    --cream: #faf7f4;
    --gold: #b08d57;
    --line: #ece3df;
    --white: #ffffff;
    --serif: 'Cormorant Garamond', 'Noto Serif SC', Georgia, serif;
    --sans: 'Jost', 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
    --shadow: 0 18px 50px rgba(80, 50, 55, .10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ---------- 标题 ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; }

.eyebrow {
    display: block;
    font-size: 12px;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--rose-deep);
    margin-bottom: 14px;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 14px 38px;
    font-size: 13px;
    letter-spacing: .22em;
    text-transform: uppercase;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    transition: all .3s ease;
    border-radius: 999px;
    line-height: 1.4;
    text-align: center;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--rose-deep); border-color: var(--rose-deep); }
.btn-light { border-color: #fff; color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: 9px 22px; font-size: 12px; }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- 公告栏 ---------- */
.announce {
    background: var(--ink);
    color: #f3e7e4;
    text-align: center;
    font-size: 12px;
    letter-spacing: .25em;
    text-transform: uppercase;
    padding: 11px 16px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(80, 50, 55, .08); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 74px;
}
.logo {
    font-family: var(--serif);
    font-size: 30px;
    letter-spacing: .28em;
    color: var(--ink);
    white-space: nowrap;
}
.logo img { max-height: 44px; width: auto; }

.nav-links { display: flex; gap: 38px; }
.nav-links a {
    font-size: 13px;
    letter-spacing: .2em;
    text-transform: uppercase;
    padding: 6px 0;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--rose-deep);
    transition: width .3s;
}
.nav-links a:hover::after { width: 100%; }

.h-icons { display: flex; align-items: center; gap: 20px; }
.icon-btn {
    background: none;
    border: none;
    font-size: 15px;
    letter-spacing: .08em;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 7px;
    text-transform: uppercase;
}
.icon-btn:hover { color: var(--rose-deep); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-wrap { position: relative; }
.cart-badge {
    position: absolute;
    top: -8px; right: -10px;
    min-width: 17px; height: 17px;
    background: var(--rose-deep);
    color: #fff;
    border-radius: 999px;
    font-size: 10px;
    line-height: 17px;
    text-align: center;
    padding: 0 4px;
}

/* 语言下拉 */
.lang-dd { position: relative; }
.lang-dd > button { font-size: 13px; letter-spacing: .05em; }
.lang-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 8px;
    min-width: 170px;
    display: none;
    z-index: 120;
}
.lang-dd.open .lang-menu { display: block; }
.lang-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
}
.lang-menu a:hover { background: var(--cream); }
.lang-menu a.on { color: var(--rose-deep); font-weight: 600; }

.burger { display: none; background: none; border: none; width: 26px; height: 20px; position: relative; }
.burger span, .burger span::before, .burger span::after {
    content: '';
    position: absolute;
    left: 0; right: 0; height: 2px;
    background: var(--ink);
    border-radius: 2px;
}
.burger span { top: 9px; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }

/* 移动端抽屉 */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
}
.drawer-bg { position: absolute; inset: 0; background: rgba(30, 20, 24, .45); opacity: 0; transition: opacity .3s; }
.drawer-panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(84vw, 360px);
    background: #fff;
    padding: 30px 34px;
    transform: translateX(105%);
    transition: transform .35s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}
[dir="rtl"] .drawer-panel { right: auto; left: 0; transform: translateX(-105%); }
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-close { align-self: flex-end; background: none; border: none; font-size: 26px; color: var(--ink); }
.drawer-panel a.dlink {
    font-family: var(--serif);
    font-size: 24px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.drawer-sub { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.drawer-sub a {
    font-size: 13px;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
}
/* 抽屉内「全部产品」的分类子菜单 */
.drawer-cats { display: flex; flex-direction: column; }
.drawer-cats a {
    position: relative;
    font-size: 15px;
    color: var(--muted);
    padding: 10px 0 10px 26px;
    border-bottom: 1px solid var(--line);
}
.drawer-cats a::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    width: 5px;
    height: 5px;
    margin-top: -2px;
    border-radius: 50%;
    background: var(--rose);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    isolation: isolate;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30, 18, 22, .30) 0%, rgba(30, 18, 22, .12) 45%, rgba(30, 18, 22, .48) 100%);
    z-index: -1;
}
.hero .eyebrow { color: #f0d9d6; }
.hero h1 {
    font-size: clamp(44px, 7vw, 88px);
    line-height: 1.08;
    letter-spacing: .02em;
    margin-bottom: 18px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .25);
}
.hero p {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 300;
    letter-spacing: .06em;
    max-width: 620px;
    margin: 0 auto 36px;
    opacity: .94;
}

/* ---------- USP 服务保障 ---------- */
.usp-strip { background: var(--cream); border-bottom: 1px solid var(--line); }
.usp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 46px 0; }
.usp { text-align: center; padding: 0 18px; }
.usp .ic { font-size: 26px; color: var(--rose-deep); margin-bottom: 10px; }
.usp h3 { font-family: var(--sans); font-size: 14px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 6px; }
.usp p { font-size: 14px; color: var(--muted); }

/* ---------- 通用区块 ---------- */
.section { padding: 96px 0; }
.section.tinted { background: var(--cream); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.sec-head h2 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.15; margin-bottom: 12px; }
.sec-head p { color: var(--muted); }
.sec-more { text-align: center; margin-top: 52px; }

/* ---------- 分类磁贴 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cat-tile {
    position: relative;
    aspect-ratio: 3 / 3.6;
    border-radius: 16px;
    overflow: hidden;
    display: block;
    isolation: isolate;
}
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(28, 16, 20, .62) 100%);
}
.cat-label {
    position: absolute;
    left: 26px; right: 26px; bottom: 24px;
    z-index: 2;
    color: #fff;
}
[dir="rtl"] .cat-label { left: auto; }
.cat-label h3 { font-size: 27px; margin-bottom: 2px; }
.cat-label span { font-size: 12px; letter-spacing: .25em; text-transform: uppercase; opacity: .85; }

/* ---------- 商品卡片 ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 26px; }
.p-card { position: relative; }
.p-thumb {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: var(--cream);
}
.p-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.p-card:hover .p-thumb img { transform: scale(1.05); }
.p-badge {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 2;
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    background: var(--ink);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
}
.p-badge.new { background: var(--rose-deep); }
.p-badge.out { background: #9a8b90; }
.p-num {
    font-family: var(--serif);
    font-size: 24px;
    color: var(--rose);
    margin-right: 8px;
}
.p-info { padding: 16px 4px 0; }
.p-name { font-size: 22px; line-height: 1.25; margin-bottom: 2px; }
.p-name a:hover { color: var(--rose-deep); }
.p-sub { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.p-rate { margin-bottom: 4px; }
.star { color: #ddd0cb; font-size: 13px; letter-spacing: 2px; }
.star.on { color: var(--gold); }
.p-rate em { font-size: 12px; color: var(--muted); font-style: normal; margin-left: 6px; }
.p-price { display: flex; align-items: baseline; gap: 10px; }
.p-price .price { font-size: 17px; letter-spacing: .04em; }
.p-price del { color: #b9a9ae; font-size: 13px; }
.p-add { margin-top: 12px; opacity: 0; transform: translateY(-4px); transition: all .3s ease; }
.p-card:hover .p-add { opacity: 1; transform: translateY(0); }
.btn-add {
    width: 100%;
    padding: 12px;
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--ink);
    border-radius: 999px;
    color: var(--ink);
    transition: all .25s;
}
.btn-add:hover { background: var(--ink); color: #fff; }
.p-card.soldout .p-thumb img { filter: grayscale(.55) opacity(.8); }

/* ---------- 大图横幅 ---------- */
.campaign {
    position: relative;
    min-height: 68vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    isolation: isolate;
}
.campaign::after { content: ''; position: absolute; inset: 0; background: rgba(28, 16, 20, .38); z-index: -1; }
.campaign h2 { font-size: clamp(34px, 5vw, 58px); margin-bottom: 14px; text-shadow: 0 4px 30px rgba(0,0,0,.3); }
.campaign p { font-size: 17px; letter-spacing: .05em; margin-bottom: 32px; opacity: .95; }

/* ---------- 关于 ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}
.about-grid img { border-radius: 18px; box-shadow: var(--shadow); aspect-ratio: 4/4.4; object-fit: cover; width: 100%; }
.about-txt h2 { font-size: clamp(30px, 4vw, 44px); margin: 6px 0 20px; }
.about-txt p { color: var(--muted); font-size: 16px; margin-bottom: 30px; }

/* ---------- 评价 ---------- */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.rev-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 30px 28px;
}
.rev-card .stars { margin-bottom: 12px; }
.rev-card p { font-size: 15px; color: #584c51; margin-bottom: 16px; min-height: 76px; }
.rev-card .who { font-size: 13px; letter-spacing: .1em; color: var(--rose-deep); text-transform: uppercase; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--cream); border-top: 1px solid var(--line); margin-top: 40px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 44px;
    padding: 70px 0 50px;
}
.f-brand .logo { font-size: 26px; }
.f-brand p { font-size: 14px; color: var(--muted); margin: 14px 0 18px; max-width: 320px; }
.socials { display: flex; gap: 12px; }
.socials a {
    width: 36px; height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: all .25s;
}
.socials a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.f-col h4 {
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: .25em;
    text-transform: uppercase;
    margin-bottom: 18px;
    color: var(--ink);
}
.f-col a { display: block; font-size: 14px; color: var(--muted); padding: 5px 0; }
.f-col a:hover { color: var(--rose-deep); }
.f-inline { display: block; padding: 5px 0; font-size: 14px; color: var(--muted); }
.f-inline a { display: inline; padding: 0; }
.f-inline i { font-style: normal; margin: 0 5px; color: var(--line); }
.f-cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.f-cat-grid a { display: block; font-size: 14px; color: var(--muted); padding: 5px 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-cat-grid a:hover { color: var(--rose-deep); }
.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
}
.pay-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-badges span {
    font-size: 11px;
    letter-spacing: .06em;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 6px;
    padding: 4px 10px;
    color: #6d5f65;
}

/* ---------- 面包屑 ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding: 26px 0 0; }
.crumbs a:hover { color: var(--rose-deep); }
.crumbs span { margin: 0 8px; color: #c9b8bd; }

/* ---------- 列表页 ---------- */
.page-hero { background: var(--cream); padding: 66px 0 46px; text-align: center; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 52px); margin-bottom: 8px; }
.page-hero p { color: var(--muted); }
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 26px 0 34px;
}
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
    font-size: 13px;
    letter-spacing: .06em;
    padding: 8px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: all .25s;
}
.chip:hover { border-color: var(--rose); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.sort-sel { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.sort-sel select {
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    outline: none;
}

/* ---------- 分页 ---------- */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 56px auto 0; max-width: 100%; }
.pager span.dots {
    min-width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: var(--muted);
}
.pager .pn {
    min-width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    transition: all .25s;
}
.pager a.pn:hover { border-color: var(--ink); }
.pager .pn.off { color: var(--muted); opacity: .45; pointer-events: none; }
.pager a {
    min-width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 14px;
    transition: all .25s;
}
.pager a:hover { border-color: var(--ink); }
.pager a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- 商品详情 ---------- */
.pd-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; padding: 40px 0 90px; align-items: start; }
.pd-main {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--cream);
}
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.pd-thumbs img {
    width: 84px; height: 84px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color .2s;
}
.pd-thumbs img.on, .pd-thumbs img:hover { border-color: var(--rose); }
.pd-info h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; margin: 8px 0 10px; }
.pd-rate { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.pd-price { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.pd-price .price { font-size: 30px; font-family: var(--serif); }
.pd-price del { color: #b9a9ae; font-size: 17px; }
.pd-price .save {
    font-size: 12px;
    color: var(--rose-deep);
    background: var(--blush);
    padding: 4px 12px;
    border-radius: 999px;
}
.pd-desc { color: #584c51; margin-bottom: 30px; }
.pd-short { color: var(--muted); margin-bottom: 24px; font-size: 16px; }
.buy-row { display: flex; gap: 14px; align-items: stretch; flex-wrap: wrap; margin-bottom: 26px; }
.qty-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
}
.qty-box button {
    width: 44px; height: 50px;
    border: none; background: none;
    font-size: 18px; color: var(--ink);
}
.qty-box input {
    width: 46px; height: 50px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    background: transparent;
}
.buy-row .btn { padding: 14px 34px; }
.pd-perks { border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 8px; }
.pd-perks li { font-size: 14px; color: var(--muted); display: flex; gap: 10px; }
.pd-perks li::before { content: '✓'; color: var(--rose-deep); }

.pd-sec { border-top: 1px solid var(--line); padding: 64px 0; }
.pd-sec h2 { font-size: 32px; margin-bottom: 30px; }
.pd-desc-full { max-width: 780px; color: #584c51; }

/* 评价列表 */
.rev-list { display: grid; gap: 18px; max-width: 780px; }
.rev-item { border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; background: #fff; }
.rev-item .top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rev-item .who { font-weight: 600; font-size: 14px; }
.rev-item .date { font-size: 12px; color: var(--muted); }
.rev-item p { font-size: 15px; color: #584c51; }
.rev-item .reply { margin-top: 12px; background: var(--cream); border-radius: 10px; padding: 12px 16px; font-size: 14px; }
.rev-item .reply b { color: var(--rose-deep); }
.rev-form { max-width: 780px; margin-top: 34px; background: var(--cream); border-radius: 16px; padding: 28px; }
.rev-form h3 { font-size: 22px; margin-bottom: 14px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}
.field input, .field select, .field textarea {
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    outline: none;
    transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rose); }
.field textarea { min-height: 120px; resize: vertical; }
.captcha-row { display: flex; gap: 12px; align-items: center; }
.captcha-row input { flex: 1; }
.captcha-row img { height: 48px; border-radius: 10px; cursor: pointer; border: 1px solid var(--line); }

/* ---------- 登录注册 ---------- */
.auth-wrap { min-height: calc(100vh - 260px); display: flex; align-items: center; justify-content: center; padding: 70px 20px; background: var(--cream); }
.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 46px 44px;
    width: 100%;
    max-width: 440px;
}
.auth-card h1 { font-size: 32px; text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.auth-card .alt { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.auth-card .alt a { color: var(--rose-deep); font-weight: 600; }

/* ---------- 提示条 ---------- */
.alert {
    max-width: 920px;
    margin: 0 auto;
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 18px;
}
.alert.error { background: #fdf1f1; color: #b03a3a; border: 1px solid #f3c8c8; }
.alert.success { background: #f0faf3; color: #2f7d46; border: 1px solid #cdebd5; }

.toast {
    position: fixed;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%) translateY(20px);
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    padding: 13px 28px;
    border-radius: 999px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .25);
    opacity: 0;
    pointer-events: none;
    transition: all .35s ease;
    z-index: 300;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 购物车 ---------- */
.cart-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 44px; align-items: start; padding: 46px 0 90px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
    text-align: left;
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    padding: 0 12px 14px;
    border-bottom: 1px solid var(--line);
}
.cart-table td { padding: 20px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-p { display: flex; gap: 16px; align-items: center; }
.cart-p img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }
.cart-p .n { font-family: var(--serif); font-size: 19px; }
.cart-p .s { font-size: 13px; color: var(--muted); }
.cart-remove { background: none; border: none; font-size: 13px; color: var(--muted); letter-spacing: .05em; }
.cart-remove:hover { color: #b03a3a; }
.qty-box.small button { height: 40px; width: 36px; }
.qty-box.small input { height: 40px; width: 38px; }
.summary-card {
    background: var(--cream);
    border-radius: 18px;
    padding: 30px 30px 34px;
    position: sticky;
    top: 100px;
}
.summary-card h3 { font-size: 24px; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; font-size: 15px; padding: 7px 0; color: #584c51; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; font-size: 19px; color: var(--ink); font-weight: 600; }
.sum-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; }

/* ---------- 结算 ---------- */
.co-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: start; padding: 46px 0 90px; }
.co-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; margin-bottom: 22px; }
.co-box h3 { font-size: 23px; margin-bottom: 20px; }
.pay-opt {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: border-color .2s;
}
.pay-opt:has(input:checked) { border-color: var(--rose-deep); background: #fdf9f8; }
.pay-opt input { margin-top: 5px; accent-color: var(--rose-deep); }
.pay-opt b { display: block; font-size: 15px; }
.pay-opt span { font-size: 13px; color: var(--muted); }
.co-items { display: grid; gap: 14px; margin-bottom: 16px; }
.co-item { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.co-item .l { display: flex; gap: 12px; align-items: center; }
.co-item img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }

/* ---------- 感谢页 ---------- */
.thanks-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; background: var(--cream); }
.thanks-card { max-width: 560px; }
.thanks-card .ic { font-size: 52px; margin-bottom: 14px; }
.thanks-card h1 { font-size: 44px; margin-bottom: 12px; }
.thanks-card p { color: var(--muted); margin-bottom: 8px; }
.thanks-card .ono { font-size: 16px; color: var(--ink); letter-spacing: .1em; margin-bottom: 30px; }

/* ---------- 账户 ---------- */
.acc-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 44px; align-items: start; padding: 46px 0 90px; }
.acc-side { background: var(--cream); border-radius: 18px; padding: 30px; position: sticky; top: 100px; }
.acc-main { min-width: 0; }
.acc-side .hi { font-family: var(--serif); font-size: 26px; margin-bottom: 4px; }
.acc-side .em { font-size: 13px; color: var(--muted); margin-bottom: 20px; word-break: break-all; }
.acc-side nav { display: grid; gap: 4px; }
.acc-side nav a { padding: 10px 14px; border-radius: 10px; font-size: 14px; letter-spacing: .05em; }
.acc-side nav a:hover { background: #fff; }
.acc-side nav a.on { background: var(--ink); color: #fff; }
.acc-main h2 { font-size: 32px; margin-bottom: 24px; }
.table-wrap { border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mini-table th { background: var(--cream); text-align: left; padding: 14px 18px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; white-space: nowrap; }
.mini-table td { padding: 15px 18px; border-top: 1px solid var(--line); }
.status-pill {
    display: inline-block;
    font-size: 12px;
    padding: 4px 14px;
    border-radius: 999px;
    letter-spacing: .04em;
}
.st-pending { background: #fdf6ec; color: #a4700f; }
.st-paid { background: #eef7f1; color: #2f7d46; }
.st-shipped { background: #eef2fa; color: #4a5f8f; }
.st-completed { background: #f0faf3; color: #2f7d46; }
.st-cancelled { background: #f7ecec; color: #a05555; }

/* 订单卡片（仅小屏显示） */
.order-cards { display: none; }
.order-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 14px 16px;
    display: grid;
    gap: 12px;
}
.oc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.oc-top b { font-size: 13px; letter-spacing: .02em; }
.oc-date { font-size: 12px; color: var(--muted); white-space: nowrap; }
.oc-mid img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--cream); flex: none; }
.oc-mid span { flex: 1; min-width: 0; font-size: 14px; text-align: right; word-break: break-word; }
.oc-amt { display: flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; }
.oc-ops { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.oc-ops .btn-sm { white-space: nowrap; }

/* ---------- 详情页按钮组 ---------- */
.link-btn { background: none; border: none; color: var(--rose-deep); font-size: 14px; letter-spacing: .05em; }
.link-btn:hover { text-decoration: underline; }

/* ---------- 代理中心 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.stat-card span { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.stat-card b { font-size: 22px; font-family: var(--serif); font-weight: 600; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.muted { color: var(--muted); font-size: 14px; }
.copy-row { display: flex; gap: 10px; }
.copy-row .input { flex: 1; }
.input { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; background: #fff; }
.input:focus { outline: none; border-color: var(--rose); }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- RTL（阿拉伯语） ---------- */
[dir="rtl"] .cat-label, [dir="rtl"] .p-badge { right: 26px; left: auto; }
[dir="rtl"] .p-badge { right: 14px; }
[dir="rtl"] .cart-table th, [dir="rtl"] .mini-table th { text-align: right; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .p-num { margin-right: 0; margin-left: 8px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .prod-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { gap: 40px; }
    .pd-grid { gap: 36px; }
}

@media (max-width: 860px) {
    .nav-links { display: none; }
    .burger { display: block; }
    .header-inner { height: 64px; }
    /* 小屏：logo 左对齐紧挨汉堡菜单，图标靠右 */
    .header-inner { justify-content: flex-start; }
    .header-inner .logo { margin-right: auto; }
    .header-inner .burger { margin-right: 16px; }
    .logo { font-size: 24px; }
    /* 小屏保留语言切换与用户中心图标，紧凑展示 */
    .h-icons { gap: 12px; }
    .lang-dd > button { font-size: 12px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 9px; }
    .icon-btn.account-link svg { width: 21px; height: 21px; }
    .lang-menu { min-width: 150px; }
    .usp-grid { grid-template-columns: 1fr; gap: 20px; padding: 34px 0; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .cat-tile { aspect-ratio: 3 / 3.6; }
    .about-grid, .pd-grid, .cart-grid, .co-grid, .acc-grid { grid-template-columns: minmax(0, 1fr); }
    .rev-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; padding: 50px 0 36px; }
    .section { padding: 64px 0; }
    .hero { min-height: 72vh; }
    .campaign { min-height: 54vh; }
    .acc-side { position: static; }
    .p-add { opacity: 1; transform: none; }
    .container { padding: 0 20px; }
}

@media (max-width: 560px) {
    .prod-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .logo { font-size: 21px; letter-spacing: .18em; }
    .h-icons { gap: 10px; }
    .lang-dd > button { padding: 6px 9px; font-size: 11px; }
    .icon-btn.account-link svg { width: 20px; height: 20px; }
    .cart-table th:nth-child(2), .cart-table td:nth-child(2) { display: none; }
    .auth-card { padding: 34px 24px; }
    .summary-card { position: static; }
    .buy-row .btn { flex: 1; }
    /* 账户中心：小屏订单改为三行式卡片 */
    .acc-main .table-wrap { display: none; }
    .order-cards { display: grid; gap: 14px; }
    .oc-ops .btn-sm { padding: 8px 10px; letter-spacing: .03em; font-size: 11px; white-space: nowrap; }
    .acc-side { padding: 22px; }
    .acc-side nav a { padding: 11px 12px; }
}
