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

[v-cloak] { display: none !important; }

:root {
    --primary-color: #FF6A00;
    --primary-light: #FFF1E6;
    --primary-dark: #E05500;
    --primary-gradient: #FF6A00;
    
    --red: #FF4D4F;
    --red-light: #FFF0F0;
    --orange: #FF6B35;
    --orange-light: #FFF3ED;
    --yellow: #FFB800;
    
    --text: #1A1A1A;
    --text-secondary: #666666;
    --text-light: #999999;
    --text-lighter: #CCCCCC;
    --border: #EEEEEE;
    --border-light: #F5F5F5;
    --bg: #F5F7FA;
    --white: #FFFFFF;
    
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 8px 24px rgba(255, 106, 0, 0.18);
    
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    --left-w: 200px;
    --right-w: 300px;
    --gap: 16px;
    --header-h: 64px;
    /* ===== 稼云全端 UI 改版 · 省萤 PC 前台 Token（consumer，默认橙 #FF6A00；别名桥接既有 --primary-color，让 8 主题 data-theme 继续驱动） ===== */
    --t-font: -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    --t-text-base: 14px; --t-text-sm: 12px; --t-text-lg: 16px; --t-text-xl: 20px;
    --t-radius-card: 12px; --t-radius-control: 8px; --t-radius-pill: 999px;
    --t-space-1: 4px; --t-space-2: 8px; --t-space-3: 12px;
    --t-space-4: 16px; --t-space-5: 24px; --t-space-6: 32px;
    --t-shadow-sm: 0 1px 4px rgba(15,23,42,.08);
    --t-shadow-md: 0 4px 16px rgba(15,23,42,.10);
    --t-touch: 44px;
    --t-primary: var(--primary-color, #FF6A00); --t-accent: var(--primary-color, #FF6A00);
    --t-bg: var(--bg, #F5F7FA); --t-bg-card: var(--white, #FFFFFF);
    --t-text: var(--text, #1A1A1A); --t-text-secondary: var(--text-secondary, #666666);
    --t-text-muted: var(--text-light, #999999); --t-border: var(--border, #EEEEEE);
}

/* 精选主题（v2.9.0 两端同步，8个：与 H5/管理后台 key 完全一致，修复跨端主题同步断裂） */
[data-theme="orange"] {
    --primary-color: #FF6A00;
    --primary-light: #FFF1E6;
    --primary-dark: #E05500;
    --primary-gradient: #FF6A00;
    --shadow-hover: 0 8px 24px rgba(255, 106, 0, 0.18);
}
[data-theme="green"] {
    --primary-color: #00C285;
    --primary-light: #E6F9F1;
    --primary-dark: #00A36E;
    --primary-gradient: #00C285;
    --shadow-hover: 0 8px 24px rgba(0, 194, 133, 0.18);
}
[data-theme="blue"] {
    --primary-color: #1890FF;
    --primary-light: #E6F4FF;
    --primary-dark: #0D76D6;
    --primary-gradient: #1890FF;
    --shadow-hover: 0 8px 24px rgba(24, 144, 255, 0.18);
}
[data-theme="purple"] {
    --primary-color: #722ED1;
    --primary-light: #F9F0FF;
    --primary-dark: #531DAB;
    --primary-gradient: #722ED1;
    --shadow-hover: 0 8px 24px rgba(114, 46, 209, 0.18);
}
[data-theme="fresh"] {
    --primary-color: #FF4D4F;
    --primary-light: #FFF0F0;
    --primary-dark: #E63946;
    --primary-gradient: #FF4D4F;
    --shadow-hover: 0 8px 24px rgba(255, 77, 79, 0.18);
}
[data-theme="red"] {
    --primary-color: #ef4444;
    --primary-light: #fee2e2;
    --primary-dark: #dc2626;
    --primary-gradient: #ef4444;
    --shadow-hover: 0 8px 24px rgba(239, 68, 68, 0.18);
}
[data-theme="pink"] {
    --primary-color: #ec4899;
    --primary-light: #fce7f3;
    --primary-dark: #db2777;
    --primary-gradient: #ec4899;
    --shadow-hover: 0 8px 24px rgba(236, 72, 153, 0.18);
}
[data-theme="dark"] {
    --primary-color: #1F1F1F;
    --primary-light: #F0F0F0;
    --primary-dark: #000000;
    --primary-gradient: #1F1F1F;
    --shadow-hover: 0 8px 24px rgba(31, 31, 31, 0.25);
}

html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--header-h);
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: transparent; font-size: inherit; }
input { font-family: inherit; outline: none; border: none; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-lighter); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

/* Header */
.header {
    position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(12px);
    z-index: 1000; box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.header-container {
    height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; gap: 20px;
}
@media (min-width: 1600px) { .header-container { max-width: 1600px; } }

.header-left { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.logo { display: flex; align-items: center; gap: 8px; cursor: pointer; transition: transform 0.2s; }
.logo:hover { transform: scale(1.02); }
.logo-svg { width: 36px; height: 36px; flex-shrink: 0; filter: drop-shadow(0 2px 8px rgba(0,217,149,0.3)); }
.logo-icon { font-size: 28px; }
.logo-text {
    font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-badge {
    font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 6px;
    background: #fef3c7; color: #b45309;
    letter-spacing: 0.5px; margin-left: 2px;
}
.main-nav { display: flex; gap: 4px; }
.nav-item {
    padding: 6px 14px; font-size: 15px; color: var(--text-secondary);
    border-radius: var(--radius); cursor: pointer; transition: all 0.2s;
    font-weight: 500; position: relative;
}
.nav-item:hover { color: var(--primary-color); background: var(--primary-light); }
.nav-item.active { color: var(--primary-color); font-weight: 600; }
.nav-item.active::after {
    content: ''; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
    width: 24px; height: 3px; background: var(--primary-gradient); border-radius: 2px;
}

.header-center { flex: 1; max-width: 520px; }
.search-box {
    display: flex; align-items: center; height: 40px; background: var(--bg);
    border-radius: var(--radius-full); padding: 0 4px 0 16px; border: 2px solid transparent;
    transition: all 0.2s;
}
.search-box:focus-within { border-color: var(--primary-color); background: var(--white); }
.search-input { flex: 1; height: 100%; font-size: 14px; background: transparent; }
.search-input::placeholder { color: var(--text-light); }
.search-btn {
    height: 32px; padding: 0 18px; background: var(--primary-gradient); color: white;
    border-radius: var(--radius-full); font-size: 13px; font-weight: 600;
    display: flex; align-items: center; gap: 4px; transition: all 0.2s;
    white-space: nowrap; writing-mode: horizontal-tb;
}
.search-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }

.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-ai {
    display: flex; align-items: center; gap: 7px; padding: 7px 16px 7px 8px;
    background: var(--primary-color);
    color: white; border: none; border-radius: var(--radius-full); font-size: 13px; font-weight: 600;
    transition: all 0.2s; cursor: pointer; box-shadow: 0 2px 10px rgba(255,106,0,0.3);
}
.btn-ai-icon {
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(255,255,255,0.22); display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
}
.btn-ai:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(102,126,234,0.45); }

.theme-wrap { position: relative; }
.theme-wrap:hover .theme-panel { display: block !important; }
.theme-btn {
    padding: 7px 14px; background: var(--bg); border-radius: var(--radius-full);
    font-size: 13px; font-weight: 500; color: var(--text-secondary);
    display: flex; align-items: center; gap: 4px; transition: all 0.2s;
}
.theme-btn:hover { background: var(--primary-light); color: var(--primary-color); }
.theme-panel {
    position: absolute; top: calc(100% + 4px); right: 0; width: 240px;
    background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: 14px; z-index: 200;
    animation: fadeDown 0.18s ease;
    display: none;
}
.theme-wrap:hover .theme-panel { display: block; }
.theme-panel::before {
    content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px;
}
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.theme-panel-title { font-size: 13px; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.theme-color-item {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    cursor: pointer; padding: 8px 4px; border-radius: var(--radius); transition: all 0.2s;
}
.theme-color-item:hover { background: var(--bg); }
.theme-color-item.active { background: var(--bg); }
.theme-dot {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.theme-dot .check { color: white; font-size: 14px; font-weight: 700; }
.theme-name { font-size: 11px; color: var(--text-secondary); }

.user-area {
    display: flex; align-items: center; gap: 8px; padding: 6px 12px;
    background: var(--bg); border-radius: var(--radius-full); cursor: pointer;
    transition: all 0.2s;
}
.user-area:hover { background: var(--primary-light); color: var(--primary-color); }
.avatar-circle {
    width: 28px; height: 28px; border-radius: 50%; background: var(--primary-gradient);
    color: white; display: flex; align-items: center; justify-content: center;
}
.user-text { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.user-area:hover .user-text { color: var(--primary-color); }

/* 顶部用户下拉菜单 */
.user-caret { font-size: 11px; color: var(--text-light); transition: transform 0.2s; }
.user-caret.open { transform: rotate(180deg); }
.user-dropdown-menu {
    position: absolute; top: 110%; right: 0; min-width: 180px; background: #fff;
    border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
    padding: 6px; z-index: 1000;
}
.dropdown-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border-radius: 8px; font-size: 13px; color: var(--text); cursor: pointer;
    transition: background 0.15s;
}
.dropdown-item:hover { background: var(--bg); }
.dropdown-item.danger { color: #ef4444; }
.dropdown-item.danger:hover { background: var(--red-light); }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 4px; }

/* 头像选择器 */
.avatar-picker-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding: 4px;
}
.avatar-picker-item {
    width: 100%; aspect-ratio: 1; border-radius: 12px; border: 2px solid transparent;
    cursor: pointer; overflow: hidden; transition: all 0.15s; background: var(--bg);
}
.avatar-picker-item img { width: 100%; height: 100%; object-fit: cover; }
.avatar-picker-item:hover { border-color: var(--primary-color); transform: scale(1.05); }
.avatar-picker-item.active { border-color: var(--primary-color); box-shadow: 0 0 0 2px var(--primary-light); }

/* 个人中心昵称编辑 */
.nickname-edit-row { display: flex; align-items: center; gap: 8px; }
.nickname-edit-input {
    border: 1px solid var(--primary-color); border-radius: 8px; padding: 6px 10px;
    font-size: 15px; font-weight: 700; color: var(--text); width: 160px; outline: none;
}
.nickname-edit-input:focus { box-shadow: 0 0 0 2px var(--primary-light); }
.nickname-edit-btn {
    border: none; background: var(--primary-gradient); color: #fff; border-radius: 8px;
    padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.nickname-edit-cancel { border: none; background: var(--bg); color: var(--text-secondary); border-radius: 8px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.profile-name-row { display: flex; align-items: center; gap: 8px; }
.profile-name-edit-ico { font-size: 13px; color: var(--primary-color); cursor: pointer; opacity: 0.7; }
.profile-name-edit-ico:hover { opacity: 1; }

/* 帮助中心 */
.help-modal { max-width: 560px; width: 100%; }
.help-tabs { display: flex; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.help-tab { padding: 6px 16px; border-radius: 20px; font-size: 13px; cursor: pointer; color: var(--text-secondary); background: var(--bg); transition: all 0.2s; }
.help-tab.active { background: var(--primary-color); color: #fff; }
.help-content { max-height: 60vh; overflow: auto; }
.help-group { margin-bottom: 20px; }
.help-group-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.help-faq-item { background: var(--bg); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.help-faq-q { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.help-faq-a { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.help-guide-list { list-style: none; }
.help-guide-list li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.help-guide-list li .step-num { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-gradient); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* 在线客服优化 */
.contact-window { max-width: 420px; }
.contact-body { padding: 24px; text-align: center; }
.contact-icon-big {
    width: 80px; height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 40px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.3);
}
.contact-body h3 {
    font-size: 18px; font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}
.contact-list {
    display: grid; gap: 8px; margin-bottom: 20px;
}
.contact-item {
    display: flex;
    align-items: center; gap: 12px;
    padding: 14px 16px;
    background: var(--bg); border-radius: 12px;
    font-size: 14px; color: var(--text);
}
.contact-item .ci-icon {
    font-size: 20px; width: 30px;
}
.contact-ok-btn {
    width: 100%; padding: 14px;
    border: none; border-radius: 24px;
    background: var(--primary-gradient); color: #fff;
    font-size: 15px; font-weight: 600; cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
    transition: transform 0.15s;
}
.contact-ok-btn:hover { transform: translateY(-1px); }
.right-sidebar-card.contact-card-mini {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.contact-btn-mini {
    width: 100%; padding: 12px 20px; border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all 0.2s;
}
.contact-btn-mini:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Main Layout */
.main-wrapper {
    max-width: 1440px; margin: 0 auto; padding: 20px;
    display: flex; gap: var(--gap); align-items: flex-start;
}
@media (min-width: 1600px) { .main-wrapper { max-width: 1600px; } }

.left-sidebar {
    width: var(--left-w); flex-shrink: 0;
    position: sticky; top: calc(var(--header-h) + 16px);
    max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto;
}
.sidebar-card {
    background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
    margin-bottom: 12px; overflow: hidden;
}
.sidebar-title {
    display: flex; align-items: center; gap: 6px; padding: 14px 16px 10px;
    font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--border-light);
}
.nav-list, .category-list { padding: 6px 0; }
.nav-list-item, .cat-item {
    display: flex; align-items: center; gap: 10px; padding: 9px 16px;
    font-size: 13px; color: var(--text-secondary); cursor: pointer;
    transition: all 0.2s; border-left: 3px solid transparent;
}
.nav-list-item:hover, .cat-item:hover { background: var(--primary-light); color: var(--primary-color); }
.nav-list-item.active, .cat-item.active {
    background: var(--primary-light); color: var(--primary-color);
    font-weight: 600; border-left-color: var(--primary-color);
}
.cat-item.active .cat-arrow { color: var(--primary-color); font-weight: 700; }
.cat-arrow { color: var(--text-lighter); font-size: 16px; margin-left: auto; transition: transform 0.2s; }
.cat-item:hover .cat-arrow { transform: translateX(2px); }
.nav-icon, .cat-icon { font-size: 18px; width: 22px; text-align: center; }

/* 侧边栏热销榜 */
.hot-rank-nav { position: relative; }
.hot-rank-nav .hot-rank-fire { font-size: 14px; margin-right: 2px; animation: fireGlow 1.5s infinite alternate; }
@keyframes fireGlow { 0%{filter:brightness(1)} 100%{filter:brightness(1.3) drop-shadow(0 0 4px #ff6b35)} }

.hot-rank-list { padding: 8px 10px; }
.hot-rank-item {
    display: flex; align-items: center; gap: 8px; padding: 8px 6px;
    border-radius: 8px; cursor: pointer; transition: all 0.2s;
    border-bottom: 1px solid var(--border-light);
}
.hot-rank-item:last-of-type { border-bottom: none; }
.hot-rank-item:hover { background: var(--primary-light); }
.hot-rank-no {
    width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #fff; border-radius: 4px; flex-shrink: 0;
    background: #bbb;
}
.hot-rank-no.rank-no-1 { background: #ff4d4f; }
.hot-rank-no.rank-no-2 { background: #ff7a45; }
.hot-rank-no.rank-no-3 { background: #faad14; }
.hot-rank-img {
    width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex-shrink: 0;
    background: var(--bg-page);
}
.hot-rank-info { flex: 1; min-width: 0; }
.hot-rank-title {
    font-size: 12px; color: var(--text-primary); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 4px;
}
.hot-rank-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.hot-rank-price { font-size: 12px; color: #ff4d4f; }
.hot-rank-price b { font-size: 14px; font-weight: 700; }
.hot-rank-sales { font-size: 11px; color: var(--text-lighter); }
.hot-rank-more {
    text-align: center; padding: 8px; margin-top: 4px; font-size: 12px;
    color: var(--primary-color); cursor: pointer; border-radius: 6px;
    transition: all 0.2s;
}
.hot-rank-more:hover { background: var(--primary-light); font-weight: 600; }

.sidebar-promo {
    background: var(--primary-color);
    border-radius: var(--radius-lg); padding: 22px 16px; text-align: center; color: white;
    position: relative; overflow: hidden;
    box-shadow: 0 8px 22px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.28);
}
.sidebar-promo::before {
    content: ''; position: absolute; width: 140px; height: 140px; right: -50px; bottom: -55px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.22), transparent 70%);
    pointer-events: none;
}
.sidebar-promo::after {
    content: ''; position: absolute; width: 90px; height: 90px; left: -34px; top: -34px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 70%);
    pointer-events: none;
}
.promo-deco { position: absolute; border-radius: 50%; pointer-events: none; }
.promo-deco-1 { width: 8px; height: 8px; right: 18px; top: 20px; background: rgba(255,255,255,0.65); box-shadow: 0 0 0 4px rgba(255,255,255,0.12); }
.promo-deco-2 { width: 5px; height: 5px; left: 22px; bottom: 48px; background: rgba(255,255,255,0.5); box-shadow: 0 0 0 3px rgba(255,255,255,0.1); }
.promo-glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.26), transparent 60%); pointer-events: none; }
.promo-logo-box {
    width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 18px;
    background: #FFFFFF;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 18px rgba(200, 66, 12, 0.35);
    position: relative; z-index: 1;
}
.promo-logo-box::after {
    content: ''; position: absolute; right: 5px; top: 5px; width: 11px; height: 11px;
    border-radius: 50%; background: #22C55E; border: 2px solid #FFFFFF;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}
.promo-icon { font-size: 32px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }
.promo-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; letter-spacing: 1px; position: relative; z-index: 1; }
.promo-desc { font-size: 12px; opacity: 0.92; margin-bottom: 12px; position: relative; z-index: 1; }
.promo-btn {
    width: 100%; padding: 9px; background: #FFFFFF; color: #FF5A1F;
    border-radius: var(--radius); font-size: 13px; font-weight: 700; transition: all 0.25s;
    border: none; position: relative; z-index: 1;
    box-shadow: 0 4px 12px rgba(200, 66, 12, 0.28);
}
.promo-btn:hover { background: #FFF3E8; transform: translateY(-1px); }

.main-content { flex: 1; min-width: 0; }

.right-sidebar {
    width: var(--right-w); flex-shrink: 0;
    position: sticky; top: calc(var(--header-h) + 16px);
    max-height: none;
    height: fit-content;
    overflow-y: visible;
    transition: width 0.3s ease;
    display: flex; flex-direction: column;
    padding: 0;
    z-index: 5;
}
.right-sidebar.collapsed { width: 36px; overflow: hidden; }
.right-sidebar .collapse-btn { display: flex; }
.right-sidebar.collapsed .collapse-btn { left: 50%; transform: translateX(-50%); border-radius: 4px; }
.right-sidebar-content {
    display: flex; flex-direction: column; gap: 12px;
    padding: 0 0 40px 0;
    min-height: 200px;
}
.collapse-btn {
    position: absolute; left: -8px; top: 20px; width: 20px; height: 48px;
    background: var(--white); border-radius: 4px 0 0 4px; box-shadow: -2px 0 8px rgba(0,0,0,0.06);
    font-size: 10px; color: var(--text-light); z-index: 10;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s;
}
.collapse-btn:hover { color: var(--primary-color); background: var(--primary-light); }

.right-sidebar-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.right-sidebar-card.ai-card {
    padding: 10px;
    background: var(--primary-light);
    border: none;
}

.ai-entry-card {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px;
    background: rgba(255,255,255,0.8);
    border-radius: 10px; transition: all 0.2s;
    border: none; cursor: pointer;
}
.ai-entry-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); background: white; }
.ai-entry-icon-wrap {
    width: 40px; height: 40px; border-radius: 10px;
    background: #667EEA;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ai-entry-emoji { font-size: 22px; }
.ai-entry-text { flex: 1; text-align: left; }
.ai-entry-title { font-size: 14px; font-weight: 700; color: var(--text); }
.ai-entry-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.ai-entry-arrow { font-size: 20px; color: var(--text-light); font-weight: 300; }

.right-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px 10px;
    border-bottom: 1px solid var(--border-light);
}
.right-card-title {
    font-size: 14px; font-weight: 700; color: var(--text);
    display: flex; align-items: center; gap: 6px;
}
.title-icon { font-size: 16px; }
.title-icon.newuser-icon { animation: none; }
.title-icon.nine-icon { }
.title-icon.seckill-icon {
    animation: fireGlow 1.5s infinite alternate;
}
.right-card-more {
    font-size: 12px; color: var(--primary-color); cursor: pointer;
    transition: all 0.2s;
}
.right-card-more:hover { font-weight: 600; }

.seckill-header {
    background: #fff5f5;
}
.right-seckill-timer {
    display: flex; align-items: center; gap: 3px;
}
.timer-box-mini {
    background: #1f2937;
    color: #fff; padding: 2px 6px; border-radius: 4px;
    font-weight: 700; font-family: 'SF Mono', monospace;
    font-size: 11px; min-width: 22px; text-align: center;
}

.right-rank-list { padding: 6px 8px; }
.right-rank-item {
    display: flex; align-items: center; gap: 8px; padding: 8px 6px;
    border-radius: 8px; cursor: pointer; transition: all 0.2s;
    border-bottom: 1px solid var(--border-light);
}
.right-rank-item:last-child { border-bottom: none; }
.right-rank-item:hover { background: var(--primary-light); }
.right-rank-no {
    width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; color: #fff; border-radius: 5px; flex-shrink: 0;
    background: #d1d5db;
}
.right-rank-no.rank-1 { background: #ef4444; box-shadow: 0 2px 8px rgba(239,68,68,0.3); }
.right-rank-no.rank-2 { background: #f97316; box-shadow: 0 2px 8px rgba(249,115,22,0.3); }
.right-rank-no.rank-3 { background: #f59e0b; box-shadow: 0 2px 8px rgba(245,158,11,0.3); }
.right-rank-img {
    width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
    background: var(--bg);
}
.right-rank-info { flex: 1; min-width: 0; }
.right-rank-title {
    font-size: 12px; color: var(--text); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 4px; font-weight: 500;
}
.right-rank-meta { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.right-rank-price { font-size: 12px; color: var(--red); }
.right-rank-price b { font-size: 15px; font-weight: 800; }
.right-rank-sales { font-size: 11px; color: var(--text-light); }

.right-goods-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px;
}
.right-mini-card {
    background: var(--bg); border-radius: 10px; overflow: hidden;
    cursor: pointer; transition: all 0.2s;
}
.right-mini-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.right-mini-img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; }
.right-mini-img {
    width: 100%; height: 100%; object-fit: cover;
}
.right-mini-badge {
    position: absolute; top: 4px; right: 4px; padding: 2px 6px;
    border-radius: 4px; font-size: 10px; font-weight: 700; color: white; z-index: 2;
}
.newuser-badge-mini {
    background: #8b5cf6;
    box-shadow: 0 1px 4px rgba(139,92,246,0.4);
}
.right-mini-info { padding: 8px; }
.right-mini-title {
    font-size: 11px; color: var(--text); line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 4px; font-weight: 500;
}
.right-mini-price-row {
    display: flex; align-items: center; justify-content: space-between; gap: 4px;
}
.right-mini-price { font-size: 14px; font-weight: 800; }
.right-mini-rebate {
    font-size: 10px; padding: 1px 4px; border-radius: 3px; font-weight: 600;
}

.right-goods-list { padding: 8px; }
.right-list-item {
    display: flex; align-items: center; gap: 10px; padding: 8px;
    border-radius: 8px; cursor: pointer; transition: all 0.2s;
    border-bottom: 1px solid var(--border-light);
}
.right-list-item:last-child { border-bottom: none; }
.right-list-item:hover { background: #eff6ff; }
.right-list-img {
    width: 50px; height: 50px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
    background: var(--bg);
}
.right-list-info { flex: 1; min-width: 0; }
.right-list-title {
    font-size: 12px; color: var(--text); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 5px; font-weight: 500;
}
.right-list-price-row {
    display: flex; align-items: center; gap: 6px;
}
.right-list-price { font-size: 15px; font-weight: 800; }
.right-list-rebate {
    font-size: 10px; padding: 1px 5px; border-radius: 4px; font-weight: 600;
}

.right-scroll-row {
    display: flex; gap: 8px; overflow-x: auto; padding: 10px;
    scrollbar-width: none;
}
.right-scroll-row::-webkit-scrollbar { display: none; }
.right-seckill-card {
    flex-shrink: 0; width: calc(50% - 4px); background: var(--bg);
    border-radius: 10px; overflow: hidden; cursor: pointer;
    transition: all 0.2s;
}
.right-seckill-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.right-seckill-img {
    width: 100%; aspect-ratio: 1; object-fit: cover;
}
.right-seckill-info { padding: 6px 8px 8px; }
.right-seckill-price { font-size: 16px; font-weight: 800; text-align: center; margin-bottom: 4px; }
.right-seckill-progress {
    height: 5px; background: #fee2e2; border-radius: 3px; overflow: hidden;
}
.right-seckill-bar {
    height: 100%; background: #ef4444;
    border-radius: 3px; transition: width 0.3s;
}

.right-notice-list { padding: 8px 12px; }
.right-notice-item {
    display: flex; align-items: flex-start; gap: 8px; padding: 8px 0;
    font-size: 12px; color: var(--text-secondary); line-height: 1.5;
    border-bottom: 1px dashed var(--border-light);
}
.right-notice-item:last-child { border-bottom: none; }
.notice-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.right-notice-text { flex: 1; }

.signin-card-mini {
    background: #f59e0b !important;
    padding: 0; border: none;
}
.signin-mini-content {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px; color: white;
}
.signin-mini-info { flex: 1; }
.signin-mini-title { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.signin-mini-desc { font-size: 11px; opacity: 0.9; }
.signin-mini-btn {
    padding: 8px 18px; background: white; color: #d97706;
    border-radius: 20px; font-size: 13px; font-weight: 700;
    cursor: pointer; border: none; transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.signin-mini-btn:hover { transform: scale(1.05); }

.contact-card-mini { padding: 10px; border: none; }
.contact-btn-mini {
    width: 100%; padding: 12px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 10px; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
    border: 1px dashed var(--primary-color);
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.contact-btn-mini:hover {
    background: var(--primary-gradient); color: white; border-color: transparent;
    transform: translateY(-1px); box-shadow: 0 4px 12px rgba(249,115,22,0.3);
}

.mini-rank { padding: 8px 0; }
.mini-rank-item {
    display: flex; align-items: center; gap: 8px; padding: 7px 12px;
    font-size: 12px; cursor: pointer; transition: background 0.2s;
}
.mini-rank-item:hover { background: var(--bg); }
.mini-rank-num {
    width: 18px; height: 18px; border-radius: 4px; background: var(--text-lighter);
    color: white; font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mini-rank-num.top { background: var(--primary-color); }
.mini-rank-title { flex: 1; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-rank-price { color: var(--red); font-weight: 600; }

.notice-list { padding: 8px 12px; }
.notice-item {
    display: flex; align-items: flex-start; gap: 6px; padding: 6px 0;
    font-size: 12px; color: var(--text-secondary);
}
.notice-text { flex: 1; line-height: 1.5; }

.contact-btn {
    width: calc(100% - 24px); margin: 12px; padding: 10px;
    background: var(--primary-light); color: var(--primary-color);
    border-radius: var(--radius); font-size: 13px; font-weight: 600;
    transition: all 0.2s;
}
.contact-btn:hover { background: var(--primary-color); color: white; }

/* Common */
.section { margin-bottom: 20px; }
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px;
}
.section-title { font-size: 18px; font-weight: 700; color: var(--text); }
.section-more { font-size: 13px; color: var(--primary-color); cursor: pointer; }
.section-more:hover { text-decoration: underline; }

/* 专题活动专栏（618/1111/1212） */
.topic-section { margin-bottom: 20px; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.topic-card {
    position: relative; border-radius: var(--radius-lg); padding: 18px 20px;
    overflow: hidden; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
    color: #fff; min-height: 96px; display: flex; flex-direction: column; justify-content: center;
}
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.topic-card-bg { position: absolute; right: -18px; top: -18px; font-size: 72px; opacity: 0.25; transform: rotate(-8deg); }
.topic-card-name { position: relative; font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.topic-card-desc { position: relative; font-size: 13px; opacity: 0.92; margin-top: 6px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topic-card-date { position: relative; font-size: 12px; opacity: 0.85; margin-top: 8px; }
.topic-card-tag { position: absolute; right: 12px; top: 12px; background: rgba(255,255,255,0.22); border: 1px solid rgba(255,255,255,0.4); border-radius: 20px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.topic-theme-618 { background: #FF6A00; }
.topic-theme-1111 { background: #FF4D4F; }
.topic-theme-1212 { background: #7B2FF7; }
.topic-theme-default { background: #FF8A00; }
.topic-empty { color: var(--text-light); font-size: 14px; padding: 24px 0; text-align: center; }

.page-header {
    display: flex; align-items: center; gap: 12px;
    background: var(--white); border-radius: var(--radius-lg); padding: 16px 20px;
    box-shadow: var(--shadow); margin-bottom: 16px;
}
.page-title { font-size: 20px; font-weight: 700; flex: 1; }
.page-back-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 8px 16px; border-radius: 20px;
    background: var(--primary-light); color: var(--primary-color);
    font-size: 14px; font-weight: 600; cursor: pointer;
    border: 1px solid var(--primary-color); transition: all 0.2s; white-space: nowrap;
}
.page-back-btn:hover { background: var(--primary-color); color: #fff; transform: translateX(-2px); }
.page-header-actions { display: flex; gap: 10px; align-items: center; }

.hot-rank-header { flex-wrap: wrap; gap: 4px; background: #fff5f0; border: 1px solid #ffe4d6; }
.hot-rank-header .page-title { display: flex; align-items: center; gap: 8px; color: #ff4d4f; }
.hot-fire-big { font-size: 24px; animation: fireGlow 1.5s infinite alternate; display: inline-block; }
.rank-subtitle { width: 100%; font-size: 13px; color: var(--text-light); margin-top: 4px; padding-left: 36px; }

.refresh-btn {
    display: flex; align-items: center; gap: 4px; padding: 6px 14px;
    background: var(--bg); border-radius: var(--radius-full); font-size: 13px;
    color: var(--text-secondary); transition: all 0.2s;
}
.refresh-btn:hover { background: var(--primary-light); color: var(--primary-color); }
.refresh-btn.spinning .refresh-icon,
.refresh-btn.spinning span:first-child {
    display: inline-block; animation: spin 0.8s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Buttons */
.btn-primary {
    padding: 8px 20px; background: var(--primary-gradient); color: white;
    border-radius: var(--radius); font-weight: 600; font-size: 14px;
    transition: all 0.2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn-primary.btn-lg { padding: 12px 32px; font-size: 16px; border-radius: var(--radius-full); }
.btn-outline {
    padding: 8px 20px; background: var(--white); color: var(--primary-color);
    border: 1px solid var(--primary-color); border-radius: var(--radius);
    font-weight: 500; font-size: 14px; transition: all 0.2s;
}
.btn-outline:hover { background: var(--primary-light); }

.buy-btn {
    width: 100%; padding: 8px; background: var(--primary-gradient); color: white;
    border-radius: var(--radius); font-size: 13px; font-weight: 600;
    transition: all 0.2s; margin-top: 8px;
}
.buy-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.buy-btn-sm {
    padding: 6px 14px; background: var(--primary-gradient); color: white;
    border-radius: var(--radius-full); font-size: 12px; font-weight: 600;
    transition: all 0.2s; margin-left: auto;
}
.buy-btn-sm:hover { transform: translateY(-1px); }

/* Banner */
.banner {
    background: var(--primary-gradient); border-radius: var(--radius-xl);
    padding: 32px; margin-bottom: 16px; color: white; position: relative; overflow: hidden;
}
.banner::before {
    content: ''; position: absolute; right: -40px; top: -40px;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
}
.banner::after {
    content: ''; position: absolute; right: 60px; bottom: -60px;
    width: 150px; height: 150px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.banner-content { position: relative; z-index: 1; }
.banner-badge {
    display: inline-block; padding: 4px 14px; background: rgba(255,255,255,0.2);
    border-radius: var(--radius-full); font-size: 12px; font-weight: 500; margin-bottom: 12px;
}
.banner-title { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.banner-desc { font-size: 15px; opacity: 0.9; margin-bottom: 20px; }
.banner-stats { display: flex; align-items: center; gap: 20px; position: relative; z-index: 1; }
.banner-stat { text-align: center; }
.bs-num { font-size: 28px; font-weight: 800; line-height: 1; }
.bs-label { font-size: 12px; opacity: 0.85; margin-top: 4px; }
.bs-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.3); }
.banner-badge .badge-dot { display: inline-block; width: 6px; height: 6px; background: #fff; border-radius: 50%; margin-right: 6px; animation: pulse 1.5s ease infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* KingKong */
.kingkong {
    background: var(--white); border-radius: var(--radius-lg); padding: 16px;
    box-shadow: var(--shadow); margin-bottom: 16px;
}
.kk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kk-item {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 12px 8px; border-radius: var(--radius); cursor: pointer; transition: all 0.2s;
}
.kk-item:hover { background: var(--primary-light); transform: translateY(-2px); }
.kk-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 8px; }
.kk-name { font-size: 12px; color: var(--text-secondary); font-weight: 500; }

/* Data Bar */
.data-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px;
}
.data-item {
    background: var(--white); border-radius: var(--radius-lg); padding: 16px;
    text-align: center; box-shadow: var(--shadow);
}
.data-val { font-size: 24px; font-weight: 800; color: var(--primary-color); }
.data-label { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* Scroll Row */
.scroll-row {
    display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
}
.scroll-row::-webkit-scrollbar { height: 4px; }

.seckill-card {
    flex-shrink: 0; width: 130px; background: var(--white);
    border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow);
    cursor: pointer; transition: all 0.2s;
}
.seckill-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.seckill-img { width: 100%; aspect-ratio: 1; border-radius: var(--radius); object-fit: cover; margin-bottom: 8px; }
.seckill-title {
    font-size: 12px; color: var(--text); line-height: 1.3; height: 32px;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    margin-bottom: 6px;
}
.seckill-price { font-size: 15px; font-weight: 700; color: var(--red); }
.seckill-price-row { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.seckill-price-now { font-size: 16px; font-weight: 800; color: var(--red); }
.seckill-price-old { font-size: 11px; color: var(--text-light); text-decoration: line-through; }
.seckill-progress { height: 4px; background: #fee2e2; border-radius: 2px; overflow: hidden; margin: 6px 0 4px; }
.seckill-bar { height: 100%; background: #ef4444; border-radius: 2px; transition: width 0.3s; }
.seckill-tag { font-size: 10px; color: var(--text-light); }

.brand-card {
    flex-shrink: 0; width: 160px; background: var(--white);
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
    cursor: pointer; transition: all 0.2s; text-align: center; padding-bottom: 12px;
}
.brand-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.brand-img { width: 100%; height: 80px; object-fit: cover; }
.brand-name { font-size: 14px; font-weight: 600; margin-top: 10px; }
.brand-discount { font-size: 12px; color: var(--red); margin-top: 4px; }

/* Goods Grid */
.goods-grid {
    display: grid; gap: var(--gap);
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.goods-card {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); cursor: pointer; transition: all 0.25s;
}
.goods-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.goods-card:hover .goods-img { transform: scale(1.05); }
.goods-img-wrap { position: relative; overflow: hidden; aspect-ratio: 1; }
.goods-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s ease;
}
.platform-tag {
    position: absolute; left: 8px; top: 8px; padding: 2px 8px;
    border-radius: 4px; font-size: 10px; color: white; font-weight: 600;
}
.platform-tag.p-淘宝 { background: #FF5000; }
.platform-tag.p-京东 { background: #E1251B; }
.platform-tag.p-拼多多 { background: #E02E24; }
.platform-tag.p-抖音 { background: #000000; }
.hot-flag {
    position: absolute; left: 8px; bottom: 8px; padding: 2px 8px;
    background: #ef4444; color: white;
    border-radius: 4px; font-size: 10px; font-weight: 700; z-index: 2;
    animation: hotPulse 1.5s ease infinite;
}
@keyframes hotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.goods-info { padding: 10px 12px 12px; }
.goods-title {
    font-size: 13px; line-height: 1.4; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; height: 36px; margin-bottom: 8px;
}
.goods-price-row { margin-bottom: 6px; }
.goods-price { display: flex; align-items: baseline; gap: 6px; }
.price-symbol { font-size: 12px; color: var(--red); font-weight: 600; }
.price-now { font-size: 18px; color: var(--red); font-weight: 700; }
.price-old { font-size: 11px; color: var(--text-light); text-decoration: line-through; }
.goods-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.rebate-tag {
    padding: 2px 6px; background: var(--primary-light); color: var(--primary-color);
    border-radius: 4px; font-weight: 600;
}
.sales { color: var(--text-light); }

/* Rank Page */
.filter-bar {
    display: flex; gap: 8px; flex-wrap: wrap;
    background: var(--white); border-radius: var(--radius-lg); padding: 12px 16px;
    box-shadow: var(--shadow); margin-bottom: 16px;
}
.filter-tag {
    padding: 6px 16px; border-radius: var(--radius-full); font-size: 13px;
    color: var(--text-secondary); cursor: pointer; transition: all 0.2s;
    background: var(--bg);
}
.filter-tag:hover { color: var(--primary-color); }
.filter-tag.active { background: var(--primary-color); color: white; font-weight: 600; }

.rank-list {
    background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
}
.rank-item {
    display: flex; align-items: center; gap: 16px; padding: 16px;
    border-bottom: 1px solid var(--border-light); cursor: pointer; transition: background 0.2s;
}
.rank-item:last-child { border-bottom: none; }
.rank-item:hover { background: var(--bg); }
.rank-num {
    width: 40px; height: 40px; border-radius: var(--radius); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800;
}
.rank-num.medal { font-size: 24px; }
.rank-num.normal { background: var(--bg); color: var(--text-light); }
.rank-num.medal { font-size: 28px; background: transparent; }
.ft-icon { margin-right: 4px; }
.rank-img { width: 80px; height: 80px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; }
.rank-info { flex: 1; min-width: 0; }
.rank-title {
    font-size: 14px; font-weight: 500; line-height: 1.4; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.rank-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.rank-bottom { display: flex; align-items: center; gap: 12px; }
.rank-price-wrap { display: flex; align-items: baseline; }
.rank-price-symbol { font-size: 14px; color: var(--red); font-weight: 600; }
.rank-price { font-size: 20px; font-weight: 800; color: var(--red); }

/* AI Page */
.ai-page { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 40px; }
.ai-hero { text-align: center; margin-bottom: 40px; }
.ai-big-icon { font-size: 64px; margin-bottom: 16px; }
.ai-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.ai-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.ai-search-box {
    display: flex; align-items: center; gap: 8px; max-width: 600px; margin: 0 auto 16px;
    background: var(--bg); border-radius: var(--radius-full); padding: 6px 6px 6px 16px;
    border: 2px solid transparent; transition: all 0.2s;
}
.ai-search-box:focus-within { border-color: var(--primary-color); background: var(--white); }
.voice-btn {
    width: 40px; height: 40px; border-radius: 50%; background: var(--white);
    display: flex; align-items: center; justify-content: center; font-size: 20px;
    box-shadow: var(--shadow-sm); cursor: pointer; transition: all 0.2s;
}
.voice-btn:hover { background: var(--primary-light); }
.ai-search-input { flex: 1; height: 40px; font-size: 15px; background: transparent; }
.ai-search-btn {
    height: 40px; padding: 0 28px; background: var(--primary-gradient); color: white;
    border-radius: var(--radius-full); font-size: 15px; font-weight: 600;
}
.hot-searches { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.hot-label { font-size: 13px; color: var(--text-light); }
.hot-word {
    padding: 4px 12px; background: var(--bg); border-radius: var(--radius-full);
    font-size: 12px; color: var(--text-secondary); cursor: pointer; transition: all 0.2s;
}
.hot-word:hover { background: var(--primary-light); color: var(--primary-color); }
.ai-placeholder { text-align: center; padding: 60px 20px; color: var(--text-light); }

/* Order Page */
.order-tabs {
    display: flex; gap: 4px; background: var(--white); border-radius: var(--radius-lg);
    padding: 6px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.order-tab {
    flex: 1; padding: 10px; text-align: center; border-radius: var(--radius);
    font-size: 14px; color: var(--text-secondary); cursor: pointer; transition: all 0.2s; font-weight: 500;
}
.order-tab:hover { color: var(--primary-color); }
.order-tab.active { background: var(--primary-color); color: white; font-weight: 600; }

.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-card {
    background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
    overflow: hidden; transition: all 0.2s;
}
.order-card:hover { box-shadow: var(--shadow-md); }
.order-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; background: var(--bg); font-size: 12px; color: var(--text-light);
}
.order-status {
    padding: 3px 10px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600;
}
.order-status.status-待付款 { background: var(--orange-light); color: var(--orange); }
.order-status.status-已付款 { background: #E6F4FF; color: #1890FF; }
.order-status.status-已结算 { background: var(--primary-light); color: var(--primary-color); }
.order-status.status-已失效 { background: var(--bg); color: var(--text-light); }
.order-goods {
    display: flex; align-items: center; gap: 12px; padding: 16px;
}
.order-goods-img { width: 70px; height: 70px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; }
.order-goods-info { flex: 1; min-width: 0; }
.order-goods-title {
    font-size: 14px; line-height: 1.4; margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.order-goods-meta { font-size: 12px; }
.order-amount-info { text-align: right; flex-shrink: 0; }
.order-price { font-size: 18px; font-weight: 700; color: var(--red); }
.order-rebate { font-size: 12px; color: var(--primary-color); margin-top: 4px; }
.order-footer {
    display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px;
    border-top: 1px solid var(--border-light);
}

/* Empty State */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.5; }
.empty-title { font-size: 16px; color: var(--text-secondary); font-weight: 600; margin-bottom: 6px; }
.empty-desc { font-size: 13px; color: var(--text-light); }

/* Yun Page */
.yun-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.yun-hero {
    background: #667EEA; color: white;
    padding: 48px 24px; text-align: center;
}
.yun-icon { font-size: 72px; margin-bottom: 16px; }
.yun-hero h3 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.yun-hero p { font-size: 14px; opacity: 0.9; margin-bottom: 24px; }
.yun-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 32px; }
.yun-feature { text-align: center; padding: 24px; border-radius: var(--radius); background: var(--bg); }
.feature-icon { font-size: 48px; margin-bottom: 12px; }
.feature-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 13px; color: var(--text-secondary); }

/* Profile Page */
.profile-card {
    background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
    padding: 24px; margin-bottom: 16px;
}
.profile-header-info { display: flex; align-items: center; gap: 20px; }
.big-avatar {
    width: 72px; height: 72px; border-radius: 50%; background: var(--primary-light);
    display: flex; align-items: center; justify-content: center; font-size: 36px;
}
.profile-user-info { flex: 1; }
.profile-name { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.profile-level { font-size: 13px; color: var(--primary-color); }
.profile-balance { text-align: right; }
.balance-label { font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.balance-value { font-size: 28px; font-weight: 800; color: var(--red); margin-bottom: 8px; }

.profile-menu-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 16px;
}
.pm-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 20px; border-radius: var(--radius); cursor: pointer; transition: all 0.2s;
}
.pm-item:hover { background: var(--primary-light); transform: translateY(-2px); }
.pm-icon { font-size: 32px; }
.pm-item span:last-child { font-size: 13px; color: var(--text-secondary); }

/* Loading Skeleton */
.loading-skeleton { }
.skeleton-banner {
    height: 140px; background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
    background-size: 200% 100%; animation: shimmer 1.5s infinite;
    border-radius: var(--radius-xl); margin-bottom: 16px;
}
.skeleton-grid {
    display: grid; gap: var(--gap);
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.skeleton-card {
    aspect-ratio: 3/4; background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
    background-size: 200% 100%; animation: shimmer 1.5s infinite;
    border-radius: var(--radius-lg);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Toast */
.toast {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.75); color: white; padding: 12px 24px;
    border-radius: var(--radius); font-size: 14px; z-index: 99999;
    animation: toastIn 0.2s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* Responsive - 保持flex布局，不切换为grid以避免布局异常 */
@media (min-width: 1600px) {
    .goods-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
    .main-wrapper { max-width: 1600px; }
}
@media (min-width: 1200px) and (max-width: 1599px) {
    .goods-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}
@media (max-width: 1199px) {
    .left-sidebar { width: 180px; }
    .right-sidebar { width: 260px; }
    .goods-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
    .data-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
    .right-sidebar { display: none; }
    .main-nav { display: none; }
    .yun-features { grid-template-columns: 1fr; }
    .goods-grid { grid-template-columns: repeat(3, 1fr); }
    .kk-grid { grid-template-columns: repeat(3, 1fr); }
}
/* ===== 稼云改版 · 平板 641-1024 自适应（降列 + 内边距收敛 + 详情页单栏） ===== */
@media (max-width: 1024px) {
    .detail-layout { grid-template-columns: 1fr; gap: 20px; }
    .goods-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .yun-features { grid-template-columns: repeat(2, 1fr); }
    .data-bar { grid-template-columns: repeat(2, 1fr); }
    .header-inner { padding: 0 16px; }
    .goods-item { min-height: auto; }
    .footer { padding: 32px 20px; }
}
@media (max-width: 768px) {
    .left-sidebar { display: none; }
    .goods-grid { grid-template-columns: repeat(2, 1fr); }
}

/* AI Chat Modal */
.ai-chat-modal {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 10000;
    display: flex; align-items: center; justify-content: center;
}
.ai-chat-window {
    width: 480px; max-width: 90vw; max-height: 80vh;
    background: white; border-radius: 16px; overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.ai-chat-header {
    padding: 16px 20px; background: var(--primary-gradient);
    color: white; font-size: 16px; font-weight: 600;
    display: flex; align-items: center; justify-content: space-between;
}
.chat-close-btn {
    background: none; border: none; color: white; font-size: 24px;
    cursor: pointer; width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; line-height: 1;
}
.chat-close-btn:hover { background: rgba(255,255,255,0.2); }
.ai-chat-body {
    flex: 1; padding: 20px; overflow-y: auto;
    background: #f7f8fa; min-height: 300px; max-height: 500px;
}
.chat-msg {
    display: flex; gap: 8px; margin-bottom: 16px; align-items: flex-start;
}
.chat-msg.msg-user { flex-direction: row-reverse; }
.msg-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: white; display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.msg-user .msg-avatar { background: var(--primary-light); }
.msg-bubble {
    max-width: 70%; padding: 12px 16px; border-radius: 12px;
    font-size: 14px; line-height: 1.6; word-break: break-word;
}
.msg-ai .msg-bubble {
    background: white; color: #333;
    border-bottom-left-radius: 4px;
}
.msg-user .msg-bubble {
    background: var(--primary-gradient); color: white;
    border-bottom-right-radius: 4px;
}
.ai-chat-input {
    display: flex; gap: 8px; padding: 12px 16px;
    border-top: 1px solid #eee; background: white;
}
.ai-chat-input input {
    flex: 1; padding: 10px 16px; border: 1px solid #e5e7eb;
    border-radius: 20px; font-size: 14px; outline: none;
}
.ai-chat-input input:focus { border-color: var(--primary-color); }
.ai-chat-input button {
    padding: 0 20px; background: var(--primary-gradient); color: white;
    border: none; border-radius: 20px; cursor: pointer; font-size: 14px;
}
.ai-chat-input button:disabled { background: #ccc; cursor: not-allowed; }

/* 链接比价弹窗 */
.link-compare-input {
    width: 100%; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 12px;
    font-size: 14px; line-height: 1.6; resize: vertical; outline: none; box-sizing: border-box;
    background: #fafbfd;
}
.link-compare-input:focus { border-color: var(--primary-color); background: #fff; }
.link-compare-btn {
    width: 100%; padding: 12px; background: var(--primary-gradient); color: white;
    border: none; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer;
    transition: opacity 0.2s;
}
.link-compare-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 价格走势弹窗 */
.price-history-summary {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px;
}
.ph-stat {
    background: #f5f3ff; border-radius: 12px; padding: 14px 10px; text-align: center;
}
.ph-label { font-size: 12px; color: #6b7280; margin-bottom: 6px; }
.ph-value { font-size: 15px; font-weight: 700; color: #4f46e5; }
.price-history-list { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; }
.ph-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.ph-date { width: 44px; color: #6b7280; flex-shrink: 0; }
.ph-bar-track { flex: 1; height: 10px; background: #eef0f4; border-radius: 10px; overflow: hidden; }
.ph-bar { height: 100%; background: #6366F1; border-radius: 10px; transition: width 0.3s; }
.ph-price { width: 56px; text-align: right; color: #374151; font-weight: 600; flex-shrink: 0; }
.ph-tip { margin-top: 14px; font-size: 12px; color: #9ca3af; text-align: center; }

/* 优惠计算器 */
.calc-fields { display: flex; flex-direction: column; gap: 12px; }
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field span { font-size: 13px; color: #6b7280; }
.calc-field input {
    width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 10px;
    font-size: 14px; outline: none; transition: border-color 0.2s; background: #fff;
}
.calc-field input:focus { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.12); }
.calc-actions { display: flex; gap: 10px; margin: 16px 0; }
.calc-calc-btn {
    flex: 1; padding: 12px; background: #F59E0B; color: #fff;
    border: none; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
}
.calc-calc-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(239,68,68,0.3); }
.calc-clear-btn {
    padding: 12px 20px; background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb;
    border-radius: 12px; font-size: 14px; cursor: pointer;
}
.calc-result {
    background: #fff7ed; border: 1px solid #fed7aa;
    border-radius: 14px; padding: 16px;
}
.calc-final { text-align: center; padding-bottom: 14px; border-bottom: 1px dashed #fdba74; margin-bottom: 12px; }
.calc-final span { display: block; font-size: 13px; color: #9a3412; margin-bottom: 6px; }
.calc-final strong { font-size: 30px; font-weight: 800; color: #dc2626; }
.calc-final em { display: block; font-style: normal; font-size: 13px; color: #16a34a; margin-top: 6px; }
.calc-breakdown { display: flex; flex-direction: column; gap: 8px; }
.calc-row { display: flex; justify-content: space-between; font-size: 13px; color: #6b7280; }
.calc-row .calc-minus { color: #16a34a; font-weight: 600; }
.calc-row .calc-total { color: #dc2626; font-weight: 800; font-size: 15px; }

.ai-placeholder { text-align: center; padding: 80px 20px; }
.empty-icon-new { font-size: 80px; margin-bottom: 20px; opacity: 0.6; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.empty-title-new { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.empty-desc-new { font-size: 14px; color: var(--text-light); max-width: 400px; margin: 0 auto; line-height: 1.8; }

/* Goods Empty State */
.goods-empty {
    text-align: center; padding: 56px 20px; margin: 4px 0;
    background: #fafbfd;
    border: 1px dashed var(--border); border-radius: var(--radius-lg);
}
.goods-empty-icon { font-size: 52px; margin-bottom: 14px; opacity: 0.6; }
.goods-empty-text { font-size: 15px; color: var(--text-secondary); font-weight: 500; margin-bottom: 6px; }
.goods-empty-sub { font-size: 12px; color: var(--text-light); }

/* AI Feature Cards Enhanced */
.ai-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.ai-feature-card {
    background: white;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.ai-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(249,115,22,0.15);
    border-color: var(--primary-color);
    background: #f0fdf4;
}
.ai-feature-card:active {
    transform: translateY(-2px);
}
.ai-feature-icon {
    font-size: 42px;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}
.ai-feature-card:hover .ai-feature-icon {
    transform: scale(1.1);
}
.ai-feature-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.ai-feature-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* AI Chat Window Enhanced */
.ai-chat-window {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.2);
}
.ai-chat-header {
    padding: 16px 20px;
    color: white;
}
.chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}
.chat-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.chat-close-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

/* 快捷问题区域 */
.quick-chips {
    padding: 12px 16px;
    background: #f7f8fa;
    border-top: 1px solid #eee;
}
.quick-chips-title {
    font-size: 12px;
    color: #909399;
    margin-bottom: 8px;
    padding-left: 4px;
}
.chip-btn {
    display: inline-block;
    padding: 6px 14px;
    margin: 0 6px 8px 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    font-size: 13px;
    color: #606266;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.chip-btn:hover {
    background: #FF8A00;
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249,115,22,0.25);
}

/* 聊天头部信息优化 */
.chat-header-left {
    display: flex;
    align-items: center;
}
.chat-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}
.chat-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.9;
}
.status-dot {
    display: inline-block;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

/* 输入框区域优化 */
.chat-voice-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f5f7fa;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-voice-btn:hover {
    background: #e8eef7;
    transform: scale(1.05);
}
.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 输入中动画 */
.typing {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 14px 18px !important;
}
.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #909399;
    animation: typingBounce 1.4s ease-in-out infinite both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* AI聊天商品卡片 */
.chat-goods-card {
    margin-top: 12px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    max-width: 300px;
}

/* v1.1.1 新增：AI生活服务卡片（查快递/寄快递/外卖红包/电影票等） */
.chat-life-card {
    margin-top: 12px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    max-width: 300px;
}
.chat-life-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}
.chat-life-item:last-child { border-bottom: none; }
.chat-life-item:hover { background: #f9fafb; }
.chat-life-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f0fdf4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.chat-life-info { flex: 1; min-width: 0; }
.chat-life-name { font-size: 13px; font-weight: 600; color: #333; }
/* v1.2.0 新增：生活卡片返利标识 */
.chat-life-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; font-size: 10px; font-weight: 500; color: #fff; background: var(--primary); border-radius: 8px; vertical-align: middle; }
.chat-life-desc { font-size: 11px; color: #999; margin-top: 2px; line-height: 1.6; }
.chat-life-arrow { color: #999; font-size: 14px; flex-shrink: 0; }
.chat-life-action {
    padding: 8px;
    text-align: center;
    background: #667EEA;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}
.chat-goods-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}
.chat-goods-item:last-child { border-bottom: none; }
.chat-goods-item:hover { background: #f9fafb; }
.chat-goods-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5f7fa;
}
.chat-goods-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.chat-goods-title {
    font-size: 12px;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.chat-goods-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-goods-price {
    font-size: 16px;
    font-weight: 800;
    color: #ef4444;
}
.chat-goods-price::before { content: '¥'; font-size: 12px; }
.chat-goods-rebate {
    font-size: 11px;
    color: #10b981;
    font-weight: 600;
    background: #dcfce7;
    padding: 2px 6px;
    border-radius: 4px;
}
.chat-goods-platform {
    font-size: 10px;
    color: #909399;
    background: #f5f7fa;
    padding: 2px 6px;
    border-radius: 4px;
}
.chat-goods-more {
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 600;
}
.chat-goods-more:hover { background: var(--primary-light); }

/* 聊天头部操作按钮 */
.chat-header-actions { display: flex; gap: 8px; align-items: center; }
.chat-action-btn {
    width: 32px; height: 32px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.2); color: white; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; transition: all 0.2s;
}
.chat-action-btn:hover { background: rgba(255,255,255,0.35); transform: scale(1.05); }

/* 语音录制状态 */
.voice-btn-new.recording {
    background: #ef4444 !important;
    color: white !important;
    animation: voicePulse 1s infinite;
}
@keyframes voicePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}

/* ===== 平台维护/关闭提示页 ===== */
.maintenance-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}
.maintenance-card {
    background: #fff; border-radius: 24px; padding: 48px 56px;
    text-align: center; max-width: 460px; width: 100%;
    box-shadow: var(--shadow-lg); border: 1px solid var(--border-light);
}
.maintenance-icon { margin-bottom: 20px; }
.maintenance-title {
    font-size: 26px; font-weight: 800; margin-bottom: 14px; color: var(--text);
}
.maintenance-desc {
    font-size: 15px; color: var(--text-secondary); line-height: 1.8;
    margin-bottom: 10px; white-space: pre-line;
}
.maintenance-sub {
    font-size: 13px; color: var(--text-light); line-height: 1.7; margin-bottom: 28px;
}
.maintenance-refresh {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 32px; background: var(--primary-gradient); color: #fff;
    border-radius: 24px; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all 0.2s; box-shadow: 0 4px 12px rgba(249,115,22,0.25);
}
.maintenance-refresh:hover { transform: translateY(-1px); opacity: 0.92; }

/* ===== 广告位 ===== */
.ad-slot { margin: 0 0 16px; }
.ad-slot > * { margin: 0; }
.ad-slot iframe, .ad-slot img, .ad-slot a img { display: block; max-width: 100%; }
.ad-slot .ad-slot-code { min-height: 60px; }

/* ============================================================
   UI 2.0 精修层（2026-10-15）
   纯增量覆盖：不动既有选择器/逻辑，整体视觉升级 + 响应式补强。
   回滚方式：移除本段即可。
   ============================================================ */
:root {
    --ui2-grad: linear-gradient(135deg, #FF6A00 0%, #FF9500 55%, #FFB800 100%);
    --ui2-grad-soft: linear-gradient(135deg, #FFF7ED 0%, #FFF1E6 100%);
    --ui2-radius: 16px;
    --ui2-shadow-hover: 0 12px 32px rgba(255, 106, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.05);
    --ui2-shadow-card: 0 6px 24px rgba(15, 23, 42, 0.07);
}

/* 页面底色更柔和 */
body { background: linear-gradient(180deg, #F8FAFC 0%, #F5F7FA 180px); }

/* ===== Header 优化 ===== */
.header { position: sticky; top: 0; z-index: 999; }
.header-container {
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.88) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.header.scrolled .header-container { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06); }

/* ===== Banner 优化：渐变玻璃质感 ===== */
.banner {
    position: relative; overflow: hidden;
    border-radius: var(--ui2-radius);
    background: var(--ui2-grad) !important;
    box-shadow: 0 16px 40px rgba(255, 106, 0, 0.22);
}
.banner::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(circle at 88% 20%, rgba(255,255,255,0.28) 0%, transparent 38%),
        radial-gradient(circle at 12% 110%, rgba(255,255,255,0.16) 0%, transparent 40%);
}
.banner::after {
    content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, transparent 62%);
    pointer-events: none;
}
.banner-content { position: relative; z-index: 2; }
.banner-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.22); border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-full); padding: 6px 16px;
    font-size: 13px; font-weight: 600; color: #fff;
}
.banner-title { letter-spacing: 0.5px; }
.banner-title b, .banner-title strong { color: #fff; }
.banner-desc { opacity: 0.95; }
.banner-stat .bs-num {
    font-size: 26px; font-weight: 800; color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.banner-stat .bs-label { color: rgba(255,255,255,0.88); font-size: 13px; }

/* ===== 金刚区（快捷入口）优化 ===== */
.kk-item {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.kk-item:hover { transform: translateY(-5px); }
.kk-icon {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.25s ease;
}
.kk-item:hover .kk-icon { transform: scale(1.1) rotate(-4deg); }

/* ===== Section 标题优化 ===== */
.section-header { margin-bottom: 18px; }
.section-title { position: relative; display: inline-block; padding-left: 14px; }
.section-title::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 5px; height: 22px; border-radius: 4px;
    background: var(--ui2-grad);
}
.section-more {
    font-size: 13px; color: var(--text-secondary); opacity: 0.8;
    transition: all 0.2s; padding: 6px 12px; border-radius: 20px;
}
.section-more:hover { background: var(--ui2-grad-soft); color: var(--primary-color); opacity: 1; }

/* ===== 商品卡片优化：悬浮质感 + 内图缩放 ===== */
.goods-card, .goods-item {
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    border: 1px solid rgba(0,0,0,0.03) !important;
}
.goods-card:hover, .goods-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--ui2-shadow-hover) !important;
    border-color: rgba(255,106,0,0.15) !important;
}
.goods-card img, .goods-item img, .hot-rank-img {
    transition: transform 0.4s ease;
}
.goods-card:hover img, .goods-item:hover img { transform: scale(1.05); }
/* 卡片图片容器圆角统一 */
.goods-card .g-image, .goods-item .goods-img,
.goods-card img:first-child, .goods-item img:first-child { border-radius: var(--ui2-radius); }

/* ===== 热销榜（左侧栏）优化 ===== */
.hot-rank-item { transition: background 0.2s ease, transform 0.2s ease; border-radius: 10px; }
.hot-rank-item:hover { background: var(--ui2-grad-soft); transform: translateX(3px); }
.hot-rank-no.rank-no-1 { color: #FF4D4F; font-weight: 800; }
.hot-rank-no.rank-no-2 { color: #FF7A3D; font-weight: 800; }
.hot-rank-no.rank-no-3 { color: #FFB800; font-weight: 800; }
.hot-rank-price b { color: var(--primary-color); }

/* ===== 侧边卡片 ===== */
.sidebar-card {
    border: 1px solid rgba(0,0,0,0.04) !important;
    transition: box-shadow 0.25s ease;
}
.sidebar-card:hover { box-shadow: var(--ui2-shadow-card); }
.sidebar-title { padding-left: 12px; }
.sidebar-title::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 4px; height: 16px; border-radius: 3px; background: var(--ui2-grad);
}
.nav-list-item { transition: all 0.2s ease; border-radius: 8px; }
.nav-list-item:hover { background: var(--ui2-grad-soft); transform: translateX(3px); }

/* ===== 按钮统一微交互 ===== */
button, .btn, [class*="-btn"] { transition: all 0.22s ease; }
.buy-btn, .detail-buy-btn, .primary-btn { position: relative; overflow: hidden; }
.buy-btn::after, .detail-buy-btn::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transition: left 0.5s ease;
}
.buy-btn:hover::after, .detail-buy-btn:hover::after { left: 150%; }

/* ===== 商城促销卡片（秒杀/9.9/AI值得买/品牌）通用质感 ===== */
.topic-card, .promo-card, [class*="seckill-card"], [class*="nine-card"] {
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.topic-card:hover { transform: translateY(-5px); box-shadow: var(--ui2-shadow-hover); }

/* ===== Footer 优化 ===== */
.footer { position: relative; overflow: hidden; }
.footer::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 85% 0%, rgba(255,106,0,0.08) 0%, transparent 45%);
}

/* ===== 回到顶部/悬浮按钮（若有） ===== */
[class*="back-top"], [class*="backtop"] {
    transition: all 0.25s ease;
}

/* ============================================================
   UI 2.0 响应式补强（2026-10-15）
   WAP 自适应强化：平板/窄窗/手机 UA 均友好。
   ============================================================ */
/* 992px 以下：紧凑 header */
@media (max-width: 992px) {
    .header-container { gap: 8px; padding: 0 12px !important; }
    .logo-text { font-size: 17px !important; }
    .search-box { max-width: 320px; }
    .search-input { font-size: 13px !important; }
    .banner { border-radius: 14px; }
    .banner-title { font-size: 26px !important; }
    .banner-stat .bs-num { font-size: 22px !important; }
    .main-wrapper { padding: 0 12px !important; }
    .main-content { padding: 14px 0 14px 12px !important; }
    .goods-card { border-radius: 12px; }
    .section-title { font-size: 17px !important; }
}

/* 768px 以下：单列堆叠、字号微调、触控友好 */
@media (max-width: 768px) {
    .header-container { flex-wrap: wrap; padding: 8px 12px !important; }
    .header-center { order: 3; width: 100%; }
    .search-box { max-width: 100% !important; }
    .header-right { gap: 6px; }
    .theme-btn span:last-child, .btn-ai span:last-child { display: none; }
    .theme-btn, .btn-ai { width: 40px; height: 40px; padding: 0 !important; justify-content: center; }
    .banner { padding: 26px 20px !important; }
    .banner-title { font-size: 22px !important; }
    .banner-desc { font-size: 13px !important; line-height: 1.7 !important; }
    .banner-stats { gap: 12px !important; }
    .banner-stat .bs-num { font-size: 19px !important; }
    .kk-grid { gap: 8px !important; }
    .kk-item { min-height: 74px !important; }
    .goods-grid { gap: 10px !important; }
    .goods-card { min-height: auto; }
    .section-header { margin-bottom: 12px; }
    .section-title { font-size: 16px !important; }
    .section-more { padding: 4px 8px; font-size: 12px; }
    .footer { padding: 28px 16px !important; }
    .goods-card:hover { transform: translateY(-3px); }
    .goods-card img, .goods-item img { transition: none; }
    .goods-card:hover img, .goods-item:hover img { transform: none; }
}

/* 576px 以下：超窄屏兜底 */
@media (max-width: 576px) {
    .banner-title { font-size: 19px !important; }
    .banner-badge { font-size: 12px; padding: 4px 12px; }
    .banner-desc { font-size: 12px !important; }
    .banner-stat .bs-label { font-size: 12px !important; }
    .goods-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
    .goods-card .g-title, .goods-card .goods-title { font-size: 13px !important; }
    .data-bar { grid-template-columns: 1fr !important; }
    .kk-name { font-size: 12px !important; }
    .user-text, .user-caret { display: none !important; }
    .avatar-circle { width: 36px !important; height: 36px !important; }
}

/* 触屏设备禁用 hover 悬停位移动画（减少误触感） */
@media (hover: none) {
    .goods-card:hover, .goods-item:hover, .topic-card:hover,
    .kk-item:hover, .hot-rank-item:hover, .nav-list-item:hover { transform: none !important; }
    .goods-card:hover img, .goods-item:hover img { transform: none !important; }
    .section-more:hover, .kk-item:hover .kk-icon { transform: none; }
}
