/* ============================================================
   皮肤：amber「暖阳橙」
   个性：白色顶栏 + 暖米色底 + 浅色门面（橙色数字块、虚线串起来的步骤）+
         胶囊式分类自动换行（分类多了就多几行，不用横向拖）
   ============================================================ */
html[data-skin="amber"] {
    --bx-primary: #ea580c;
    --bx-primary-dark: #c2410c;
    --bx-primary-soft: #fff7ed;
    --bx-ink: #1c1917;
    --bx-text: #44403c;
    --bx-muted: #78716c;
    --bx-line: #efe5d8;
    --bx-bg: #faf6f0;
    --bx-radius: 10px;
    --primary-blue: #ea580c;
    --primary-blue-dark: #c2410c;
    --pf-accent: #ea580c;
    --pf-accent-dark: #c2410c;
    --pf-accent-soft: #fff7ed;
    --pf-accent-line: #fdba74;
    --pf-ico-bg: #fff1e3;
    --pf-ink: #1c1917;
    --pf-muted: #78716c;
    --pf-line: #efe5d8;
    --pf-card: #fff;
    --pf-radius: 18px;
    --pf-radius-sm: 12px;
    --pf-price: #c2410c;
    --pf-hero-bg: linear-gradient(135deg, #fffaf3 0%, #ffedd5 100%);
    --pf-hero-ink: #431407;
    --pf-hero-dim: rgba(67, 20, 7, .66);
    --pf-hero-glass: #fff;
    --pf-hero-glass-line: #fde0c2;
    --pf-hero-price: #ea580c;
    --pf-hero-orb: radial-gradient(circle, rgba(251, 146, 60, .35), rgba(251, 146, 60, 0) 70%);
    --pf-badge-bg: #ea580c;
    --pf-badge-ink: #fff;
    --pf-step-dot: #ea580c;
    --pf-step-dot-ink: #fff;
}

/* ---------------- 顶栏：白底深字 ---------------- */
html[data-skin="amber"] .site-header,
html[data-skin="amber"] .site-header.scrolled {
    background: #fff !important;
    border-bottom: 1px solid #efe5d8 !important;
    box-shadow: 0 2px 12px rgba(67, 20, 7, .05) !important;
}
html[data-skin="amber"] .site-header .logo-text,
html[data-skin="amber"] .header-logo .logo-text,
html[data-skin="amber"] .header-logo:hover .logo-text {
    color: #1c1917 !important;
    -webkit-text-fill-color: #1c1917 !important;
    text-transform: none !important;
    letter-spacing: .01em !important;
}
html[data-skin="amber"] .site-header .logo-text::before {
    content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%;
    background: #ea580c; margin-right: 8px; vertical-align: middle; position: relative; top: -2px;
}
html[data-skin="amber"] .site-header .header-action-link,
html[data-skin="amber"] .site-header .header-username { color: #57534e !important; }
html[data-skin="amber"] .site-header .header-action-link:hover { color: #c2410c !important; background: #fff7ed !important; }
html[data-skin="amber"] .site-header .search-input {
    background: #f6f1ea !important;
    color: #1c1917 !important;
    border: 1px solid #efe5d8 !important;
}
html[data-skin="amber"] .site-header .search-input::placeholder { color: #a8a29e !important; }
html[data-skin="amber"] .site-header .search-input:focus { background: #fff !important; border-color: #ea580c !important; }
html[data-skin="amber"] .site-header .search-btn { background: #ea580c !important; }

/* 通用页头（平台专页 / 公告页等用的 .header-bar）同样改白底，与首页一致 */
html[data-skin="amber"] .header-bar {
    background: #fff !important;
    border-bottom: 1px solid #efe5d8 !important;
    box-shadow: 0 2px 12px rgba(67, 20, 7, .05) !important;
}
html[data-skin="amber"] .header-bar a { color: #57534e !important; }
html[data-skin="amber"] .header-bar a:hover { background: #fff7ed !important; color: #c2410c !important; }
html[data-skin="amber"] .header-bar .logo-text { color: #1c1917 !important; -webkit-text-fill-color: #1c1917 !important; text-transform: none !important; }
html[data-skin="amber"] .header-bar .logo-text::before {
    content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%;
    background: #ea580c; margin-right: 8px; vertical-align: middle; position: relative; top: -2px;
}
html[data-skin="amber"] .header-bar .hb-user { color: #1c1917 !important; background: #fff1e3; }

html[data-skin="amber"] .sub-nav { background: #fffaf3 !important; border-color: #efe5d8 !important; }
html[data-skin="amber"] .sub-nav-link { color: #57534e !important; }
html[data-skin="amber"] .sub-nav-link:hover,
html[data-skin="amber"] .sub-nav-link.active { color: #c2410c !important; border-bottom-color: #ea580c !important; }
html[data-skin="amber"] .notice-bar { background: #fff7ed !important; border-color: #fed7aa !important; color: #9a3412 !important; }

/* ---------------- 门面：浅色 + 数字块 + 虚线步骤 ---------------- */
html[data-skin="amber"] .pfhero-inner { border: 1px solid #fde0c2; padding: 34px 36px; }
html[data-skin="amber"] .pfhero-inner::after { top: auto; bottom: -140px; right: -90px; width: 380px; height: 380px; }
html[data-skin="amber"] .pfhero-badge { font-weight: 700; letter-spacing: .03em; }
html[data-skin="amber"] .pfhero-title { font-size: 2rem; color: #1c1917; }
html[data-skin="amber"] .pfhero-stats { gap: 10px; }
html[data-skin="amber"] .pfhero-stat {
    background: #fff;
    border: 1px solid #fde0c2;
    border-radius: 14px;
    padding: 12px 20px;
    min-width: 120px;
    box-shadow: 0 4px 14px rgba(234, 88, 12, .06);
}
html[data-skin="amber"] .pfhero-stat b { color: #c2410c; }
html[data-skin="amber"] .pfhero-stat span { color: #78716c; }
html[data-skin="amber"] .pfhero-steps { gap: 14px; }
html[data-skin="amber"] .pfhero-steps::before {
    content: ''; position: absolute; left: 28px; top: 22px; bottom: 22px;
    border-left: 2px dashed #fdba74; z-index: 0;
}
html[data-skin="amber"] .pfhero-steps li {
    position: relative; z-index: 1;
    box-shadow: 0 6px 18px rgba(67, 20, 7, .06);
    border-radius: 14px;
    color: #1c1917;
}
html[data-skin="amber"] .pfhero-steps span { width: 26px; height: 26px; }

/* ---------------- 分类：胶囊自动换行 ---------------- */
html[data-skin="amber"] .pfhero-grid-wrap { border-color: #efe5d8; }
html[data-skin="amber"] .pfhero-grid { display: flex; flex-wrap: wrap; gap: 10px; }
html[data-skin="amber"] .pfhero-card {
    border-radius: 999px;
    padding: 5px 12px 5px 5px;
    gap: 8px;
    border-color: #efe5d8;
    background: #fff;
}
html[data-skin="amber"] .pfhero-card:hover { transform: none; box-shadow: 0 4px 12px rgba(234, 88, 12, .12); border-color: #fdba74; }
html[data-skin="amber"] .pfhero-ico { width: 30px; height: 30px; border-radius: 50%; font-size: .85rem; }
html[data-skin="amber"] .pfhero-ico.is-img { border-color: #f3e8da; }
html[data-skin="amber"] .pfhero-card-txt { display: flex; align-items: center; gap: 7px; }
html[data-skin="amber"] .pfhero-card-name { font-size: .88rem; }
html[data-skin="amber"] .pfhero-card-num {
    background: #fff1e3; color: #c2410c; border-radius: 999px; padding: 1px 8px; font-size: .72rem; font-weight: 700;
}
html[data-skin="amber"] .pfhero-card-num em { display: none; }
html[data-skin="amber"] .pfhero-card.active { background: #ea580c; border-color: #ea580c; box-shadow: 0 6px 16px rgba(234, 88, 12, .28); }
html[data-skin="amber"] .pfhero-card.active .pfhero-card-name { color: #fff; }
html[data-skin="amber"] .pfhero-card.active .pfhero-card-num { background: rgba(255, 255, 255, .22); color: #fff; }
html[data-skin="amber"] .pfhero-card.active .pfhero-ico:not(.is-img) { background: rgba(255, 255, 255, .22); color: #fff; }
html[data-skin="amber"] .pfhero-all .pfhero-ico { background: #ea580c; color: #fff; }
html[data-skin="amber"] .pfhero-more { border-radius: 999px; }

/* ---------------- 商品清单 ---------------- */
html[data-skin="amber"] .products-header { border-bottom: 2px solid #ea580c !important; }
html[data-skin="amber"] .products-header-title { text-transform: none !important; }
html[data-skin="amber"] .products-header-title i { color: #ea580c !important; }
html[data-skin="amber"] .product-list-card { border-radius: 0 0 14px 14px !important; border-color: #efe5d8 !important; }
html[data-skin="amber"] .product-card:hover { background: #fffaf3 !important; }
html[data-skin="amber"] .card-price-value { color: #c2410c !important; }
html[data-skin="amber"] .stock-meter { border-radius: 999px !important; background: #f3e8da !important; }
html[data-skin="amber"] .stock-meter-fill { border-radius: 999px !important; background: #fb923c !important; }
html[data-skin="amber"] .sort-btn { border-radius: 999px !important; }

html[data-skin="amber"] .site-footer { background: #fffaf3 !important; border-top-color: #efe5d8 !important; }
html[data-skin="amber"] .site-footer a.ft-chip:hover { box-shadow: 0 8px 20px rgba(234, 88, 12, .14) !important; }
html[data-skin="amber"] .layui-nav-tree .layui-this a { background: rgba(234, 88, 12, .25) !important; }
html[data-skin="amber"] .layui-input:focus,
html[data-skin="amber"] .layui-textarea:focus { box-shadow: 0 0 0 3px rgba(234, 88, 12, .14) !important; }
html[data-skin="amber"] .header-bar .hb-user { background: rgba(234, 88, 12, .3); }
html[data-skin="amber"] .sidebar-body .amount-row { border-color: #fed7aa !important; }

@media (max-width: 640px) {
    html[data-skin="amber"] .pfhero-inner { padding: 24px 18px; }
    html[data-skin="amber"] .pfhero-title { font-size: 1.45rem; }
    html[data-skin="amber"] .pfhero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    html[data-skin="amber"] .pfhero-stat { min-width: 0; padding: 10px 12px; }
    html[data-skin="amber"] .pfhero-steps::before { display: none; }
    html[data-skin="amber"] .pfhero-grid { gap: 7px 6px; }
    html[data-skin="amber"] .pfhero-card { padding: 3px 8px 3px 3px; gap: 5px; }
    html[data-skin="amber"] .pfhero-ico { width: 24px; height: 24px; font-size: .75rem; }
    html[data-skin="amber"] .pfhero-card-txt { gap: 5px; }
    html[data-skin="amber"] .pfhero-card-name { font-size: .8rem; max-width: 7.2em; }
    html[data-skin="amber"] .pfhero-card-num { padding: 0 6px; font-size: .68rem; }
    /* 胶囊很矮，手机上多露几个 */
    html[data-skin="amber"] .pfhero-grid.is-collapsed > .pfhero-card:nth-child(n+9):nth-child(-n+12) { display: flex; }
}
