
.blog-container { max-width: 1200px; margin: 10px auto; padding: 0 15px; width: 100%; }
.notice-card { background: rgba(248, 248, 248, 0.5); border: 2px solid #fff;border-radius: 10px; padding: 20px 25px; box-shadow: 0 0 12px rgb(0 0 0 / 10%); margin-bottom: 20px; border-left: 4px solid var(--theme-primary, #2196F3); }
.notice-card-header { display: flex; align-items: center; margin-bottom: 15px; padding-bottom: 12px; border-bottom: 1px dashed #eee; }
.notice-card-header i { color: var(--theme-primary, #2196F3); font-size: 20px; margin-right: 10px; }
.notice-card-header span { font-size: 16px; font-weight: 600; color: #333; }
.notice-card-content { font-size: 14px; color: #555; line-height: 2; }
.notice-card-content a { color: var(--theme-primary, #2196F3); text-decoration: none; }
.notice-card-content a:hover { text-decoration: underline; }
html[data-theme="dark"] .notice-card { background: #1e1e1e; box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
html[data-theme="dark"] .notice-card-header { border-bottom-color: #333; }
html[data-theme="dark"] .notice-card-header span { color: #e0e0e0; }
html[data-theme="dark"] .notice-card-content { color: #b0b0b0; }
.roll-notice-bar { 
    background: rgba(var(--theme-primary-rgb, 33, 150, 243), 0.1); 
    border: 1px solid rgba(var(--theme-primary-rgb, 33, 150, 243), 0.2);
    border-radius: 6px;
    padding: 10px 15px; 
    display: flex; 
    align-items: center; 
    margin-bottom: 15px; 
    overflow: hidden; 
}
.roll-notice-bar i { 
    color: var(--theme-primary, #2196F3); 
    font-size: 16px; 
    margin-right: 10px; 
    flex-shrink: 0;
}
.roll-notice-content { 
    flex: 1; 
    overflow: hidden; 
    white-space: nowrap; 
}
.roll-notice-vticker {
    flex: 1;
    overflow: hidden;
    height: 20px;
    line-height: 20px;
}
.roll-notice-vitem {
    height: 20px;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--theme-primary, #2196F3);
    font-size: 14px;
}
.roll-notice-content span { 
    display: inline-block; 
    color: var(--theme-primary, #2196F3); 
    font-size: 14px; 
    animation: roll-scroll 15s linear infinite; 
}
@keyframes roll-scroll { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } 
}
html[data-theme="dark"] .roll-notice-bar { 
    background: rgba(var(--theme-primary-rgb, 33, 150, 243), 0.15); 
    border-color: rgba(var(--theme-primary-rgb, 33, 150, 243), 0.3);
}
html[data-theme="dark"] .roll-notice-bar i { 
    color: var(--theme-primary-light, #64B5F6); 
}
html[data-theme="dark"] .roll-notice-content span { 
    color: var(--theme-primary-light, #64B5F6); 
}
.category-section { background: rgba(248, 248, 248, 0.5); border: 2px solid #fff; border-radius: 10px; padding: 15px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); margin-bottom: 20px; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 20px 15px; justify-items: center; }
.category-item { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; cursor: pointer; text-decoration: none; transition: transform .2s ease, opacity .2s ease; }
.category-item:hover { transform: translateY(-2px); }
.category-icon { width: 64px; height: 64px; border-radius: 22px; background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; overflow: hidden; box-shadow: 0 5px 10px rgba(15, 23, 42, 0.08); border: 1px solid rgba(255,255,255,0.95); }
.category-icon img { width: 64px; height: 64px; object-fit: cover; border-radius: 16px; }
.category-icon i { font-size: 28px; color: var(--theme-primary,#2196F3); }
.category-item span { font-size: 13px; color: #444; font-weight: 500; width: 100%; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 滑动模式 */
.ci-slide-wrapper { position: relative; display: flex; align-items: center; gap: 0; padding: 0 18px; }
.ci-slide-arrow { display: none; }
@media (min-width: 769px) {
    .ci-slide-arrow { display: flex; align-items: center; justify-content: center; position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; padding: 0; background: rgba(255,255,255,0.96); border: 1px solid rgba(226,232,240,0.95); border-radius: 999px; cursor: pointer; font-size: 24px; line-height: 1; color: #64748b; transition: all 0.2s ease; z-index: 3; box-shadow: 0 8px 24px rgba(15,23,42,0.12); }
    .ci-slide-prev { left: -2px; }
    .ci-slide-next { right: -2px; }
    .ci-slide-arrow:hover { background: var(--theme-primary,#2196F3); color: #fff; border-color: var(--theme-primary,#2196F3); box-shadow: 0 12px 28px rgba(var(--theme-primary-rgb, 33, 150, 243), 0.32); }
    .ci-slide-wrapper .category-grid.slide-mode { flex: 1; min-width: 0; }
}
.category-grid.slide-mode { display: flex; overflow-x: auto; flex-wrap: nowrap; gap: 10px 18px; padding: 8px 10px 10px; scroll-snap-type: x proximity; scroll-padding-left: 10px; scroll-padding-right: 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; justify-content: flex-start; align-items: flex-start; }
.category-grid.slide-mode::-webkit-scrollbar { display: none; }
.category-grid.slide-mode .category-item { flex: 0 0 auto; width: 78px; padding: 4px 2px; scroll-snap-align: start; }
.category-grid.slide-mode .category-icon { width: 58px; height: 58px; border-radius: 18px; margin-bottom: 10px; box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10); }
.category-grid.slide-mode .category-icon img { width: 58px; height: 58px; border-radius: 14px; }
.category-grid.slide-mode .category-icon i { font-size: 24px; }
.category-grid.slide-mode .category-item span { font-size: 12px; color: #475569; }
.ci-slide-wrapper::before, .ci-slide-wrapper::after { content: ''; position: absolute; top: 0; bottom: 8px; width: 28px; pointer-events: none; z-index: 2; }
.ci-slide-wrapper .category-grid.slide-mode:hover + .ci-slide-arrow,
.ci-slide-wrapper:hover .ci-slide-arrow { opacity: 1; }
.ci-slide-arrow { opacity: 0.92; }
.category-section .ci-slide-wrapper + .ci-mobile-pager { margin-top: 6px; }
html[data-theme="dark"] .category-section { background: linear-gradient(180deg, rgba(17,24,39,0.92) 0%, rgba(15,23,42,0.88) 100%); border-color: rgba(255,255,255,0.06); box-shadow: 0 14px 32px rgba(0,0,0,0.24); }
html[data-theme="dark"] .category-item span { color: #dbe4f0; }
html[data-theme="dark"] .category-icon { background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%); border-color: rgba(255,255,255,0.08); box-shadow: 0 10px 22px rgba(0,0,0,0.18); }
html[data-theme="dark"] .ci-slide-arrow { background: rgba(17,24,39,0.92); border-color: rgba(255,255,255,0.08); color: #cbd5e1; box-shadow: 0 10px 24px rgba(0,0,0,0.28); }
html[data-theme="dark"] .ci-slide-wrapper::before { background: linear-gradient(90deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0) 100%); }
html[data-theme="dark"] .ci-slide-wrapper::after { background: linear-gradient(270deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0) 100%); }
.empty-container { padding: 60px 0; text-align: center; }
/* 分类标题行 */
.category-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.category-header-title { font-size: 15px; font-weight: 700; color: #333; }
.category-all-btn { font-size: 12px; color: var(--theme-primary, #2196F3); text-decoration: none; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--theme-primary, #2196F3); transition: all 0.2s; white-space: nowrap; }
.category-all-btn:hover { background: var(--theme-primary, #2196F3); color: #fff; text-decoration: none; }
/* 商品类型覆盖徽章（图片右上角） */
.fk-type-badge { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 3px 10px; border-radius: 20px; font-size: 10px; font-weight: 600; color: #fff; white-space: nowrap; }
.fk-tb-blue   { background: linear-gradient(135deg,#00c6ff,#0072ff); box-shadow: 0 2px 8px rgba(0,114,255,0.4); }
.fk-tb-green  { background: linear-gradient(135deg,#43e97b,#38f9d7); box-shadow: 0 2px 8px rgba(56,249,215,0.4); color: #1a5c45; }
.fk-tb-orange { background: linear-gradient(135deg, #ff9800, #f57c00); box-shadow: 0 2px 8px rgba(255,152,0,0.4); color: #fff; }
.fk-tb-purple { background: linear-gradient(135deg,#a18cd1,#fbc2eb); box-shadow: 0 2px 8px rgba(161,140,209,0.4); color: #4a1a6b; }
.fk-tb-gray   { background: linear-gradient(135deg,#b0bec5,#90a4ae); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
/* 售空遮罩 */
.goods-soldout-mask { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; z-index: 3; }
.goods-soldout-mask span { color: #fff; font-size: 16px; font-weight: 600; padding: 6px 16px; background: rgba(0,0,0,0.5); border-radius: 20px; letter-spacing: 2px; }
.goods-card-soldout { opacity: 0.85; }
.goods-card-soldout:hover { opacity: 1; }
/* 价格后缀 */
.price-suffix { font-size: 15px; font-weight: normal; color: #ff4d4f; margin-left: 2px; }
.price-original { font-size: 12px; color: #bbb; font-weight: normal; text-decoration: line-through; margin-left: 6px; }
/* 购买按钮样式 */
.buy-btn { padding: 4px 10px; background: var(--theme-button, #2196F3); color: #fff; font-size: 12px; font-weight: 500; border-radius: 5px; white-space: nowrap; transition: all 0.2s; }
.goods-card:hover .buy-btn { background: var(--theme-button-dark, #1976D2); box-shadow: 0 3px 10px rgba(var(--theme-button-rgb, 33,150,243),0.3); }
/* ===== Hero区域（轮播图 + 公告同行） ===== */
.fk-hero-row { display: flex; gap: 14px; align-items: stretch; margin-bottom: 16px; }
.fk-banner-wrap { flex: 1 1 65%; min-width: 0; border-radius: 12px; overflow: hidden; position: relative; background: #f0f0f0; -webkit-mask-image: -webkit-radial-gradient(white, black); border: 2px solid #fff;box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);}
.fk-banner-wrap.fk-banner-empty { display: none; }
.fk-notice-col { flex: 0 0 auto; width: 35%; min-width: 180px; }
.fk-hero-row.no-banner .fk-notice-col { width: 100%; }
@media (max-width: 768px) {
    .fk-hero-row { flex-direction: column; gap: 10px; }
    .fk-banner-wrap { flex: none; width: 100%; border-radius: 10px; }
    .fk-notice-col { width: 100% !important; }
    .notice-hidden-mobile { display: none !important; } /* 网站公告(notice-card)手机端隐藏 */
    /* 移动端高度自适应，不跟随PC固定高度 */
    .fk-banner { height: auto !important; }
    .fk-banner-track { height: auto !important; }
    .fk-banner-slide img { height: auto !important; width: 100%; object-fit: contain; aspect-ratio: auto; }
}
/* 轮播图 */
.fk-banner { position: relative; width: 100%; overflow: hidden; border-radius: 12px; }
.fk-banner-track { display: flex; will-change: transform; }
.fk-banner-track.is-fade .fk-banner-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease; }
.fk-banner-track.is-fade .fk-banner-slide.active { opacity: 1; position: relative; }
.fk-banner-slide { flex-shrink: 0; width: 100%; background: #f0f0f0; position: relative; overflow: hidden; }
.fk-banner-slide a { display: block; width: 100%; height: 100%; }
.fk-banner-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 37%, #f0f0f0 63%); background-size: 400% 100%; animation: bannerSkeleton 1.4s ease infinite; z-index: 0; }
.fk-banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 0.5s ease; position: relative; z-index: 1; }
.fk-banner-slide img.loaded { opacity: 1; }
@keyframes bannerSkeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.fk-banner-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.fk-banner-dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.25s; border: none; padding: 0; }
.fk-banner-dot.active { width: 20px; background: #fff; }
.fk-banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; background: rgba(0,0,0,0.25); color: #fff; border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 18px; display: none; align-items: center; justify-content: center; transition: background 0.2s; }
.fk-banner-arrow:hover { background: rgba(0,0,0,0.55); }
.fk-banner-prev { left: 10px; }
.fk-banner-next { right: 10px; }
/* Hero右列：网站公告(notice-card)撑满高度 — ⚠️注意是 notice-card 非 roll-notice-bar */
.fk-notice-col .notice-card { height: 100%; margin-bottom: 0; box-sizing: border-box; overflow-y: auto; }
/* ===== 新版筛选栏 ===== */
.fk-filter-bar { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 4px 0 12px; margin-bottom: 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fk-filter-bar::-webkit-scrollbar { display: none; }
.fk-filter-label { flex-shrink: 0; font-size: 12px; color: #aaa; white-space: nowrap; padding-right: 4px; }
.fk-filter-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 5px; font-size: 13px; font-weight: 500; text-decoration: none !important; color: #555; background:rgba(248, 248, 248, 0.5); border: 1.5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.06); transition: all 0.2s; white-space: nowrap; backdrop-filter: blur(4px); }
.fk-filter-chip:hover { color: var(--theme-primary,#2196F3); border-color: var(--theme-primary,#2196F3); box-shadow: 0 2px 8px rgba(33,150,243,0.15); text-decoration: none !important; }
.fk-filter-chip.active { color: #fff; background: var(--theme-primary,#2196F3); border-color: var(--theme-primary,#2196F3); }
.fk-chip-ri { font-size: 14px; line-height: 1; margin-right: 4px; vertical-align: -1px; }
.fk-chip-icon { font-size: 13px; line-height: 1; margin-left: 1px; vertical-align: -1px; opacity: 0.85; }
.goods-grid.goods-grid-layout-grid { grid-template-columns: repeat(2, 1fr); }
.goods-grid.goods-grid-layout-list { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) {
    .fk-filter-bar { justify-content: space-between; gap: 6px; }
    .fk-filter-chip { flex: 1; justify-content: center; padding-left: 0; padding-right: 0; flex-shrink: 1; }
    .fk-filter-chip:not(:first-child) .fk-chip-ri { display: none; }
}
@media (min-width: 769px) {
    .fk-filter-bar { padding-bottom: 2px; margin-bottom: 20px; flex-wrap: wrap; overflow-x: visible; gap: 8px; }
    .fk-filter-chip { padding: 5px 15px; font-size: 13px; }
    .fk-banner-arrow { display: flex; } /* 箭头仅PC显示，移动端默认none */
}
/* 商品简介 */
.goods-desc { font-size: 12px; color: #999; line-height: 1.5; margin-bottom: 7px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; height: 18px; }
/* 商品 meta 信息 */
.goods-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.goods-meta-stock, .goods-meta-sales { font-size: 11px; color: #bbb; }
/* ===== 横向卡片布局（从0重构） ===== */
.goods-grid.goods-grid-list {
    gap: 16px;
}
.goods-grid.goods-grid-list .goods-grid-item {
    min-width: 0;
}
.goods-grid.goods-grid-list .goods-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
}
/* 左侧图片容器 - 固定1:1比例 */
.goods-grid.goods-grid-list .goods-img-box {
    position: relative;
    width: 140px;
    height: 140px;
    min-width: 140px;
    max-width: 140px;
    padding-top: 0;
    flex-shrink: 0;
    overflow: hidden;
}
/* 图片本身 - 填充满容器 */
.goods-grid.goods-grid-list .goods-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 右侧信息区 */
.goods-grid.goods-grid-list .goods-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 18px;
    box-sizing: border-box;
}
/* 标题 - 单行省略，不换行 */
.goods-grid.goods-grid-list .goods-title {
    height: auto;
    min-height: 0;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
/* 简介 */
.goods-grid.goods-grid-list .goods-desc {
    height: auto;
    margin-bottom: 8px;
    -webkit-line-clamp: 1;
}
/* meta信息 */
.goods-grid.goods-grid-list .goods-meta {
    margin-bottom: 10px;
}
/* 价格行 */
.goods-grid.goods-grid-list .goods-price-row {
    margin-top: auto;
}
.goods-grid.goods-grid-list .price-current {
    font-size: 18px;
}
.goods-grid.goods-grid-list .buy-icon {
    width: 30px;
    height: 30px;
}
/* 分页器 */
.goods-pagination { margin-top: 24px; text-align: center; padding-bottom: 10px; display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.goods-pagination .btn.ghost { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 500; color: #555; background: rgba(255,255,255,0.85); border: 1.5px solid #e8e8e8; text-decoration: none; transition: all 0.2s; cursor: pointer; backdrop-filter: blur(4px); box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.goods-pagination .btn.ghost:hover { color: var(--theme-primary,#2196F3); border-color: var(--theme-primary,#2196F3); box-shadow: 0 2px 8px rgba(33,150,243,0.15); }
.goods-pagination .btn.ghost.active { color: #fff; background: var(--theme-primary,#2196F3); border-color: var(--theme-primary,#2196F3); box-shadow: 0 3px 10px rgba(33,150,243,0.3); cursor: default; }
.goods-pagination em.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; color: #aaa; cursor: default; font-style: normal; }
/* 分类移动端分页滑动 */
.ci-mobile-pager { display: none; }
@media (max-width: 768px) {
    .ci-has-pager .ci-desktop-grid { display: none; }
    .ci-has-pager .ci-mobile-pager { display: block; }
    .ci-mobile-pager .category-pager { overflow: hidden; }
    .ci-pages-track { display: flex; transition: transform 0.32s cubic-bezier(.4,0,.2,1); will-change: transform; }
    .ci-page { min-width: 100%; flex-shrink: 0; }
    .ci-dots { display: flex; justify-content: center; gap: 5px; padding: 10px 0 2px; }
    .ci-dot { width: 7px; height: 5px; border-radius: 1%; background: #ccc; cursor: pointer; transition: all 0.2s; flex-shrink: 0; }
    .ci-dot.active { background: var(--theme-primary, #2196F3); width: 18px; border-radius: 1px; }
}
/* 移动端分类列数 */
@media (max-width: 768px) {
    .goods-grid.goods-grid-layout-grid { grid-template-columns: repeat(2, 1fr); }
    .goods-grid.goods-grid-layout-list { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(5, 1fr); gap: 15px 10px; }
    .category-icon { width: 48px; height: 48px; border-radius: 16px; margin-bottom: 8px; }
    .category-icon img { width: 43px; height: 43px; }
    .category-item span { font-size: 11px; }
    /* 移动端横向卡片 */
    .goods-grid.goods-grid-list .goods-img-box {
        width: 120px;
        height: 120px;
        min-width: 120px;
        max-width: 120px;
    }
    .goods-grid.goods-grid-list .goods-info {
        padding: 8px 14px;
    }
    .goods-grid.goods-grid-list .goods-title {
        font-size: 14px;
        margin-bottom: 6px;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .goods-grid.goods-grid-list .goods-desc {
        margin-bottom: 6px;
        font-size: 11px;
    }
    .goods-grid.goods-grid-list .goods-meta {
        margin-bottom: 6px;
    }
    .goods-grid.goods-grid-list .price-current {
        font-size: 16px;
    }
    .goods-grid.goods-grid-list .buy-icon {
        width: 26px;
        height: 26px;
    }
}

