/* ============================================================
   皮肤：violet「星夜紫」
   个性：深紫渐变顶栏 + 居中大标题门面 + 玻璃质感数据块 +
         图标在上的方块分类（选中是紫粉渐变）+ 大圆角
   ============================================================ */
html[data-skin="violet"] {
    /* branch.css 的全站变量 */
    --bx-primary: #7c3aed;
    --bx-primary-dark: #6d28d9;
    --bx-primary-soft: #f5f3ff;
    --bx-ink: #1e1b4b;
    --bx-text: #3f3d56;
    --bx-muted: #6b7280;
    --bx-line: #ebe7f5;
    --bx-bg: #f6f4fb;
    --bx-radius: 12px;
    /* 站点原有主色变量（平台页等模板在用） */
    --primary-blue: #7c3aed;
    --primary-blue-dark: #6d28d9;
    /* 首页组件 */
    --pf-accent: #7c3aed;
    --pf-accent-dark: #5b21b6;
    --pf-accent-soft: rgba(124, 58, 237, .08);
    --pf-accent-line: rgba(124, 58, 237, .35);
    --pf-ico-bg: linear-gradient(135deg, rgba(124, 58, 237, .14), rgba(219, 39, 119, .12));
    --pf-ink: #1e1b4b;
    --pf-muted: #6b7280;
    --pf-line: #ebe7f5;
    --pf-card: #fff;
    --pf-radius: 20px;
    --pf-radius-sm: 14px;
    --pf-price: #db2777;
    --pf-hero-bg:
        radial-gradient(circle at 12% 18%, rgba(236, 72, 153, .38), transparent 38%),
        radial-gradient(circle at 88% 85%, rgba(139, 92, 246, .6), transparent 42%),
        linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #4c1d95 100%);
    --pf-hero-ink: #fff;
    --pf-hero-dim: rgba(237, 233, 254, .78);
    --pf-hero-glass: rgba(255, 255, 255, .08);
    --pf-hero-glass-line: rgba(255, 255, 255, .16);
    --pf-hero-price: #f9a8d4;
    --pf-badge-bg: rgba(255, 255, 255, .12);
    --pf-badge-ink: #e9d5ff;
    --pf-step-dot: linear-gradient(135deg, #8b5cf6, #ec4899);
    --pf-step-dot-ink: #fff;
}

/* ---------------- 顶栏 ---------------- */
html[data-skin="violet"] .site-header,
html[data-skin="violet"] .site-header.scrolled {
    background: linear-gradient(90deg, #1e1b4b 0%, #2e1065 60%, #4a044e 100%) !important;
    border-bottom: none !important;
    box-shadow: 0 6px 24px rgba(30, 27, 75, .18) !important;
}
html[data-skin="violet"] .site-header .search-input {
    border-radius: 999px 0 0 999px !important;
    background: rgba(255, 255, 255, .1) !important;
    padding-left: 18px !important;
}
html[data-skin="violet"] .site-header .search-btn {
    border-radius: 0 999px 999px 0 !important;
    background: linear-gradient(90deg, #7c3aed, #db2777) !important;
    padding: 0 20px !important;
}
html[data-skin="violet"] .site-header .search-btn:hover { filter: brightness(1.08); }
html[data-skin="violet"] .site-header .logo-text { letter-spacing: .02em !important; text-transform: none !important; }
html[data-skin="violet"] .site-header .header-action-link { border-radius: 999px !important; }

html[data-skin="violet"] .sub-nav { background: #fff !important; border-bottom-color: #ebe7f5 !important; }
html[data-skin="violet"] .sub-nav-link { border-bottom: none !important; border-radius: 999px !important; }
html[data-skin="violet"] .sub-nav-link:hover,
html[data-skin="violet"] .sub-nav-link.active { background: #f5f3ff !important; }
html[data-skin="violet"] #homePromoEntry { border-radius: 999px !important; background: linear-gradient(90deg, #7c3aed, #db2777) !important; }
html[data-skin="violet"] .notice-bar { border-color: #ddd6fe !important; color: #5b21b6 !important; border-radius: 12px !important; }

/* ---------------- 门面：居中大标题 + 玻璃数据块 ---------------- */
html[data-skin="violet"] .pfhero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 46px 32px 32px;
    gap: 26px;
    box-shadow: 0 20px 50px rgba(49, 46, 129, .25);
}
html[data-skin="violet"] .pfhero-inner::after { display: none; }
html[data-skin="violet"] .pfhero-copy { display: flex; flex-direction: column; align-items: center; }
html[data-skin="violet"] .pfhero-title {
    font-size: 2.4rem;
    letter-spacing: .02em;
    text-shadow: 0 4px 30px rgba(236, 72, 153, .35);
}
html[data-skin="violet"] .pfhero-sub { font-size: 1.02rem; margin-bottom: 24px; }
html[data-skin="violet"] .pfhero-stats { justify-content: center; gap: 12px; }
html[data-skin="violet"] .pfhero-stat {
    min-width: 138px;
    padding: 14px 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
html[data-skin="violet"] .pfhero-stat b { font-size: 1.6rem; }
html[data-skin="violet"] .pfhero-steps { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 10px; }
html[data-skin="violet"] .pfhero-steps li { min-width: 0; border-radius: 999px; padding: 7px 18px 7px 7px; }
html[data-skin="violet"] .pfhero-steps span { width: 28px; height: 28px; }

/* ---------------- 分类：图标在上的方块 ---------------- */
html[data-skin="violet"] .pfhero-grid-wrap { box-shadow: 0 10px 30px rgba(30, 27, 75, .05); border-color: #efeaf8; }
html[data-skin="violet"] .pfhero-grid { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px; }
html[data-skin="violet"] .pfhero-card {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 16px 8px 12px;
    border-radius: 18px;
    border-color: #efeaf8;
}
html[data-skin="violet"] .pfhero-card:hover { border-color: #c4b5fd; box-shadow: 0 12px 26px rgba(124, 58, 237, .14); transform: translateY(-3px); }
html[data-skin="violet"] .pfhero-ico { width: 50px; height: 50px; border-radius: 50%; font-size: 1.3rem; }
html[data-skin="violet"] .pfhero-ico.is-img { border: 2px solid #f1ecfb; }
html[data-skin="violet"] .pfhero-card-txt { width: 100%; }
html[data-skin="violet"] .pfhero-card-name {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: .84rem;
    line-height: 1.3;
    min-height: 2.6em;
}
html[data-skin="violet"] .pfhero-card-num em { display: none; }
html[data-skin="violet"] .pfhero-card.active {
    background: linear-gradient(160deg, #7c3aed 0%, #c026d3 100%);
    border-color: transparent;
    box-shadow: 0 12px 26px rgba(124, 58, 237, .3);
}
html[data-skin="violet"] .pfhero-card.active .pfhero-card-name,
html[data-skin="violet"] .pfhero-card.active .pfhero-card-num { color: #fff; }
html[data-skin="violet"] .pfhero-card.active .pfhero-ico { background: rgba(255, 255, 255, .2); color: #fff; }
html[data-skin="violet"] .pfhero-all .pfhero-ico { background: linear-gradient(135deg, #f472b6, #8b5cf6); color: #fff; }

/* ---------------- 商品清单 ---------------- */
html[data-skin="violet"] .products-header { border-bottom: none !important; padding-bottom: .4rem !important; }
html[data-skin="violet"] .products-header-title { text-transform: none !important; letter-spacing: .01em !important; }
html[data-skin="violet"] .products-header-title i {
    color: #fff !important;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    width: 30px; height: 30px; border-radius: 10px;
    display: inline-flex !important; align-items: center; justify-content: center;
    font-size: .85rem !important; margin-right: 6px;
}
html[data-skin="violet"] .product-list-card {
    border-radius: 18px !important;
    border-color: #efeaf8 !important;
    box-shadow: 0 10px 30px rgba(30, 27, 75, .05) !important;
}
html[data-skin="violet"] .product-card { position: relative; }
html[data-skin="violet"] .product-card:hover { background: #faf8ff !important; }
html[data-skin="violet"] .product-card:hover::before {
    content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px;
    border-radius: 0 3px 3px 0; background: linear-gradient(#7c3aed, #db2777);
}
html[data-skin="violet"] .card-price-value { color: #7c3aed !important; }
html[data-skin="violet"] .stock-meter { border-radius: 999px !important; background: #efeaf8 !important; }
html[data-skin="violet"] .stock-meter-fill { border-radius: 999px !important; background: linear-gradient(90deg, #8b5cf6, #ec4899) !important; }
html[data-skin="violet"] .sort-btn { border-radius: 999px !important; }

/* ---------------- 其余硬编码青色 ---------------- */
html[data-skin="violet"] .product-card:hover { box-shadow: none !important; }
html[data-skin="violet"] .site-footer a.ft-chip:hover { box-shadow: 0 8px 20px rgba(124, 58, 237, .14) !important; }
html[data-skin="violet"] .layui-nav-tree .layui-this a { background: rgba(124, 58, 237, .25) !important; }
html[data-skin="violet"] .layui-input:focus,
html[data-skin="violet"] .layui-textarea:focus { box-shadow: 0 0 0 3px rgba(124, 58, 237, .14) !important; }
html[data-skin="violet"] .header-bar .hb-user { background: rgba(124, 58, 237, .3); }
html[data-skin="violet"] .sidebar-body .amount-row { border-color: #ddd6fe !important; }

/* 通用页头（平台专页等）与首页顶栏一致 */
html[data-skin="violet"] .header-bar { background: linear-gradient(90deg, #1e1b4b 0%, #2e1065 60%, #4a044e 100%) !important; border-bottom: none !important; }
html[data-skin="violet"] .header-bar .logo-text { text-transform: none !important; letter-spacing: .02em !important; }

@media (max-width: 640px) {
    html[data-skin="violet"] .pfhero-inner { padding: 28px 16px 22px; gap: 18px; }
    html[data-skin="violet"] .pfhero-title { font-size: 1.55rem; }
    html[data-skin="violet"] .pfhero-sub { font-size: .88rem; margin-bottom: 16px; }
    html[data-skin="violet"] .pfhero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
    html[data-skin="violet"] .pfhero-stat { min-width: 0; padding: 10px 8px; }
    html[data-skin="violet"] .pfhero-stat b { font-size: 1.2rem; }
    html[data-skin="violet"] .pfhero-steps { flex-wrap: nowrap; justify-content: flex-start; width: 100%; }
    html[data-skin="violet"] .pfhero-steps li { min-width: 0; }
    html[data-skin="violet"] .pfhero-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    html[data-skin="violet"] .pfhero-card { padding: 12px 4px 10px; gap: 6px; border-radius: 14px; }
    html[data-skin="violet"] .pfhero-ico { width: 40px; height: 40px; font-size: 1.05rem; }
    html[data-skin="violet"] .pfhero-card-name { font-size: .78rem; }
    /* 三列时露 9 个正好三行 */
    html[data-skin="violet"] .pfhero-grid.is-collapsed > .pfhero-card:nth-child(9) { display: flex; }
    html[data-skin="violet"] .product-list-card { border-radius: 14px !important; }
}
