@charset "UTF-8";
/* ==========================================================================
   KKmall 前台样式
   设计基准：内容容器最大 1600px，随屏幕自适应收缩
   断点：≥1440 大桌面 | 1200–1439 桌面 | 992–1199 小桌面·平板横屏
        768–991 平板竖屏 | 480–767 手机 | <480 小屏手机
   ========================================================================== */

/* ---------------------------------------------------------------- 设计变量 */
:root {
    --c-primary: #e63976;
    --c-primary-dark: #c42b62;
    --c-primary-soft: #ffe9f1;
    --c-accent: #ffb703;
    --c-accent-soft: #fff5dd;
    --c-teal: #12b3a6;
    --c-teal-soft: #e3f8f6;
    --c-ink: #1f2233;
    --c-ink-2: #4a4f63;
    --c-muted: #8a8fa3;
    --c-line: #eceaf2;
    --c-line-2: #e0dde8;
    --c-bg: #ffffff;
    --c-soft: #fdf7f9;
    --c-soft-2: #f6f5fa;
    --c-danger: #e8453c;
    --c-success: #16a34a;

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(31, 34, 51, .06);
    --shadow: 0 4px 16px rgba(31, 34, 51, .08);
    --shadow-lg: 0 12px 32px rgba(31, 34, 51, .12);

    --container: 1600px;
    --header-h: 68px;
    --gap: 20px;

    --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --font-display: "Georgia", "Songti SC", "SimSun", serif;
}

/* ---------------------------------------------------------------- 基础重置 */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.65;
    color: var(--c-ink);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    /* 防止个别超宽元素在窄屏上撑出横向滚动条 */
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 12px; }
a { color: inherit; text-decoration: none; transition: color .18s; }
a:hover { color: var(--c-primary); }
img, svg { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
table { border-collapse: collapse; width: 100%; }
input, select, textarea { font: inherit; color: inherit; }

.kk-container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    /* 边距随视口收缩：36px → 16px */
    padding-inline: clamp(16px, 2.2vw, 34px);
}

.kk-hidden { display: none !important; }
.kk-sr {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------------------------------------------------------------- 按钮 */
.kk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: all .18s;
    cursor: pointer;
}
.kk-btn--primary { background: var(--c-primary); color: #fff; box-shadow: 0 6px 16px rgba(230, 57, 118, .25); }
.kk-btn--primary:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-1px); }
.kk-btn--dark { background: var(--c-ink); color: #fff; }
.kk-btn--dark:hover { background: #000; color: #fff; }
.kk-btn--outline { border-color: var(--c-line-2); background: #fff; color: var(--c-ink); }
.kk-btn--outline:hover { border-color: var(--c-primary); color: var(--c-primary); }
.kk-btn--ghost { background: var(--c-primary-soft); color: var(--c-primary); }
.kk-btn--ghost:hover { background: #ffd9e6; color: var(--c-primary-dark); }
.kk-btn--text { height: auto; padding: 0; color: var(--c-primary); font-weight: 600; }
.kk-btn--block { width: 100%; }
.kk-btn--sm { height: 34px; padding: 0 14px; font-size: 13px; }
.kk-btn--lg { height: 52px; padding: 0 32px; font-size: 16px; }
.kk-btn[disabled], .kk-btn.is-disabled { opacity: .5; pointer-events: none; }

/* ---------------------------------------------------------------- 表单 */
.kk-field { margin-bottom: 18px; }
.kk-label {
    display: block;
    margin-bottom: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--c-ink-2);
}
.kk-label .req { color: var(--c-danger); margin-left: 2px; }
.kk-input,
.kk-select,
.kk-textarea {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--c-line-2);
    border-radius: var(--radius-sm);
    background: #fff;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}
.kk-textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.kk-input:focus,
.kk-select:focus,
.kk-textarea:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-soft); }
.kk-input.is-error,
.kk-select.is-error,
.kk-textarea.is-error { border-color: var(--c-danger); }
.kk-hint { margin-top: 6px; font-size: 12.5px; color: var(--c-muted); }
.kk-error-text { margin-top: 6px; font-size: 12.5px; color: var(--c-danger); }

.kk-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.kk-check input { width: 16px; height: 16px; accent-color: var(--c-primary); }

.kk-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* 单选卡片（支付方式 / 配送方式） */
.kk-radio-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--c-line);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .18s;
    background: #fff;
}
.kk-radio-card:hover { border-color: var(--c-line-2); }
.kk-radio-card input { accent-color: var(--c-primary); width: 18px; height: 18px; }
.kk-radio-card.is-active { border-color: var(--c-primary); background: var(--c-primary-soft); }
.kk-radio-card__icon { width: 32px; height: 32px; flex: 0 0 32px; }
.kk-radio-card__name { font-weight: 600; }
.kk-radio-card__meta { margin-left: auto; font-weight: 700; color: var(--c-primary); }
.kk-radio-card__desc { font-size: 12.5px; color: var(--c-muted); }

/* ---------------------------------------------------------------- 顶栏 */
.kk-topbar {
    background: var(--c-ink);
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
}
.kk-topbar__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 38px;
}
.kk-topbar__notice {
    display: flex; align-items: center; gap: 6px;
    flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.kk-topbar__notice strong { color: var(--c-accent); }
.kk-topbar__links { display: flex; align-items: center; gap: 18px; }
.kk-topbar__links a:hover { color: #fff; }

.kk-lang { position: relative; }
.kk-lang__btn {
    display: inline-flex; align-items: center; gap: 6px;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    padding: 4px 9px; margin: -4px -9px; border-radius: 6px;
    transition: color .16s, background .16s;
}
.kk-lang__btn:hover,
.kk-lang.is-open .kk-lang__btn { color: #111; background: #fff; }
.kk-lang__menu {
    position: absolute; right: 0; top: calc(100% + 8px);
    min-width: 140px; padding: 6px;
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: all .18s; z-index: 300;
}
.kk-lang.is-open .kk-lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.kk-lang__menu a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; border-radius: var(--radius-sm);
    color: var(--c-ink); font-size: 14px;
}
.kk-lang__menu a:hover { background: var(--c-soft); color: #111; }
.kk-lang__menu a.is-active { color: var(--c-primary); font-weight: 600; }

/* ---------------------------------------------------------------- 头部 */
.kk-header {
    position: sticky; top: 0; z-index: 200;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--c-line);
}
.kk-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
}
.kk-logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.kk-logo img { height: 44px; width: auto; }
.kk-logo__text { font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.kk-logo__text span { color: var(--c-primary); }

.kk-search { flex: 1; min-width: 0; max-width: 520px; position: relative; }
/* 头部搜索框：达到最大宽度后停止伸展，剩余空间交给 space-between，使右侧功能区贴到最右 */
.kk-search--header { flex: 1 1 520px; }
/* 移动端搜索条：桌面端默认隐藏，仅 ≤767px 显示（避免与头部搜索框重复） */
.kk-msearch { display: none; }
.kk-search__form {
    display: flex; align-items: center;
    height: 44px; padding: 0 6px 0 16px;
    background: var(--c-soft-2);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    transition: all .18s;
}
.kk-search__form:focus-within { background: #fff; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-soft); }
.kk-search__input { flex: 1; border: 0; background: none; outline: none; font-size: 14.5px; }
.kk-search__btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--c-primary); color: #fff; flex: 0 0 34px;
}
.kk-search__btn:hover { background: var(--c-primary-dark); }
.kk-suggest {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 8px; z-index: 260; display: none;
}
.kk-suggest.is-open { display: block; }
.kk-suggest__item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-sm); }
.kk-suggest__item:hover { background: var(--c-soft); }
.kk-suggest__item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--c-soft-2); }
.kk-suggest__name { font-size: 14px; font-weight: 600; }
.kk-suggest__price { font-size: 13px; color: var(--c-primary); font-weight: 700; }

.kk-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.kk-action {
    position: relative;
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; min-width: 56px; padding: 6px 8px;
    border-radius: var(--radius-sm); color: var(--c-ink-2); font-size: 11.5px;
}
.kk-action:hover { background: var(--c-soft); color: var(--c-primary); }
.kk-action__badge {
    position: absolute; top: 2px; right: 8px;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--c-primary); color: #fff;
    border-radius: var(--radius-pill);
    font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

/* ---------------------------------------------------------------- 主导航 */
.kk-nav { border-bottom: 1px solid var(--c-line); background: #fff; position: relative; z-index: 190; }
.kk-nav__inner { display: flex; align-items: center; gap: 4px; }
.kk-nav__item { position: relative; }
.kk-nav__link {
    display: flex; align-items: center; gap: 7px;
    height: 48px; padding: 0 16px;
    font-size: 15px; font-weight: 600; color: var(--c-ink);
    border-bottom: 2px solid transparent;
}
.kk-nav__link img { width: 20px; height: 20px; }
.kk-nav__item:hover > .kk-nav__link,
.kk-nav__link.is-active { color: var(--c-primary); border-bottom-color: var(--c-primary); }

.kk-mega {
    position: absolute; left: 0; top: 100%;
    min-width: 640px; padding: 22px 24px;
    background: #fff; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 28px;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all .2s; z-index: 250;
}
.kk-nav__item:hover .kk-mega { opacity: 1; visibility: visible; transform: translateY(0); }
.kk-mega__link {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 10px; border-radius: var(--radius-sm);
}
.kk-mega__link:hover { background: var(--c-soft); }
.kk-mega__link img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: 0 0 40px; }
.kk-mega__name { font-size: 14px; font-weight: 600; }
.kk-mega__desc { font-size: 12px; color: var(--c-muted); }

.kk-burger { display: none; }

/* ---------------------------------------------------------------- 抽屉菜单（移动端） */
.kk-drawer {
    position: fixed; inset: 0; z-index: 500;
    visibility: hidden; pointer-events: none;
}
.kk-drawer.is-open { visibility: visible; pointer-events: auto; }
.kk-drawer__mask {
    position: absolute; inset: 0; background: rgba(31, 34, 51, .45);
    opacity: 0; transition: opacity .2s;
}
.kk-drawer.is-open .kk-drawer__mask { opacity: 1; }
.kk-drawer__panel {
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 84%; max-width: 340px;
    background: #fff; overflow-y: auto;
    transform: translateX(-100%); transition: transform .24s ease;
    display: flex; flex-direction: column;
}
.kk-drawer.is-open .kk-drawer__panel { transform: translateX(0); }
.kk-drawer__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; border-bottom: 1px solid var(--c-line);
}
.kk-drawer__body { padding: 8px 0 24px; }
.kk-drawer__group { border-bottom: 1px solid var(--c-line); }
.kk-drawer__group > a,
.kk-drawer__group > button {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 14px 18px; font-size: 15px; font-weight: 600; text-align: left;
}
.kk-drawer__sub { display: none; padding: 0 0 10px 12px; }
.kk-drawer__group.is-open .kk-drawer__sub { display: block; }
.kk-drawer__sub a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 18px; font-size: 14px; color: var(--c-ink-2);
}
.kk-drawer__sub a:hover { color: var(--c-primary); background: var(--c-soft); }
.kk-drawer__sub img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.kk-drawer__foot { margin-top: auto; padding: 18px; background: var(--c-soft-2); }
.kk-drawer__chev { transition: transform .2s; }
.kk-drawer__group.is-open .kk-drawer__chev { transform: rotate(180deg); }

/* ---------------------------------------------------------------- 轮播 */
.kk-hero { position: relative; overflow: hidden; background: var(--c-soft); }
/* 桌面端：轮播文案向内缩进，给左右切换箭头让位，避免压住标题 */
@media (min-width: 1200px) {
    .kk-hero .kk-slide .kk-container { padding-inline: clamp(64px, 4.5vw, 96px); }
}
.kk-slides { position: relative; }
.kk-slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden; transition: opacity .5s;
    display: flex; align-items: center;
}
.kk-slide:first-child { position: relative; min-height: clamp(380px, 30vw, 560px); }
.kk-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.kk-slide__bg { position: absolute; inset: 0; }
.kk-slide__bg img { width: 100%; height: 100%; object-fit: cover; }
.kk-slide__inner { position: relative; z-index: 2; padding: clamp(40px, 4.5vw, 84px) 0; max-width: 560px; }
.kk-slide__title { font-family: var(--font-display); font-size: clamp(28px, 3.3vw, 52px); line-height: 1.15; margin-bottom: 14px; }
.kk-slide__sub { font-size: clamp(14.5px, 1.05vw, 18px); color: var(--c-ink-2); margin-bottom: 26px; }
.kk-slide__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.kk-hero__dots {
    position: absolute; left: 0; right: 0; bottom: 20px;
    display: flex; justify-content: center; gap: 8px; z-index: 5;
}
.kk-hero__dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: rgba(31, 34, 51, .22); transition: all .2s;
}
.kk-hero__dot.is-active { width: 26px; border-radius: var(--radius-pill); background: var(--c-primary); }
.kk-hero__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255, 255, 255, .9); box-shadow: var(--shadow);
    display: flex; align-items: center; justify-content: center;
    z-index: 5; color: var(--c-ink);
}
.kk-hero__arrow:hover { background: #fff; color: var(--c-primary); }
.kk-hero__arrow--prev { left: 20px; }
.kk-hero__arrow--next { right: 20px; }

/* ---------------------------------------------------------------- 通用区块 */
.kk-section { padding: 56px 0; }
.kk-section--soft { background: var(--c-soft); }
.kk-section--tight { padding: 34px 0; }
.kk-section__head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 18px; margin-bottom: 26px;
}
.kk-section__title { font-size: 26px; }
.kk-section__sub { margin-top: 5px; font-size: 14px; color: var(--c-muted); }
.kk-section__more { font-size: 14px; font-weight: 600; color: var(--c-primary); white-space: nowrap; }

/* 面包屑 */
.kk-breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    padding: 16px 0; font-size: 13.5px; color: var(--c-muted);
}
.kk-breadcrumb a:hover { color: var(--c-primary); }
.kk-breadcrumb__sep { color: var(--c-line-2); }

/* ---------------------------------------------------------------- 商品卡片 */
.kk-grid { display: grid; gap: var(--gap); }
.kk-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kk-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kk-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kk-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.kk-card {
    position: relative;
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--c-line);
    border-radius: var(--radius); overflow: hidden;
    transition: all .2s;
}
.kk-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--c-line-2); }
.kk-card__media { position: relative; aspect-ratio: 1 / 1; background: var(--c-soft-2); overflow: hidden; }
.kk-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.kk-card:hover .kk-card__media img { transform: scale(1.05); }
/* 帮助中心/文章：无配图时的兜底底色 */
.kk-card__media-blank { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #fff3f6 0%, #ffe8ef 100%); }
.kk-card__body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.kk-card__name {
    font-size: 14.5px; font-weight: 600; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kk-card__sub { font-size: 12.5px; color: var(--c-muted); }
.kk-card__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--c-muted); }
.kk-card__price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; }
.kk-card__price { font-size: 18px; font-weight: 800; color: var(--c-primary); }
.kk-card__old { font-size: 13px; color: var(--c-muted); text-decoration: line-through; }

.kk-badges { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.kk-badge {
    padding: 3px 9px; border-radius: var(--radius-pill);
    font-size: 11.5px; font-weight: 700; color: #fff; background: var(--c-ink);
}
.kk-badge--sale { background: var(--c-primary); }
.kk-badge--new { background: var(--c-teal); }
.kk-badge--hot { background: var(--c-accent); color: var(--c-ink); }

.kk-fav {
    position: absolute; right: 10px; top: 10px; z-index: 3;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--c-muted); transition: all .18s;
}
.kk-fav:hover, .kk-fav.is-active { color: var(--c-primary); }
.kk-fav.is-active svg { fill: var(--c-primary); }

/* 内联收藏按钮（商品详情操作区） */
.kk-fav--inline {
    position: static; right: auto; top: auto;
    width: 52px; height: 52px; flex: 0 0 52px;
    border: 1px solid var(--c-line-2); background: #fff;
}
.kk-fav--inline:hover { border-color: var(--c-primary); }

.kk-stars { display: inline-flex; align-items: center; gap: 2px; color: var(--c-accent); }
.kk-stars svg { width: 13px; height: 13px; }

/* ---------------------------------------------------------------- 分类图块 */
.kk-cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.kk-cat {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 18px 10px; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--c-line);
    text-align: center; transition: all .2s;
}
.kk-cat:hover { border-color: var(--c-primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.kk-cat__img {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--c-soft); overflow: hidden; flex: 0 0 72px;
}
.kk-cat__img img { width: 100%; height: 100%; object-fit: cover; }
.kk-cat__name { font-size: 14px; font-weight: 600; }

/* 场景胶囊 */
.kk-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.kk-chip {
    padding: 8px 18px; border-radius: var(--radius-pill);
    background: #fff; border: 1px solid var(--c-line-2);
    font-size: 14px; font-weight: 500; transition: all .18s;
}
.kk-chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.kk-chip.is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* ---------------------------------------------------------------- 品牌墙 */
.kk-brands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kk-brand {
    display: flex; align-items: center; gap: 14px;
    padding: 18px; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--c-line); transition: all .2s;
}
.kk-brand:hover { box-shadow: var(--shadow); border-color: var(--c-line-2); transform: translateY(-2px); }
.kk-brand__logo {
    width: 58px; height: 58px; flex: 0 0 58px; border-radius: var(--radius-sm);
    background: var(--c-soft-2); overflow: hidden;
}
.kk-brand__logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.kk-brand__name { font-size: 15px; font-weight: 700; }
.kk-brand__meta { font-size: 12.5px; color: var(--c-muted); }

/* ---------------------------------------------------------------- 优惠券卡片 */
.kk-coupons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kk-coupon {
    position: relative;
    display: flex; align-items: stretch; gap: 14px;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fff5f8 0%, #ffeef5 100%);
    border: 1px dashed var(--c-primary);
    overflow: hidden;
}
.kk-coupon::after,
.kk-coupon::before {
    content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%;
    background: #fff; right: 92px;
}
.kk-coupon::before { top: -8px; }
.kk-coupon::after { bottom: -8px; }
.kk-coupon__value { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--c-primary); line-height: 1; }
.kk-coupon__value small { font-size: 15px; margin-left: 2px; }
.kk-coupon__name { font-size: 14.5px; font-weight: 600; margin-top: 6px; }
.kk-coupon__cond { font-size: 12.5px; color: var(--c-muted); }
.kk-coupon__side { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.kk-coupon__code {
    padding: 4px 10px; border-radius: var(--radius-sm);
    background: #fff; border: 1px dashed var(--c-primary);
    font-size: 12.5px; font-weight: 700; color: var(--c-primary); letter-spacing: .5px;
}

/* ---------------------------------------------------------------- 服务承诺 */
.kk-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.kk-service { display: flex; gap: 14px; align-items: flex-start; }
.kk-service__icon {
    width: 44px; height: 44px; flex: 0 0 44px; border-radius: var(--radius-sm);
    background: var(--c-primary-soft); color: var(--c-primary);
    display: flex; align-items: center; justify-content: center;
}
.kk-service__title { font-size: 14.5px; font-weight: 700; }
.kk-service__desc { font-size: 12.5px; color: var(--c-muted); }

/* ---------------------------------------------------------------- 促销横幅 */
.kk-promo {
    position: relative; overflow: hidden;
    border-radius: var(--radius-lg);
    min-height: 220px; display: flex; align-items: center;
}
.kk-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kk-promo__inner { position: relative; z-index: 2; padding: 40px; max-width: 520px; }
.kk-promo__title { font-family: var(--font-display); font-size: 30px; margin-bottom: 10px; }
.kk-promo__sub { color: var(--c-ink-2); margin-bottom: 20px; }

/* ---------------------------------------------------------------- 商品详情 */
.kk-pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 44px; padding: 8px 0 20px; }
.kk-pdp__gallery { position: relative; }
.kk-pdp__info { min-width: 0; }
.kk-pdp__main {
    position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg);
    overflow: hidden; background: var(--c-soft-2); border: 1px solid var(--c-line);
}
.kk-pdp__main img { width: 100%; height: 100%; object-fit: cover; }
.kk-pdp__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.kk-pdp__thumb {
    width: 74px; height: 74px; border-radius: var(--radius-sm); overflow: hidden;
    border: 2px solid transparent; background: var(--c-soft-2); cursor: pointer;
}
.kk-pdp__thumb.is-active { border-color: var(--c-primary); }
.kk-pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }

.kk-pdp__title { font-size: 28px; line-height: 1.28; margin-bottom: 10px; }
.kk-pdp__sub { color: var(--c-muted); margin-bottom: 14px; }
.kk-pdp__rating { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--c-muted); margin-bottom: 16px; }
.kk-pdp__price-box {
    display: flex; align-items: baseline; gap: 12px;
    padding: 16px 20px; border-radius: var(--radius);
    background: var(--c-soft); margin-bottom: 20px;
}
.kk-pdp__price { font-size: 34px; font-weight: 800; color: var(--c-primary); line-height: 1; }
.kk-pdp__old { font-size: 15px; color: var(--c-muted); text-decoration: line-through; }
.kk-pdp__save { margin-left: auto; font-size: 13px; font-weight: 700; color: #fff; background: var(--c-primary); padding: 3px 10px; border-radius: var(--radius-pill); }

.kk-pdp__row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; font-size: 14px; }
.kk-pdp__row-label { flex: 0 0 76px; color: var(--c-muted); padding-top: 7px; }
.kk-pdp__row-value { flex: 1; }

.kk-size-list { display: flex; flex-wrap: wrap; gap: 10px; }
.kk-size {
    padding: 9px 18px; border-radius: var(--radius-sm);
    border: 1px solid var(--c-line-2); background: #fff;
    font-size: 14px; cursor: pointer; transition: all .18s;
}
.kk-size:hover { border-color: var(--c-primary); }
.kk-size.is-active { border-color: var(--c-primary); background: var(--c-primary-soft); color: var(--c-primary); font-weight: 700; }

.kk-qty { display: inline-flex; align-items: center; border: 1px solid var(--c-line-2); border-radius: var(--radius-sm); overflow: hidden; }
.kk-qty button {
    width: 40px; height: 42px; font-size: 18px; color: var(--c-ink-2);
    display: flex; align-items: center; justify-content: center;
}
.kk-qty button:hover { background: var(--c-soft); color: var(--c-primary); }
.kk-qty input {
    width: 58px; height: 42px; text-align: center; border: 0;
    border-left: 1px solid var(--c-line-2); border-right: 1px solid var(--c-line-2);
    outline: none; font-weight: 600;
}

.kk-pdp__actions { display: flex; gap: 12px; margin: 22px 0 18px; flex-wrap: wrap; }
.kk-pdp__actions .kk-btn { flex: 1; min-width: 160px; }

.kk-trust { display: grid; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--c-soft-2); font-size: 13.5px; }
.kk-trust__item { display: flex; align-items: center; gap: 10px; color: var(--c-ink-2); }
.kk-trust__item svg { color: var(--c-primary); flex: 0 0 16px; }

.kk-tabs { border-bottom: 1px solid var(--c-line); display: flex; gap: 6px; margin-bottom: 24px; overflow-x: auto; }
.kk-tab {
    padding: 13px 20px; font-size: 15px; font-weight: 600; color: var(--c-muted);
    border-bottom: 2px solid transparent; white-space: nowrap;
}
.kk-tab.is-active { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.kk-tabpanel { display: none; }
.kk-tabpanel.is-active { display: block; }

.kk-rich { font-size: 15px; line-height: 1.85; color: var(--c-ink-2); }
.kk-rich h2 { font-size: 20px; margin: 26px 0 12px; color: var(--c-ink); }
.kk-rich h3 { font-size: 17px; margin: 22px 0 10px; color: var(--c-ink); }
.kk-rich ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.kk-rich ol { list-style: decimal; padding-left: 22px; margin-bottom: 14px; }
.kk-rich li { margin-bottom: 6px; }
.kk-rich img { border-radius: var(--radius); margin: 16px 0; }
.kk-rich table { margin: 16px 0; }
.kk-rich th, .kk-rich td { border: 1px solid var(--c-line); padding: 10px 14px; text-align: left; }
.kk-rich th { background: var(--c-soft-2); font-weight: 700; }

.kk-review { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.kk-review:last-child { border-bottom: 0; }
.kk-review__avatar {
    width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%;
    background: var(--c-primary-soft); color: var(--c-primary);
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.kk-review__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kk-review__name { font-weight: 700; }
.kk-review__date { font-size: 12.5px; color: var(--c-muted); margin-left: auto; }
.kk-review__title { font-weight: 600; margin: 6px 0 4px; }
.kk-review__text { font-size: 14px; color: var(--c-ink-2); }
.kk-rating-summary { display: flex; gap: 32px; align-items: center; padding: 20px; border-radius: var(--radius); background: var(--c-soft-2); margin-bottom: 12px; flex-wrap: wrap; }
.kk-rating-score { font-family: var(--font-display); font-size: 46px; font-weight: 700; color: var(--c-primary); line-height: 1; }
.kk-rating-bars { flex: 1; min-width: 220px; display: grid; gap: 6px; }
.kk-rating-bar { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--c-muted); }
.kk-rating-bar__track { flex: 1; height: 6px; border-radius: 3px; background: var(--c-line); overflow: hidden; }
.kk-rating-bar__fill { height: 100%; background: var(--c-accent); border-radius: 3px; }

/* ---------------------------------------------------------------- 定制编辑器 */
.kk-editor { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
.kk-editor__stage {
    position: relative; display: flex; align-items: center; justify-content: center;
    min-height: 520px; padding: 32px; border-radius: var(--radius-lg);
    background: repeating-conic-gradient(#f4f3f8 0% 25%, #ffffff 0% 50%) 50% / 22px 22px;
    border: 1px solid var(--c-line);
}
.kk-canvas-wrap {
    position: relative; background: #fff; border-radius: 10px;
    box-shadow: var(--shadow-lg); overflow: hidden; touch-action: none;
}
.kk-canvas-wrap canvas { display: block; width: 100%; height: auto; }
.kk-canvas-layer { position: absolute; inset: 0; }
.kk-canvas-item {
    position: absolute; cursor: move; user-select: none;
    border: 1px dashed transparent; border-radius: 4px;
}
.kk-canvas-item:hover,
.kk-canvas-item.is-active { border-color: var(--c-primary); }
.kk-canvas-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.kk-canvas-item.is-text { display: flex; align-items: center; pointer-events: auto; }
.kk-canvas-item.is-text span { pointer-events: none; width: 100%; }

.kk-editor__panel { position: sticky; top: calc(var(--header-h) + 20px); }
.kk-panel-card {
    background: #fff; border: 1px solid var(--c-line);
    border-radius: var(--radius-lg); overflow: hidden;
}
.kk-panel-card + .kk-panel-card { margin-top: 16px; }
.kk-panel-card__head {
    padding: 16px 20px; border-bottom: 1px solid var(--c-line);
    font-weight: 700; font-size: 15px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.kk-panel-card__body { padding: 20px; }

.kk-editor__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.kk-editor__price b { font-size: 28px; color: var(--c-primary); }

.kk-toolrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.kk-toolrow__label { font-size: 13px; color: var(--c-muted); flex: 0 0 52px; }
.kk-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.kk-swatch {
    width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid #fff; box-shadow: 0 0 0 1px var(--c-line-2);
    cursor: pointer; transition: transform .15s;
}
.kk-swatch:hover { transform: scale(1.1); }
.kk-swatch.is-active { box-shadow: 0 0 0 2px var(--c-primary); }

.kk-upload-box {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; padding: 24px; border: 2px dashed var(--c-line-2);
    border-radius: var(--radius); background: var(--c-soft-2);
    cursor: pointer; text-align: center; transition: all .18s;
}
.kk-upload-box:hover { border-color: var(--c-primary); background: var(--c-primary-soft); }
.kk-upload-box__icon { color: var(--c-primary); }

.kk-layer-list { display: grid; gap: 8px; }
.kk-layer {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: var(--radius-sm);
    background: var(--c-soft-2); font-size: 13.5px; cursor: pointer;
}
.kk-layer.is-active { background: var(--c-primary-soft); color: var(--c-primary); font-weight: 600; }
.kk-layer__del { margin-left: auto; color: var(--c-muted); }
.kk-layer__del:hover { color: var(--c-danger); }

.kk-step-tabs { display: flex; gap: 6px; margin-bottom: 24px; background: var(--c-soft-2); padding: 6px; border-radius: var(--radius-pill); }
.kk-step-tab {
    flex: 1; padding: 10px 14px; border-radius: var(--radius-pill);
    font-size: 14px; font-weight: 600; color: var(--c-muted); text-align: center;
}
.kk-step-tab.is-active { background: #fff; color: var(--c-primary); box-shadow: var(--shadow-sm); }

/* ---------------------------------------------------------------- 购物车 */
.kk-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.kk-cart-table { width: 100%; }
.kk-cart-table th {
    padding: 12px 14px; font-size: 13px; font-weight: 600; color: var(--c-muted);
    border-bottom: 1px solid var(--c-line); text-align: left;
}
.kk-cart-item { border-bottom: 1px solid var(--c-line); }
.kk-cart-item td { padding: 18px 14px; vertical-align: top; }
.kk-cart-item__product { display: flex; gap: 14px; }
.kk-cart-item__img {
    width: 92px; height: 92px; flex: 0 0 92px; border-radius: var(--radius-sm);
    overflow: hidden; background: var(--c-soft-2); border: 1px solid var(--c-line);
}
.kk-cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.kk-cart-item__name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.kk-cart-item__meta { font-size: 12.5px; color: var(--c-muted); }
.kk-cart-item__meta span + span::before { content: '·'; margin: 0 6px; }
.kk-cart-item__price { font-weight: 700; color: var(--c-primary); white-space: nowrap; }
.kk-cart-item__remove { color: var(--c-muted); font-size: 13px; }
.kk-cart-item__remove:hover { color: var(--c-danger); }

.kk-summary { position: sticky; top: calc(var(--header-h) + 20px); }
.kk-summary__list { display: grid; gap: 12px; padding: 20px; border-bottom: 1px solid var(--c-line); }
.kk-summary__row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.kk-summary__row span:first-child { color: var(--c-muted); }
.kk-summary__row--total { font-size: 17px; font-weight: 700; padding-top: 12px; border-top: 1px dashed var(--c-line-2); }
.kk-summary__row--total .kk-summary__amount { font-size: 24px; color: var(--c-primary); font-family: var(--font-display); }
.kk-summary__foot { padding: 20px; }
.kk-summary__discount { color: var(--c-success); }

.kk-coupon-form { display: flex; gap: 8px; }
.kk-coupon-form .kk-input { flex: 1; }

.kk-empty { padding: 60px 20px; text-align: center; }
.kk-empty__icon {
    width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%;
    background: var(--c-soft); color: var(--c-primary);
    display: flex; align-items: center; justify-content: center;
}
.kk-empty__title { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.kk-empty__sub { color: var(--c-muted); margin-bottom: 22px; }

/* ---------------------------------------------------------------- 结算 */
.kk-checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.kk-stepper { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.kk-stepper__item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--c-muted); font-weight: 600; }
.kk-stepper__num {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--c-soft-2); color: var(--c-muted);
    display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.kk-stepper__item.is-active { color: var(--c-primary); }
.kk-stepper__item.is-active .kk-stepper__num { background: var(--c-primary); color: #fff; }
.kk-stepper__line { width: 40px; height: 1px; background: var(--c-line-2); }

.kk-blocks { display: grid; gap: 20px; }
.kk-block { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; }
.kk-block__head { padding: 16px 22px; border-bottom: 1px solid var(--c-line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kk-block__title { font-size: 16px; font-weight: 700; }
.kk-block__body { padding: 22px; }

.kk-addr-list { display: grid; gap: 12px; margin-bottom: 20px; }
.kk-addr {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px; border: 2px solid var(--c-line); border-radius: var(--radius);
    cursor: pointer; transition: all .18s; background: #fff;
}
.kk-addr:hover { border-color: var(--c-line-2); }
.kk-addr.is-active { border-color: var(--c-primary); background: var(--c-primary-soft); }
.kk-addr input { accent-color: var(--c-primary); margin-top: 4px; }
.kk-addr__name { font-weight: 700; }
.kk-addr__text { font-size: 13.5px; color: var(--c-ink-2); }

.kk-pay-list { display: grid; gap: 10px; }
.kk-slot-list { display: flex; gap: 10px; flex-wrap: wrap; }

.kk-mini-items { display: grid; gap: 14px; }
.kk-mini-item { display: flex; gap: 12px; align-items: center; }
.kk-mini-item__img { width: 60px; height: 60px; flex: 0 0 60px; border-radius: var(--radius-sm); overflow: hidden; background: var(--c-soft-2); }
.kk-mini-item__img img { width: 100%; height: 100%; object-fit: cover; }
.kk-mini-item__name { font-size: 14px; font-weight: 600; line-height: 1.4; }
.kk-mini-item__qty { font-size: 12.5px; color: var(--c-muted); }
.kk-mini-item__price { margin-left: auto; font-weight: 700; white-space: nowrap; }

/* ---------------------------------------------------------------- 支付 / 结果 */
.kk-pay-card { max-width: 620px; margin: 0 auto; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 36px; text-align: center; }
.kk-pay-card__amount { font-family: var(--font-display); font-size: 46px; font-weight: 700; color: var(--c-primary); line-height: 1.1; }
.kk-qr {
    width: 200px; height: 200px; margin: 24px auto;
    border: 1px solid var(--c-line); border-radius: var(--radius); padding: 12px; background: #fff;
}
.kk-qr img, .kk-qr svg { width: 100%; height: 100%; }

.kk-result-icon {
    width: 78px; height: 78px; margin: 0 auto 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #e8f9ef; color: var(--c-success);
}
.kk-result-icon--pending { background: var(--c-accent-soft); color: #b87800; }

.kk-info-table { width: 100%; font-size: 14px; }
.kk-info-table th, .kk-info-table td { padding: 11px 0; text-align: left; border-bottom: 1px dashed var(--c-line); vertical-align: top; }
.kk-info-table th { width: 130px; color: var(--c-muted); font-weight: 500; }
.kk-info-table tr:last-child th, .kk-info-table tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------------- 会员中心 */
.kk-account { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.kk-side { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: calc(var(--header-h) + 20px); }
.kk-side__user { padding: 22px; text-align: center; background: linear-gradient(160deg, var(--c-primary-soft), #fff); border-bottom: 1px solid var(--c-line); }
.kk-side__avatar {
    width: 66px; height: 66px; margin: 0 auto 12px; border-radius: 50%;
    background: var(--c-primary); color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 700; overflow: hidden;
}
.kk-side__avatar img { width: 100%; height: 100%; object-fit: cover; }
.kk-side__name { font-weight: 700; font-size: 15.5px; }
.kk-side__email { font-size: 12.5px; color: var(--c-muted); word-break: break-all; }
.kk-side__nav { padding: 8px; }
.kk-side__link {
    display: flex; align-items: center; gap: 11px;
    padding: 12px 14px; border-radius: var(--radius-sm);
    font-size: 14.5px; font-weight: 500; color: var(--c-ink-2);
}
.kk-side__link:hover { background: var(--c-soft); color: var(--c-primary); }
.kk-side__link.is-active { background: var(--c-primary-soft); color: var(--c-primary); font-weight: 700; }
.kk-side__link svg { flex: 0 0 17px; }

.kk-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.kk-stat {
    padding: 20px; border-radius: var(--radius); background: #fff;
    border: 1px solid var(--c-line); text-align: center;
}
.kk-stat__num { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--c-primary); line-height: 1.1; }
.kk-stat__label { font-size: 13px; color: var(--c-muted); margin-top: 4px; }

.kk-panel { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 22px; }
.kk-panel__head { padding: 16px 22px; border-bottom: 1px solid var(--c-line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kk-panel__title { font-size: 16px; font-weight: 700; }
.kk-panel__body { padding: 22px; }

.kk-order-card { border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.kk-order-card__head {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 13px 18px; background: var(--c-soft-2); font-size: 13.5px; color: var(--c-ink-2);
}
.kk-order-card__no { font-weight: 700; color: var(--c-ink); }
.kk-order-card__status { margin-left: auto; font-weight: 700; color: var(--c-primary); }
.kk-order-card__body { padding: 18px; display: grid; gap: 14px; }
.kk-order-card__foot { padding: 13px 18px; border-top: 1px solid var(--c-line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

.kk-timeline { display: grid; gap: 18px; }
.kk-timeline__item { display: flex; gap: 14px; }
.kk-timeline__dot {
    width: 11px; height: 11px; border-radius: 50%; background: var(--c-primary);
    margin-top: 6px; flex: 0 0 11px; position: relative;
}
.kk-timeline__item:not(:last-child) .kk-timeline__dot::after {
    content: ''; position: absolute; left: 50%; top: 15px; transform: translateX(-50%);
    width: 1px; height: calc(100% + 14px); background: var(--c-line-2);
}
.kk-timeline__action { font-weight: 600; font-size: 14px; }
.kk-timeline__time { font-size: 12.5px; color: var(--c-muted); }
.kk-timeline__note { font-size: 13.5px; color: var(--c-ink-2); }

/* ---------------------------------------------------------------- 授权页 */
.kk-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - var(--header-h) - 38px); }
.kk-auth__aside {
    position: relative; display: flex; flex-direction: column; justify-content: center;
    padding: 60px 48px; background: linear-gradient(150deg, #ffe9f1 0%, #fff5dd 100%);
    overflow: hidden;
}
/* 背景柔光斑：增加层次深度 */
.kk-auth__aside::before {
    content: ''; position: absolute; width: 460px; height: 460px; border-radius: 50%;
    background: rgba(255, 255, 255, .5); top: -160px; right: -140px;
}
.kk-auth__aside::after {
    content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%;
    background: rgba(255, 255, 255, .35); bottom: -90px; left: -70px;
}
.kk-auth__intro {
    position: relative; z-index: 2; width: 100%; max-width: 460px;
    margin: 0 auto; padding-bottom: 150px; /* 给右下角贺卡插画留出视觉空间 */
}
.kk-auth__title { font-family: var(--font-display); font-size: 38px; margin-bottom: 18px; position: relative; }
.kk-auth__title::after {
    content: ''; display: block; width: 46px; height: 4px; border-radius: 2px;
    background: linear-gradient(90deg, var(--c-primary), #ffb347); margin-top: 16px;
}
.kk-auth__sub { font-size: 16px; line-height: 1.7; color: var(--c-ink-2); max-width: 380px; }
.kk-auth__points { margin-top: 28px; display: grid; gap: 12px; }
/* 卖点改为半透明白卡片 + 圆形图标底，更有层次 */
.kk-auth__point {
    display: flex; align-items: center; gap: 13px; font-size: 14.5px;
    background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 14px; padding: 13px 16px;
    box-shadow: 0 6px 18px rgba(230, 57, 118, .07);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.kk-auth__point svg {
    color: var(--c-primary); flex: 0 0 38px; width: 38px; height: 38px;
    padding: 9px; box-sizing: border-box; background: #ffe3ee; border-radius: 50%;
}
/* 右下角品牌插画：白框贺卡 + 旋转贴纸 */
.kk-auth__art { position: absolute; right: 56px; bottom: 64px; z-index: 2; width: 200px; }
.kk-auth__art-card {
    display: block; width: 200px; height: 200px; object-fit: cover;
    border-radius: 20px; background: #fff; border: 7px solid #fff;
    box-shadow: 0 26px 52px rgba(230, 57, 118, .2);
    transform: rotate(-5deg);
}
.kk-auth__art-sticker {
    position: absolute; width: 60px; height: 60px; right: -18px; top: -24px;
    transform: rotate(12deg);
    filter: drop-shadow(0 8px 16px rgba(230, 57, 118, .28));
}
.kk-auth__main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.kk-auth__form { width: 100%; max-width: 420px; }
.kk-auth__form h1 { font-size: 27px; margin-bottom: 8px; }
.kk-auth__form > p { color: var(--c-muted); margin-bottom: 28px; }

/* ---------------------------------------------------------------- CMS 页面 */
.kk-page { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; padding: 10px 0 40px; }
.kk-page__hero {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    min-height: 200px; display: flex; align-items: flex-end; margin-bottom: 26px;
    background: linear-gradient(135deg, #ffe9f1, #fff5dd);
}
.kk-page__hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kk-page__hero::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .62) 45%, rgba(255, 255, 255, 0) 72%);
}
.kk-page__hero-inner { position: relative; z-index: 2; padding: 26px 28px; }
.kk-page__hero h1 { font-size: 30px; }

/* ---------------------------------------------------------------- 页脚 */
.kk-footer { margin-top: 40px; background: var(--c-ink); color: rgba(255, 255, 255, .7); font-size: 14px; }
.kk-footer a { color: rgba(255, 255, 255, .7); }
.kk-footer a:hover { color: #fff; }
.kk-footer__top { padding: 52px 0 40px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) 1.4fr; gap: 32px; }
.kk-footer__brand img { height: 38px; margin-bottom: 16px; padding: 9px 13px;
    background: #fff; border-radius: 10px; box-sizing: content-box; }
.kk-footer__desc { font-size: 13.5px; line-height: 1.75; margin-bottom: 18px; }
.kk-footer__title { color: #fff; font-size: 14.5px; font-weight: 700; margin-bottom: 16px; }
.kk-footer__links { display: grid; gap: 10px; }
.kk-footer__social { display: flex; gap: 10px; }
.kk-footer__social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    display: flex; align-items: center; justify-content: center;
}
.kk-footer__social a:hover { background: var(--c-primary); color: #fff; }
.kk-footer__sub { display: flex; gap: 8px; margin-top: 12px; }
.kk-footer__sub input {
    flex: 1; height: 42px; padding: 0 14px; border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); color: #fff; outline: none;
}
.kk-footer__sub input::placeholder { color: rgba(255, 255, 255, .45); }
.kk-footer__sub input:focus { border-color: var(--c-primary); }
.kk-footer__bottom {
    padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    font-size: 13px;
}
.kk-footer__pay { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kk-footer__pay img { height: 24px; width: auto; opacity: .8; }

/* ---------------------------------------------------------------- 分页 */
.kk-pager { display: flex; justify-content: center; gap: 8px; margin-top: 34px; flex-wrap: wrap; }
.kk-pager a, .kk-pager span {
    min-width: 40px; height: 40px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--c-line-2); border-radius: var(--radius-sm);
    font-size: 14px; background: #fff;
}
.kk-pager a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.kk-pager .is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; font-weight: 700; }
.kk-pager .is-disabled { opacity: .4; pointer-events: none; }

/* ---------------------------------------------------------------- Toast */
.kk-toast-wrap { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 900; display: grid; gap: 10px; pointer-events: none; }
.kk-toast {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px; border-radius: var(--radius-pill);
    background: var(--c-ink); color: #fff; font-size: 14px; font-weight: 500;
    box-shadow: var(--shadow-lg); animation: kkToastIn .25s ease;
}
.kk-toast--success { background: #10894d; }
.kk-toast--error { background: #c9332b; }
@keyframes kkToastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }

/* 悬浮返回顶部 */
.kk-top {
    position: fixed; right: 22px; bottom: 26px; z-index: 400;
    width: 44px; height: 44px; border-radius: 50%;
    background: #fff; box-shadow: var(--shadow-lg); color: var(--c-ink);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all .22s;
}
.kk-top.is-show { opacity: 1; visibility: visible; }
.kk-top:hover { background: var(--c-primary); color: #fff; }

/* 移动端底部操作条 */
.kk-mobile-bar { display: none; }

/* ---------------------------------------------------------------- 筛选侧栏 */
.kk-listing { display: grid; grid-template-columns: 246px minmax(0, 1fr); gap: 30px; align-items: start; }
.kk-filters { position: sticky; top: calc(var(--header-h) + 20px); }
.kk-filter-group { padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.kk-filter-group:last-child { border-bottom: 0; }
.kk-filter-group__title {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; font-size: 14.5px; font-weight: 700; margin-bottom: 12px; text-align: left;
}
.kk-filter-group__body { display: grid; gap: 9px; }
.kk-option { display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; color: var(--c-ink-2); }
.kk-option input { accent-color: var(--c-primary); width: 15px; height: 15px; }
.kk-option:hover { color: var(--c-primary); }
.kk-option__count { margin-left: auto; font-size: 12px; color: var(--c-muted); }

.kk-toolbar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 12px 16px; background: var(--c-soft-2); border-radius: var(--radius); margin-bottom: 20px;
}
.kk-toolbar__count { font-size: 13.5px; color: var(--c-muted); margin-right: auto; }
.kk-sorts { display: flex; gap: 6px; flex-wrap: wrap; }
.kk-sort {
    padding: 7px 14px; border-radius: var(--radius-pill); font-size: 13.5px;
    background: #fff; border: 1px solid var(--c-line);
}
.kk-sort:hover { border-color: var(--c-primary); color: var(--c-primary); }
.kk-sort.is-active { background: var(--c-ink); border-color: var(--c-ink); color: #fff; font-weight: 600; }

.kk-filter-toggle { display: none; }

/* 分类横幅 */
.kk-catbanner {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    min-height: 190px; display: flex; align-items: center; margin-bottom: 4px;
    background: linear-gradient(135deg, var(--c-soft), var(--c-accent-soft));
}
.kk-catbanner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kk-catbanner__inner { position: relative; z-index: 2; padding: 30px 34px; }
.kk-catbanner__inner h1 { font-size: 32px; margin-bottom: 8px; }
.kk-catbanner__inner p { color: var(--c-ink-2); max-width: 560px; }

/* ---------------------------------------------------------------- 弹窗 */
.kk-modal {
    position: fixed; inset: 0; z-index: 800;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.kk-modal.is-open { opacity: 1; visibility: visible; }
.kk-modal::before { content: ''; position: absolute; inset: 0; background: rgba(20, 22, 34, .5); }
.kk-modal__panel {
    position: relative; z-index: 2; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
    background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.kk-modal__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 22px; border-bottom: 1px solid var(--c-line);
}
.kk-modal__title { font-size: 17px; font-weight: 700; }
.kk-modal__close {
    width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--c-muted); background: var(--c-soft-2);
}
.kk-modal__close:hover { background: var(--c-line); color: var(--c-ink); }
.kk-modal__body { padding: 22px; }
.kk-modal__foot {
    padding: 16px 22px; border-top: 1px solid var(--c-line);
    display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap;
}

/* ---------------------------------------------------------------- 表单栅格 */
.kk-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.kk-form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kk-form-grid .kk-field--full { grid-column: 1 / -1; }

/* 图片 / 内容块 */
.kk-thumb { width: 64px; height: 64px; flex: 0 0 64px; border-radius: var(--radius-sm); overflow: hidden; background: var(--c-soft-2); border: 1px solid var(--c-line); }
.kk-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kk-thumb--lg { width: 100px; height: 100px; flex: 0 0 100px; }

/* 汇总行内的小字 */
.kk-muted { color: var(--c-muted); }
.kk-nowrap { white-space: nowrap; }
.kk-mt-16 { margin-top: 16px; }
.kk-mb-16 { margin-bottom: 16px; }
.kk-text-right { text-align: right; }

/* 品牌详情头 */
.kk-brand-hero {
    display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
    padding: 26px 28px; border-radius: var(--radius-lg); margin-bottom: 24px;
    background: linear-gradient(135deg, var(--c-soft), var(--c-accent-soft));
}
.kk-brand-hero__logo {
    width: 96px; height: 96px; flex: 0 0 96px; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--c-line); padding: 12px;
    display: flex; align-items: center; justify-content: center;
}
.kk-brand-hero__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.kk-brand-hero h1 { font-size: 28px; margin-bottom: 6px; }
.kk-brand-hero p { color: var(--c-ink-2); max-width: 640px; font-size: 14.5px; }

/* ==========================================================================
   页面骨架 / 首页分栏
   ========================================================================== */
.kk-body { min-height: 100vh; display: flex; flex-direction: column; }
.kk-main { flex: 1 1 auto; min-width: 0; }

.kk-home-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 24px;
    align-items: start;
}
.kk-home-split > .kk-promo { min-height: 100%; }

/* ==========================================================================
   响应式体系
   容器最大 1600px；断点：≥1440 / ≤1199 / ≤991 / ≤767 / ≤479 / ≤359
   ========================================================================== */

/* ---------------------------------------------- 大桌面 ≥1440 */
@media (min-width: 1440px) {
    :root { --gap: 24px; --header-h: 76px; }

    /* 容器变宽后同步加列，避免单个卡片被拉得过大 */
    .kk-grid--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .kk-grid--4 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .kk-grid--3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .kk-cats { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .kk-brands { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .kk-coupons { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .kk-services { gap: 28px; }

    .kk-search--header { flex: 1 1 600px; max-width: 620px; }
    .kk-action { min-width: 62px; }
    .kk-nav__link { padding: 0 18px; }

    .kk-section { padding: 72px 0; }
    .kk-section--tight { padding: 44px 0; }
    .kk-section__title { font-size: 28px; }
    .kk-slide__inner { max-width: 640px; }
    .kk-promo__inner { max-width: 620px; padding: 48px; }

    /* 侧栏类布局同步加宽，正文更舒展 */
    .kk-listing { grid-template-columns: 260px minmax(0, 1fr); gap: 36px; }
    .kk-account, .kk-page { grid-template-columns: 270px minmax(0, 1fr); gap: 40px; }
    .kk-cart-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; }
    .kk-checkout-layout { grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; }
    .kk-editor { grid-template-columns: minmax(0, 1fr) 430px; gap: 40px; }
    .kk-pdp { gap: 56px; }
    .kk-pdp__title { font-size: 32px; }
    .kk-footer__top { gap: 40px; }
}

/* ---------------------------------------------- 小桌面 / 平板横屏 ≤1199 */
@media (max-width: 1199px) {
    :root { --gap: 18px; }

    .kk-search { max-width: none; }
    .kk-grid--5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .kk-cats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .kk-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .kk-services { gap: 16px; }

    .kk-footer__top { grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
    .kk-footer__brand { grid-column: 1 / -1; }
    .kk-footer__news { grid-column: 1 / -1; }

    .kk-editor { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
    .kk-pdp { gap: 32px; }
    .kk-cart-layout,
    .kk-checkout-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
    .kk-account { grid-template-columns: 210px minmax(0, 1fr); gap: 24px; }
    .kk-page { grid-template-columns: 210px minmax(0, 1fr); gap: 28px; }
    .kk-listing { grid-template-columns: 210px minmax(0, 1fr); gap: 22px; }
    .kk-mega { min-width: 520px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kk-promo__inner { padding: 30px; }
}

/* ---------------------------------------------- 平板竖屏 ≤991：双栏一律改单栏 */
@media (max-width: 991px) {
    :root { --header-h: 62px; }

    /* 顶部导航收起为抽屉菜单 */
    .kk-nav { display: none; }
    .kk-burger {
        display: flex; align-items: center; justify-content: center;
        width: 40px; height: 40px; margin-left: -8px; border-radius: var(--radius-sm);
        color: var(--c-ink); flex: 0 0 40px;
    }
    .kk-burger:hover { background: var(--c-soft); }
    .kk-header__inner { gap: 12px; }
    .kk-logo img { height: 38px; }
    .kk-actions { gap: 2px; }
    .kk-action { min-width: 50px; }

    /* 栅格：卡片略微变少但明显变大 */
    .kk-grid--5,
    .kk-grid--4,
    .kk-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .kk-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .kk-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kk-coupons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kk-services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

    .kk-section { padding: 44px 0; }
    .kk-section--tight { padding: 30px 0; }
    .kk-section__title { font-size: 23px; }

    /* 双栏 → 单栏 */
    .kk-pdp,
    .kk-editor,
    .kk-cart-layout,
    .kk-checkout-layout,
    .kk-account,
    .kk-page,
    .kk-listing,
    .kk-home-split { grid-template-columns: minmax(0, 1fr); }

    .kk-pdp { gap: 24px; }
    .kk-pdp__title { font-size: 26px; }
    .kk-editor { gap: 20px; }
    .kk-editor__stage { min-height: 380px; padding: 24px; }
    .kk-editor__panel { position: static; }
    .kk-cart-layout, .kk-checkout-layout { gap: 20px; }
    .kk-account, .kk-page, .kk-listing { gap: 20px; }
    .kk-summary,
    .kk-side,
    .kk-filters { position: static; }

    /* 会员中心 / CMS 侧栏改为横向滚动导航 */
    .kk-side__nav { display: flex; overflow-x: auto; gap: 4px; padding: 10px; }
    .kk-side__link { flex: 0 0 auto; white-space: nowrap; padding: 9px 14px; font-size: 13.5px; }
    .kk-side__link svg { display: none; }
    .kk-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* 筛选栏改“按钮 + 折叠” */
    .kk-filter-toggle {
        display: flex; align-items: center; justify-content: center; gap: 8px;
        width: 100%; height: 42px; border: 1px solid var(--c-line-2);
        border-radius: var(--radius-sm); font-weight: 600; background: #fff; margin-bottom: 12px;
    }
    .kk-filters.is-collapsed .kk-filter-group { display: none; }
    .kk-toolbar__count { width: 100%; margin: 0 0 8px; }

    /* 购物车表格：行卡片化，不再横向溢出 */
    .kk-cart-table thead { display: none; }
    .kk-cart-item { display: block; padding: 16px 0; }
    .kk-cart-item td { display: block; padding: 0 0 10px; }
    .kk-cart-item td:last-child { padding-bottom: 0; }
    .kk-cart-item td[data-label]::before {
        content: attr(data-label) '：';
        font-size: 12.5px; color: var(--c-muted); margin-right: 6px;
    }
    .kk-cart-item__img { width: 86px; height: 86px; flex: 0 0 86px; }

    /* 授权页：隐藏左侧插画区 */
    .kk-auth { grid-template-columns: minmax(0, 1fr); min-height: auto; }
    .kk-auth__aside { display: none; }
    .kk-auth__main { padding: 40px 24px 56px; }

    /* 首页分栏单列时给促销位恢复固定高度 */
    .kk-home-split { gap: 20px; }
    .kk-home-split > .kk-promo { min-height: 240px; }

    /* 页脚 */
    .kk-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
    .kk-footer__brand, .kk-footer__news { grid-column: 1 / -1; }

    /* 轮播 */
    .kk-hero__arrow { width: 38px; height: 38px; }
    .kk-hero__arrow--prev { left: 12px; }
    .kk-hero__arrow--next { right: 12px; }
    .kk-catbanner__inner h1 { font-size: 27px; }
}

/* ---------------------------------------------- 手机 ≤767 */
@media (max-width: 767px) {
    :root { --gap: 14px; --header-h: 58px; }

    body { font-size: 14.5px; }

    /* 顶栏：只保留通知与语言 */
    .kk-topbar__links > *:not(.kk-lang) { display: none; }
    .kk-topbar__inner { min-height: 34px; font-size: 12px; }

    /* 头部：汉堡 + logo + 功能键 */
    .kk-header__inner { gap: 10px; height: var(--header-h); justify-content: flex-start; }
    .kk-actions { margin-left: auto; }
    .kk-logo img { height: 34px; }
    .kk-logo__text { font-size: 17px; }
    .kk-search--header { display: none; }
    .kk-actions .kk-action--desktop { display: none; }
    .kk-nav { display: none; }

    /* 移动端搜索条 */
    .kk-msearch { display: block; padding: 10px 0 12px; background: #fff; border-bottom: 1px solid var(--c-line); }
    .kk-msearch .kk-search { max-width: none; }

    /* 轮播 */
    .kk-slide:first-child { min-height: clamp(330px, 86vw, 420px); }
    .kk-slide__inner { padding: 34px 0 42px; max-width: 100%; }
    .kk-slide__title { font-size: 27px; }
    .kk-slide__sub { font-size: 14.5px; margin-bottom: 18px; }
    .kk-slide__cta { gap: 10px; }
    .kk-slide__cta .kk-btn { height: 40px; padding: 0 18px; font-size: 14px; }
    .kk-hero__arrow { display: none; }
    .kk-hero__dots { bottom: 14px; }

    /* 区块 */
    .kk-section { padding: 34px 0; }
    .kk-section--tight { padding: 24px 0; }
    .kk-section__head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 18px; }
    .kk-section__title { font-size: 20px; }
    .kk-section__sub { font-size: 13px; }

    /* 栅格 */
    .kk-grid--5,
    .kk-grid--4,
    .kk-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kk-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .kk-cat { padding: 12px 6px; gap: 7px; }
    .kk-cat__img { width: 54px; height: 54px; flex: 0 0 54px; }
    .kk-cat__name { font-size: 12.5px; }
    .kk-brands { grid-template-columns: minmax(0, 1fr); }
    .kk-coupons { grid-template-columns: minmax(0, 1fr); }
    .kk-services { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .kk-brand { padding: 14px; }

    .kk-card__body { padding: 11px 11px 13px; gap: 4px; }
    .kk-card__name { font-size: 13.5px; }
    .kk-card__price { font-size: 16px; }
    .kk-card__price-row { flex-wrap: wrap; gap: 6px; }
    .kk-fav { width: 30px; height: 30px; right: 8px; top: 8px; }
    .kk-badges { left: 8px; top: 8px; }

    /* 商品详情 */
    .kk-pdp { gap: 20px; }
    .kk-pdp__title { font-size: 21px; }
    .kk-pdp__price { font-size: 27px; }
    .kk-pdp__price-box { padding: 13px 16px; }
    .kk-pdp__row { flex-direction: column; gap: 7px; }
    .kk-pdp__row-label { flex: none; padding-top: 0; }
    .kk-pdp__actions {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 330;
        margin: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        background: #fff; border-top: 1px solid var(--c-line);
        box-shadow: 0 -4px 16px rgba(31, 34, 51, .08);
    }
    .kk-pdp__actions .kk-btn { min-width: 0; height: 44px; }
    .kk-pdp__thumbs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
    .kk-pdp__thumb { flex: 0 0 64px; width: 64px; height: 64px; }
    .kk-rating-summary { gap: 18px; }
    .kk-rating-score { font-size: 36px; }
    .kk-tabs { margin-bottom: 18px; }
    .kk-tab { padding: 11px 14px; font-size: 14px; }

    /* 定制编辑器 */
    .kk-editor__stage { min-height: 300px; padding: 14px; }
    .kk-panel-card__body { padding: 16px; }
    .kk-step-tabs { overflow-x: auto; }
    .kk-step-tab { flex: 0 0 auto; white-space: nowrap; font-size: 13px; }

    /* 购物车 */
    .kk-cart-item__img { width: 76px; height: 76px; flex: 0 0 76px; }

    /* 结算 */
    .kk-stepper { gap: 6px; font-size: 13px; margin-bottom: 20px; }
    .kk-stepper__line { width: 18px; }
    .kk-block__head, .kk-block__body { padding: 15px 16px; }
    .kk-field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .kk-radio-card { padding: 12px 14px; gap: 10px; }
    .kk-radio-card__icon { width: 26px; height: 26px; flex: 0 0 26px; }

    /* 表单栅格 / 弹窗 / 品牌头 */
    .kk-form-grid, .kk-form-grid--3 { grid-template-columns: minmax(0, 1fr); }
    .kk-modal { padding: 12px; align-items: flex-end; }
    .kk-modal__panel { max-height: 92vh; }
    .kk-modal__head, .kk-modal__body, .kk-modal__foot { padding: 15px 16px; }
    .kk-brand-hero { padding: 18px; gap: 16px; }
    .kk-brand-hero__logo { width: 68px; height: 68px; flex: 0 0 68px; padding: 8px; }
    .kk-brand-hero h1 { font-size: 21px; }

    /* 首页分栏 */
    .kk-home-split { gap: 18px; }
    .kk-home-split > .kk-promo { min-height: 200px; }

    /* 支付 / 结果 */
    .kk-pay-card { padding: 24px 18px; }
    .kk-pay-card__amount { font-size: 34px; }
    .kk-qr { width: 168px; height: 168px; }
    .kk-info-table th { width: 96px; }

    /* 会员中心 */
    .kk-stat-grid { gap: 10px; }
    .kk-stat { padding: 14px; }
    .kk-stat__num { font-size: 23px; }
    .kk-panel__head, .kk-panel__body { padding: 15px 16px; }
    .kk-order-card__body { padding: 14px; }
    .kk-order-card__foot { padding: 12px 14px; }
    .kk-order-card__foot .kk-btn { flex: 1; }

    /* 授权页 */
    .kk-auth__main { padding: 32px 18px 48px; }
    .kk-auth__form h1 { font-size: 23px; }

    /* CMS */
    .kk-page__hero { min-height: 150px; }
    .kk-page__hero h1 { font-size: 22px; }
    .kk-page__hero-inner { padding: 18px 20px; }
    .kk-rich table { display: block; overflow-x: auto; white-space: nowrap; }

    /* 列表页 */
    .kk-catbanner { min-height: 140px; }
    .kk-catbanner__inner { padding: 20px; }
    .kk-catbanner__inner h1 { font-size: 23px; }
    .kk-toolbar { padding: 10px 12px; }
    .kk-sorts { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
    .kk-sort { flex: 0 0 auto; }
    .kk-filters { padding: 0 2px; }

    /* 页脚 */
    .kk-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 34px 0 26px; }
    .kk-footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

    /* 移动端底部操作条 */
    .kk-mobile-bar {
        display: grid; grid-template-columns: repeat(4, 1fr);
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 350;
        background: #fff; border-top: 1px solid var(--c-line);
        padding: 6px 0 max(6px, env(safe-area-inset-bottom));
        box-shadow: 0 -4px 16px rgba(31, 34, 51, .06);
    }
    .kk-mobile-bar a {
        display: flex; flex-direction: column; align-items: center; gap: 3px;
        padding: 4px 0; font-size: 10.5px; color: var(--c-muted); position: relative;
    }
    .kk-mobile-bar a.is-active { color: var(--c-primary); }
    .kk-mobile-bar .kk-action__badge { top: 0; right: 50%; margin-right: -20px; }

    body.has-mobile-bar { padding-bottom: 62px; }
    /* 商品详情页：固定购买条会与底部导航重叠，因此隐藏底部导航并让位给购买条 */
    body.has-pdp-bar { padding-bottom: 76px; }
    body.has-pdp-bar .kk-mobile-bar { display: none; }

    .kk-top { bottom: 76px; right: 14px; width: 40px; height: 40px; }
    body.has-pdp-bar .kk-top { bottom: 84px; }
    .kk-toast-wrap { top: 66px; width: max-content; max-width: 88vw; }

    /* 分页 */
    .kk-pager { gap: 6px; margin-top: 26px; }
    .kk-pager a, .kk-pager span { min-width: 36px; height: 36px; font-size: 13px; }

    .kk-promo { min-height: 170px; }
    .kk-promo__inner { padding: 20px; }
    .kk-promo__title { font-size: 22px; }
    .kk-promo__sub { font-size: 13.5px; margin-bottom: 14px; }
}

/* ---------------------------------------------- 小屏手机 ≤479 */
@media (max-width: 479px) {
    .kk-container { padding-inline: 14px; }

    .kk-section { padding: 28px 0; }
    .kk-section--tight { padding: 20px 0; }
    .kk-section__title { font-size: 18.5px; }

    .kk-grid--5,
    .kk-grid--4,
    .kk-grid--3 { gap: 10px; }
    .kk-card__body { padding: 9px 9px 11px; }
    .kk-card__name { font-size: 13px; -webkit-line-clamp: 2; }
    .kk-card__sub { font-size: 11.5px; }
    .kk-card__price { font-size: 15px; }
    .kk-card__old { font-size: 11.5px; }
    .kk-badge { font-size: 10.5px; padding: 2px 7px; }

    .kk-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .kk-cat { padding: 10px 4px; }
    .kk-cat__img { width: 48px; height: 48px; flex: 0 0 48px; }
    .kk-cat__name { font-size: 12px; }

    .kk-slide__title { font-size: 23px; }
    .kk-slide__sub { font-size: 13.5px; }
    .kk-slide__cta .kk-btn { flex: 1; }

    .kk-pdp__title { font-size: 19px; }
    .kk-pdp__price { font-size: 24px; }
    .kk-pdp__actions .kk-btn { font-size: 14px; padding: 0 12px; }
    .kk-pdp__actions .kk-fav--inline { width: 44px; height: 44px; flex: 0 0 44px; }

    .kk-info-table th { width: 88px; }
    .kk-order-card__head { gap: 8px; font-size: 12.5px; }
    .kk-order-card__status { margin-left: 0; }

    .kk-coupon { padding: 14px 16px; }
    .kk-coupon::before, .kk-coupon::after { right: 78px; }
    .kk-coupon__value { font-size: 27px; }

    .kk-footer__top { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 28px 0 22px; }
    .kk-footer__brand, .kk-footer__news { grid-column: auto; }
    .kk-footer__sub { flex-wrap: wrap; }
    .kk-footer__sub input { min-width: 0; }
    .kk-footer__sub .kk-btn { width: 100%; }

    .kk-toast-wrap { top: 60px; }
    .kk-modal { padding: 0; }
    .kk-modal__panel { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 94vh; }

    .kk-stepper__line { display: none; }
    .kk-stepper__item { font-size: 12.5px; }
}

/* ---------------------------------------------- 超小屏 ≤359 */
@media (max-width: 359px) {
    .kk-grid--5, .kk-grid--4, .kk-grid--3 { grid-template-columns: minmax(0, 1fr); }
    .kk-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kk-section__title { font-size: 17px; }
}

/* ---------------------------------------------- 手机横屏（低高度） */
@media (max-height: 480px) and (orientation: landscape) {
    .kk-slide:first-child { min-height: 300px; }
    .kk-slide__inner { padding: 26px 0 30px; }
    .kk-slide__title { font-size: 24px; }
    .kk-msearch { display: none; }
}

/* 打印 */
@media print {
    .kk-header, .kk-nav, .kk-topbar, .kk-footer, .kk-mobile-bar, .kk-top, .kk-pdp__actions { display: none !important; }
}
