/* ============================================================
   版面风格样式表
   1. 首页爆款推荐的 5 种排版
   2. 整站 5 种版面风格（classic 为 app.css 默认值）
   3. 后台「商城设置」里的版面选择器
   依赖 app.css 中的 CSS 变量，须在 app.css 之后引入。
   ============================================================ */

/* ------------------------------------------------------------
   一、爆款推荐排版
   ------------------------------------------------------------ */
.section-head { flex-wrap: wrap; }

.hot-layout-label {
    order: 3;
    margin-left: auto;
    font-size: 12px;
    color: var(--brand);
    background: var(--brand-light);
    border-radius: 999px;
    padding: 3px 10px;
}

/* 大图焦点：首条 2×2 大卡 */
.hot-magazine { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hot-feature {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.hot-feature:hover { box-shadow: var(--shadow-lg); }
.hot-feature-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #f2f4f6; overflow: hidden; }
.hot-feature-media img { width: 100%; height: 100%; object-fit: cover; }
.hot-feature-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hot-feature-kicker { align-self: flex-start; font-size: 11px; color: #fff; background: var(--accent); border-radius: 999px; padding: 2px 10px; }
.hot-feature-body h3 { font-size: 20px; font-weight: 600; margin: 0; }
.hot-feature-body h3 a { color: var(--text); }
.hot-feature-body h3 a:hover { color: var(--brand); }
.hot-feature-brief { margin: 0; color: var(--muted); font-size: 13px; }
.hot-feature-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hot-feature-foot .product-card-price strong { font-size: 24px; }

/* 横向清单 */
.hot-list { display: grid; gap: 12px; }
.hot-row {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    transition: border-color .15s, box-shadow .15s;
}
.hot-row:hover { border-color: var(--brand-2); box-shadow: var(--shadow); }
.hot-row-media { flex: 0 0 120px; width: 120px; height: 120px; border-radius: 8px; overflow: hidden; background: #f2f4f6; }
.hot-row-media img { width: 100%; height: 100%; object-fit: cover; }
.hot-row-body { flex: 1; min-width: 0; }
.hot-row-body h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.hot-row-body h3 a { color: var(--text); }
.hot-row-body h3 a:hover { color: var(--brand); }
.hot-row-brief {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.hot-row-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hot-row-viewed { font-size: 12px; color: var(--muted); }
.tag-hot { background: var(--accent-light); color: var(--accent); }
.tag-ship { background: #eef6ee; color: #2f7d4f; }
.tag-out { background: #f1f3f5; color: #6b7480; }
.hot-row-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.hot-row-side .product-card-price strong { font-size: 22px; }
.hot-row-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* 热销榜单 */
.hot-rank { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; list-style: none; margin: 0; padding: 0; }
.hot-rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
.hot-rank-index {
    flex: 0 0 44px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: .5px;
}
.hot-rank-item.is-top .hot-rank-index { color: #fff; background: #98a3ad; border-radius: 8px; padding: 6px 0; font-size: 12px; }
.hot-rank-item.is-top:nth-child(1) .hot-rank-index { background: #d4a017; }
.hot-rank-item.is-top:nth-child(2) .hot-rank-index { background: #a8763f; }
.hot-rank-item.is-top:nth-child(3) .hot-rank-index { background: #8f6b4d; }
.hot-rank-media { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: #f2f4f6; }
.hot-rank-media img { width: 100%; height: 100%; object-fit: cover; }
.hot-rank-body { flex: 1; min-width: 0; }
.hot-rank-body h3 { margin: 0 0 4px; font-size: 14px; font-weight: 500; }
.hot-rank-body h3 a { color: var(--text); }
.hot-rank-body h3 a:hover { color: var(--brand); }
.hot-rank-note { margin: 4px 0 0; font-size: 12px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hot-rank-form { flex: 0 0 auto; margin: 0; }

/* 横向滑动 */
.hot-scroller-wrap { position: relative; }
.hot-scroller {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 14px;
    scrollbar-width: thin;
}
.hot-scroller-cell { flex: 0 0 220px; scroll-snap-align: start; }
.hot-scroller-cell .product-card { height: 100%; }
.hot-scroller-arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    z-index: 3;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow);
}
.hot-scroller-arrow:hover { color: var(--brand); border-color: var(--brand); }
.hot-scroller-arrow.prev { left: -12px; }
.hot-scroller-arrow.next { right: -12px; }
.hot-scroller-arrow[disabled] { opacity: .35; cursor: default; }

/* ------------------------------------------------------------
   二、整站版面
   ------------------------------------------------------------ */

/* ---------- 综合商城 marketplace ---------- */
body.layout-marketplace .container { width: min(1400px, calc(100% - 32px)); }
body.layout-marketplace .topbar { background: var(--brand); border-bottom: 0; color: rgba(255, 255, 255, .88); }
body.layout-marketplace .topbar a { color: #fff; }
body.layout-marketplace .topbar a:hover { color: #fff; text-decoration: underline; }
body.layout-marketplace .topbar .sep { color: rgba(255, 255, 255, .4); }
body.layout-marketplace .header-main { padding: 20px 0 16px; gap: 28px; }
body.layout-marketplace .brand-text strong { font-size: 22px; }
body.layout-marketplace .header-search { flex: 1 1 auto; max-width: 760px; border-radius: 6px; }
body.layout-marketplace .header-search input { padding: 12px 18px; font-size: 15px; }
body.layout-marketplace .header-search button { padding: 0 34px; font-size: 15px; }
body.layout-marketplace .header-cart { border-radius: 6px; padding: 10px 18px; font-weight: 500; }
body.layout-marketplace .main-nav { background: var(--brand); border-top: 0; box-shadow: var(--shadow); }
body.layout-marketplace .nav-inner { gap: 2px; }
body.layout-marketplace .nav-inner > a { color: rgba(255, 255, 255, .92); border-bottom: 0; border-radius: 6px; padding: 11px 14px; }
body.layout-marketplace .nav-inner > a:hover,
body.layout-marketplace .nav-inner > a.active { background: rgba(255, 255, 255, .16); color: #fff; }
body.layout-marketplace .nav-category-toggle { border-radius: 6px 0 0 6px; }
body.layout-marketplace .category-dropdown { border-radius: 0 0 10px 10px; }
body.layout-marketplace .product-grid { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
body.layout-marketplace .product-card { border: 1px solid var(--border); }
body.layout-marketplace .product-card:hover { border-color: var(--brand-2); transform: translateY(-2px); }
body.layout-marketplace .section-head h2 { font-size: 24px; }
body.layout-marketplace .site-footer { background: #16202a; }

.home-market { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 20px; }
.home-market-stage { min-width: 0; }
.home-market .home-carousel,
.home-market .hero { margin-top: 0; }
.home-rail {
    position: sticky;
    top: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 0 8px;
    box-shadow: var(--shadow);
}
.home-rail-title { margin: 0 16px 8px; font-size: 15px; font-weight: 600; }
.home-rail-list { list-style: none; margin: 0; padding: 0; }
.home-rail-item { padding: 6px 16px 8px; }
.home-rail-item + .home-rail-item { border-top: 1px solid var(--border); }
.home-rail-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text); font-size: 14px; font-weight: 500; }
.home-rail-link:hover { color: var(--brand); }
.home-rail-arrow { color: var(--muted); }
.home-rail-sub { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 4px; }
.home-rail-sub a { font-size: 12px; color: var(--muted); }
.home-rail-sub a:hover { color: var(--brand); }
.home-rail-empty { padding: 6px 0; }
.home-rail-all { display: block; margin: 10px 16px 4px; font-size: 13px; }

/* ---------- 极简留白 minimal ---------- */
body.layout-minimal { background: #fff; }
body.layout-minimal .container { width: min(1040px, calc(100% - 40px)); }
body.layout-minimal .topbar { display: none; }
body.layout-minimal .site-header { background: #fff; box-shadow: none; border-bottom: 1px solid var(--border); }
body.layout-minimal .header-main { padding: 26px 0; gap: 34px; }
body.layout-minimal .brand-mark { border-radius: 4px; }
body.layout-minimal .brand-text strong { font-weight: 500; letter-spacing: 3px; }
body.layout-minimal .header-search { border: 0; border-bottom: 1px solid #cfd6dd; border-radius: 0; max-width: 420px; }
body.layout-minimal .header-search input { background: transparent; padding: 8px 0; }
body.layout-minimal .header-search button { background: transparent; color: var(--text); padding: 0 8px; }
body.layout-minimal .header-search button:hover { background: transparent; color: var(--brand); }
body.layout-minimal .header-cart { border: 0; padding: 8px 0; }
body.layout-minimal .main-nav { background: #fff; border-top: 0; }
body.layout-minimal .nav-inner { gap: 24px; }
body.layout-minimal .nav-inner > a { border-bottom: 0; padding: 12px 0; font-size: 13px; letter-spacing: 1px; color: #4b5563; }
body.layout-minimal .nav-inner > a.active { color: var(--text); font-weight: 600; }
body.layout-minimal .nav-category-toggle { background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 0; padding: 10px 14px; }
body.layout-minimal .nav-category-toggle:hover { background: transparent; color: var(--brand); border-color: var(--brand); }
body.layout-minimal .category-dropdown { border-radius: 0; border: 1px solid var(--border); box-shadow: none; }
body.layout-minimal .hero { border-radius: 0; padding: 64px 0; background: #f7f8f9; color: var(--text); }
body.layout-minimal .hero h1 { font-weight: 500; letter-spacing: 4px; font-size: 34px; }
body.layout-minimal .hero-eyebrow,
body.layout-minimal .hero-sub { color: var(--muted); opacity: 1; }
body.layout-minimal .hero .btn-primary { background: var(--text); color: #fff; }
body.layout-minimal .hero .btn-primary:hover { background: #000; color: #fff; }
body.layout-minimal .home-carousel { border-radius: 0; box-shadow: none; }
body.layout-minimal .section { margin-top: 46px; }
body.layout-minimal .section-head { border-bottom: 1px solid var(--border); padding-bottom: 10px; }
body.layout-minimal .section-head h2 { padding-left: 0; font-size: 16px; font-weight: 500; letter-spacing: 3px; }
body.layout-minimal .section-head h2::before { display: none; }
body.layout-minimal .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 22px; }
body.layout-minimal .product-card { background: transparent; box-shadow: none; border-radius: 0; }
body.layout-minimal .product-card:hover { transform: none; box-shadow: none; }
body.layout-minimal .product-card-media { aspect-ratio: 4 / 5; border-radius: 0; background: #f4f5f6; }
body.layout-minimal .badge { border-radius: 0; padding: 2px 6px; }
body.layout-minimal .product-card-body { padding: 10px 0 0; gap: 4px; }
body.layout-minimal .product-card-body h3 { font-weight: 400; font-size: 13px; }
body.layout-minimal .product-card-price strong { color: var(--text); font-size: 15px; font-weight: 500; }
body.layout-minimal .product-card-form .btn { background: transparent; border: 1px solid var(--border); border-radius: 0; color: var(--muted); font-size: 12px; }
body.layout-minimal .product-card-form .btn:hover { border-color: var(--text); color: var(--text); background: transparent; }
body.layout-minimal .site-footer { background: #fff; color: var(--muted); border-top: 1px solid var(--border); }
body.layout-minimal .footer-col h4 { color: var(--text); font-weight: 500; letter-spacing: 2px; }
body.layout-minimal .footer-col p,
body.layout-minimal .footer-col a { color: var(--muted); }
body.layout-minimal .footer-bottom { border-top-color: var(--border); }
body.layout-minimal .hot-feature,
body.layout-minimal .hot-row,
body.layout-minimal .hot-rank-item { box-shadow: none; border-radius: 0; }
body.layout-minimal .hot-feature-media,
body.layout-minimal .hot-row-media,
body.layout-minimal .hot-rank-media { border-radius: 0; }

/* ---------- 杂志陈列 magazine ---------- */
body.layout-magazine { background: #f7f5f1; }
body.layout-magazine .container { width: min(1120px, calc(100% - 32px)); }
body.layout-magazine .topbar { background: #2b2622; border-bottom: 0; color: #b6ada2; }
body.layout-magazine .topbar a { color: #d8d1c7; }
body.layout-magazine .topbar .sep { color: #4a443d; }
body.layout-magazine .site-header { background: #fffdf9; box-shadow: none; border-bottom: 1px solid #e6e0d5; }
body.layout-magazine .brand-text strong { font-family: "Songti SC", "STSong", "SimSun", Georgia, serif; font-size: 24px; letter-spacing: 2px; }
body.layout-magazine .brand-text small { letter-spacing: 1px; color: #8d8477; }
body.layout-magazine .header-search { border-color: #2b2622; border-radius: 0; background: #fffdf9; }
body.layout-magazine .header-search button { background: #2b2622; }
body.layout-magazine .header-cart { border-radius: 0; border-color: #d9d2c6; }
body.layout-magazine .main-nav { background: #fffdf9; }
body.layout-magazine .nav-inner > a { border-bottom: 0; font-family: "Songti SC", "STSong", "SimSun", Georgia, serif; font-size: 16px; letter-spacing: 2px; }
body.layout-magazine .nav-inner > a.active { box-shadow: inset 0 -2px 0 #2b2622; color: #2b2622; border-bottom-color: transparent; }
body.layout-magazine .nav-category-toggle { background: #2b2622; border-radius: 0; }
body.layout-magazine .nav-category-toggle:hover { background: #443c34; }
body.layout-magazine .hero { border-radius: 0; background: #2b2622; padding: 68px 56px; }
body.layout-magazine .hero h1 { font-family: "Songti SC", "STSong", "SimSun", Georgia, serif; font-size: 44px; letter-spacing: 3px; }
body.layout-magazine .hero-media { border-radius: 0; }
body.layout-magazine .home-carousel { border-radius: 0; box-shadow: none; }
body.layout-magazine .section { margin-top: 44px; }
body.layout-magazine .section-head { display: block; border-bottom: 2px solid #2b2622; padding-bottom: 12px; }
body.layout-magazine .section-head h2 { padding-left: 0; font-size: 28px; font-family: "Songti SC", "STSong", "SimSun", Georgia, serif; letter-spacing: 2px; }
body.layout-magazine .section-head h2::before { display: none; }
body.layout-magazine .section-head a { float: right; margin-top: -32px; font-size: 13px; letter-spacing: 1px; }
body.layout-magazine .product-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
body.layout-magazine .product-card { background: #fffdf9; border: 1px solid #e6e0d5; border-radius: 0; box-shadow: none; }
body.layout-magazine .product-card:hover { box-shadow: 0 14px 30px rgba(43, 38, 34, .12); transform: translateY(-2px); }
body.layout-magazine .product-card-media { background: #efeae1; aspect-ratio: 3 / 4; }
body.layout-magazine .product-card-body h3 { font-family: "Songti SC", "STSong", "SimSun", Georgia, serif; font-size: 17px; font-weight: 400; }
body.layout-magazine .badge { border-radius: 0; }
body.layout-magazine .site-footer { background: #211d19; }
body.layout-magazine .hot-feature,
body.layout-magazine .hot-row,
body.layout-magazine .hot-rank-item { background: #fffdf9; border-color: #e6e0d5; border-radius: 0; box-shadow: none; }
body.layout-magazine .hot-feature-media,
body.layout-magazine .hot-row-media,
body.layout-magazine .hot-rank-media { background: #efeae1; border-radius: 0; }
body.layout-magazine .hot-feature-body h3 { font-family: "Songti SC", "STSong", "SimSun", Georgia, serif; font-weight: 400; }

/* ---------- 暗色精品 boutique ---------- */
body.layout-boutique {
    --bg: #0d1317;
    --surface: #151e24;
    --text: #e8eef2;
    --muted: #8ea0ad;
    --border: #26333b;
    --input-bg: #111a20;
    --input-border: #33454f;
    --brand-light: #1b262d;
    --shadow: 0 2px 14px rgba(0, 0, 0, .5);
    --shadow-lg: 0 18px 46px rgba(0, 0, 0, .6);
}
body.layout-boutique .container { width: min(1280px, calc(100% - 32px)); }
body.layout-boutique .topbar { background: #0a0f13; border-bottom-color: var(--border); color: var(--muted); }
body.layout-boutique .topbar a { color: #a9bac6; }
body.layout-boutique .main-nav,
body.layout-boutique .site-header,
body.layout-boutique .panel,
body.layout-boutique .table-wrap,
body.layout-boutique .product-detail,
body.layout-boutique .product-section,
body.layout-boutique .checkout-summary,
body.layout-boutique .empty-state,
body.layout-boutique .auth-panel,
body.layout-boutique .product-card,
body.layout-boutique .hot-feature,
body.layout-boutique .hot-row,
body.layout-boutique .hot-rank-item,
body.layout-boutique .header-search { background: var(--surface); }
body.layout-boutique .header-search input,
body.layout-boutique .panel,
body.layout-boutique .empty-state,
body.layout-boutique .product-detail,
body.layout-boutique .checkout-summary,
body.layout-boutique .auth-panel { color: var(--text); }
body.layout-boutique .table th,
body.layout-boutique .product-attributes th { background: #1a242b; color: var(--muted); }
body.layout-boutique .table td { border-bottom-color: var(--border); }
body.layout-boutique .table tbody tr:hover,
body.layout-boutique .qty-control button,
body.layout-boutique .btn { background: #22303a; color: var(--text); }
body.layout-boutique .btn { border-color: #2e3f49; }
body.layout-boutique .btn:hover { background: #2b3d48; color: var(--text); }
body.layout-boutique .btn-primary { background: var(--brand-2); color: #0b1114; }
body.layout-boutique .btn-primary:hover { background: var(--brand); color: #fff; }
body.layout-boutique .btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
body.layout-boutique .btn-outline:hover { color: var(--brand-2); border-color: var(--brand-2); }
body.layout-boutique .btn-block-disabled,
body.layout-boutique .product-card-form .btn { background: var(--brand-2); color: #0b1114; }
body.layout-boutique .qty-control button { color: var(--text); }
body.layout-boutique .product-card-media,
body.layout-boutique .hot-feature-media,
body.layout-boutique .hot-row-media,
body.layout-boutique .hot-rank-media,
body.layout-boutique .product-main-image,
body.layout-boutique .product-thumb { background: #1d272e; }
body.layout-boutique .product-thumb { color: var(--text); }
body.layout-boutique .product-card { border: 1px solid var(--border); }
body.layout-boutique .product-grid { grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); gap: 18px; }
body.layout-boutique .nav-inner > a { color: #b8c6d0; }
body.layout-boutique .nav-inner > a:hover,
body.layout-boutique .nav-inner > a.active,
body.layout-boutique .nav-inner .nav-home { color: var(--brand-2); }
body.layout-boutique .category-dropdown { background: var(--surface); border-color: var(--border); }
body.layout-boutique .category-dropdown-title,
body.layout-boutique .category-dropdown-group a { color: var(--text); }
body.layout-boutique .hero { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
body.layout-boutique .hero .btn-primary,
body.layout-boutique .btn-light { background: var(--brand-2); color: #0b1114; }
body.layout-boutique .alert-success { background: #10231c; color: #7fd4ab; border-color: #1d4636; }
body.layout-boutique .alert-error { background: #2a1618; color: #f0a4a0; border-color: #4d2429; }
body.layout-boutique .checkout-virtual-note,
body.layout-boutique .card-item { background: #1a242b; border-color: var(--border); }
body.layout-boutique .status-tag { background: #22303a; color: var(--brand-2); }
body.layout-boutique .tag-primary { background: #1b2a34; color: #7ab6e8; }
body.layout-boutique .tag-hot { background: #2c2318; color: var(--accent); }
body.layout-boutique .tag-ship { background: #16281d; color: #79c99a; }
body.layout-boutique .tag-out { background: #22282c; color: #98a5ae; }
body.layout-boutique .site-footer { background: #080d10; }
body.layout-boutique .footer-bottom { border-top-color: #1b2328; }
body.layout-boutique .section-head h2::before { background: var(--brand-2); }

/* ------------------------------------------------------------
   三、响应式收敛
   ------------------------------------------------------------ */
@media (max-width: 1000px) {
    .home-market { grid-template-columns: 1fr; }
    .home-rail { position: static; }
    body.layout-marketplace .header-search { max-width: none; }
    .hot-magazine { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hot-feature { grid-column: span 2; grid-row: auto; }
    .hot-rank { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .hot-row { flex-wrap: wrap; gap: 12px; }
    .hot-row-media { flex-basis: 92px; width: 92px; height: 92px; }
    .hot-row-side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
    .hot-scroller-cell { flex-basis: 168px; }
    .hot-scroller-arrow { display: none; }
}

/* ------------------------------------------------------------
   四、后台版面选择器
   ------------------------------------------------------------ */
.layout-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 14px; }
.layout-choice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.layout-choice:hover { border-color: var(--brand-2); }
.layout-choice:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-light); }
.layout-choice input { margin-top: 4px; accent-color: var(--brand); flex-shrink: 0; }
.layout-choice-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.layout-choice-text strong { font-size: 14px; }
.layout-choice-text small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.layout-preview,
.hot-preview {
    flex: 0 0 62px;
    height: 46px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #f5f7f9;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}
.layout-preview .lp-bar { height: 6px; border-radius: 2px; background: #1f7a5c; }
.layout-preview .lp-hero { height: 12px; border-radius: 2px; background: #cfe3da; }
.layout-preview .lp-cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; flex: 1; }
.layout-preview .lp-cells i { border-radius: 2px; background: #fff; border: 1px solid #e0e5ea; }
.layout-preview-classic .lp-bar { background: #eef1f4; }
.layout-preview-classic .lp-hero { background: #1f7a5c; }
.layout-preview-marketplace { background: #eef4fb; }
.layout-preview-marketplace .lp-bar { background: #1d63b8; }
.layout-preview-marketplace .lp-cells { grid-template-columns: repeat(5, 1fr); }
.layout-preview-minimal { background: #fff; }
.layout-preview-minimal .lp-bar { background: #fff; }
.layout-preview-minimal .lp-hero { background: #f2f4f6; height: 16px; }
.layout-preview-minimal .lp-cells i { border: 0; background: #f4f5f6; }
.layout-preview-magazine { background: #f7f5f1; }
.layout-preview-magazine .lp-bar { background: #2b2622; }
.layout-preview-magazine .lp-hero { background: #2b2622; }
.layout-preview-magazine .lp-cells i { background: #fffdf9; border-color: #e6e0d5; }
.layout-preview-boutique { background: #0d1317; border-color: #26333b; }
.layout-preview-boutique .lp-bar { background: #22303a; }
.layout-preview-boutique .lp-hero { background: #1f7a5c; }
.layout-preview-boutique .lp-cells i { background: #151e24; border-color: #26333b; }
.hot-preview { flex-basis: 76px; height: 50px; flex-direction: row; flex-wrap: wrap; align-content: flex-start; }
.hot-preview .hp-cell { width: 14px; height: 14px; border-radius: 2px; background: #fff; border: 1px solid #dbe2e8; }
.hot-preview .hp-big { width: 30px; height: 30px; background: var(--brand-light); border-color: var(--brand-2); }
.hot-preview-grid { justify-content: flex-start; }
.hot-preview-magazine .hp-cell:first-child { width: 34px; height: 34px; background: var(--brand); border-color: var(--brand); }
.hot-preview-list { flex-direction: column; flex-wrap: nowrap; gap: 3px; }
.hot-preview-list .hp-cell { width: auto; height: 8px; }
.hot-preview-rank .hp-cell { width: 10px; height: 20px; }
.hot-preview-rank .hp-cell:first-child { background: #d4a017; border-color: #d4a017; }
.hot-preview-scroller { flex-wrap: nowrap; align-items: center; }
.hot-preview-scroller .hp-cell { width: 11px; height: 26px; flex-shrink: 0; }

/* 后台工具栏：筛选日期、导出按钮 */
.toolbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-date { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.filter-date input[type="date"] { width: auto; min-width: 130px; }
.report-tabs a.report-export { margin-left: auto; background: var(--brand); color: #fff; }
.report-tabs a.report-export:hover { filter: brightness(.94); }
