/* ═══════════════════════════════════════════════════
   芯鲸AI 工作台 v3 — 优化版
   Design Read: B2B SaaS 工作台 for 跨境电商卖家,
   with a clean professional language, leaning toward
   native CSS + subtle motion + restrained accents.
   DIALS: VARIANCE 6 / MOTION 4 / DENSITY 5
   ═══════════════════════════════════════════════════ */

/* ─── Reset & Variables ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色 — 单一强调色锁定 */
    --primary: #8B5CF6;
    --primary-hover: #7C3AED;
    --primary-light: #EDE9FE;
    --primary-50: #F5F3FF;
    --primary-100: #EDE9FE;

    /* 中性色 — 冷灰色系统一锁定 */
    --canvas: #f8fafc;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --ink: #0f172a;
    --ink-secondary: #475569;
    --ink-muted: #94a3b8;
    --hairline: #e2e8f0;
    --hairline-soft: #f1f5f9;

    /* 语义色 */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --gold: #eab308;

    /* 强调色 — 功能性使用，不做装饰 */
    --accent-orange: #f97316;
    --accent-green: #10b981;
    --accent-blue: #3b82f6;

    /* 圆角 — 统一系统: 按钮pill / 卡片14px / 输入10px */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* 阴影 — 色调阴影，不用纯黑 */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

    /* 字体 — 系统字体栈 */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--canvas);
    color: var(--ink);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* ═══════════════════════════════════════════════════
   顶部导航栏 — 简洁单线，64px高度
   ═══════════════════════════════════════════════════ */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 28px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--hairline);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 150ms;
}

.nav-logo:hover {
    opacity: 0.8;
}

.logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.logo-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.3px;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-secondary);
    transition: color 150ms, background 150ms;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--ink);
    background: var(--hairline-soft);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-link i {
    font-size: 9px;
    opacity: 0.6;
    transition: transform 200ms ease;
}

/* 下拉菜单 */
.nav-dropdown {
    position: relative;
}

.nav-dropdown:hover .nav-link i,
.nav-dropdown.open .nav-link i,
.nav-dropdown:focus-within .nav-link i {
    transform: rotate(180deg);
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: -8px;
    min-width: 200px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown.open .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    color: var(--ink-secondary);
    transition: all 120ms ease;
}

.dropdown-panel a:hover,
.dropdown-panel a.active {
    background: var(--primary-light);
    color: var(--primary);
}

.dropdown-panel a i {
    width: 16px;
    text-align: center;
    font-size: 12px;
    color: var(--ink-muted);
    transition: color 120ms;
}

.dropdown-panel a:hover i,
.dropdown-panel a.active i {
    color: var(--primary);
}

/* 导航右侧 */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-subscribe {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    transition: all 150ms ease;
}

.nav-subscribe:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.nav-subscribe i {
    font-size: 11px;
    color: #fde68a;
}

.nav-credits {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: var(--radius-full);
    background: #fef9c3;
    font-size: 12.5px;
    font-weight: 600;
    color: #854d0e;
}

.nav-credits i {
    color: var(--gold);
    font-size: 12px;
}

.nav-notify {
    position: relative;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--ink-secondary);
    transition: all 120ms ease;
}

.nav-notify:hover {
    background: var(--hairline-soft);
    color: var(--ink);
}

.nav-notify:active {
    transform: scale(0.95);
}

.notify-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--error);
    border: 2px solid var(--surface);
}

.nav-avatar-wrap {
    position: relative;
}

.nav-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 150ms ease;
}

.nav-avatar:hover {
    border-color: var(--primary);
}

.nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ═══════════════════════════════════════════════════
   主内容区
   ═══════════════════════════════════════════════════ */
.main-content {
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
    padding: 36px 28px 72px;
}

/* ─── Hero 搜索区 ─── 
   左对齐标题 (anti-center bias at VARIANCE 6) */
.hero-section {
    text-align: center;
    margin-bottom: 36px;
}

.hero-title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 22px;
    color: var(--ink);
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--primary);
}

.hero-tabs {
    display: inline-flex;
    gap: 0;
    border: 1.5px solid var(--hairline);
    border-radius: var(--radius-full);
    padding: 3px;
    margin-bottom: 22px;
    background: var(--surface);
}

.hero-tab {
    padding: 9px 22px;
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-secondary);
    transition: all 180ms ease;
}

.hero-tab:hover {
    color: var(--ink);
}

.hero-tab:active {
    transform: scale(0.97);
}

.hero-tab.active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25);
}

.hero-search {
    display: flex;
    align-items: center;
    max-width: 640px;
    margin: 0 auto 18px;
    border: 1.5px solid var(--hairline);
    border-radius: var(--radius-xl);
    background: var(--surface);
    overflow: hidden;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.hero-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 13px 18px;
    font-size: 14.5px;
    color: var(--ink);
    background: transparent;
}

.search-input::placeholder {
    color: var(--ink-muted);
}

.search-btn {
    width: 40px;
    height: 40px;
    margin: 4px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 150ms ease;
}

.search-btn:hover {
    background: var(--primary-hover);
}

.search-btn:active {
    transform: scale(0.92);
}

.hero-shortcuts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: var(--ink-muted);
    padding: 5px 11px;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    transition: all 150ms ease;
}

.shortcut-item:hover {
    color: var(--primary);
    border-color: var(--hairline);
    background: var(--surface);
}

.shortcut-item i {
    font-size: 11px;
}

.shortcut-play {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 150ms ease;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
}

.shortcut-play:hover {
    transform: scale(1.08);
}

.shortcut-play:active {
    transform: scale(0.95);
}

/* ─── 三列信息区 ─── 
   不等宽Grid — 用户卡窄/学堂宽/Banner固定 */
.info-section {
    display: grid;
    grid-template-columns: 260px 1fr 300px;
    gap: 16px;
    margin-bottom: 36px;
}

/* 用户卡 */
.user-card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-md);
    transition: background 120ms;
}

.user-info:hover {
    background: var(--hairline-soft);
}

.user-avatar-lg img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-meta h3 {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--primary-light);
    color: var(--primary);
}

.user-meta p {
    font-size: 11.5px;
    color: var(--ink-muted);
    margin-top: 1px;
}

.copy-btn {
    color: var(--ink-muted);
    font-size: 10px;
    padding: 2px;
}

.copy-btn:hover {
    color: var(--primary);
}

.user-arrow {
    margin-left: auto;
    color: var(--ink-muted);
    font-size: 11px;
}

.plan-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--primary-50);
    border-radius: var(--radius-md);
    border: 1px solid rgba(139, 92, 246, 0.08);
}

.plan-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-badge i {
    font-size: 16px;
    color: var(--gold);
}

.plan-badge strong {
    font-size: 12.5px;
    display: block;
}

.plan-badge small {
    font-size: 10.5px;
    color: var(--ink-muted);
}

.plan-upgrade {
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    transition: all 150ms ease;
}

.plan-upgrade:hover {
    background: var(--primary-hover);
}

.plan-upgrade:active {
    transform: scale(0.96);
}

.credits-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    background: var(--hairline-soft);
    border-radius: var(--radius-md);
}

.credits-icon {
    color: var(--accent-blue);
    font-size: 15px;
}

.credits-num {
    font-size: 15px;
    font-weight: 700;
}

.credits-charge {
    margin-left: auto;
    font-size: 11.5px;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    gap: 3px;
}

.credits-charge:hover {
    color: var(--primary);
}

.user-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 2px;
    border-radius: var(--radius-md);
    transition: all 120ms ease;
}

.quick-action:hover {
    background: var(--primary-light);
}

.quick-action:active {
    transform: scale(0.95);
}

.qa-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--hairline-soft);
    color: var(--primary);
    font-size: 13px;
    transition: all 150ms ease;
}

.quick-action:hover .qa-icon {
    background: var(--primary);
    color: #fff;
}

.quick-action span:last-child {
    font-size: 10.5px;
    color: var(--ink-secondary);
    white-space: nowrap;
}

/* 学堂卡 */
.academy-card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 18px;
}

.academy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.academy-header h2 {
    font-size: 15px;
    font-weight: 600;
}

.view-more {
    font-size: 12.5px;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 120ms;
}

.view-more:hover {
    color: var(--primary);
}

.academy-body {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 14px;
}

.academy-video {
    position: relative;
}

.video-thumb {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 8px;
}

.video-placeholder {
    width: 100%;
    height: 110px;
    background: linear-gradient(135deg, #3b1d8c, #7C3AED);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    gap: 6px;
    cursor: pointer;
    transition: opacity 150ms;
}

.video-placeholder:hover {
    opacity: 0.9;
}

.video-placeholder i {
    font-size: 24px;
    opacity: 0.9;
}

.video-placeholder span {
    font-size: 10.5px;
    opacity: 0.75;
}

.video-brand {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 3px;
}

.brand-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
}

.video-brand span {
    font-size: 11px;
    color: var(--ink-muted);
}

.video-title {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
}

.academy-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lesson-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 8px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    color: var(--ink-secondary);
    line-height: 1.45;
    transition: all 120ms ease;
}

.lesson-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.lesson-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    min-width: 18px;
    flex-shrink: 0;
    padding-top: 1px;
}

/* Banner 轮播卡 */
.promo-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(145deg, #1e0a3c 0%, #3b1d8c 50%, #5b21b6 100%);
    min-height: 260px;
}

.promo-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.promo-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 500ms ease;
}

.promo-slide.active {
    opacity: 1;
    position: relative;
}

.promo-content {
    padding: 28px 22px;
    text-align: center;
    color: #fff;
}

.promo-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    font-size: 10.5px;
    font-weight: 600;
    margin-bottom: 14px;
    backdrop-filter: blur(4px);
}

.promo-content h2 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 18px;
    letter-spacing: -0.3px;
}

.promo-btn {
    padding: 9px 18px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    transition: all 150ms ease;
}

.promo-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.promo-btn:active {
    transform: scale(0.97);
}

.promo-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 200ms ease;
}

.dot.active {
    background: #fff;
    width: 18px;
    border-radius: 3px;
}

/* ─── 推荐区 ─── */
.recommend-section {
    margin-bottom: 48px;
}

.recommend-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.recommend-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--hairline);
}

.rec-tab {
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 150ms ease;
}

.rec-tab:hover {
    color: var(--ink);
}

.rec-tab.active {
    color: var(--primary);
    font-weight: 600;
    border-bottom-color: var(--primary);
}

.recommend-desc {
    flex: 1;
    font-size: 12px;
    color: var(--ink-muted);
    line-height: 1.5;
}

.view-all-btn {
    padding: 7px 14px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--primary);
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 150ms ease;
    white-space: nowrap;
}

.view-all-btn:hover {
    background: var(--primary);
    color: #fff;
}

.view-all-btn:active {
    transform: scale(0.97);
}

/* 推荐偏好 */
.recommendation-dialog {
    width: min(560px, calc(100vw - 32px));
    padding: 0;
    border: 0;
    border-radius: var(--radius-xl);
    color: var(--ink);
    background: var(--surface);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.recommendation-dialog::backdrop {
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(3px);
}

.recommendation-dialog form {
    padding: 26px;
}

.recommendation-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.recommendation-dialog-header h2 {
    margin: 0 0 6px;
    font-size: 21px;
}

.recommendation-dialog-header p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 13px;
    line-height: 1.6;
}

.recommendation-dialog-close {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 50%;
    color: var(--ink-muted);
}

.recommendation-dialog-close:hover {
    color: var(--ink);
    background: var(--hairline-soft);
}

.recommendation-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.recommendation-form-grid label {
    display: grid;
    gap: 7px;
    color: var(--ink-secondary);
    font-size: 13px;
    font-weight: 600;
}

.recommendation-form-grid select,
.recommendation-form-grid input {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    color: var(--ink);
    background: var(--surface);
    font: inherit;
}

.recommendation-form-grid select:focus,
.recommendation-form-grid input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.recommendation-dialog-status {
    min-height: 20px;
    margin: 14px 0 0;
    color: var(--ink-muted);
    font-size: 12px;
}

.recommendation-dialog-status.error {
    color: var(--error);
}

.recommendation-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.recommendation-dialog-actions button {
    min-height: 44px;
    padding-inline: 20px;
}

/* 产品卡片网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(139, 92, 246, 0.3);
}

.product-card:active {
    transform: translateY(-1px);
}

.product-img {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hairline-soft);
    border-bottom: 1px solid var(--hairline);
}

.img-placeholder {
    font-size: 42px;
    color: var(--ink-muted);
    opacity: 0.3;
}

.product-body {
    padding: 12px 14px 14px;
}

.product-score {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.score-label {
    font-size: 11px;
    color: var(--ink-muted);
}

.score-value {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.3px;
}

.product-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-left: auto;
}

.tag {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 5px;
    border-radius: 4px;
    white-space: nowrap;
}

.tag-hot {
    background: #fef2f2;
    color: var(--error);
}

.tag-new {
    background: #ecfdf5;
    color: var(--accent-green);
}

.tag-price {
    background: #eff6ff;
    color: var(--accent-blue);
}

.product-title {
    font-size: 11.5px;
    color: var(--ink-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.price {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.rating {
    font-size: 11.5px;
    color: var(--gold);
    font-weight: 600;
}

.rating i {
    font-size: 10px;
}

.reviews {
    font-size: 11px;
    color: var(--ink-muted);
}

.product-meta {
    font-size: 10.5px;
    color: var(--ink-muted);
    margin-bottom: 8px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 7px;
    border-top: 1px solid var(--hairline-soft);
}

.monthly-sales {
    font-size: 10.5px;
    color: var(--ink-muted);
}

.growth {
    font-size: 11.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
}

.growth.positive {
    color: var(--success);
}

.growth.negative {
    color: var(--error);
}

/* ─── 悬浮按钮 ─── */
.fab-help {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
    transition: all 200ms ease;
    z-index: 500;
}

.fab-help:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
}

.fab-help:active {
    transform: scale(0.95);
}

/* ═══════════════════════════════════════════════════
   响应式
   ═══════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .info-section {
        grid-template-columns: 240px 1fr 260px;
    }
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .info-section {
        grid-template-columns: 1fr 1fr;
    }

    .promo-card {
        grid-column: span 2;
    }

    .nav-menu {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-nav {
        padding: 0 16px;
    }

    .main-content {
        padding: 20px 16px 40px;
    }

    .hero-title {
        font-size: 24px;
    }

    .info-section {
        grid-template-columns: 1fr;
    }

    .promo-card {
        grid-column: auto;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .recommend-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .recommendation-dialog form {
        padding: 20px;
    }

    .recommendation-form-grid {
        grid-template-columns: 1fr;
    }
}
