/* ============================
   EMSHOP Test Template
   简约现代 · 发卡网风格
   ============================ */

:root {
    --ai-bg: #050a0f;
    --ai-bg-2: #090f16;
    --ai-panel: rgba(15, 20, 28, 0.86);
    --ai-panel-2: rgba(18, 23, 31, 0.92);
    --ai-border: rgba(255, 255, 255, 0.08);
    --ai-border-strong: rgba(255, 130, 55, 0.38);
    --ai-text: #f7f7f2;
    --ai-muted: #8e97a5;
    --ai-orange: #ff7a2b;
    --ai-orange-2: #ffb064;
    --ai-green: #55d19a;
}

/* --- Logo Font --- */
@font-face {
    font-family: 'LogoFont';
    src: url('fonts/logo-font.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    background: #f4f6f9;
    -webkit-font-smoothing: antialiased;
    /* Sticky footer：三行 grid，main 吃掉剩余高度，内容不足一屏时 footer 仍贴底 */
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

/* --- Layout --- */
.wrapper { max-width: 1320px; margin: 0 auto; padding: 0 12px; }
/* width:100% 是给 grid item 用的：body 改成 grid 后，margin:0 auto 会让 #main 触发
 * shrink-to-fit、塌缩到内容宽度；显式 width:100% 让它先撑满列再由 max-width 限顶 */
#main { max-width: 1320px; width: 100%; margin: 0 auto; padding: 0 12px; }
.page-body { padding-top: 24px; }

/* --- PJAX Progress Bar --- */
.pjax-bar {
    position: fixed; top: 0; left: 0; height: 2px;
    background: linear-gradient(90deg, #4e6ef2, #7c93f8);
    z-index: 99999; width: 0;
    transition: width 0.15s ease-out;
    pointer-events: none;
}
.pjax-bar.running { width: 85%; transition: width 8s cubic-bezier(0.1, 0.5, 0.3, 1); }
.pjax-bar.done { width: 100%; transition: width 0.15s ease-in; }

/* --- 店铺公告（首页 / 商品列表页通用） ---
   外层一个白底圆角卡片把 head + body 包成一个整体单元；head 用浅灰底 + 下分割线
   清楚地撑出"标题区"，避免 head 透明地坐在页面背景上跟整页融为一体。 */
.site-announcement {
    margin: 18px -12px;       /* 左右负 margin 抵消 .wrapper 的 12px padding，使公告贴齐 wrapper 内宽度 */
    background: #fff;
    border: 1px solid #e8ecf7;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
/* 标题行：浅灰底 + 1px 下分割线；icon 圆角徽章保留蓝紫渐变 */
.site-announcement__head {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 16px;
    background: #f0f3ff;
    border-bottom: 1px solid #e8ecf7;
}
.site-announcement__head .site-announcement__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px;
    border-radius: 6px;
    background: linear-gradient(135deg, #4e6ef2 0%, #7c93f8 100%);
    color: #fff; font-size: 12px;
    box-shadow: 0 2px 6px rgba(78, 110, 242, 0.25);
    flex-shrink: 0;
}
.site-announcement__title {
    font-size: 14px; font-weight: 600; color: #1f2937;
    letter-spacing: 0.3px;
}
.site-announcement__title-sep { flex: 1; }
/* 正文：白底容器，仅负责"框"——不干预内部 wangeditor 输出的任何元素样式
   （颜色 / 字号 / 行高 / 链接 / 图片 / 列表等都由富文本 inline style 自己说了算） */
.site-announcement__body {
    padding: 14px 18px;
    background: #fff;
    word-break: break-word;
    line-height: 200%;
}
/* 仅保留：避免富文本首末元素的 margin 撑破容器内边距 —— 这属于容器布局，不是内容样式 */
.site-announcement__body > *:first-child { margin-top: 0; }
.site-announcement__body > *:last-child  { margin-bottom: 0; }
/* 安全约束：图片不允许溢出容器宽度，这是必要的防护，不修饰外观 */
.site-announcement__body img { max-width: 100%; height: auto; }
@media (max-width: 600px) {
    .site-announcement__body { padding: 12px 14px; }
}

/* --- Header --- */
.site-header {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    border-bottom-color: transparent;
}
.site-header .wrapper { display: flex; align-items: center; height: 64px; }

/* Logo */
.site-logo {
    display: flex; align-items: center; gap: 10px;
    flex-shrink: 0; text-decoration: none;
}
.site-logo-text {
    font-family: 'LogoFont', 'Orbitron', sans-serif;
    font-size: 21px; font-weight: 500; text-transform: uppercase;
    background: linear-gradient(135deg, #4e6ef2 0%, #2b7de9 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px; transition: opacity 0.25s;
}
.site-logo:hover .site-logo-text { opacity: 0.75; }

/* Logo 图片模式 */
.site-logo-img {
    height: 36px; width: auto; max-width: 160px;
    object-fit: contain; display: block;
    transition: opacity 0.25s;
}
.site-logo:hover .site-logo-img { opacity: 0.8; }

/* Navigation */
.main-nav { display: flex; gap: 4px; margin-left: 22px; flex: 1; height: 100%; }
.main-nav a {
    font-size: 15px; color: #5a5a6e; padding: 0 18px;
    display: flex; align-items: center; height: 100%;
    position: relative; transition: color 0.25s; font-weight: 500;
}
.main-nav a::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0;
    height: 2.5px; background: linear-gradient(90deg, #4e6ef2, #7c93f8);
    border-radius: 2px; transition: width 0.3s ease, left 0.3s ease;
}
.main-nav a:hover { color: #4e6ef2; }
.main-nav a:hover::after { width: 20px; left: calc(50% - 10px); }
.main-nav a.active { color: #4e6ef2; font-weight: 600; }
.main-nav a.active::after { width: calc(100% - 36px); left: 18px; }

/* Desktop dropdown */
.nav-dropdown {
    position: relative; height: 100%;
}
.nav-dropdown > a {
    gap: 4px;
}
.nav-arrow {
    flex-shrink: 0; opacity: 0.5;
    transition: transform 0.25s, opacity 0.25s;
}
.nav-dropdown:hover .nav-arrow { transform: rotate(180deg); opacity: 1; }
.nav-dropdown-menu {
    position: absolute; top: calc(100% - 10px); left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 150px; padding: 8px 0;
    background: #fff; border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    opacity: 0; visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu::before {
    content: ''; position: absolute; top: -6px; left: 50%;
    width: 12px; height: 12px;
    background: #fff; border-radius: 2px;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-left: 1px solid rgba(0,0,0,0.05);
    transform: translateX(-50%) rotate(45deg);
}
.nav-dropdown-menu a {
    display: block; padding: 9px 20px;
    font-size: 14px; color: #555; white-space: nowrap;
    position: relative;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
}
.nav-dropdown-menu a::before {
    content: ''; position: absolute; left: 12px; top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px; height: 16px; border-radius: 2px;
    background: #4e6ef2;
    transition: transform 0.2s ease;
}
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover {
    background: #f0f4ff; color: #4e6ef2;
    padding-left: 26px;
}
.nav-dropdown-menu a:hover::before {
    transform: translateY(-50%) scaleY(1);
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.header-action-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; border: none; background: transparent;
    color: #6b7280; cursor: pointer; transition: all 0.25s;
    text-decoration: none;
}
.header-action-btn:hover { background: #f0f3ff; color: #4e6ef2; }
.header-action-btn svg { width: 20px; height: 20px; }
.header-action-btn--text {
    width: auto; padding: 0 12px; gap: 5px; font-size: 13px; font-weight: 500;
    background: #f0f3ff; color: #4e6ef2;
}

/* User avatar & dropdown */
.header-user-dropdown { position: relative; margin-left: 4px; }
.header-user {
    display: flex; align-items: center;
    text-decoration: none; border: none; background: transparent; cursor: pointer;
    padding: 4px 8px; border-radius: 10px;
    transition: background 0.2s;
}
.header-user:hover,
.header-user-dropdown:hover .header-user { background: #f0f3ff; }
.header-user-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    object-fit: cover; border: 2px solid #ebeef5;
    flex-shrink: 0;
}
.header-user-avatar--default {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e8ecf4, #d5dbe8);
    color: #a0aec0; font-size: 15px;
}
.header-user-menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: #fff; border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    min-width: 160px; padding: 6px 0;
    opacity: 0; visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 200;
}
.header-user-dropdown:hover .header-user-menu,
.header-user-dropdown.open .header-user-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.header-user-menu-item {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 18px; font-size: 13px; color: #555;
    text-decoration: none; transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.header-user-menu-item:hover { background: #f5f7fb; color: #333; }
.header-user-menu-item i.fa { width: 16px; text-align: center; color: #999; font-size: 14px; }
.header-user-menu-item:hover i.fa { color: #4e6ef2; }
.header-user-menu-divider { height: 1px; background: #f0f0f0; margin: 4px 0; }
.header-user-menu-item--danger { color: #cf1322; }
.header-user-menu-item--danger:hover { background: #fff2f0; color: #cf1322; }
.header-user-menu-item--danger i.fa { color: #cf1322; }
.header-user-menu-item--danger:hover i.fa { color: #cf1322; }

/* 已登录：账号 + 余额 */
.header-user-info {
    display: flex; flex-direction: column; align-items: flex-start;
    margin-left: 8px; line-height: 1.3;
}
.header-user-name {
    font-size: 13px; font-weight: 600; color: #333;
    max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.header-user-money { font-size: 13px; color: #f5222d; font-weight: 500; }

/* Hamburger menu button (mobile) */
.header-menu-btn {
    display: none; width: 40px; height: 40px;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; border: none; background: transparent;
    cursor: pointer; border-radius: 10px; padding: 10px;
    transition: background 0.25s;
}
.header-menu-btn:hover { background: #f0f3ff; }
.hamburger-line {
    display: block; width: 18px; height: 2px;
    background: #6b7280; border-radius: 1px;
    transition: all 0.3s ease;
}
.header-menu-btn.active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header-menu-btn.active .hamburger-line:nth-child(2) { opacity: 0; }
.header-menu-btn.active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端侧滑菜单遮罩（桌面不展示） */
.mobile-nav-backdrop { display: none; }

/* 移动端导航：桌面隐藏；≤768px 由下方媒体查询改为右侧抽屉 */
.mobile-nav { display: none; }
.mobile-nav-inner { padding: 8px 20px 16px; }
.mobile-nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; font-size: 15px; color: #d9dee7;
    border: 1px solid transparent;
    border-radius: 10px; transition: all 0.2s; text-decoration: none;
}
.mobile-nav-item:hover,
.mobile-nav-item.active {
    background: rgba(255,122,43,0.14);
    border-color: rgba(255,122,43,0.22);
    color: #ffbd7d;
}
.mobile-nav-item .fa { width: 20px; text-align: center; font-size: 16px; color: #9aa7ba; }
.mobile-nav-item:hover .fa,
.mobile-nav-item.active .fa { color: #ffb064; }
.mobile-nav-logout { color: #ffb4b4; }
.mobile-nav-logout:hover {
    background: rgba(239,68,68,0.12);
    border-color: rgba(239,68,68,0.22);
    color: #ffb4b4;
}
.mobile-nav-toggle { cursor: pointer; }
.mobile-nav-toggle .mobile-nav-arrow {
    margin-left: auto; font-size: 12px; width: auto;
    transition: transform 0.25s; color: rgba(217,222,231,0.48);
}
.mobile-nav-toggle.open .mobile-nav-arrow { transform: rotate(180deg); }
.mobile-nav-sub {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
}
.mobile-nav-sub.open { max-height: 300px; }
.mobile-nav-sub-item {
    display: block; padding: 10px 16px 10px 52px;
    font-size: 14px; color: #b8c1cf; text-decoration: none;
    border-radius: 8px; transition: background 0.15s, color 0.15s;
}
.mobile-nav-sub-item:hover { background: rgba(255,122,43,0.12); color: #ffbd7d; }
.mobile-nav-divider { height: 1px; background: rgba(255,255,255,0.09); margin: 8px 16px; }

/* --- Footer：极简版权 + ICP 备案，居中两行布局 --- */
.site-footer {
    background: #1e2a3a;
    color: rgba(255,255,255,0.55);
    padding: 28px 0;
    margin-top: 48px;
    font-size: 13px;
}
.site-footer .wrapper {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; text-align: center;
}
.site-footer__copy {
    display: inline-flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.7);
    flex-wrap: wrap; justify-content: center;
}
.site-footer__icp { font-size: 12.5px; }
.site-footer__icp a {
    color: rgba(255,255,255,0.45);
    transition: color 0.2s;
    letter-spacing: 0.3px;
}
.site-footer__icp a:hover { color: rgba(255,255,255,0.85); }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 20px; border-radius: 6px; font-size: 14px;
    cursor: pointer; transition: all 0.2s; border: none;
    line-height: 1.5; gap: 6px;
}
.btn-primary { background: #4e6ef2; color: #fff; box-shadow: 0 2px 8px rgba(78, 110, 242, 0.25); }
.btn-primary:hover { background: #3d5bd9; color: #fff; box-shadow: 0 4px 12px rgba(78, 110, 242, 0.35); transform: translateY(-1px); }
.btn-outline { background: #fff; border: 1px solid #dcdfe6; color: #606266; }
.btn-outline:hover { border-color: #4e6ef2; color: #4e6ef2; background: #f0f3ff; }
.btn-lg { padding: 12px 32px; font-size: 15px; border-radius: 8px; }
.btn-sm { padding: 5px 14px; font-size: 12px; }
.btn-block { display: flex; width: 100%; }

/* --- Card Base --- */
.card {
    background: #fff; border-radius: 10px; border: 1px solid #ebeef5;
    transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }

/* --- Goods Card --- */
.goods-card { display: block; overflow: hidden; border-radius: 10px; }
.goods-card .card-img {
    aspect-ratio: 1; background: #f8f9fa;
    border-bottom: 1px solid #ebeef5;
    overflow: hidden;
    position: relative;
}
.goods-card .card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.goods-card:hover .card-img img { transform: scale(1.06); }
/* 商品无封面：不输出 img，白灰底占位 */
.goods-no-image {
    display: block;
    width: 100%;
    height: 100%;
    background: #F8F9FA;
    box-sizing: border-box;
}
.goods-card .card-img .goods-no-image {
    position: absolute;
    left: 0;
    top: 0;
}
.goods-card .card-body { padding: 14px; }
.goods-card .card-title {
    font-size: 14px; color: #333; margin-bottom: 5px;
    height: 40px; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-all;
}
.goods-card:hover .card-title { color: #4e6ef2; }
.goods-card .card-bottom { display: flex; align-items: baseline; justify-content: space-between; }
.goods-card .price { font-size: 18px; font-weight: 700; color: #fa5252; letter-spacing: -0.5px; }
.goods-card .price-original { font-size: 12px; color: #adb5bd; text-decoration: line-through; margin-left: 6px; font-weight: normal; }

/* 发货类型角标 */
.goods-badge {
    position: absolute; top: 8px; right: 8px;
    color: #fff; font-size: 11px; line-height: 1;
    padding: 5px 10px; border-radius: 4px; white-space: nowrap;
}
.goods-badge--auto {
    background: linear-gradient(135deg, #34c759, #2aa845);
    box-shadow: 0 2px 6px rgba(52, 199, 89, 0.3);
}
.goods-badge--manual {
    background: linear-gradient(135deg, #f5222d, #cf1322);
    box-shadow: 0 2px 6px rgba(245, 34, 45, 0.3);
}
/* 库存与销量 */
.card-stats {
    display: flex; justify-content: space-between; font-size: 12px; color: #999;
}

/* --- Goods Grid --- */
.goods-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

/* --- Article Card (horizontal list style) --- */
.article-card { display: flex; gap: 20px; padding: 20px; align-items: flex-start; }
.article-card .card-content { flex: 1; min-width: 0; }
.article-card .card-title {
    font-size: 16px; font-weight: 600; color: #333;
    margin-bottom: 8px; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
}
.article-card:hover .card-title { color: #4e6ef2; }
.article-card .card-excerpt {
    font-size: 13px; color: #888; line-height: 1.7; margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.article-card .card-meta { font-size: 12px; color: #adb5bd; display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Article Grid (for index pages, card style) --- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.article-grid .card { display: block; padding: 20px; border-radius: 10px; }
.article-grid-card { display: flex !important; gap: 14px; align-items: stretch; overflow: hidden; }
.article-grid-img {
    width: 90px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: #f8f9fa;
}
.article-grid-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.article-grid-card:hover .article-grid-img img { transform: scale(1.06); }
.article-grid-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.article-grid .card-title {
    font-size: 15px; font-weight: 600; color: #333;
    margin-bottom: 8px; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
}
.article-grid .card:hover .card-title { color: #4e6ef2; }
.article-grid .card-excerpt {
    font-size: 13px; color: #888; line-height: 1.7; margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.article-grid .card-meta { font-size: 12px; color: #adb5bd; }

/* --- Breadcrumb --- */
.breadcrumb { padding: 16px 0 12px; font-size: 13px; color: #c0c4cc; }
.breadcrumb a { color: #909399; transition: color .2s; }
.breadcrumb a:hover { color: #4e6ef2; }
.breadcrumb .sep { margin: 0 6px; color: #dcdfe6; font-size: 11px; }

/* --- Section --- */
.section { margin-bottom: 36px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-title {
    font-size: 18px; font-weight: 600; color: #2c3e50;
    position: relative; padding-left: 14px;
}
.section-title::before {
    content: ''; position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 16px; border-radius: 2px;
    background: #4e6ef2;
}
.section-more { font-size: 13px; color: #888; transition: color .2s; }
.section-more:hover { color: #4e6ef2; }

/* --- Hero Carousel --- */
.hero-carousel {
    max-width: 1320px; margin: 20px auto 0;
    position: relative; overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #4e6ef2 0%, #1a6dd6 100%);
}
.hero-track { position: relative; }
.hero-slide {
    display: none; padding: 45px 20px;
    color: #fff; position: relative;
    background: linear-gradient(135deg, #4e6ef2 0%, #1a6dd6 100%);
    animation: heroFadeIn 0.5s ease;
}
.hero-slide.active { display: block; }
@keyframes heroFadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero-slide__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.15);
    pointer-events: none;
}
/* 无背景图时不需要遮罩 */
.hero-slide:not([style*="background-image"]) .hero-slide__overlay { background: none; }
.hero-slide__content { position: relative; z-index: 1; }
.hero-title { font-size: 32px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.5px; text-shadow: 0 2px 12px rgba(0,0,0,0.15); }
.hero-desc { font-size: 15px; opacity: 0.9; margin-bottom: 50px; text-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.hero-slide .btn, .hero .btn {
    background: rgba(255,255,255,0.18); color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(4px); transition: all 0.3s;
}
.hero-slide .btn:hover, .hero .btn:hover {
    background: #fff; color: #4e6ef2; border-color: #fff;
    transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* 轮播指示点 */
.hero-dots {
    position: absolute; bottom: 16px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 2;
}
.hero-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.4); cursor: pointer;
    transition: all 0.3s;
}
.hero-dot:hover { background: rgba(255,255,255,0.7); }
.hero-dot.active { background: #fff; width: 24px; border-radius: 4px; }

/* 轮播箭头 */
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.15); color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 20px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; z-index: 2; opacity: 0;
    backdrop-filter: blur(4px);
}
.hero-carousel:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: rgba(255,255,255,0.3); }
.hero-arrow--prev { left: 16px; }
.hero-arrow--next { right: 16px; }

.hero-blog {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
}

/* --- Product Detail --- */
.detail-card { background: #fff; border-radius: 10px; border: 1px solid #ebeef5; padding: 32px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.03); }
.detail-layout { display: grid; grid-template-columns: 420px 1fr; gap: 40px; }
.detail-gallery { display: flex; flex-direction: column; gap: 10px; }
.detail-img {
    width: 100%; aspect-ratio: 4 / 3; background: #090e15;
    border-radius: 8px; overflow: hidden;
    border: 1px solid #ebeef5;
    position: relative;
}
.detail-img .goods-no-image {
    position: absolute;
    left: 0;
    top: 0;
    border-radius: inherit;
}
.detail-img img {
    width: 100%; height: 100%; object-fit: contain;
    background: #090e15;
}
/* 缩略图列表 */
.detail-thumbs {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.detail-thumb {
    width: 64px; height: 64px; border-radius: 6px; overflow: hidden;
    border: 2px solid transparent; cursor: pointer;
    transition: border-color .2s;
}
.detail-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
}
.detail-thumb:hover { border-color: #ccc; }
.detail-thumb.active { border-color: #4e6ef2; }
.detail-info { display: flex; flex-direction: column; }
.detail-name {
    font-size: 22px; font-weight: 700; color: #2c3e50; margin-bottom: 16px; line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-all;
}
.detail-price-box {
    background: #fef5f5; border-radius: 8px; padding: 16px 20px;
    margin-bottom: 24px; display: flex; align-items: baseline; gap: 12px;
}
.detail-price { font-size: 28px; font-weight: 700; color: #fa5252; letter-spacing: -0.5px; }
.detail-price-original { font-size: 15px; color: #adb5bd; text-decoration: line-through; }
/* 命中商品满减时：原小计删除线 + "满 X 减 Y" 标签（仅当 JS pickDiscountAmount 返回 > 0 时显示） */
.detail-price-discount-hint { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.detail-price-strike { font-size: 14px; color: #adb5bd; text-decoration: line-through; }
.detail-price-discount-label {
    font-size: 12px; color: #fa5252;
    background: #ffe5e5; border-radius: 4px;
    padding: 2px 8px;
}
.detail-meta { margin-bottom: 24px; }
.detail-meta-row { display: flex; padding: 10px 0; border-bottom: 1px solid #f5f5f5; font-size: 14px; }
.detail-meta-label { color: #999; width: 80px; flex-shrink: 0; }
.detail-meta-value { color: #333; }
.detail-intro {
    font-size: 14px; color: #888; line-height: 1.7; margin-bottom: 16px;
}
.detail-desc {
    background: #f8f9fa; border-radius: 8px; padding: 16px 20px;
    margin-bottom: 24px; font-size: 14px; color: #666; line-height: 1.8;
}
/* --- Spec Selector --- */
.spec-section { margin-bottom: 24px; }
.spec-group { margin-bottom: 16px; }
.spec-group-label { font-size: 13px; color: #999; margin-bottom: 8px; }
.spec-group-options { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
/* 每个规格按钮的容器：tags 在上、按钮在下；多维度时 tags 由 JS 动态填充 */
.spec-item { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.spec-item-tags {
    display: flex; flex-wrap: wrap; gap: 3px;
    padding: 0 2px;
}
.spec-tag {
    display: inline-flex; align-items: center;
    padding: 0 6px; font-size: 11px; line-height: 16px;
    color: #c2410c; background: #fff7ed;
    border: 1px solid #fed7aa; border-radius: 8px;
    letter-spacing: 0.2px; white-space: nowrap;
}
.spec-btn {
    padding: 8px 20px; border: 1px solid #dcdfe6; border-radius: 6px;
    background: #fff; cursor: pointer; font-size: 14px; color: #333;
    transition: all 0.2s; line-height: 1.4;
}
.spec-btn:hover { border-color: #4e6ef2; color: #4e6ef2; }
.spec-btn.active { border-color: #4e6ef2; background: #eef1fe; color: #4e6ef2; font-weight: 600; }
.spec-btn.disabled { color: #ccc; border-color: #eee; background: #fafafa; cursor: not-allowed; }
.spec-stock-hint { font-size: 12px; color: #adb5bd; margin-top: 8px; }

/* 购买数量选择器 */
.detail-qty-row { margin-bottom: 24px; }
.detail-qty-label { font-size: 13px; color: #999; display: block; margin-bottom: 8px; }
.detail-qty-wrap { display: flex; align-items: center; gap: 12px; }
.detail-qty-selector {
    display: inline-flex; align-items: center;
    border: 1px solid #dcdfe6; border-radius: 6px; overflow: hidden;
}
.detail-qty-btn {
    width: 36px; height: 36px; border: none; background: #f5f7fa;
    font-size: 18px; color: #606266; cursor: pointer; transition: background 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.detail-qty-btn:hover { background: #e8eaed; }
.detail-qty-input {
    width: 52px; height: 36px; border: none; border-left: 1px solid #dcdfe6; border-right: 1px solid #dcdfe6;
    text-align: center; font-size: 14px; color: #333; outline: none;
    -moz-appearance: textfield;
}
.detail-qty-input::-webkit-inner-spin-button,
.detail-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.detail-stock-info { font-size: 13px; color: #67c23a; }
.detail-min-buy { font-size: 12px; color: #e6a23c; margin-top: 6px; }

/* 详情页通用表单字段（附加选项 + 查单模式共用同一套样式） */
.detail-form-field { margin-bottom: 14px; }
.detail-form-field-label {
    display: block; font-size: 13px; color: #666;
    margin-bottom: 5px; font-weight: 500;
}
.detail-form-field-input {
    width: 100%; height: 38px;
    padding: 0 12px; border: 1.5px solid #e0e0e0;
    border-radius: 6px; font-size: 14px; color: #333;
    background: #fff; outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.detail-form-field-input:focus {
    border-color: #4e6ef2;
    box-shadow: 0 0 0 3px rgba(78,110,242,0.1);
}
/* 查单模式 section 容器（仅作 DOM 锚点，供 guest_find.js 判断；不加额外样式） */
.detail-guest-find-section { /* no-op */ }

/* 商品数据/优惠信息 选项卡 */
.detail-meta-tabs { margin-bottom: 24px; }
.detail-meta-tab-nav {
    display: flex; gap: 0; border-bottom: 1px solid #f0f0f0; margin-bottom: 16px;
}
.detail-meta-tab-btn {
    padding: 8px 20px; border: none; background: none;
    font-size: 14px; color: #999; cursor: pointer;
    border-bottom: 2px solid transparent; transition: all 0.2s;
}
.detail-meta-tab-btn:hover { color: #333; }
.detail-meta-tab-btn.active { color: #4e6ef2; border-bottom-color: #4e6ef2; font-weight: 500; }
.detail-meta-tab-pane { display: none; }
.detail-meta-tab-pane.active { display: block; }
.detail-discount-list { display: flex; flex-direction: column; gap: 8px; }
.detail-discount-item {
    font-size: 14px; color: #333; padding: 8px 12px;
    background: #fff7ed; border-radius: 6px; display: flex; align-items: center; gap: 8px;
}
.detail-discount-tag {
    display: inline-block; padding: 1px 8px; font-size: 12px;
    color: #fff; background: #f59e0b; border-radius: 4px; flex-shrink: 0;
}

/* 销量/库存 */
.detail-stats-row {
    display: flex; align-items: center; gap: 12px;
    font-size: 13px; color: #999; margin-bottom: 16px;
}
.detail-stat-item strong { color: #666; font-weight: 600; }
.detail-stat-sep { color: #e0e0e0; }

/* 支付方式 */
.detail-payment-section { margin-bottom: 24px; }
.detail-payment-title { font-size: 13px; color: #999; margin-bottom: 10px; }
.detail-payment-list { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-payment-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 18px; border: 1.5px solid #e0e0e0; border-radius: 8px;
    background: #fff; cursor: pointer; transition: all 0.2s;
    font-size: 14px; color: #333;
}
.detail-payment-item img { width: 24px; height: 24px; object-fit: contain; }
.detail-payment-item:hover { border-color: #4e6ef2; }
.detail-payment-item.active {
    border-color: #4e6ef2; background: #eef1fe; color: #4e6ef2; font-weight: 500;
}
/* 禁用态（如未登录时的余额支付） */
.detail-payment-item.is-disabled {
    opacity: 0.45; cursor: not-allowed; background: #f5f5f5; color: #999;
}
.detail-payment-item.is-disabled:hover { border-color: #e0e0e0; }

.detail-actions { display: flex; gap: 12px; margin-bottom: 24px; }

/* --- Article Detail --- */
.article-detail {
    background: #fff; border-radius: 8px; border: 1px solid #ebeef5;
    padding: 40px; margin-bottom: 16px;
}
.article-detail .detail-title { font-size: 24px; font-weight: 700; color: #2c3e50; margin-bottom: 16px; line-height: 1.5; }
.article-detail .detail-meta {
    font-size: 13px; color: #adb5bd; padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0; margin-bottom: 24px;
    display: flex; gap: 16px; flex-wrap: wrap;
}
.article-detail .detail-body img { max-width: 100%; height: auto; }
.article-nav {
    display: flex; justify-content: space-between;
    background: #fff; border-radius: 8px; border: 1px solid #ebeef5; padding: 16px 20px;
}

/* --- Product Intro Blocks --- */
.article-detail--product-intro {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.article-detail--product-intro .detail-body {
    color: #10231f;
}
.ba-product-intro {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.ba-highlight {
    overflow: hidden;
    border: 1px solid rgba(18, 183, 125, 0.22);
    border-radius: 18px;
    background: linear-gradient(180deg, #f7fffb 0%, #fbfffd 100%);
    box-shadow: 0 22px 60px rgba(15, 148, 102, 0.08);
}
.ba-highlight__head {
    padding: 30px 28px 26px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #06966d 0%, #057b59 100%);
}
.ba-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}
.ba-highlight__head h2 {
    margin: 14px 0 10px;
    color: #fff;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 850;
    letter-spacing: 0;
}
.ba-highlight__head p {
    margin: 0;
    color: rgba(255,255,255,0.92);
    font-size: 15px;
    line-height: 1.8;
}
.ba-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 16px;
    padding: 28px;
}
.ba-feature {
    min-height: 168px;
    padding: 28px 22px 24px;
    border: 1px solid rgba(17, 190, 129, 0.2);
    border-radius: 14px;
    background: rgba(255,255,255,0.82);
    text-align: center;
    box-shadow: 0 10px 28px rgba(4, 95, 68, 0.04);
}
.ba-feature__icon {
    display: block;
    margin-bottom: 18px;
    font-size: 34px;
    line-height: 1;
}
.ba-feature h3 {
    margin: 0 0 10px;
    color: #005541;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
}
.ba-feature p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.75;
}
.ba-info-section {
    padding: 24px;
    border: 1px solid rgba(18, 183, 125, 0.22);
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfffd 0%, #ffffff 100%);
}
.ba-info-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: #005541;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 850;
}
.ba-rule-list,
.ba-steps,
.ba-faq {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ba-rule-list li,
.ba-steps li,
.ba-faq-item {
    padding: 16px 18px;
    border: 1px solid rgba(18, 183, 125, 0.18);
    border-radius: 14px;
    background: rgba(255,255,255,0.86);
    color: #172033;
    font-size: 15px;
    line-height: 1.75;
}
.ba-rule-list strong,
.ba-steps strong,
.ba-faq-item strong {
    color: #0f172a;
    font-weight: 800;
}
.ba-quick-jump {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    margin-left: 10px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid rgba(6,150,109,0.24);
    background: rgba(6,150,109,0.10);
    color: #047857 !important;
    font-size: 13px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(6,150,109,0.08);
    transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.ba-quick-jump:hover {
    transform: translateY(-1px);
    background: rgba(6,150,109,0.16);
    border-color: rgba(6,150,109,0.38);
    color: #065f46 !important;
}
.ba-steps {
    counter-reset: baStep;
}
.ba-steps li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;
}
.ba-steps li::before {
    counter-increment: baStep;
    content: counter(baStep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #06966d;
    color: #fff;
    font-weight: 800;
}
.ba-note {
    margin: 14px 0 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 14px;
    line-height: 1.7;
}
.ba-faq-item p {
    margin: 6px 0 0;
    color: #64748b;
}
.article-nav a { font-size: 13px; color: #888; }
.article-nav a:hover { color: #4e6ef2; }

/* --- Search --- */
.search-box { display: flex; gap: 12px; margin-bottom: 20px; }
.search-input {
    flex: 1; padding: 10px 16px; border: 1px solid #dcdfe6;
    border-radius: 6px; font-size: 14px; outline: none;
    transition: border-color 0.2s; background: #fff;
}
.search-input:focus { border-color: #4e6ef2; box-shadow: 0 0 0 3px rgba(78,110,242,0.08); }
.search-hint { font-size: 13px; color: #adb5bd; margin-bottom: 16px; }

/* --- Order Result --- */
.order-result { max-width: 680px; margin: 0 auto; }
.order-result-card {
    text-align: center; padding: 40px 20px;
    background: #fff; border-radius: 12px; border: 1px solid #ebeef5;
    margin-bottom: 20px;
}
.order-result-card--success .order-result-icon { color: #52c41a; }
.order-result-icon { font-size: 48px; color: #f59e0b; margin-bottom: 12px; }
.order-result-title { font-size: 20px; font-weight: 600; color: #333; margin-bottom: 8px; }
.order-result-desc { font-size: 14px; color: #999; }
.order-info-card {
    background: #fff; border-radius: 12px; border: 1px solid #ebeef5;
    padding: 24px; margin-bottom: 20px;
}
.order-info-title { font-size: 15px; font-weight: 600; color: #333; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.order-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 50px; }
.order-info-item { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.order-info-label { color: #999; }
.order-info-value { color: #333; }
.order-goods-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid #f8f8f8;
}
.order-goods-item:last-child { border-bottom: none; }
.order-goods-img { width: 56px; height: 56px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: #f5f7fa; }
.order-goods-img img { width: 100%; height: 100%; object-fit: cover; }
.order-goods-img-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #ddd; font-size: 20px; }
.order-goods-info { flex: 1; min-width: 0; }
.order-goods-name {
    font-size: 14px; color: #333; font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    word-break: break-all;
}
.order-goods-spec {
    font-size: 12px; color: #999; margin-top: 2px;
    overflow-wrap: anywhere;
    word-break: break-all;
}
.order-goods-qty { font-size: 14px; color: #999; min-width: 40px; text-align: center; }
.order-goods-price { font-size: 15px; font-weight: 600; color: #fa5252; min-width: 80px; text-align: right; }
.order-delivery-content {
    background: #f8faf5; border-radius: 8px; padding: 12px 16px; margin: 8px 0 12px;
    border-left: 3px solid #52c41a;
}
.order-delivery-label { font-size: 13px; color: #52c41a; font-weight: 500; margin-bottom: 6px; }
.order-delivery-text { font-size: 14px; color: #333; line-height: 1.8; word-break: break-all; }

/* --- Empty State（白底扁平 · 双按钮 · 小贴士三连）--- */
.empty-state {
    text-align: center;
    padding: 56px 24px 44px;
    background: #fff;
    border-radius: 14px;
}
.empty-state .empty-icon {
    width: 72px; height: 72px;
    margin: 0 auto 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #eef2ff;
    border-radius: 20px;
    font-size: 30px;
    color: #6366f1;
    opacity: 1;
}
.empty-state h3 {
    font-size: 17px; color: #1f2937;
    margin-bottom: 8px; font-weight: 600;
    letter-spacing: 0.3px;
}
.empty-state p {
    font-size: 13px; color: #94a3b8;
    line-height: 1.75;
    max-width: 480px;
    margin: 0 auto 22px;
}

/* 按钮组（主 CTA + 次按钮并列） */
.empty-actions {
    display: inline-flex; gap: 10px; flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}
.empty-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 22px;
    font-size: 13px; font-weight: 500;
    color: #fff;
    background: #6366f1;
    border: 1px solid #6366f1;
    border-radius: 999px;
    transition: background 0.18s ease, transform 0.18s ease;
    text-decoration: none;
}
.empty-btn:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    transform: translateY(-1px);
    color: #fff;
}
.empty-btn i { font-size: 12px; }
.empty-btn--ghost {
    background: #fff;
    color: #6366f1;
    border-color: #c7d2fe;
}
.empty-btn--ghost:hover {
    background: #eef2ff;
    color: #6366f1;
    border-color: #a5b4fc;
}

/* 贴士三连：icon + 短句，分隔在一行或换行 */
.empty-tips {
    display: flex; flex-wrap: wrap; gap: 14px 22px;
    justify-content: center;
    padding-top: 18px;
    border-top: 1px dashed #f3f4f6;
    max-width: 640px;
    margin: 0 auto;
}
.empty-tips span {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; color: #9ca3af;
    line-height: 1.6;
}
.empty-tips i { color: #c7d2fe; font-size: 13px; }
@media (max-width: 640px) {
    .empty-state { padding: 40px 18px 32px; }
    .empty-state .empty-icon { width: 60px; height: 60px; font-size: 24px; }
    .empty-state h3 { font-size: 15px; }
    .empty-tips { gap: 10px 18px; }
}

/* ============================================================
   空态 · 丰富版（.empty-state--rich）
   装饰圆点 + 光晕 icon + 4 宫格特色 + 双 CTA
   ============================================================ */
.empty-state--rich {
    position: relative;
    overflow: hidden;
    padding: 56px 32px 15px;
}

/* 装饰层：角落小圆点 + 光环 */
.empty-decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.empty-decor__dot {
    position: absolute;
    border-radius: 50%;
    opacity: 0.65;
}
.empty-decor__dot--1 { width: 10px; height: 10px; background: #c7d2fe; top: 30px;  left: 10%; }
.empty-decor__dot--2 { width: 14px; height: 14px; background: #fbcfe8; top: 60px;  right: 14%; }
.empty-decor__dot--3 { width: 8px;  height: 8px;  background: #fde68a; bottom: 46px; left: 18%; }
.empty-decor__ring {
    position: absolute;
    width: 160px; height: 160px;
    top: 20px; right: -40px;
    border: 2px dashed #e0e7ff;
    border-radius: 50%;
    opacity: 0.6;
}

/* 相对定位让内容在装饰层之上 */
.empty-state--rich > *:not(.empty-decor) { position: relative; z-index: 1; }

/* Icon 升级：外圈脉冲光晕 */
.empty-icon--glow {
    width: 88px; height: 88px;
    font-size: 38px;
    position: relative;
    margin-bottom: 18px;
}
.empty-icon--glow::before,
.empty-icon--glow::after {
    content: ''; position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid #c7d2fe;
    opacity: 0;
    animation: empty-pulse 2.4s ease-out infinite;
}
.empty-icon--glow::after { animation-delay: 1.2s; }
@keyframes empty-pulse {
    0%   { opacity: 0; transform: scale(0.9); }
    40%  { opacity: 0.5; }
    100% { opacity: 0; transform: scale(1.35); }
}

/* 特色 4 宫格 */
.empty-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 4px auto 28px;
    max-width: 780px;
}
.empty-feature {
    text-align: center;
    padding: 16px 12px;
    background: #fafbfc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.empty-feature:hover {
    transform: translateY(-2px);
    border-color: #e0e7ff;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.08);
}
.empty-feature__icon {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    font-size: 17px;
    margin-bottom: 8px;
}
.empty-feature__title {
    font-size: 13px; font-weight: 600; color: #1f2937;
    margin-bottom: 3px;
}
.empty-feature__desc { font-size: 11px; color: #94a3b8; line-height: 1.5; }

@media (max-width: 768px) {
    .empty-features { grid-template-columns: repeat(2, 1fr); }
    .empty-decor__ring { display: none; }
}
@media (max-width: 480px) {
    .empty-state--rich { padding: 40px 20px 32px; }
    .empty-features { gap: 10px; }
    .empty-feature { padding: 12px 8px; }
    .empty-feature__icon { width: 34px; height: 34px; font-size: 14px; }
}

/* --- Page Title --- */
.page-title { font-size: 20px; font-weight: 600; color: #2c3e50; margin-bottom: 20px; }

/* --- 404 --- */
.not-found { text-align: center; padding: 80px 20px; }
.not-found-code { font-size: 100px; font-weight: 800; color: #4e6ef2; line-height: 1; margin-bottom: 12px; opacity: 0.3; }
.not-found-title { font-size: 20px; font-weight: 600; color: #333; margin-bottom: 8px; }
.not-found-desc { font-size: 14px; color: #adb5bd; margin-bottom: 32px; line-height: 1.8; }
.not-found-desc code { background: #f4f6f9; padding: 2px 8px; border-radius: 4px; font-size: 12px; color: #888; }

/* --- Article List (stacked) --- */
.article-list { display: flex; flex-direction: column; gap: 12px; }

/* --- Blog Layout (content + sidebar) --- */
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 15px; align-items: start; }
.blog-main { min-width: 0; }
.blog-sidebar { position: sticky; top: 72px; }
.sidebar-widget {
    background: #fff; border-radius: 10px; border: 1px solid #ebeef5;
    padding: 20px; margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.sidebar-title {
    font-size: 15px; font-weight: 600; color: #2c3e50;
    margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0;
    position: relative; padding-left: 14px;
}
.sidebar-title::before {
    content: ''; position: absolute; left: 0; top: 50%;
    transform: translateY(-50%); margin-top: -5px;
    width: 4px; height: 14px; border-radius: 2px;
    background: #4e6ef2;
}
.sidebar-list a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; font-size: 14px; color: #666; border-bottom: 1px dashed #f5f5f5;
}
.sidebar-list a:last-child { border-bottom: none; }
.sidebar-list a:hover { color: #4e6ef2; }
.sidebar-list .count { font-size: 12px; color: #adb5bd; background: #f4f6f9; padding: 1px 8px; border-radius: 10px; }
.sidebar-posts { display: flex; flex-direction: column; gap: 10px; }
.sidebar-post {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; color: #666; line-height: 1.5;
}
.sidebar-post:hover { color: #4e6ef2; }
.sidebar-rank {
    flex-shrink: 0; width: 20px; height: 20px; border-radius: 4px;
    background: #ebeef5; color: #999; font-size: 12px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
}
.sidebar-rank.top { background: #4e6ef2; color: #fff; }
.sidebar-post-title {
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sidebar-tag {
    padding: 4px 12px; border-radius: 14px; font-size: 12px;
    background: #f4f6f9; color: #888; border: 1px solid #ebeef5;
    transition: all 0.2s;
}
.sidebar-tag:hover { border-color: #4e6ef2; color: #4e6ef2; background: #f0f3ff; }
.sidebar-list .price-tag { font-size: 13px; color: #fa5252; font-weight: 600; flex-shrink: 0; }

/* 侧边栏最新商品（左图右文） */
.sidebar-goods-list { display: flex; flex-direction: column; gap: 12px; }
.sidebar-goods-item {
    display: flex; gap: 10px; align-items: center;
    text-decoration: none; color: #333;
    padding: 8px; margin: -8px; border-radius: 8px;
    transition: background .2s;
}
.sidebar-goods-item:hover { background: #f8f9fa; }
.sidebar-goods-item:hover .sidebar-goods-name { color: #4e6ef2; }
.sidebar-goods-img {
    width: 56px; height: 56px; flex-shrink: 0;
    border-radius: 6px; overflow: hidden; background: #f8f9fa;
    border: 1px solid #ebeef5;
    position: relative;
}
.sidebar-goods-img img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-goods-img .goods-no-image {
    position: absolute;
    left: 0;
    top: 0;
    border-radius: inherit;
}
.sidebar-goods-info { flex: 1; min-width: 0; }
.sidebar-goods-name {
    font-size: 13px; line-height: 1.4; color: #333;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-all;
    transition: color .2s;
}
.sidebar-goods-price { margin-top: 4px; }
.sidebar-goods-price .price { font-size: 14px; font-weight: 600; color: #fa5252; }
.sidebar-goods-price .price-original { font-size: 11px; color: #adb5bd; text-decoration: line-through; margin-left: 4px; }

/* 侧边栏二级分类 */
.sidebar-cat-list { display: flex; flex-direction: column; }
.sidebar-cat-group { border-bottom: 1px solid #f0f0f0; }
.sidebar-cat-group:last-child { border-bottom: none; }
/* 父分类行：链接 + 箭头 */
.sidebar-cat-parent-row {
    display: flex; align-items: center;
}
.sidebar-cat-parent {
    flex: 1; min-width: 0;
    display: flex; align-items: center; gap: 8px;
    padding: 10px 0; font-size: 14px; color: #333; font-weight: 500;
    text-decoration: none; transition: color .2s;
}
.sidebar-cat-parent:hover { color: #4e6ef2; }
/* 折叠箭头 */
.sidebar-cat-arrow {
    flex-shrink: 0; width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #adb5bd; font-size: 12px;
    border-radius: 4px; transition: color .2s, background .2s;
}
.sidebar-cat-arrow:hover { color: #666; background: #f4f6f9; }
.sidebar-cat-arrow .fa { transition: transform .25s ease; }
.sidebar-cat-arrow.is-open .fa { transform: rotate(180deg); }
.sidebar-cat-children { padding: 0 0 8px 30px; }
.sidebar-cat-child {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 0; font-size: 13px; color: #666;
    text-decoration: none; transition: color .2s;
}
.sidebar-cat-child:hover { color: #4e6ef2; }

/* 分类图标 */
.sidebar-cat-icon {
    width: 22px; height: 22px; border-radius: 4px;
    object-fit: cover; flex-shrink: 0;
}
.sidebar-cat-icon--sm { width: 18px; height: 18px; border-radius: 3px; }

/* 分类名称撑满剩余空间，数字右对齐统一大小 */
.sidebar-cat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-cat-count {
    flex-shrink: 0; min-width: 28px; height: 28px; line-height: 28px;
    text-align: center; font-size: 12px; color: #adb5bd;
    background: #f4f6f9; padding: 0 6px; border-radius: 4px;
    box-sizing: border-box;
}

/* --- Sidebar User Info --- */
.sidebar-user {
    display: flex; align-items: center; gap: 12px; padding: 4px 0 12px;
}
.sidebar-user-avatar {
    width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    background: #f0f2f5;
}
.sidebar-user-avatar img {
    width: 100%; height: 100%; object-fit: cover;
}
.sidebar-user-avatar--guest {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e8ecf4, #d5dbe8);
    color: #a0aec0; font-size: 22px;
}
.sidebar-user-avatar--default {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; border-radius: 50%;
    background: linear-gradient(135deg, #e8ecf4, #d5dbe8);
    color: #a0aec0; font-size: 22px;
}
.sidebar-user-name {
    font-size: 15px; font-weight: 600; color: #333; line-height: 1.3;
}
.sidebar-user-meta {
    font-size: 12px; color: #999; margin-top: 2px;
}
.sidebar-user-links {
    display: flex; gap: 8px;
}
.sidebar-user-links > a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
    padding: 7px 0; font-size: 13px; color: #666; text-decoration: none;
    background: #f5f7fa; border-radius: 6px; transition: background .2s, color .2s;
}
.sidebar-user-links > a:hover { background: #ebeef5; color: #333; }
.sidebar-user-btn--primary {
    background: #4e6ef2 !important; color: #fff !important;
}
.sidebar-user-btn--primary:hover {
    background: #3d5bd9 !important;
}

/* --- Category Tabs (goods list filter) --- */
.category-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.category-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 8px; font-size: 13px;
    border: 1px solid #e5e7eb; color: #666; background: #fff;
    text-decoration: none; cursor: pointer; transition: all 0.2s;
}
.category-tab:hover { border-color: #4e6ef2; color: #4e6ef2; }
.category-tab.active { background: #4e6ef2; color: #fff; border-color: #4e6ef2; box-shadow: 0 2px 6px rgba(78, 110, 242, 0.25); }
.category-tab-icon {
    width: 20px; height: 20px; border-radius: 4px;
    object-fit: cover; flex-shrink: 0;
}
.category-tab-name { white-space: nowrap; }
.category-tab-count {
    font-size: 11px; background: rgba(0,0,0,0.06); padding: 1px 6px;
    border-radius: 8px; line-height: 16px; flex-shrink: 0;
}
.category-tab.active .category-tab-count { background: rgba(255,255,255,0.25); color: #fff; }
.category-tabs--sub { margin-top: -12px; }
.category-tabs--sub .category-tab { font-size: 12px; padding: 5px 12px; background: #f8f9fa; border-color: #ebeef5; border-radius: 6px; }
.category-tabs--sub .category-tab.active { background: #4e6ef2; color: #fff; border-color: #4e6ef2; }

.goods-sort-bar {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    margin: 0 0 18px;
}
.goods-sort-link {
    display: inline-block; padding: 6px 12px; border-radius: 6px; font-size: 13px;
    border: 1px solid #e5e7eb; color: #666; background: #fff; text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.goods-sort-link:hover { border-color: #4e6ef2; color: #4e6ef2; }
.goods-sort-link.active { background: #4e6ef2; color: #fff; border-color: #4e6ef2; }

/* --- Blog Article Grid (blog_index 2-column layout) --- */
.blog-article-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.blog-article-card {
    display: flex; flex-direction: row; overflow: hidden;
    border-radius: 10px; text-decoration: none; color: #333;
    transition: box-shadow 0.3s, transform 0.2s;
}
.blog-article-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.blog-article-img {
    width: 108px; min-height: 84px; flex-shrink: 0; overflow: hidden; background: #f8f9fa;
    margin: 12px; border-radius: 8px;
}
.blog-article-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.blog-article-card:hover .blog-article-img img { transform: scale(1.05); }
.blog-article-body { padding: 12px 16px 12px 0; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.blog-article-title {
    font-size: 16px; font-weight: 600; color: #2c3e50; line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.blog-article-card:hover .blog-article-title { color: #4e6ef2; }
.blog-article-excerpt {
    font-size: 13px; color: #888; line-height: 1.7; margin-bottom: 12px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.blog-article-meta {
    font-size: 12px; color: #adb5bd; display: flex; gap: 14px; flex-wrap: wrap;
}
.blog-article-meta .fa { margin-right: 3px; }
/* 3列变体（blog_list 页面，纵向卡片） */
.blog-article-grid--3col { grid-template-columns: repeat(5, 1fr); }
.blog-article-grid--3col .blog-article-card { flex-direction: column; }
.blog-article-grid--3col .blog-article-img {
    width: auto; min-height: 0; aspect-ratio: 1 / 1;
    margin: 0; border-radius: 10px 10px 0 0;
}
.blog-article-grid--3col .blog-article-body { padding: 14px 16px; }

/* 侧边栏最新文章（左图右文） */
.sidebar-article-list { display: flex; flex-direction: column; gap: 12px; }
.sidebar-article-item {
    display: flex; gap: 10px; align-items: center;
    text-decoration: none; color: #333;
    padding: 8px; margin: -8px; border-radius: 8px;
    transition: background .2s;
}
.sidebar-article-item:hover { background: #f8f9fa; }
.sidebar-article-item:hover .sidebar-article-title { color: #4e6ef2; }
.sidebar-article-img {
    width: 56px; height: 56px; flex-shrink: 0;
    border-radius: 6px; overflow: hidden; background: #f8f9fa;
    border: 1px solid #ebeef5;
}
.sidebar-article-img img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-article-img--empty {
    display: flex; align-items: center; justify-content: center;
    color: #ccc; font-size: 20px;
}
.sidebar-article-info { flex: 1; min-width: 0; }
.sidebar-article-title {
    font-size: 13px; line-height: 1.4; color: #333;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    transition: color .2s;
}
.sidebar-article-date { margin-top: 4px; font-size: 12px; color: #adb5bd; }

/* Sidebar layout 内的网格列数调整 */
.blog-layout .goods-grid { grid-template-columns: repeat(4, 1fr); }
.blog-layout .article-grid { grid-template-columns: repeat(2, 1fr); }

/* --- Search Modal Overlay ---
 * 移动端 WebKit 上「position:fixed + 子元素 width:100%/百分比」易出现横向溢出或参照宽度异常。
 * 做法：fixed 外层只用 top/left/right/bottom 钉满视口 + overflow:hidden 裁剪；真正放表单的是 .search-modal-stage（非 fixed），
 * 其宽度恒为外层内容盒，百分比与 grid 的 minmax(0,1fr) 都相对这一层，可稳定自适应。 */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    /* 高于顶栏/侧滑菜单(≈10060)，且置于 body 末尾，避免层叠上下文被 header 内 transform 影响 */
    z-index: 50000;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}
.search-modal.active {
    display: flex;
    flex-direction: column;
}
.search-modal-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
}
.search-modal-stage {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px 20px;
    padding-top: max(12px, env(safe-area-inset-top, 0px));
    padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.search-modal-body {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 560px;
    margin: min(16vh, 120px) 0 0;
    padding: 0;
    animation: searchSlideIn 0.2s ease-out;
}
@keyframes searchSlideIn {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}
.search-modal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    justify-content: center;
}
.search-modal-tab {
    padding: 5px 18px; border: none;
    background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.6);
    border-radius: 16px; cursor: pointer; font-size: 13px; transition: all 0.2s;
}
.search-modal-tab:hover { background: rgba(255,255,255,0.22); color: #fff; }
.search-modal-tab.active { background: #fff; color: #4e6ef2; }
.search-modal-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}
.search-modal-bar input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 16px 14px;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
}
.search-modal-bar button {
    padding: 14px 16px;
    border: none;
    background: none;
    color: #4e6ef2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
}
.search-modal-bar button:hover { color: #3d5bd9; }
.search-modal-hint {
    text-align: center; margin-top: 14px;
    font-size: 12px; color: rgba(255,255,255,0.35);
}

/* 弹层内表单：抵消 UA / 其它样式对 form 的 min-width:auto */
#searchModal .search-modal-bar {
    min-width: 0;
}
#searchModal .search-modal-bar input {
    min-width: 0 !important;
    max-width: 100% !important;
}

/* --- Search Result Page Tabs --- */
.search-type-tabs {
    display: flex; gap: 0; margin-bottom: 20px;
    border-bottom: 1px solid #ebeef5;
}
.search-type-tab {
    padding: 10px 20px; font-size: 14px; color: #888;
    border-bottom: 2px solid transparent; transition: all 0.2s; margin-bottom: -1px;
}
.search-type-tab:hover { color: #4e6ef2; }
.search-type-tab.active { color: #4e6ef2; border-bottom-color: #4e6ef2; font-weight: 500; }

/* --- Pagination --- */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; margin-top: 32px; padding: 8px 0;
}
.pagination-btn, .pagination-num {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 8px;
    border: 1px solid #e5e7eb; border-radius: 6px;
    font-size: 14px; color: #333; background: #fff;
    text-decoration: none; transition: all .2s; cursor: pointer;
}
.pagination-btn:hover, .pagination-num:hover { border-color: #4e6ef2; color: #4e6ef2; }
.pagination-num.active {
    background: #4e6ef2; color: #fff; border-color: #4e6ef2;
    font-weight: 600; pointer-events: none;
}
.pagination-btn.disabled {
    color: #ccc; border-color: #eee; cursor: not-allowed; pointer-events: none;
}
.pagination-dots {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; font-size: 14px; color: #999;
    letter-spacing: 1px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .goods-grid { grid-template-columns: repeat(3, 1fr); }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-layout { grid-template-columns: 340px 1fr; gap: 24px; }
    .blog-layout { grid-template-columns: 1fr 240px; gap: 16px; }
    .blog-layout .goods-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-layout .article-grid { grid-template-columns: 1fr; }
    .blog-article-grid { grid-template-columns: 1fr; }
    .blog-article-grid--3col { grid-template-columns: repeat(3, 1fr); }
    .blog-article-img { width: 92px; min-height: 72px; }
}
@media (max-width: 768px) {
    /* 顶栏高度：侧滑已移出 header，须挂在 :root 上，#mobileNav / 遮罩才能用到 var(--header-bar-h) */
    :root {
        --header-bar-h: 56px;
    }
    .goods-grid { grid-template-columns: repeat(2, 1fr); }
    .article-grid { grid-template-columns: 1fr; }
    .detail-layout { grid-template-columns: 1fr; }
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
    .blog-article-grid { grid-template-columns: 1fr; }
    .blog-article-grid.blog-article-grid--3col { grid-template-columns: repeat(2, 1fr); }
    /* 移动端页头：整宽贴边，左 logo 右功能区（避免 flex-start 导致右侧大块留白） */
    .site-header {
        z-index: 10060;
    }
    .site-header .wrapper {
        height: var(--header-bar-h);
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        max-width: none;
        width: 100%;
        padding-left: 14px;
        padding-right: 14px;
        box-sizing: border-box;
    }
    .site-logo { min-width: 0; flex-shrink: 1; }
    .site-logo-text { font-size: 17px; letter-spacing: 1px; }
    .site-logo-img { max-width: 132px; height: 32px; }
    .header-actions { flex-shrink: 0; margin-left: auto; }
    .main-nav { display: none; }
    .header-menu-btn { display: flex; }
    .header-user-dropdown { display: none; }

    /* 侧滑遮罩：关闭 display:none 不占任何盒；打开才显示（与 #mobileNav 由 JS 同步 .mobile-nav--shown） */
    .mobile-nav-backdrop {
        display: none;
        position: fixed;
        top: var(--header-bar-h);
        left: 0;
        right: 0;
        bottom: 0;
        height: auto;
        z-index: 10040;
        background: rgba(3, 7, 12, 0.62);
        backdrop-filter: blur(2px);
    }
    .mobile-nav-backdrop.mobile-nav--shown {
        display: block;
        opacity: 0;
        transition: opacity 0.28s ease;
    }
    .mobile-nav-backdrop.mobile-nav--shown.is-open {
        opacity: 1;
    }

    /* 侧滑菜单：默认 display:none；.mobile-nav--shown 才生成盒 + 屏外；.open 滑入（避免隐藏时仍为 display:block 参与滚动宽度） */
    .mobile-nav {
        display: none;
        position: fixed;
        top: var(--header-bar-h);
        right: 0;
        bottom: 0;
        width: min(80vw, 250px);
        height: auto;
        max-height: none;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        border: none;
        border-left: 1px solid rgba(255,122,43,0.18);
        border-radius: 0;
        background:
            radial-gradient(circle at 18% 0%, rgba(255,122,43,0.15), transparent 36%),
            linear-gradient(180deg, rgba(12,17,25,0.98), rgba(5,8,13,0.99));
        box-shadow: -18px 0 46px rgba(0,0,0,0.36), inset 1px 0 0 rgba(255,255,255,0.04);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 10050;
        transform: translateX(105%);
        transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .mobile-nav.mobile-nav--shown {
        display: block;
    }
    .mobile-nav.mobile-nav--shown.open {
        transform: translateX(0);
    }
    .mobile-nav-inner {
        position: relative;
        z-index: 1;
        min-height: 100%;
        padding: 16px 16px 28px;
    }

    .hero-slide { padding: 40px 16px; }
    .hero-title { font-size: 24px; }
    .hero-carousel { margin-top: 12px; border-radius: 8px; }
    .detail-card { padding: 20px; }
    .article-detail { padding: 24px; }
    .article-detail--product-intro {
        width: 100%;
        padding: 0;
    }
    .ba-highlight__head {
        padding: 24px 18px 22px;
    }
    .ba-highlight__head h2 {
        font-size: 24px;
    }
    .ba-feature-grid {
        grid-template-columns: 1fr;
        padding: 18px;
    }
    .ba-feature {
        min-height: auto;
        padding: 22px 18px;
    }
    .ba-info-section {
        padding: 18px;
    }
    .ba-info-section h2 {
        font-size: 21px;
    }

    /* 搜索弹窗：小屏略抬高 + 再收紧内边距（宽度仍由全局 max-width: min(...) 控制） */
    #searchModal .search-modal-stage {
        padding-left: 12px;
        padding-right: 12px;
    }
    #searchModal .search-modal-body {
        margin-top: max(12px, 8vh);
    }
    #searchModal .search-modal-tab {
        padding: 8px 14px;
        font-size: 13px;
    }
    #searchModal .search-modal-bar input {
        padding: 14px 12px;
    }
    #searchModal .search-modal-bar button {
        padding: 12px 14px;
    }
    #searchModal .search-modal-hint { margin-top: 10px; }

    /* 商品详情：主图与缩略图约为原视觉的一半（仅详情页 .detail-*，列表卡片区保持默认） */
    .detail-gallery {
        align-items: center;
    }
    .detail-img {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
    .detail-thumb {
        width: 32px;
        height: 32px;
    }
}
body.mobile-nav-drawer-open {
    overflow: hidden;
    touch-action: none;
}
/* 搜索打开时锁滚动（与侧滑菜单一致；弹层在 footer 后，避免被顶栏子树层叠盖住） */
body.search-modal-open {
    overflow: hidden;
    touch-action: none;
}
@media (max-width: 480px) {
    .goods-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .goods-card .card-body { padding: 10px; }
    .goods-card .price { font-size: 16px; }
    .hero-carousel { margin-left: 12px; margin-right: 12px; }
}

/* 极窄屏：搜索栏两行 grid（与桌面同一套 grid，只改列定义） */
@media (max-width: 400px) {
    #searchModal .search-modal-bar {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    #searchModal .search-modal-bar input {
        border-bottom: 1px solid #eef0f4;
    }
    #searchModal .search-modal-bar button {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }
}

/* ============================================================
   评论区
   ============================================================ */
.comment-section {
    margin-top: 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ebeef5;
    padding: 32px 40px;
}
.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.comment-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.comment-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}
.comment-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    font-size: 12px;
    font-weight: 600;
    color: #4e6ef2;
    background: #eef1fd;
    border-radius: 11px;
}
.comment-sort {
    display: flex;
    gap: 2px;
    background: #f5f7fa;
    border-radius: 6px;
    padding: 3px;
}
.comment-sort-btn {
    padding: 5px 14px;
    font-size: 13px;
    color: #999;
    border-radius: 4px;
    cursor: pointer;
    transition: all .2s;
    user-select: none;
}
.comment-sort-btn:hover { color: #666; }
.comment-sort-btn.active {
    color: #333;
    background: #fff;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* 评论表单 */
.comment-form-box {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}
.comment-form-wrapper {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.comment-form-avatar {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #e8ecf4, #d6dce8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.comment-form-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.comment-form-avatar i {
    font-size: 18px;
    color: #a0aec0;
}
.comment-form-body { flex: 1; }
.comment-textarea {
    width: 100%;
    min-height: 88px;
    padding: 12px 14px;
    border: 1.5px solid #e4e7ed;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: border-color .25s, box-shadow .25s;
    font-family: inherit;
    box-sizing: border-box;
    background: #fafbfc;
}
.comment-textarea:focus {
    border-color: #4e6ef2;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(78,110,242,.1);
}
.comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}
.comment-char-count {
    font-size: 12px;
    color: #c0c4cc;
}
.comment-submit-btn {
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #4e6ef2;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all .25s;
}
.comment-submit-btn:hover { background: #3d5bd9; box-shadow: 0 4px 12px rgba(78,110,242,.3); }
.comment-submit-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    box-shadow: none;
}
.comment-cancel-btn {
    padding: 8px 18px;
    font-size: 13px;
    color: #909399;
    background: #f5f7fa;
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s;
}
.comment-cancel-btn:hover { background: #ebeef5; color: #606266; border-color: #dcdfe6; }

/* 未登录提示 */
.comment-login-tip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: #f8f9fc;
    border-radius: 10px;
    border: 1px dashed #dcdfe6;
    font-size: 14px;
    color: #909399;
}
.comment-login-tip i { font-size: 22px; color: #c0c4cc; }
.comment-login-btn {
    margin-left: auto;
    padding: 7px 22px;
    font-size: 13px;
    font-weight: 500;
    color: #4e6ef2;
    border: 1px solid #4e6ef2;
    border-radius: 8px;
    text-decoration: none;
    transition: all .25s;
}
.comment-login-btn:hover {
    background: #4e6ef2;
    color: #fff;
}

/* 评论列表 */
.comment-list { min-height: 60px; }
.comment-loading {
    text-align: center;
    padding: 32px;
    color: #c0c4cc;
    font-size: 14px;
}
.comment-empty {
    text-align: center;
    padding: 48px 20px;
    color: #c0c4cc;
    font-size: 14px;
}

/* 单条评论 */
.comment-item {
    display: flex;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid #f2f3f5;
}
.comment-item:first-child { padding-top: 0; }
.comment-item:last-child { border-bottom: none; padding-bottom: 0; }
.comment-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #e8ecf4, #d6dce8);
    display: flex;
    align-items: center;
    justify-content: center;
}
.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.comment-avatar i {
    font-size: 17px;
    color: #a0aec0;
}
.comment-body { flex: 1; min-width: 0; }
.comment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.comment-author {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}
.comment-reply-to {
    font-size: 13px;
    color: #909399;
}
.comment-reply-to b {
    color: #4e6ef2;
    font-weight: 500;
}
.comment-time {
    font-size: 12px;
    color: #c0c4cc;
}
.comment-content {
    font-size: 14px;
    line-height: 1.75;
    color: #4a4a4a;
    word-break: break-word;
}
.comment-actions {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}
.comment-action-btn {
    font-size: 12px;
    color: #c0c4cc;
    text-decoration: none;
    transition: color .2s;
}
.comment-action-btn:hover { color: #4e6ef2; }
.comment-action-btn i { margin-right: 3px; }

/* 回复评论 */
.comment-replies {
    margin-top: 14px;
    padding: 12px 16px;
    background: #f8f9fc;
    border-radius: 10px;
}
.comment-item--reply {
    padding: 12px 0;
    border-bottom: 1px solid #eef0f4;
}
.comment-item--reply:first-child { padding-top: 0; }
.comment-item--reply:last-child { border-bottom: none; padding-bottom: 0; }
.comment-item--reply .comment-avatar {
    width: 30px;
    height: 30px;
}
.comment-item--reply .comment-avatar i { font-size: 13px; }
.comment-item--reply .comment-content { font-size: 13px; }
.comment-item--reply .comment-author { font-size: 13px; }
.comment-item--reply .comment-meta { margin-bottom: 5px; }

/* 加载更多回复 */
.comment-load-more-replies {
    padding: 10px 0 2px;
}
.comment-load-replies-btn {
    font-size: 13px;
    color: #4e6ef2;
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
}
.comment-load-replies-btn:hover { color: #3d5bd9; }
.comment-load-replies-btn i { margin-left: 4px; font-size: 11px; }

/* 回复表单 */
.comment-reply-form {
    margin-top: 12px;
    padding: 14px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e4e7ed;
}
.comment-reply-textarea {
    min-height: 64px;
    font-size: 13px;
    background: #fff;
}

/* 评论分页 */
.comment-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f2f3f5;
}
.comment-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
    color: #606266;
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    text-decoration: none;
    transition: all .2s;
}
.comment-page-btn:hover {
    border-color: #4e6ef2;
    color: #4e6ef2;
}
.comment-page-btn.active {
    background: #4e6ef2;
    color: #fff;
    border-color: #4e6ef2;
}
.comment-page-dots {
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
    color: #c0c4cc;
    font-size: 13px;
}

/* 评论区响应式 */
@media (max-width: 768px) {
    .comment-section { padding: 20px 16px; }
    .comment-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .comment-form-avatar { width: 34px; height: 34px; }
    .comment-form-wrapper { gap: 10px; }
    .comment-avatar { width: 34px; height: 34px; }
    .comment-item--reply .comment-avatar { width: 26px; height: 26px; }
    .comment-replies { padding: 10px 12px; }
    .comment-reply-form { padding: 10px; }
}

/* ============ 标签样式 ============ */

/* 文章详情页标签 */
.detail-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 24px; padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}
.article-tag {
    display: inline-block; padding: 3px 12px;
    font-size: 12px; line-height: 20px;
    color: #5b8ff9; background: #eef3ff;
    border-radius: 12px; text-decoration: none;
    transition: background .2s, color .2s;
}
.article-tag:hover {
    background: #5b8ff9; color: #fff;
}

/* 商品详情页标签（间距调整） */
.goods-detail-tags {
    margin-top: 16px; padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

/* 文章卡片中的标签 */
.blog-article-tags {
    display: flex; flex-wrap: wrap; gap: 5px;
    margin-top: 8px;
}
.article-tag-label {
    display: inline-block; padding: 1px 8px;
    font-size: 11px; line-height: 18px;
    color: #5b8ff9; background: #eef3ff;
    border-radius: 9px; white-space: nowrap;
}

/* 侧边栏标签云 */
.sidebar-tag-cloud {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.sidebar-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; font-size: 13px;
    color: #555; background: #f5f7fa;
    border-radius: 14px; text-decoration: none;
    transition: background .2s, color .2s;
}
.sidebar-tag:hover {
    background: #5b8ff9; color: #fff;
}
.sidebar-tag .tag-count {
    font-size: 11px; color: #adb5bd;
    transition: color .2s;
}
.sidebar-tag:hover .tag-count {
    color: rgba(255,255,255,.8);
}

/* ============ 标签详情页 ============ */

/* 标签头部 */
.tag-page-header {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border-radius: 8px; border: 1px solid #ebeef5;
    padding: 24px 28px; margin-bottom: 16px;
}
.tag-page-icon {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, #5b8ff9, #3d6fe0);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.tag-page-icon .fa {
    font-size: 22px; color: #fff;
}
.tag-page-name {
    font-size: 22px; font-weight: 700; color: #2c3e50;
    margin: 0 0 4px;
}
.tag-page-count {
    font-size: 13px; color: #adb5bd;
}

/* 标签切换列表 */
.tag-page-related {
    display: flex; flex-wrap: wrap; gap: 8px;
    background: #fff; border-radius: 8px; border: 1px solid #ebeef5;
    padding: 16px 20px; margin-bottom: 16px;
}
.tag-page-item {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 14px; font-size: 13px;
    color: #555; background: #f5f7fa;
    border-radius: 16px; text-decoration: none;
    transition: background .2s, color .2s;
}
.tag-page-item:hover {
    background: #e8edf5; color: #333;
}
.tag-page-item.active {
    background: #5b8ff9; color: #fff;
}
.tag-page-item-count {
    font-size: 11px; color: #adb5bd;
    transition: color .2s;
}
.tag-page-item:hover .tag-page-item-count { color: #888; }
.tag-page-item.active .tag-page-item-count { color: rgba(255,255,255,.8); }

/* 标签页响应式 */
@media (max-width: 768px) {
    .tag-page-header { padding: 16px 18px; gap: 12px; }
    .tag-page-icon { width: 42px; height: 42px; }
    .tag-page-icon .fa { font-size: 18px; }
    .tag-page-name { font-size: 18px; }
    .tag-page-related { padding: 12px 14px; gap: 6px; }
    .tag-page-item { padding: 4px 10px; font-size: 12px; }
}

/* ============================
   Auth Pages (Login / Register)
   ============================ */
.auth-page {
    display: flex; align-items: center; justify-content: center;
    min-height: calc(100vh - 64px - 120px);
    padding: 40px 20px;
}
.auth-card {
    width: 100%; max-width: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.06);
    padding: 40px 36px;
}
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-title {
    font-size: 24px; font-weight: 700; color: #1a1a1a;
    margin-bottom: 8px;
}
.auth-subtitle { font-size: 14px; color: #999; }

/* 表单字段 */
.auth-field { margin-bottom: 20px; }
.auth-label {
    display: block; font-size: 13px; font-weight: 600;
    color: #555; margin-bottom: 6px;
}
.auth-input-wrap {
    display: flex; align-items: center;
    border: 1.5px solid #e0e0e0; border-radius: 10px;
    padding: 0 14px; height: 46px;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.auth-input-wrap:focus-within {
    border-color: #4e6ef2; background: #fff;
    box-shadow: 0 0 0 3px rgba(78,110,242,0.1);
}
.auth-input-wrap > i.fa {
    color: #bbb; font-size: 15px; width: 20px; text-align: center;
    flex-shrink: 0; transition: color 0.2s;
}
.auth-input-wrap:focus-within > i.fa { color: #4e6ef2; }
.auth-input-wrap input {
    flex: 1; border: none; outline: none; background: transparent;
    padding: 0 10px; height: 100%; font-size: 14px; color: #333;
}
.auth-input-wrap input::placeholder { color: #c0c0c0; }

/* 密码显示/隐藏 */
.auth-eye {
    border: none; background: transparent; cursor: pointer;
    padding: 4px; color: #bbb; font-size: 15px;
    transition: color 0.2s; flex-shrink: 0;
}
.auth-eye:hover { color: #666; }

/* 提交按钮 */
.auth-submit {
    display: block; width: 100%; height: 46px;
    border: none; border-radius: 10px; cursor: pointer;
    background: linear-gradient(135deg, #4e6ef2, #2b7de9);
    color: #fff; font-size: 15px; font-weight: 600;
    letter-spacing: 4px; margin-top: 8px;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(78,110,242,0.25);
}
.auth-submit:hover {
    opacity: 0.92;
    box-shadow: 0 6px 24px rgba(78,110,242,0.35);
}
.auth-submit:active { transform: scale(0.98); }
.auth-submit.is-loading {
    opacity: 0.7; pointer-events: none; letter-spacing: 2px;
}

/* 底部链接 */
.auth-footer {
    text-align: center; margin-top: 24px;
    font-size: 13px; color: #999;
}
.auth-footer a {
    color: #4e6ef2; font-weight: 500;
    transition: color 0.2s;
}
.auth-footer a:hover { color: #2b5dd6; }

/* Auth 响应式 */
@media (max-width: 480px) {
    .auth-card { padding: 32px 24px; border-radius: 12px; }
    .auth-title { font-size: 20px; }
    .auth-input-wrap { height: 42px; }
    .auth-submit { height: 42px; font-size: 14px; }
}

/* ======== 领券中心 ======== */
.coupon-intro {
    font-size: 13px; color: #999; margin-bottom: 20px;
    display: flex; align-items: center; gap: 6px;
}
.coupon-intro i { color: #4e6ef2; }

.coupon-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 14px;
}
.coupon-card {
    display: flex; background: #fff; border-radius: 10px; overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s, transform 0.2s;
}
.coupon-card:hover { box-shadow: 0 6px 20px rgba(78,110,242,0.12); transform: translateY(-1px); }

/* 左侧大数字块：渐变主色 */
.coupon-card__left {
    width: 130px; flex-shrink: 0;
    background: linear-gradient(135deg, #4e6ef2, #2b7de9);
    color: #fff; padding: 18px 10px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    position: relative;
}
.coupon-card__left::before,
.coupon-card__left::after {
    content: ''; position: absolute; right: -8px; width: 16px; height: 16px;
    background: #f5f6fa; border-radius: 50%;
}
.coupon-card__left::before { top: -8px; }
.coupon-card__left::after { bottom: -8px; }
.coupon-card__value { font-size: 28px; font-weight: 700; letter-spacing: 0.5px; }
.coupon-card__caption { font-size: 12px; opacity: 0.9; margin-top: 4px; }

/* 右侧信息块 */
.coupon-card__right {
    flex: 1; padding: 14px 16px;
    display: flex; flex-direction: column;
    border-left: 2px dashed #e8ecf4;
}
.coupon-card__title { font-size: 15px; font-weight: 600; color: #333; margin-bottom: 4px; }
.coupon-card__desc { font-size: 12px; color: #999; line-height: 1.5; margin-bottom: 8px; }
.coupon-card__meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: #999; margin-bottom: 6px; flex-wrap: wrap; }
.coupon-card__tag {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    background: #eef2ff; color: #4e6ef2; font-size: 11px; font-weight: 500;
}
.coupon-card__valid { color: #999; }
.coupon-card__code { font-size: 12px; color: #666; margin-bottom: 10px; }
.coupon-card__code-val { font-family: monospace; color: #4e6ef2; font-weight: 600; }

.coupon-card__actions { display: flex; gap: 8px; margin-top: auto; }
.coupon-btn {
    flex: 1; height: 32px; border: 1px solid transparent; border-radius: 6px;
    font-size: 13px; cursor: pointer; transition: all 0.2s;
    display: inline-flex; align-items: center; justify-content: center;
}
.coupon-btn-ghost {
    background: #fff; color: #4e6ef2; border-color: #4e6ef2;
}
.coupon-btn-ghost:hover { background: #eef2ff; }
.coupon-btn-primary {
    background: #4e6ef2; color: #fff;
}
.coupon-btn-primary:hover { background: #3d5ce0; box-shadow: 0 2px 8px rgba(78,110,242,0.3); }
.coupon-btn.is-disabled {
    background: #f0f0f0; color: #999; border-color: #f0f0f0; cursor: not-allowed;
}
.coupon-btn.is-disabled:hover { background: #f0f0f0; box-shadow: none; }

@media (max-width: 600px) {
    .coupon-grid { grid-template-columns: 1fr; }
    .coupon-card__left { width: 100px; padding: 14px 6px; }
    .coupon-card__value { font-size: 22px; }
}

/* 商品详情页 · 立即购买地址弹层 */
.detail-addr-layer { padding: 16px 20px; }
.detail-addr-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.detail-addr-item {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 10px 12px; background: #fff;
    border: 1px solid #e5e7eb; border-radius: 6px; cursor: pointer;
    transition: all 0.15s;
}
.detail-addr-item:hover { border-color: #a5b4fc; background: #fafaff; }
.detail-addr-item.is-active { border-color: #7c3aed; background: #faf5ff; box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1); }
.detail-addr-item input[type="radio"] { margin-top: 3px; flex: 0 0 auto; accent-color: #7c3aed; }
.detail-addr-item-body { flex: 1; min-width: 0; font-size: 12.5px; }
.detail-addr-item-head { margin-bottom: 4px; }
.detail-addr-item-head strong { color: #111; font-size: 13px; }
.detail-addr-item-mobile { color: #6b7280; margin-left: 8px; }
.detail-addr-item-default {
    display: inline-block; padding: 1px 6px; margin-left: 6px;
    background: #7c3aed; color: #fff; border-radius: 3px;
    font-size: 10.5px;
}
.detail-addr-item-text { color: #4b5563; line-height: 1.5; word-break: break-all; }
.detail-addr-manage { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 12.5px; color: #7c3aed; }
.detail-addr-manage:hover { text-decoration: underline; }

.detail-addr-form { }
.detail-addr-row { display: flex; gap: 12px; margin-bottom: 12px; }
.detail-addr-row > .detail-addr-field { flex: 1; min-width: 0; margin-bottom: 0; }
.detail-addr-field { margin-bottom: 12px; }
.detail-addr-field > label { display: block; font-size: 12.5px; color: #555; margin-bottom: 5px; }
.detail-addr-input, .detail-addr-textarea, .detail-addr-select {
    width: 100%; box-sizing: border-box;
    padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 5px;
    font-size: 13px; color: #111; background: #fff;
    outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.detail-addr-input:focus, .detail-addr-textarea:focus, .detail-addr-select:focus {
    border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
.detail-addr-textarea { resize: vertical; min-height: 60px; line-height: 1.6; }
.detail-addr-cascade { display: flex; gap: 8px; }
.detail-addr-cascade .detail-addr-select { flex: 1; }
.detail-addr-tip { font-size: 12px; color: #6b7280; }
.detail-addr-tip .fa { color: #f59e0b; margin-right: 3px; }
.detail-addr-tip a { color: #7c3aed; text-decoration: underline; }

/* 详情页选券弹窗 */
.detail-coupon-picker {
    padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.detail-coupon-pick-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border: 1px solid #ebeef5; border-radius: 8px;
    transition: all 0.2s;
}
.detail-coupon-pick-item:hover { border-color: #fa8c16; background: #fff7e6; }
.detail-coupon-pick-value {
    width: 80px; flex-shrink: 0; text-align: center;
    color: #d46b08; font-size: 18px; font-weight: 700;
}
.detail-coupon-pick-main { flex: 1; min-width: 0; }
.detail-coupon-pick-title {
    font-size: 14px; color: #333; font-weight: 500;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.detail-coupon-pick-meta { font-size: 12px; color: #999; margin-top: 2px; }
.detail-coupon-pick-btn {
    height: 30px; padding: 0 14px; border: none; border-radius: 6px;
    background: #fa8c16; color: #fff; cursor: pointer; font-size: 13px;
    transition: background 0.2s;
}
.detail-coupon-pick-btn:hover { background: #d46b08; }

/* ======== 商品详情页 - 优惠券 ======== */
.detail-coupon {
    margin: 14px 0;
    padding: 12px 14px;
    background: #fff7e6;
    border: 1px solid #ffe7ba;
    border-radius: 8px;
    max-width: 560px;
}
.detail-coupon-title {
    font-size: 13px; color: #d46b08; font-weight: 500;
    margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.detail-coupon-input-row { display: flex; gap: 8px; margin-bottom: 8px; }
.detail-coupon-input {
    flex: 1; height: 36px; padding: 0 12px; max-width: 330px;
    border: 1.5px solid #e0e0e0; border-radius: 6px;
    font-size: 13px; color: #333; background: #fff; outline: none;
}
.detail-coupon-input:focus {
    border-color: #d46b08; box-shadow: 0 0 0 3px rgba(212,107,8,0.12);
}
.detail-coupon-input[readonly] { background: #fafafa; color: #999; }
.detail-coupon-btn {
    height: 36px; padding: 0 16px; border: none; border-radius: 6px;
    font-size: 13px; cursor: pointer; white-space: nowrap; transition: all 0.2s;
}
.detail-coupon-btn--primary { background: #fa8c16; color: #fff; }
.detail-coupon-btn--primary:hover { background: #d46b08; }
.detail-coupon-btn--ghost { background: #fff; color: #fa8c16; border: 1px solid #fa8c16; }
.detail-coupon-btn--ghost:hover { background: #fff7e6; }
.detail-coupon-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-coupon-choose {
    height: 30px; padding: 0 12px; border: 1px dashed #d46b08; border-radius: 6px;
    background: transparent; color: #d46b08; cursor: pointer;
    font-size: 12px; display: inline-flex; align-items: center; gap: 4px;
    transition: all 0.2s; text-decoration: none;
}
.detail-coupon-choose:hover { background: rgba(212,107,8,0.05); }
/* "去领优惠券"入口：换一种颜色区分于"已领中选择"，视觉上告诉用户这是跳转到另一个页面 */
.detail-coupon-goget { border-color: #1890ff; color: #1890ff; }
.detail-coupon-goget:hover { background: rgba(24,144,255,0.05); color: #1890ff; }
.detail-coupon-guest-tip { font-size: 12px; color: #999; }
.detail-coupon-guest-tip a { color: #fa8c16; }
.detail-coupon-guest-tip a:hover { text-decoration: underline; }
.detail-coupon-applied {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 10px; margin-top: 8px;
    background: #fff; border-radius: 6px; font-size: 12px;
}
.detail-coupon-applied-name { color: #333; font-weight: 500; }
.detail-coupon-applied-saved { color: #fa5252; font-weight: 600; }

/* ======== Hero 按钮组 ======== */
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.hero-btns .btn { display: inline-flex; align-items: center; gap: 6px; }

/* --- GPT dark commerce skin --- */
html { background: var(--ai-bg); }
body {
    background:
        radial-gradient(circle at 52% 0%, rgba(255, 122, 43, 0.16), transparent 34%),
        radial-gradient(circle at 80% 55%, rgba(255, 176, 100, 0.08), transparent 32%),
        linear-gradient(180deg, #050a0f 0%, #070c12 52%, #05090e 100%);
    color: var(--ai-text);
}
.wrapper,
#main {
    max-width: 1320px;
}
.site-header {
    background: rgba(5, 9, 14, 0.88);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    box-shadow: none;
}
.site-header.scrolled {
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
    border-bottom-color: rgba(255,255,255,0.08);
}
.site-logo-text {
    background: linear-gradient(135deg, #fff 0%, #ffb064 55%, #ff7a2b 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
.site-logo-img {
    height: 40px;
    max-width: 180px;
    filter: drop-shadow(0 8px 20px rgba(255, 122, 43, 0.18));
}
.main-nav a {
    color: #a8b0bd;
}
.main-nav a:hover,
.main-nav a.active {
    color: #fff;
}
.main-nav a::after {
    background: linear-gradient(90deg, var(--ai-orange), var(--ai-orange-2));
}
.header-action-btn {
    color: #a9b2c0;
}
.header-action-btn:hover,
.header-action-btn--text {
    background: rgba(255,122,43,0.11);
    color: #ffd8b8;
}
.header-user:hover,
.header-user-dropdown:hover .header-user {
    background: rgba(255,122,43,0.11);
}
.header-user-avatar--default {
    background: rgba(255,255,255,0.09);
    color: #f4c7a5;
    border-color: rgba(255,255,255,0.08);
}
.header-user-menu,
.nav-dropdown-menu {
    background: #111720;
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 14px 40px rgba(0,0,0,0.36);
}
.nav-dropdown-menu::before {
    background: #111720;
    border-color: rgba(255,255,255,0.08);
}
.header-user-menu-item,
.nav-dropdown-menu a {
    color: #c8d0da;
}
.nav-dropdown-menu a:hover,
.header-user-menu-item:hover {
    background: rgba(255,122,43,0.12);
    color: #fff;
}
.page-body {
    padding-top: 26px;
}
.breadcrumb,
.card,
.site-announcement {
    background: rgba(14, 20, 29, 0.86);
    border-color: rgba(255,255,255,0.08);
    color: #d9dee7;
}
.category-tabs,
.goods-sort-bar {
    background: transparent;
    border: 0;
    box-shadow: none;
}
.site-announcement {
    box-shadow: 0 16px 44px rgba(0,0,0,0.22);
}
.site-announcement__head {
    background: rgba(255,122,43,0.10);
    border-bottom-color: rgba(255,255,255,0.08);
}
.site-announcement__head .site-announcement__icon {
    background: linear-gradient(135deg, var(--ai-orange), var(--ai-orange-2));
    color: #111418;
}
.site-announcement__title {
    color: #fff;
}
.site-announcement__body {
    background: transparent;
    color: #c9d0d9;
}
.ai-home {
    min-height: 100vh;
    padding-bottom: 80px;
}
.ai-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: flex-start;
    padding: 52px 0 34px;
    overflow: hidden;
}
.ai-hero::before {
    content: "";
    position: absolute;
    inset: -190px 0 auto 0;
    height: 560px;
    background:
        radial-gradient(circle at 52% 24%, rgba(255, 122, 43, 0.22), transparent 26%),
        radial-gradient(circle at 58% 0%, rgba(255, 178, 95, 0.14), transparent 36%);
    pointer-events: none;
}
.ai-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(116deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 86px 86px, 126px 126px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.8), transparent 75%);
    pointer-events: none;
}
.ai-hero__inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.ai-hero__copy {
    padding-top: 0;
}
.ai-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,122,43,0.38);
    background: rgba(255,122,43,0.10);
    color: #ffb064;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    box-shadow: 0 0 28px rgba(255,122,43,0.10);
}
.ai-pill span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ai-orange);
    box-shadow: 0 0 12px var(--ai-orange);
}
.ai-pill--green {
    color: #a7f3c9;
    border-color: rgba(85, 209, 154, 0.36);
    background: rgba(85, 209, 154, 0.10);
}
.ai-pill--green span {
    background: var(--ai-green);
    box-shadow: 0 0 12px var(--ai-green);
}
.ai-hero h1 {
    margin: 18px 0 16px;
    color: #fff;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: 0;
}
.ai-hero h1 strong {
    color: var(--ai-orange-2);
    font-style: normal;
}
.ai-hero p {
    max-width: 680px;
    margin: 0;
    color: var(--ai-muted);
    font-size: 17px;
    line-height: 1.9;
}
.ai-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.ai-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 15px;
    border-radius: 999px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.08);
    color: #d9dee7;
    font-size: 13px;
    font-weight: 700;
}
.ai-refund-promise {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    min-height: 46px;
    margin-top: 16px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid rgba(255,122,43,0.34);
    background:
        linear-gradient(135deg, rgba(255,122,43,0.17), rgba(255,176,100,0.07)),
        rgba(255,255,255,0.035);
    color: #ffe4cc;
    font-size: 14px;
    font-weight: 850;
    box-shadow: 0 16px 36px rgba(255,122,43,0.12), inset 0 0 0 1px rgba(255,255,255,0.04);
}
.ai-refund-promise i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--ai-orange), var(--ai-orange-2));
    color: #17110d;
    font-size: 13px;
    box-shadow: 0 0 18px rgba(255,122,43,0.34);
    flex: 0 0 auto;
}
.ai-refund-promise span {
    min-width: 0;
}
.ai-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.ai-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border: 0;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 850;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.ai-btn:hover {
    transform: translateY(-2px);
}
.ai-btn--primary {
    color: #15100c;
    background: linear-gradient(135deg, #ff8a34, #ff6d25);
    box-shadow: 0 18px 36px rgba(255, 112, 38, 0.24);
}
.ai-btn--ghost {
    color: #eef3f8;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.13);
}
.ai-hero__visual {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: flex-start;
}
.ai-terminal {
    position: relative;
    margin-top: 0;
    margin-left: auto;
    width: min(410px, 100%);
    padding: 24px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.11);
    background: linear-gradient(180deg, rgba(17,23,32,0.92), rgba(10,14,20,0.94));
    box-shadow: 0 28px 80px rgba(0,0,0,0.46), 0 0 70px rgba(255,122,43,0.12);
}
.ai-terminal::before {
    content: "";
    position: absolute;
    inset: -80px -50px;
    background: radial-gradient(circle, rgba(255,122,43,0.18), transparent 58%);
    z-index: -1;
}
.ai-terminal__bar {
    display: flex;
    gap: 8px;
    margin-bottom: 26px;
}
.ai-terminal__bar i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--ai-orange);
    opacity: 0.9;
}
.ai-terminal__bar i:nth-child(2) { background: var(--ai-orange-2); }
.ai-terminal__bar i:nth-child(3) { background: var(--ai-green); }
.ai-terminal__line {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-family: Consolas, Monaco, monospace;
}
.ai-terminal__line span {
    color: #7f8a99;
}
.ai-terminal__line b {
    color: #fff;
    letter-spacing: 0;
}
.ai-terminal__pulse {
    margin-top: 26px;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,122,43,0.20), rgba(255,176,100,0.08));
    border: 1px solid rgba(255,122,43,0.28);
    color: #ffbd7d;
    font-family: Consolas, Monaco, monospace;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
}
.ai-terminal__pulse:hover {
    color: #fff;
    border-color: rgba(255,122,43,0.52);
    background: linear-gradient(135deg, rgba(255,122,43,0.28), rgba(255,176,100,0.12));
}
.ai-section {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 76px;
    position: relative;
    z-index: 1;
}
.ai-section--compact {
    margin-bottom: 36px;
}
.ai-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}
.ai-section__head--center {
    justify-content: center;
    text-align: center;
}
.ai-section__head h2 {
    margin: 18px 0 8px;
    color: #fff;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: 0;
}
.ai-section__head p {
    margin: 0;
    color: var(--ai-muted);
    font-size: 15px;
}
.ai-more {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    color: #ffd6b7;
    background: rgba(255,255,255,0.05);
    font-weight: 800;
}
.ai-more:hover {
    color: #fff;
    border-color: rgba(255,122,43,0.38);
    background: rgba(255,122,43,0.10);
}
.ai-category-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: -6px 0 22px;
}
.ai-category-filter button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 999px;
    background: rgba(255,255,255,0.045);
    color: #c8d0dc;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.ai-category-filter button:hover {
    transform: translateY(-1px);
    border-color: rgba(255,122,43,0.30);
    color: #fff0e4;
    background: rgba(255,122,43,0.08);
}
.ai-category-filter button.active {
    border-color: rgba(255,122,43,0.50);
    background: linear-gradient(135deg, rgba(255,122,43,0.24), rgba(255,176,100,0.10));
    color: #ffd8bd;
    box-shadow: 0 14px 30px rgba(255,122,43,0.12), inset 0 0 0 1px rgba(255,255,255,0.04);
}
.ai-category-filter span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #ffbd7d;
    font-size: 12px;
    font-weight: 900;
}
.ai-category-filter button.active span {
    background: rgba(255,122,43,0.18);
    color: #fff;
}
.goods-grid,
.blog-layout .goods-grid,
.ai-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.blog-layout {
    grid-template-columns: 1fr;
}
.blog-layout .goods-side {
    display: none;
}
.goods-card,
.ai-product-card {
    display: flex;
    flex-direction: column;
    min-height: 312px;
    background: rgba(15, 20, 28, 0.88);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 42px rgba(0,0,0,0.20);
}
.goods-card:hover,
.ai-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 56px rgba(0,0,0,0.32), 0 0 0 1px rgba(255,122,43,0.24);
}
.goods-card .card-img {
    aspect-ratio: 6 / 5;
    background: #090e15;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.goods-card .card-img img {
    object-fit: cover;
}
.goods-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 124px;
    padding: 16px;
}
.goods-card .card-title {
    height: 48px;
    color: #f6f7f9;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
    word-break: break-word;
}
.goods-card:hover .card-title {
    color: #ffbd7d;
}
.card-stats {
    margin: 8px 0 12px;
    color: #85909d;
}
.goods-card .card-bottom {
    margin-top: auto;
    min-height: 36px;
    align-items: end;
}
.goods-card .price {
    color: #ff8a34;
    font-size: 22px;
    letter-spacing: 0;
}
.goods-card .price-original {
    color: #6f7886;
}
.goods-badge {
    top: 10px;
    right: 10px;
    border-radius: 999px;
    color: #111418;
    font-weight: 900;
}
.goods-badge--auto {
    background: linear-gradient(135deg, #ffad69, #ff7629);
    box-shadow: 0 8px 18px rgba(255,118,41,0.28);
}
.goods-badge--manual {
    background: linear-gradient(135deg, #9ad8ff, #55d19a);
}
.ai-concept-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.ai-concept-card {
    min-height: 190px;
    padding: 24px;
    border-radius: 16px;
    background: rgba(15, 20, 28, 0.86);
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}
.ai-concept-card i {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,122,43,0.16);
    color: var(--ai-orange-2);
    font-size: 19px;
}
.ai-concept-card h3 {
    margin: 18px 0 9px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}
.ai-concept-card p {
    margin: 0;
    color: var(--ai-muted);
    line-height: 1.75;
}
.section,
.blog-main {
    min-width: 0;
}
.section-title {
    color: #fff;
}
.section-more {
    color: #ffbd7d;
}
.empty-state {
    color: #c9d0d9;
}
.empty-state h3 {
    color: #fff;
}
.category-tab,
.goods-sort-link,
.pagination-num,
.pagination-btn {
    background: rgba(255,255,255,0.055);
    border-color: rgba(255,255,255,0.08);
    color: #c9d0d9;
}
.category-tab.active,
.goods-sort-link.active,
.pagination-num.active {
    background: linear-gradient(135deg, rgba(255,122,43,0.22), rgba(255,176,100,0.12));
    border-color: rgba(255,122,43,0.34);
    color: #fff;
}
.site-footer {
    background: #05090e;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* Blog sidebar: keep public blog pages in the black-orange skin */
.sidebar-widget {
    background: rgba(15,20,28,0.88);
    border-color: rgba(255,255,255,0.09);
    color: #d9dee7;
    box-shadow: 0 16px 42px rgba(0,0,0,0.20);
}
.sidebar-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.08);
}
.sidebar-title::before {
    background: linear-gradient(180deg, #ffb064, #ff7a2b);
}
.sidebar-list a,
.sidebar-post,
.sidebar-goods-item,
.sidebar-article-item {
    color: #c9d0d9;
    border-bottom-color: rgba(255,255,255,0.07);
}
.sidebar-list a:hover,
.sidebar-post:hover,
.sidebar-goods-item:hover,
.sidebar-article-item:hover {
    background: rgba(255,122,43,0.10);
    color: #ffbd7d;
}
.sidebar-list .count,
.sidebar-rank,
.sidebar-cat-count,
.sidebar-tag {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.09);
    color: #8e97a5;
}
.sidebar-rank.top,
.sidebar-user-btn--primary {
    background: linear-gradient(135deg, #ff7a2b, #ff6d25) !important;
    color: #15100c !important;
}
.sidebar-user-avatar,
.sidebar-goods-img,
.sidebar-article-img,
.sidebar-cat-arrow:hover {
    background: rgba(255,255,255,0.055);
    border-color: rgba(255,255,255,0.09);
}
.sidebar-user-avatar--guest,
.sidebar-user-avatar--default {
    background: rgba(255,122,43,0.12);
    color: #ffbd7d;
}
.sidebar-user-name,
.sidebar-goods-name,
.sidebar-article-title,
.sidebar-cat-parent {
    color: #f7f7f2;
}
.sidebar-user-meta,
.sidebar-goods-price .price-original,
.sidebar-article-date,
.sidebar-cat-child {
    color: #8e97a5;
}
.sidebar-user-links > a {
    background: rgba(255,255,255,0.055);
    color: #c9d0d9;
}
.sidebar-user-links > a:hover,
.sidebar-tag:hover,
.sidebar-cat-parent:hover,
.sidebar-cat-child:hover {
    background: rgba(255,122,43,0.10);
    border-color: rgba(255,122,43,0.28);
    color: #ffbd7d;
}
.sidebar-list .price-tag,
.sidebar-goods-price .price {
    color: #ff8a34;
}

@media (max-width: 1180px) {
    .ai-hero__inner,
    .ai-section {
        width: min(100% - 28px, 1040px);
    }
    .goods-grid,
    .blog-layout .goods-grid,
    .ai-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .ai-concept-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .ai-hero {
        min-height: auto;
        padding: 52px 0 44px;
    }
    .ai-hero__inner {
        grid-template-columns: 1fr;
        gap: 34px;
    }
    .ai-hero__visual {
        min-height: auto;
    }
    .ai-terminal {
        margin: 0;
    }
    .goods-grid,
    .blog-layout .goods-grid,
    .ai-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 620px) {
    .ai-hero {
        padding: 36px 0 34px;
    }
    .ai-hero__inner,
    .ai-section {
        width: calc(100% - 24px);
    }
    .ai-hero h1 {
        font-size: 42px;
    }
    .site-logo-img {
        height: 34px;
        max-width: 142px;
    }
    .ai-hero p {
        font-size: 15px;
    }
    .ai-section__head {
        display: block;
    }
    .ai-more {
        margin-top: 16px;
    }
    .ai-category-filter {
        flex-wrap: nowrap;
        gap: 8px;
        margin: -2px -12px 18px 0;
        padding-right: 12px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .ai-category-filter::-webkit-scrollbar {
        display: none;
    }
    .ai-category-filter button {
        flex: 0 0 auto;
        min-height: 36px;
        padding: 0 13px;
        font-size: 12px;
    }
    .ai-category-filter span {
        min-width: 20px;
        height: 20px;
        padding: 0 6px;
        font-size: 11px;
    }
    .goods-grid,
    .blog-layout .goods-grid,
    .ai-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .ai-concept-grid {
        grid-template-columns: 1fr;
    }
    .goods-card,
    .ai-product-card {
        min-height: 0;
    }
    .goods-card .card-img {
        aspect-ratio: 6 / 5;
    }
    .goods-card .card-body {
        min-height: 0;
        padding: 11px;
    }
    .goods-card .card-title {
        height: 40px;
        font-size: 13px;
        line-height: 1.45;
    }
    .card-stats {
        font-size: 11px;
        gap: 6px;
        flex-wrap: wrap;
    }
    .goods-card .card-bottom {
        min-height: 30px;
    }
    .goods-card .price {
        font-size: 18px;
    }
    .goods-card .price-original {
        font-size: 10px;
        margin-left: 4px;
    }
    .goods-badge {
        top: 7px;
        right: 7px;
        padding: 4px 8px;
        font-size: 10px;
    }
    .ai-actions {
        flex-direction: column;
    }
    .ai-refund-promise {
        display: flex;
        width: 100%;
        min-height: 0;
        align-items: flex-start;
        padding: 12px 14px;
        line-height: 1.55;
    }
    .ai-refund-promise i {
        margin-top: 1px;
    }
    .ai-btn {
        width: 100%;
    }
}
.btn--outline {
    background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.7);
    backdrop-filter: blur(4px);
}
.btn--outline:hover { background: #fff; color: #4e6ef2; border-color: #fff; }

/* --- Baolong AI unified detail / order skin --- */
.breadcrumb a {
    color: #9eabbc;
}
.breadcrumb a:hover {
    color: #ffbd7d;
}
.page-body > .breadcrumb {
    background: transparent;
    border: 0;
    padding: 12px 0 10px;
}
.page-body > .breadcrumb .sep {
    color: rgba(255,255,255,0.24);
}
.detail-card {
    background: linear-gradient(180deg, rgba(17,23,32,0.96), rgba(11,16,23,0.96));
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    padding: 28px;
    margin-top: 0;
    box-shadow: 0 26px 70px rgba(0,0,0,0.34), 0 0 0 1px rgba(255,122,43,0.05);
}
.detail-layout {
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 34px;
}
.detail-img {
    border-color: rgba(255,255,255,0.10);
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.detail-thumb {
    border-color: rgba(255,255,255,0.10);
    background: #090e15;
}
.detail-thumb:hover,
.detail-thumb.active {
    border-color: rgba(255,122,43,0.72);
}
.detail-name {
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}
.detail-metric-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 14px;
}
.detail-metric-pill {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,122,43,0.30);
    background: rgba(255,122,43,0.08);
    color: #cfd7e3;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(0,0,0,0.16);
}
.detail-metric-pill i {
    color: #ffb064;
    font-size: 13px;
}
.detail-metric-pill strong {
    color: #ff8a34;
    font-size: 14px;
    font-weight: 900;
}
.detail-metric-pill--delivery,
.detail-metric-pill--account {
    border-color: rgba(85, 209, 154, 0.28);
    background: rgba(85, 209, 154, 0.08);
}
.detail-metric-pill--delivery i,
.detail-metric-pill--account i {
    color: #8ee7b9;
}
.detail-intro,
.detail-stats-row,
.detail-qty-label,
.spec-group-label,
.detail-payment-title,
.detail-form-field-label,
.detail-meta-label {
    color: #9eabbc;
}
.detail-stat-item strong,
.detail-meta-value {
    color: #eef3f8;
}
.detail-stat-sep {
    color: rgba(255,255,255,0.16);
}
.detail-price-box {
    background: linear-gradient(135deg, rgba(255,122,43,0.18), rgba(255,176,100,0.07));
    border: 1px solid rgba(255,122,43,0.24);
    border-radius: 14px;
    padding: 18px 20px;
}
.detail-price {
    color: #ff8a34;
    font-size: 30px;
    letter-spacing: 0;
}
.detail-price-original,
.detail-price-strike {
    color: #687484;
}
.detail-price-discount-label {
    color: #ffbd7d;
    background: rgba(255,122,43,0.14);
    border: 1px solid rgba(255,122,43,0.24);
}
.spec-tag {
    color: #ffbd7d;
    background: rgba(255,122,43,0.10);
    border-color: rgba(255,122,43,0.24);
}
.spec-btn,
.detail-payment-item,
.detail-qty-selector,
.detail-form-field-input,
.detail-coupon-input {
    background: rgba(255,255,255,0.055);
    border-color: rgba(255,255,255,0.12);
    color: #eef3f8;
}
.spec-btn:hover,
.detail-payment-item:hover,
.detail-form-field-input:focus,
.detail-coupon-input:focus {
    border-color: rgba(255,122,43,0.58);
    box-shadow: 0 0 0 3px rgba(255,122,43,0.12);
}
.spec-btn.active,
.detail-payment-item.active {
    border-color: rgba(255,122,43,0.72);
    background: rgba(255,122,43,0.16);
    color: #ffbd7d;
}
.spec-btn.disabled,
.detail-payment-item.is-disabled {
    background: rgba(255,255,255,0.035);
    border-color: rgba(255,255,255,0.06);
    color: #636d7b;
}
.detail-qty-btn {
    background: rgba(255,255,255,0.07);
    color: #dce4ee;
}
.detail-qty-btn:hover {
    background: rgba(255,122,43,0.18);
}
.detail-qty-input {
    background: rgba(5,9,14,0.52);
    border-color: rgba(255,255,255,0.10);
    color: #fff;
}
.detail-stock-info {
    color: #55d19a;
}
.detail-min-buy {
    color: #ffbd7d;
}
.detail-coupon {
    background: rgba(255,122,43,0.08);
    border-color: rgba(255,122,43,0.20);
    border-radius: 14px;
}
.detail-coupon-title,
.detail-coupon-guest-tip a,
.detail-coupon-choose {
    color: #ffbd7d;
}
.detail-coupon-btn--primary {
    background: linear-gradient(135deg, #ff8a34, #ff6d25);
    color: #15100c;
    font-weight: 800;
}
.detail-coupon-btn--primary:hover {
    background: linear-gradient(135deg, #ff9b4c, #ff7629);
}
.detail-coupon-applied {
    background: rgba(5,9,14,0.48);
}
.detail-coupon-applied-name {
    color: #fff;
}
.detail-actions .btn-primary,
.order-result .btn-primary {
    min-height: 46px;
    padding: 0 28px;
    border-radius: 12px;
    color: #15100c;
    background: linear-gradient(135deg, #ff8a34, #ff6d25);
    box-shadow: 0 16px 34px rgba(255,112,38,0.24);
    font-weight: 900;
}
.detail-actions .btn-primary:hover,
.order-result .btn-primary:hover {
    background: linear-gradient(135deg, #ff9b4c, #ff7629);
    color: #15100c;
}
.detail-meta-tabs {
    margin-top: 2px;
    padding-top: 4px;
}
.detail-meta-tab-nav {
    border-bottom-color: rgba(255,255,255,0.10);
}
.detail-meta-tab-btn {
    color: #8f9aaa;
}
.detail-meta-tab-btn:hover,
.detail-meta-tab-btn.active {
    color: #ffbd7d;
    border-bottom-color: #ff8a34;
}
.detail-meta-row {
    border-bottom-color: rgba(255,255,255,0.08);
}
.detail-discount-item {
    color: #eef3f8;
    background: rgba(255,122,43,0.10);
    border: 1px solid rgba(255,122,43,0.18);
}
.detail-discount-tag {
    background: #ff8a34;
    color: #111418;
    font-weight: 800;
}
.article-detail {
    background: rgba(15,20,28,0.90);
    border-color: rgba(255,255,255,0.09);
    color: #d9dee7;
    box-shadow: 0 18px 50px rgba(0,0,0,0.22);
}
.article-detail .detail-title {
    color: #fff;
}
.article-detail .detail-meta {
    color: #8d98a8;
    border-bottom-color: rgba(255,255,255,0.08);
}
.article-detail--product-intro {
    background: transparent;
    border: 0;
    box-shadow: none;
}
.article-detail--product-intro .detail-body {
    color: #d9dee7;
}
.ba-highlight,
.ba-info-section {
    background: linear-gradient(180deg, rgba(15,20,28,0.94), rgba(10,15,22,0.94));
    border-color: rgba(255,122,43,0.18);
    box-shadow: 0 22px 60px rgba(0,0,0,0.22);
}
.ba-highlight__head {
    background: linear-gradient(135deg, rgba(255,122,43,0.92), rgba(255,176,100,0.70));
    color: #111418;
}
.ba-highlight__head h2,
.ba-highlight__head p,
.ba-eyebrow {
    color: #111418;
}
.ba-eyebrow {
    background: rgba(17,20,24,0.12);
}
.ba-feature,
.ba-rule-list li,
.ba-steps li,
.ba-faq-item {
    background: rgba(255,255,255,0.055);
    border-color: rgba(255,255,255,0.09);
    color: #c9d0d9;
}
.ba-feature h3,
.ba-info-section h2,
.ba-rule-list strong,
.ba-steps strong,
.ba-faq-item strong {
    color: #fff;
}
.ba-quick-jump {
    border-color: rgba(255,122,43,0.34);
    background: rgba(255,122,43,0.12);
    color: #ffbd7d !important;
    box-shadow: 0 8px 18px rgba(255,122,43,0.10);
}
.ba-quick-jump:hover {
    background: rgba(255,122,43,0.18);
    border-color: rgba(255,122,43,0.52);
    color: #ffe2c3 !important;
}
.ba-feature p,
.ba-faq-item p {
    color: #aab4c2;
}
.ba-steps li::before {
    background: linear-gradient(135deg, #ff8a34, #ff6d25);
    color: #111418;
}
.ba-note {
    background: rgba(255,122,43,0.10);
    color: #ffcfaa;
}
.goods-detail-tags[style] {
    background: rgba(15,20,28,0.90) !important;
    border-color: rgba(255,255,255,0.09) !important;
}
.article-tag {
    background: rgba(255,122,43,0.12);
    color: #ffbd7d;
}
.article-tag:hover {
    background: rgba(255,122,43,0.22);
    color: #fff;
}
.order-result-card,
.order-info-card {
    background: rgba(15,20,28,0.92);
    border-color: rgba(255,255,255,0.09);
    color: #d9dee7;
    box-shadow: 0 18px 50px rgba(0,0,0,0.22);
}
.order-result-title,
.order-info-title,
.order-info-value,
.order-goods-name,
.order-delivery-text {
    color: #fff;
}
.order-result-desc,
.order-info-label,
.order-goods-spec,
.order-goods-qty {
    color: #9eabbc;
}
.order-info-title,
.order-goods-item {
    border-color: rgba(255,255,255,0.08);
}
.order-goods-img,
.order-delivery-content {
    background: rgba(255,255,255,0.055);
    border-color: rgba(255,255,255,0.09);
}
.order-goods-price,
.order-info-value[style*="color:#fa5252"] {
    color: #ff8a34 !important;
}
.order-delivery-content {
    border-left-color: #ff8a34;
}
.order-delivery-label {
    color: #ffbd7d;
}

/* Card-code delivery plugin: keep order result pages in the black-orange skin */
.vc-delivery {
    width: min(720px, 100%) !important;
    margin-top: 14px !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, rgba(15,20,28,0.96), rgba(9,14,21,0.96)) !important;
    box-shadow: 0 16px 42px rgba(0,0,0,0.24), 0 0 0 1px rgba(255,122,43,0.05) !important;
    overflow: hidden !important;
}
.vc-delivery__head,
.vc-delivery__actions {
    background: rgba(255,255,255,0.045) !important;
    border-color: rgba(255,255,255,0.09) !important;
    color: #f7f7f2 !important;
}
.vc-delivery__title {
    color: #f7f7f2 !important;
    font-weight: 800 !important;
}
.vc-delivery__title .fa {
    color: #ffbd7d !important;
}
.vc-delivery__count {
    color: #8e97a5 !important;
}
.vc-delivery__info {
    background: rgba(255,122,43,0.12) !important;
    border-bottom-color: rgba(255,122,43,0.22) !important;
    color: #ffcfaa !important;
}
.vc-delivery__info .fa {
    color: #ffbd7d !important;
}
.vc-delivery__item {
    background: rgba(255,255,255,0.055) !important;
    border-color: rgba(255,255,255,0.09) !important;
    border-radius: 10px !important;
}
.vc-delivery__idx {
    color: #6f7886 !important;
}
.vc-delivery__code {
    color: #e8eef7 !important;
}
.vc-delivery__btn {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.10) !important;
    color: #d9e1ec !important;
    border-radius: 8px !important;
}
.vc-delivery__btn:hover {
    background: rgba(255,122,43,0.14) !important;
    border-color: rgba(255,122,43,0.38) !important;
    color: #ffbd7d !important;
}
.vc-delivery__btn--primary,
.vc-delivery__btn--export,
.vc-delivery__btn.is-copied {
    background: linear-gradient(135deg, #ff7a2b, #ff6d25) !important;
    border-color: transparent !important;
    color: #15100c !important;
    font-weight: 800 !important;
    box-shadow: 0 12px 28px rgba(255,122,43,0.22) !important;
}

/* Auth pages: sync with Baolong AI dark theme */
.auth-page {
    min-height: calc(100vh - 64px - 96px);
}
.auth-card {
    background: linear-gradient(180deg, rgba(15,20,28,0.94), rgba(10,15,22,0.96));
    border: 1px solid rgba(255,255,255,0.10);
    color: #eef3f8;
    box-shadow: 0 24px 70px rgba(0,0,0,0.34), 0 0 0 1px rgba(255,122,43,0.04);
}
.auth-title {
    color: #fff;
}
.auth-subtitle,
.auth-footer {
    color: #9eabbc;
}
.auth-label {
    color: #d9e1ec;
}
.auth-input-wrap {
    background: rgba(255,255,255,0.055);
    border-color: rgba(255,255,255,0.10);
    overflow: hidden;
}
.auth-input-wrap:focus-within {
    background: rgba(255,255,255,0.075);
    border-color: rgba(255,122,43,0.58);
    box-shadow: 0 0 0 3px rgba(255,122,43,0.12);
}
.auth-input-wrap > i.fa,
.auth-eye {
    color: #687484;
}
.auth-input-wrap:focus-within > i.fa,
.auth-eye:hover,
.auth-footer a,
.auth-footer a:hover {
    color: #ffbd7d;
}
.auth-input-wrap input {
    background: transparent !important;
    color: #eef3f8;
    caret-color: #ffb064;
}
.auth-input-wrap input::placeholder {
    color: #6f7b8c;
}
.auth-input-wrap input:-webkit-autofill,
.auth-input-wrap input:-webkit-autofill:hover,
.auth-input-wrap input:-webkit-autofill:focus,
.auth-input-wrap input:-webkit-autofill:active {
    -webkit-text-fill-color: #eef3f8 !important;
    caret-color: #ffb064;
    box-shadow: 0 0 0 1000px rgba(255,255,255,0.055) inset !important;
    transition: background-color 9999s ease-out 0s;
}
.auth-submit {
    background: linear-gradient(135deg, #ff8a34, #ff6d25);
    color: #15100c;
    font-weight: 800;
    box-shadow: 0 16px 34px rgba(255,112,38,0.22);
}
.auth-submit:hover {
    opacity: 1;
    box-shadow: 0 18px 40px rgba(255,112,38,0.30);
}

@media (max-width: 900px) {
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .detail-card {
        padding: 20px;
    }
}
@media (max-width: 620px) {
    .detail-card {
        border-radius: 14px;
        padding: 16px;
    }
    .detail-price-box,
    .detail-coupon-input-row,
    .detail-qty-wrap {
        align-items: stretch;
        flex-direction: column;
    }
    .detail-form-field-input[style],
    .detail-coupon-input {
        max-width: 100% !important;
    }
}

/* ==========================================================
   Baolong AI theme switcher + light skin
   ========================================================== */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid rgba(255,216,184,0.30);
    background: rgba(255,122,43,0.11);
    color: #ffd8b8;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.theme-toggle:hover {
    background: rgba(255,122,43,0.16);
    border-color: rgba(255,122,43,0.42);
    color: #fff;
}
.theme-toggle__icon {
    font-size: 14px;
    line-height: 1;
}
.theme-toggle__icon--dark {
    display: none;
}
html[data-theme="light"] .theme-toggle__icon--light {
    display: none;
}
html[data-theme="light"] .theme-toggle__icon--dark {
    display: inline-block;
}

html[data-theme="light"] {
    --ai-bg: #f6f4fd;
    --ai-bg-2: #eeeafa;
    --ai-panel: rgba(255,255,255,0.92);
    --ai-panel-2: rgba(255,255,255,0.98);
    --ai-border: rgba(116,91,237,0.12);
    --ai-border-strong: rgba(124,92,255,0.28);
    --ai-text: #1b1b33;
    --ai-muted: #7d8497;
    --ai-orange: #7c5cff;
    --ai-orange-2: #a78bfa;
    --ai-green: #22c55e;
    background: #f6f4fd;
    color-scheme: light;
}
html[data-theme="light"] body {
    color: #1b1b33;
    background:
        radial-gradient(circle at 50% -12%, rgba(124,92,255,0.16), transparent 36%),
        radial-gradient(circle at 84% 18%, rgba(56,189,248,0.10), transparent 34%),
        linear-gradient(180deg, #fbfbff 0%, #f5f2fd 46%, #f7f5fc 100%);
}
html[data-theme="light"] body::before,
html[data-theme="light"] .ai-hero::after {
    opacity: .34;
}
html[data-theme="light"] .site-header {
    background: rgba(255,255,255,0.86);
    border-bottom-color: rgba(116,91,237,0.10);
    box-shadow: 0 12px 34px rgba(73,63,120,0.07);
    backdrop-filter: blur(14px);
}
html[data-theme="light"] .site-header.scrolled {
    box-shadow: 0 14px 36px rgba(73,63,120,0.10);
}
html[data-theme="light"] .site-logo-text {
    background: linear-gradient(135deg, #1b1b33 0%, #7c5cff 60%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
html[data-theme="light"] .site-logo-img {
    filter: drop-shadow(0 8px 18px rgba(124,92,255,0.14));
}
html[data-theme="light"] .main-nav a,
html[data-theme="light"] .header-action-btn {
    color: #5f6678;
}
html[data-theme="light"] .main-nav a:hover,
html[data-theme="light"] .main-nav a.active {
    color: #1b1b33;
}
html[data-theme="light"] .main-nav a::after {
    background: linear-gradient(90deg, #7c5cff, #a78bfa);
}
html[data-theme="light"] .header-action-btn,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .header-user {
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(116,91,237,0.13);
    color: #4b556b;
    box-shadow: 0 8px 24px rgba(73,63,120,0.07);
}
html[data-theme="light"] .header-action-btn:hover,
html[data-theme="light"] .header-action-btn--text,
html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .header-user:hover,
html[data-theme="light"] .header-user-dropdown:hover .header-user {
    background: #fff;
    border-color: rgba(124,92,255,0.28);
    color: #7c5cff;
}
html[data-theme="light"] .header-user-avatar--default {
    background: linear-gradient(135deg, #ede9fe, #dbeafe);
    color: #7c5cff;
    border-color: rgba(124,92,255,0.14);
}
html[data-theme="light"] .header-user-menu,
html[data-theme="light"] .nav-dropdown-menu {
    background: rgba(255,255,255,0.98);
    border-color: rgba(116,91,237,0.12);
    box-shadow: 0 18px 42px rgba(73,63,120,0.14);
}
html[data-theme="light"] .nav-dropdown-menu::before {
    background: #fff;
    border-color: rgba(116,91,237,0.12);
}
html[data-theme="light"] .header-user-menu-item,
html[data-theme="light"] .nav-dropdown-menu a {
    color: #424b5f;
}
html[data-theme="light"] .header-user-menu-item:hover,
html[data-theme="light"] .nav-dropdown-menu a:hover {
    background: #f3f0ff;
    color: #7c5cff;
}
html[data-theme="light"] .ai-hero::before {
    background:
        radial-gradient(circle at 52% 24%, rgba(124,92,255,0.18), transparent 28%),
        radial-gradient(circle at 68% 0%, rgba(56,189,248,0.12), transparent 36%);
}
html[data-theme="light"] .ai-hero h1,
html[data-theme="light"] .ai-section__head h2,
html[data-theme="light"] .section-title,
html[data-theme="light"] .detail-name,
html[data-theme="light"] .auth-title {
    color: #19192f;
}
html[data-theme="light"] .ai-hero h1 strong {
    color: #7c5cff;
}
html[data-theme="light"] .ai-hero p,
html[data-theme="light"] .ai-section__head p,
html[data-theme="light"] .auth-subtitle,
html[data-theme="light"] .auth-footer {
    color: #7d8497;
}
html[data-theme="light"] .ai-pill,
html[data-theme="light"] .category-tab.active,
html[data-theme="light"] .goods-sort-link.active,
html[data-theme="light"] .pagination-num.active {
    background: #fff;
    border-color: rgba(124,92,255,0.18);
    color: #7c5cff;
    box-shadow: 0 10px 28px rgba(124,92,255,0.10);
}
html[data-theme="light"] .ai-tags span,
html[data-theme="light"] .category-tab,
html[data-theme="light"] .goods-sort-link,
html[data-theme="light"] .pagination-num,
html[data-theme="light"] .pagination-btn {
    background: rgba(255,255,255,0.82);
    border-color: rgba(116,91,237,0.12);
    color: #4b556b;
}
html[data-theme="light"] .ai-refund-promise {
    background: linear-gradient(135deg, rgba(124,92,255,0.10), rgba(56,189,248,0.08)), #fff;
    border-color: rgba(124,92,255,0.18);
    color: #252445;
    box-shadow: 0 16px 34px rgba(73,63,120,0.10), inset 0 0 0 1px rgba(255,255,255,0.72);
}
html[data-theme="light"] .ai-refund-promise i {
    background: linear-gradient(135deg, #7c5cff, #38bdf8);
    color: #fff;
    box-shadow: 0 0 18px rgba(124,92,255,0.24);
}
html[data-theme="light"] .ai-btn--primary,
html[data-theme="light"] .auth-submit,
html[data-theme="light"] .detail-submit-btn,
html[data-theme="light"] .btn-primary,
html[data-theme="light"] .comment-login-btn {
    background: linear-gradient(135deg, #7c5cff, #9f7aea) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 16px 34px rgba(124,92,255,0.24) !important;
}
html[data-theme="light"] .ai-btn--ghost,
html[data-theme="light"] .btn--outline {
    background: rgba(255,255,255,0.88);
    color: #4b556b;
    border-color: rgba(116,91,237,0.14);
}
html[data-theme="light"] .ai-terminal,
html[data-theme="light"] .card,
html[data-theme="light"] .goods-card,
html[data-theme="light"] .ai-product-card,
html[data-theme="light"] .ai-concept-card,
html[data-theme="light"] .detail-card,
html[data-theme="light"] .article-detail--product-intro,
html[data-theme="light"] .site-announcement,
html[data-theme="light"] .sidebar-widget,
html[data-theme="light"] .order-result-card,
html[data-theme="light"] .order-info-card,
html[data-theme="light"] .auth-card,
html[data-theme="light"] .search-modal-body {
    background: rgba(255,255,255,0.94);
    border-color: rgba(116,91,237,0.12);
    color: #1f2937;
    box-shadow: 0 18px 50px rgba(73,63,120,0.10);
}
html[data-theme="light"] .goods-card:hover,
html[data-theme="light"] .ai-product-card:hover,
html[data-theme="light"] .ai-concept-card:hover {
    box-shadow: 0 24px 60px rgba(124,92,255,0.14), 0 0 0 1px rgba(124,92,255,0.18);
}
html[data-theme="light"] .goods-card .card-img,
html[data-theme="light"] .detail-img,
html[data-theme="light"] .order-goods-img,
html[data-theme="light"] .sidebar-goods-img,
html[data-theme="light"] .sidebar-article-img {
    background: #f3f0ff;
    border-color: rgba(116,91,237,0.12);
}
html[data-theme="light"] .goods-card .card-title,
html[data-theme="light"] .detail-meta-value,
html[data-theme="light"] .detail-stat-item strong,
html[data-theme="light"] .order-result-title,
html[data-theme="light"] .order-info-title,
html[data-theme="light"] .order-info-value,
html[data-theme="light"] .order-goods-name,
html[data-theme="light"] .sidebar-title,
html[data-theme="light"] .sidebar-user-name,
html[data-theme="light"] .sidebar-goods-name,
html[data-theme="light"] .sidebar-article-title,
html[data-theme="light"] .sidebar-cat-parent,
html[data-theme="light"] .empty-state h3 {
    color: #1b1b33;
}
html[data-theme="light"] .goods-card:hover .card-title,
html[data-theme="light"] .section-more,
html[data-theme="light"] .sidebar-list a:hover,
html[data-theme="light"] .sidebar-post:hover,
html[data-theme="light"] .sidebar-goods-item:hover,
html[data-theme="light"] .sidebar-article-item:hover,
html[data-theme="light"] .auth-footer a,
html[data-theme="light"] .breadcrumb a:hover {
    color: #7c5cff;
}
html[data-theme="light"] .goods-card .price,
html[data-theme="light"] .detail-price,
html[data-theme="light"] .order-goods-price,
html[data-theme="light"] .order-info-value[style*="color:#fa5252"],
html[data-theme="light"] .sidebar-list .price-tag,
html[data-theme="light"] .sidebar-goods-price .price {
    color: #7c5cff !important;
}
html[data-theme="light"] .goods-card .price-original,
html[data-theme="light"] .detail-meta-label,
html[data-theme="light"] .order-result-desc,
html[data-theme="light"] .order-info-label,
html[data-theme="light"] .order-goods-spec,
html[data-theme="light"] .sidebar-user-meta,
html[data-theme="light"] .sidebar-cat-child,
html[data-theme="light"] .sidebar-article-date,
html[data-theme="light"] .empty-state,
html[data-theme="light"] .empty-state p {
    color: #7d8497;
}
html[data-theme="light"] .site-announcement__head,
html[data-theme="light"] .detail-price-box,
html[data-theme="light"] .detail-meta-row,
html[data-theme="light"] .detail-payment-item,
html[data-theme="light"] .detail-qty-selector,
html[data-theme="light"] .order-info-title,
html[data-theme="light"] .order-goods-item,
html[data-theme="light"] .sidebar-title,
html[data-theme="light"] .sidebar-list a {
    border-color: rgba(116,91,237,0.10);
}
html[data-theme="light"] .site-announcement__head,
html[data-theme="light"] .detail-price-box,
html[data-theme="light"] .order-delivery-content,
html[data-theme="light"] .detail-qty-selector,
html[data-theme="light"] .sidebar-user-links > a,
html[data-theme="light"] .sidebar-list .count,
html[data-theme="light"] .sidebar-rank,
html[data-theme="light"] .sidebar-tag,
html[data-theme="light"] .mobile-nav-inner {
    background: rgba(246,244,253,0.78);
}
html[data-theme="light"] .detail-form-field-input,
html[data-theme="light"] .detail-coupon-input,
html[data-theme="light"] .detail-qty-input,
html[data-theme="light"] .auth-input-wrap,
html[data-theme="light"] .search-modal-bar,
html[data-theme="light"] .comment-input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
    background: #fff !important;
    border-color: rgba(116,91,237,0.14) !important;
    color: #1f2937 !important;
}
html[data-theme="light"] .auth-input-wrap input,
html[data-theme="light"] .search-modal-bar input,
html[data-theme="light"] .detail-form-field-input,
html[data-theme="light"] .detail-qty-input {
    color: #1f2937 !important;
    caret-color: #7c5cff;
}
html[data-theme="light"] .detail-qty-btn {
    background: #f8f7ff;
    color: #6d5bd0;
    border-color: rgba(116,91,237,0.12);
}
html[data-theme="light"] .detail-qty-btn:hover {
    background: #f3f0ff;
    color: #7c5cff;
}
html[data-theme="light"] .auth-input-wrap input::placeholder,
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
    color: #a7adbd;
}
html[data-theme="light"] .auth-input-wrap input:-webkit-autofill,
html[data-theme="light"] .auth-input-wrap input:-webkit-autofill:hover,
html[data-theme="light"] .auth-input-wrap input:-webkit-autofill:focus,
html[data-theme="light"] .auth-input-wrap input:-webkit-autofill:active {
    -webkit-text-fill-color: #1f2937 !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
}
html[data-theme="light"] .search-modal-mask,
html[data-theme="light"] .mobile-nav-backdrop.mobile-nav--shown {
    background: rgba(31,27,61,0.24);
}
html[data-theme="light"] .mobile-nav {
    background: #fff;
    border-left-color: rgba(116,91,237,0.12);
    box-shadow: -12px 0 36px rgba(73,63,120,0.13);
}
html[data-theme="light"] .mobile-nav-item,
html[data-theme="light"] .mobile-nav-sub-item {
    color: #374151;
    border-color: transparent;
}
html[data-theme="light"] .mobile-nav-item .fa {
    color: #6b7280;
}
html[data-theme="light"] .mobile-nav-item:hover,
html[data-theme="light"] .mobile-nav-item.active,
html[data-theme="light"] .mobile-nav-sub-item:hover {
    background: #f3f0ff;
    border-color: rgba(124,92,255,0.12);
    color: #7c5cff;
}
html[data-theme="light"] .mobile-nav-item:hover .fa,
html[data-theme="light"] .mobile-nav-item.active .fa {
    color: #7c5cff;
}
html[data-theme="light"] .mobile-nav-toggle .mobile-nav-arrow {
    color: #a7adbd;
}
html[data-theme="light"] .mobile-nav-divider {
    background: rgba(116,91,237,0.10);
}
html[data-theme="light"] .site-footer {
    background: #f7f5fc;
    border-top-color: rgba(116,91,237,0.10);
    color: #8b92a6;
}
html[data-theme="light"] .vc-delivery {
    background: rgba(255,255,255,0.96) !important;
    border-color: rgba(116,91,237,0.12) !important;
    box-shadow: 0 18px 46px rgba(73,63,120,0.10) !important;
}
html[data-theme="light"] .vc-delivery__head,
html[data-theme="light"] .vc-delivery__actions,
html[data-theme="light"] .vc-delivery__item {
    background: #f8f7fe !important;
    border-color: rgba(116,91,237,0.12) !important;
    color: #1b1b33 !important;
}
html[data-theme="light"] .vc-delivery__title,
html[data-theme="light"] .vc-delivery__code {
    color: #1b1b33 !important;
}
html[data-theme="light"] .vc-delivery__title .fa,
html[data-theme="light"] .vc-delivery__btn:hover {
    color: #7c5cff !important;
}
html[data-theme="light"] .vc-delivery__info {
    background: #f3f0ff !important;
    border-bottom-color: rgba(116,91,237,0.12) !important;
    color: #6d5bd0 !important;
}
html[data-theme="light"] .vc-delivery__btn {
    background: #fff !important;
    border-color: rgba(116,91,237,0.14) !important;
    color: #4b556b !important;
}
html[data-theme="light"] .vc-delivery__btn--primary,
html[data-theme="light"] .vc-delivery__btn--export,
html[data-theme="light"] .vc-delivery__btn.is-copied {
    background: linear-gradient(135deg, #7c5cff, #9f7aea) !important;
    color: #fff !important;
    box-shadow: 0 14px 30px rgba(124,92,255,0.22) !important;
}

@media (max-width: 760px) {
    .theme-toggle {
        width: 38px;
        min-width: 38px;
        padding: 0;
    }
    .theme-toggle [data-theme-label] {
        display: none;
    }
}

/* Light skin contrast polish */
html[data-theme="light"] {
    --ai-muted: #4f5b6d;
    --ai-orange: #5b3fd6;
    --ai-orange-2: #7c5cff;
}
html[data-theme="light"] .ai-hero p,
html[data-theme="light"] .ai-section__head p,
html[data-theme="light"] .auth-subtitle,
html[data-theme="light"] .auth-footer,
html[data-theme="light"] .auth-footer span,
html[data-theme="light"] .goods-card .price-original,
html[data-theme="light"] .detail-meta-label,
html[data-theme="light"] .detail-intro,
html[data-theme="light"] .detail-qty-label,
html[data-theme="light"] .spec-group-label,
html[data-theme="light"] .detail-payment-title,
html[data-theme="light"] .detail-form-field-label,
html[data-theme="light"] .order-result-desc,
html[data-theme="light"] .order-info-label,
html[data-theme="light"] .order-goods-spec,
html[data-theme="light"] .sidebar-user-meta,
html[data-theme="light"] .sidebar-cat-child,
html[data-theme="light"] .sidebar-article-date,
html[data-theme="light"] .empty-state,
html[data-theme="light"] .empty-state p,
html[data-theme="light"] .card-stats,
html[data-theme="light"] .fo-hero__sub {
    color: #4f5b6d !important;
}
html[data-theme="light"] .main-nav a,
html[data-theme="light"] .header-action-btn,
html[data-theme="light"] .category-tab,
html[data-theme="light"] .goods-sort-link,
html[data-theme="light"] .pagination-num,
html[data-theme="light"] .pagination-btn,
html[data-theme="light"] .ai-tags span,
html[data-theme="light"] .ai-btn--ghost,
html[data-theme="light"] .btn--outline,
html[data-theme="light"] .sidebar-list a {
    color: #374151;
}
html[data-theme="light"] .main-nav a:hover,
html[data-theme="light"] .main-nav a.active,
html[data-theme="light"] .header-action-btn:hover,
html[data-theme="light"] .header-action-btn--text,
html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .header-user:hover,
html[data-theme="light"] .header-user-dropdown:hover .header-user,
html[data-theme="light"] .goods-card:hover .card-title,
html[data-theme="light"] .section-more,
html[data-theme="light"] .auth-footer a,
html[data-theme="light"] .breadcrumb a:hover,
html[data-theme="light"] .category-tab.active,
html[data-theme="light"] .goods-sort-link.active,
html[data-theme="light"] .pagination-num.active,
html[data-theme="light"] .sidebar-list a:hover {
    color: #5b3fd6 !important;
}
html[data-theme="light"] .goods-card .price,
html[data-theme="light"] .detail-price,
html[data-theme="light"] .order-goods-price,
html[data-theme="light"] .order-info-value[style*="color:#fa5252"],
html[data-theme="light"] .sidebar-list .price-tag,
html[data-theme="light"] .sidebar-goods-price .price {
    color: #5b3fd6 !important;
}
html[data-theme="light"] .ai-btn--primary,
html[data-theme="light"] .auth-submit,
html[data-theme="light"] .detail-submit-btn,
html[data-theme="light"] .btn-primary,
html[data-theme="light"] .comment-login-btn {
    background: linear-gradient(135deg, #5b3fd6, #7c5cff) !important;
    color: #fff !important;
    text-shadow: 0 1px 1px rgba(25, 20, 70, 0.18);
}
html[data-theme="light"] .breadcrumb,
html[data-theme="light"] .breadcrumb a,
html[data-theme="light"] .breadcrumb .sep,
html[data-theme="light"] .page-body > .breadcrumb,
html[data-theme="light"] .page-body > .breadcrumb .sep {
    color: #4f5b6d !important;
}
html[data-theme="light"] .auth-label {
    color: #30384a !important;
}
html[data-theme="light"] .auth-input-wrap > i.fa,
html[data-theme="light"] .auth-eye {
    color: #667085;
}
html[data-theme="light"] .auth-input-wrap:focus-within > i.fa,
html[data-theme="light"] .auth-eye:hover {
    color: #5b3fd6;
}
html[data-theme="light"] .auth-input-wrap input::placeholder,
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
    color: #778195;
}
html[data-theme="light"] .site-footer,
html[data-theme="light"] .site-footer span,
html[data-theme="light"] .site-footer__copy,
html[data-theme="light"] .site-footer__icp {
    color: #5f6678 !important;
}
html[data-theme="light"] .site-footer a {
    color: #5b3fd6 !important;
}
html[data-theme="light"] .sidebar-user-links > a {
    background: #fff;
    border: 1px solid rgba(116,91,237,0.14);
    color: #374151;
}
html[data-theme="light"] .sidebar-user-links > a:hover {
    background: #f3f0ff;
    color: #5b3fd6;
    border-color: rgba(91,63,214,0.24);
}
html[data-theme="light"] .sidebar-user-btn--primary {
    background: linear-gradient(135deg, #5b3fd6, #7c5cff) !important;
    color: #fff !important;
    border-color: transparent !important;
}
html[data-theme="light"] .sidebar-list .count,
html[data-theme="light"] .sidebar-rank,
html[data-theme="light"] .sidebar-cat-count,
html[data-theme="light"] .sidebar-tag,
html[data-theme="light"] .category-tab-count {
    background: #eeeaff;
    color: #4f3bbd;
    border-color: rgba(91,63,214,0.16);
}
html[data-theme="light"] .category-tab.active .category-tab-count {
    background: rgba(255,255,255,0.86);
    color: #4f3bbd;
}
html[data-theme="light"] .article-detail--product-intro .detail-body {
    color: #374151;
}
html[data-theme="light"] .ba-highlight,
html[data-theme="light"] .ba-info-section {
    background: rgba(255,255,255,0.94);
    border-color: rgba(116,91,237,0.12);
    color: #374151;
    box-shadow: 0 18px 50px rgba(73,63,120,0.10);
}
html[data-theme="light"] .ba-highlight__head {
    background: linear-gradient(135deg, #5b3fd6, #7c5cff);
    color: #fff;
}
html[data-theme="light"] .ba-highlight__head h2,
html[data-theme="light"] .ba-highlight__head p,
html[data-theme="light"] .ba-eyebrow {
    color: #fff;
}
html[data-theme="light"] .ba-eyebrow {
    background: rgba(255,255,255,0.18);
}
html[data-theme="light"] .ba-feature,
html[data-theme="light"] .ba-rule-list li,
html[data-theme="light"] .ba-steps li,
html[data-theme="light"] .ba-faq-item {
    background: #f8f7ff;
    border-color: rgba(116,91,237,0.12);
    color: #374151;
}
html[data-theme="light"] .ba-feature h3,
html[data-theme="light"] .ba-info-section h2,
html[data-theme="light"] .ba-rule-list strong,
html[data-theme="light"] .ba-steps strong,
html[data-theme="light"] .ba-faq-item strong {
    color: #1b1b33;
}
html[data-theme="light"] .ba-quick-jump {
    border-color: rgba(124,92,255,0.18);
    background: rgba(124,92,255,0.09);
    color: #5b3fd6 !important;
    box-shadow: 0 8px 18px rgba(124,92,255,0.08);
}
html[data-theme="light"] .ba-quick-jump:hover {
    background: rgba(124,92,255,0.14);
    border-color: rgba(124,92,255,0.30);
    color: #4f35c7 !important;
}
html[data-theme="light"] .ba-feature p,
html[data-theme="light"] .ba-faq-item p {
    color: #4f5b6d;
}
html[data-theme="light"] .ba-steps li::before {
    background: linear-gradient(135deg, #5b3fd6, #7c5cff);
    color: #fff;
}
html[data-theme="light"] .ba-note,
html[data-theme="light"] .article-tag {
    background: #f3f0ff;
    color: #4f3bbd;
}
html[data-theme="light"] .article-tag:hover {
    background: #e8e4ff;
    color: #3f2ea8;
}

/* Light skin readability follow-up */
html[data-theme="light"] .ai-terminal__line {
    border-bottom-color: rgba(91,63,214,0.10);
}
html[data-theme="light"] .ai-terminal__line span {
    color: #4f5b6d;
}
html[data-theme="light"] .ai-terminal__line b {
    color: #202033;
}
html[data-theme="light"] .ai-terminal__pulse {
    background-color: #fff3e7;
    background-image: linear-gradient(135deg, #fff6ed, #fff1e3);
    border-color: rgba(197,92,18,0.28);
    color: #8a3d00;
    text-shadow: none;
}
html[data-theme="light"] .ai-terminal__pulse:hover {
    background-color: #ff8a34;
    background-image: linear-gradient(135deg, #ff8a34, #ff6d25);
    color: #15100c;
}
html[data-theme="light"] .ai-more {
    background: #fff;
    border-color: rgba(197,92,18,0.18);
    color: #8a3d00;
}
html[data-theme="light"] .ai-more:hover {
    background: #fff3e7;
    border-color: rgba(197,92,18,0.30);
    color: #6f2f00;
}
html[data-theme="light"] .ai-category-filter button {
    background: rgba(255,255,255,0.86);
    border-color: rgba(116,91,237,0.12);
    color: #4b556b;
    box-shadow: 0 8px 22px rgba(73,63,120,0.06);
}
html[data-theme="light"] .ai-category-filter button:hover {
    background: #fff;
    border-color: rgba(124,92,255,0.24);
    color: #5b3fd6;
}
html[data-theme="light"] .ai-category-filter button.active {
    background: linear-gradient(135deg, rgba(124,92,255,0.13), rgba(56,189,248,0.08)), #fff;
    border-color: rgba(124,92,255,0.30);
    color: #5b3fd6;
    box-shadow: 0 14px 30px rgba(73,63,120,0.10), inset 0 0 0 1px rgba(255,255,255,0.72);
}
html[data-theme="light"] .ai-category-filter span {
    background: #eeeaff;
    color: #4f3bbd;
}
html[data-theme="light"] .ai-category-filter button.active span {
    background: rgba(124,92,255,0.14);
    color: #3f2ea8;
}
html[data-theme="light"] .detail-metric-pill {
    background: #fff8f0;
    border-color: rgba(197,92,18,0.20);
    color: #30384a;
    box-shadow: 0 10px 24px rgba(73,63,120,0.08);
}
html[data-theme="light"] .detail-metric-pill i,
html[data-theme="light"] .detail-coupon-title,
html[data-theme="light"] .detail-coupon-guest-tip a,
html[data-theme="light"] .detail-coupon-choose {
    color: #8a3d00 !important;
}
html[data-theme="light"] .detail-metric-pill strong {
    color: #5b3fd6 !important;
}
html[data-theme="light"] .detail-metric-pill--delivery,
html[data-theme="light"] .detail-metric-pill--account {
    background: #f2fff8;
    border-color: rgba(31,137,82,0.18);
    color: #285540;
}
html[data-theme="light"] .detail-metric-pill--delivery i,
html[data-theme="light"] .detail-metric-pill--account i {
    color: #16794a !important;
}
html[data-theme="light"] .detail-coupon {
    background: #fff7ef;
    border-color: rgba(197,92,18,0.18);
}
html[data-theme="light"] .detail-coupon-guest-tip {
    color: #5f6678;
}
html[data-theme="light"] .detail-coupon-btn--primary {
    background-color: #ff7a2b !important;
    background-image: linear-gradient(135deg, #ff8a34, #ff6d25) !important;
    color: #17110b !important;
}
html[data-theme="light"] .detail-payment-item.is-disabled,
html[data-theme="light"] .spec-btn.disabled {
    opacity: 1;
    background: #f8f7ff;
    border-color: rgba(116,91,237,0.12);
    color: #6b7280;
}
html[data-theme="light"] .sidebar-list span[style*="#adb5bd"],
html[data-theme="light"] .sidebar-list span[style*="173, 181, 189"] {
    color: #4f5b6d !important;
}
html[data-theme="light"] .ai-btn--primary,
html[data-theme="light"] .auth-submit,
html[data-theme="light"] .detail-submit-btn,
html[data-theme="light"] .btn-primary,
html[data-theme="light"] .comment-login-btn,
html[data-theme="light"] .sidebar-user-btn--primary,
html[data-theme="light"] .ba-highlight__head,
html[data-theme="light"] .ba-steps li::before {
    background-color: #5b3fd6 !important;
}
html[data-theme="light"] .ai-pill {
    color: #5b3fd6;
}
html[data-theme="light"] .ai-pill--green {
    color: #16794a;
}
html[data-theme="light"] .ai-concept-card h3 {
    color: #1b1b33;
}
html[data-theme="light"] .detail-price-original,
html[data-theme="light"] .detail-price-strike {
    color: #5f6678 !important;
}
html[data-theme="light"] [style*="#fa5252"],
html[data-theme="light"] [style*="250, 82, 82"] {
    color: #c92a2a !important;
}

/* Mobile header cleanup */
@media (max-width: 768px) {
    #searchToggle {
        display: none !important;
    }
}

/* CDK tutorial article layout */
.cdk-guide{max-width:1080px;margin:0 auto;color:#111827!important;background:#f8fafc!important;border:1px solid #d7dee8;border-radius:14px;padding:28px 32px;font-size:16px;line-height:1.85}
.cdk-guide *{box-sizing:border-box}
.cdk-guide h2{margin:34px 0 14px;font-size:24px;line-height:1.35;color:#0f172a!important}
.cdk-guide p,.cdk-guide li{color:#1f2937!important}
.cdk-guide ol,.cdk-guide ul{padding-left:22px;margin:12px 0}
.cdk-hero{padding:24px 26px;margin:0 0 24px;border:1px solid #fed7aa;border-radius:12px;background:#fff7ed!important}
.cdk-hero h2,.cdk-hero p{color:#0f172a!important}
.cdk-hero h2{margin-top:0!important}
.cdk-hero p{margin:8px 0}
.cdk-warning{padding:18px 20px;margin:18px 0;border:1px solid #fecaca;border-left:4px solid #dc2626;background:#fff1f2!important;border-radius:10px;color:#7f1d1d!important}
.cdk-warning strong{display:block;margin-bottom:6px;color:#7f1d1d!important;font-size:17px}
.cdk-warning p{margin:6px 0;color:#7f1d1d!important}
.cdk-note{padding:14px 16px;margin:22px 0 0;border-left:4px solid #f97316;background:#fff7ed!important;border-radius:8px;color:#7c2d12!important}
.cdk-button-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:12px 0 18px}
.cdk-action-button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 15px;border-radius:999px;text-decoration:none!important;color:#fff!important;font-weight:700;font-size:15px;line-height:1;white-space:nowrap;box-shadow:0 8px 16px rgba(15,23,42,.1);transition:transform .15s ease,box-shadow .15s ease}
.cdk-action-button:hover{transform:translateY(-1px);box-shadow:0 12px 22px rgba(15,23,42,.14)}
.cdk-action-button.exchange{background:#ea580c!important}
.cdk-action-button.order{background:#7c3aed!important}
.cdk-action-button.chatgpt{background:#2563eb!important}
.cdk-action-button.session{background:#15803d!important}
.cdk-step{--step-border:rgba(124,58,237,.38);--step-bg:#fdfcff;--glow-a:68% 0%;--glow-b:88% 100%;--glow-one:rgba(96,165,250,.28);--glow-two:rgba(168,85,247,.18);--glow-line:rgba(124,58,237,.1);--glow-inset:rgba(147,197,253,.28);--accent:#ea580c;position:relative;overflow:hidden;padding:18px 20px;margin:18px 0;border:1px solid var(--step-border);border-radius:12px;background:linear-gradient(180deg,#fff,var(--step-bg))!important;box-shadow:0 14px 30px rgba(15,23,42,.08),0 0 0 1px rgba(255,255,255,.75) inset}
.cdk-step::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(280px 120px at var(--glow-a),var(--glow-one),transparent 72%),radial-gradient(230px 130px at var(--glow-b),var(--glow-two),transparent 72%),linear-gradient(135deg,var(--glow-line),transparent 34%);opacity:.95}
.cdk-step::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;border:1px solid rgba(255,255,255,.56);box-shadow:0 0 28px var(--glow-inset) inset}
.cdk-step>*{position:relative;z-index:1}
.cdk-step.order{--step-border:rgba(124,58,237,.42);--step-bg:#f7f3ff;--glow-a:68% 0%;--glow-b:88% 100%;--glow-one:rgba(167,139,250,.28);--glow-two:rgba(96,165,250,.2);--glow-line:rgba(124,58,237,.12);--glow-inset:rgba(167,139,250,.28);--accent:#7c3aed}
.cdk-step.exchange{--step-border:rgba(249,115,22,.42);--step-bg:#fff7ed;--glow-a:72% 0%;--glow-b:12% 100%;--glow-one:rgba(251,146,60,.3);--glow-two:rgba(250,204,21,.18);--glow-line:rgba(249,115,22,.12);--glow-inset:rgba(251,146,60,.24);--accent:#ea580c}
.cdk-step.account{--step-border:rgba(37,99,235,.4);--step-bg:#eff6ff;--glow-a:20% 0%;--glow-b:90% 72%;--glow-one:rgba(96,165,250,.3);--glow-two:rgba(45,212,191,.16);--glow-line:rgba(37,99,235,.1);--glow-inset:rgba(96,165,250,.25);--accent:#2563eb}
.cdk-step.session{--step-border:rgba(21,128,61,.4);--step-bg:#f0fdf4;--glow-a:80% 8%;--glow-b:18% 100%;--glow-one:rgba(74,222,128,.24);--glow-two:rgba(45,212,191,.18);--glow-line:rgba(21,128,61,.1);--glow-inset:rgba(74,222,128,.23);--accent:#15803d}
.cdk-step.submit{--step-border:rgba(219,39,119,.38);--step-bg:#fdf2f8;--glow-a:62% 0%;--glow-b:92% 92%;--glow-one:rgba(244,114,182,.23);--glow-two:rgba(168,85,247,.18);--glow-line:rgba(219,39,119,.1);--glow-inset:rgba(244,114,182,.22);--accent:#db2777}
.cdk-step-title{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;margin-bottom:8px;font-weight:700;color:#0f172a!important}
.cdk-step-title:not(:has(.cdk-action-button)){display:flex;justify-content:flex-start}
.cdk-step-title-main{display:inline-flex;align-items:center;gap:10px;min-width:0;line-height:1.35}
.cdk-step-title .cdk-action-button{min-height:32px;padding:0 13px;font-size:14px;box-shadow:none}
.cdk-step-num{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:var(--accent)!important;color:#fff!important;font-size:14px;flex:0 0 auto}
.cdk-figure{max-width:960px;margin:24px auto;text-align:center}
.cdk-figure img{display:block;width:100%;height:540px;object-fit:contain;padding:18px;border:1px solid #cbd5e1;border-radius:12px;background:linear-gradient(135deg,#f8fafc,#eef2f7)!important;box-shadow:0 14px 30px rgba(15,23,42,.13)}
.article-detail .detail-body .cdk-guide .cdk-figure img{height:540px;object-fit:contain;padding:18px}
.cdk-figure figcaption{margin-top:10px;color:#475569!important;font-size:14px}
.cdk-inline-code{padding:2px 6px;border-radius:5px;background:#ffedd5!important;color:#9a3412!important}
@media (max-width:640px){.article-detail:has(.cdk-guide){padding:18px 14px}.cdk-guide{padding:14px;border-radius:10px;margin-left:-4px;margin-right:-4px}.cdk-guide h2{font-size:20px;line-height:1.35}.cdk-hero{padding:16px 14px;margin-bottom:18px}.cdk-warning,.cdk-step{padding:14px}.cdk-step::before{opacity:.78}.cdk-step-title{grid-template-columns:minmax(0,1fr) auto;gap:8px}.cdk-step-title .cdk-action-button{min-height:30px;padding:0 11px;font-size:13px}.cdk-step-title-main{gap:8px;font-size:15px}.cdk-step-num{width:26px;height:26px}.cdk-figure{margin:16px -4px}.cdk-figure img,.article-detail .detail-body .cdk-guide .cdk-figure img{height:auto;padding:0;object-fit:initial;border-radius:8px;box-shadow:0 6px 16px rgba(15,23,42,.1)}}
