/* ============================================================
   AMEI6 自定义主题层 — 覆盖 unicorn 默认样式
   ============================================================ */

:root {
    --brand-1: #4f6ef7;
    --brand-2: #8b5cf6;
    --ink: #1f2333;
    --muted: #8a90a6;
    --surface: #f5f6fb;
}

body {
    background: var(--surface);
    color: var(--ink);
}

/* ---------- 顶部导航 ---------- */
.header {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 2px 16px rgba(31, 35, 51, .06);
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: .5px;
    background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--ink);
    border-radius: 8px;
    padding: .45rem .9rem !important;
    transition: all .2s ease;
}

.navbar .nav-link:hover {
    color: var(--brand-1);
    background: rgba(79, 110, 247, .08);
}

.navbar .nav-link.active {
    color: #fff !important;
    background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
    box-shadow: 0 4px 12px rgba(79, 110, 247, .35);
}

.search-form .form-control {
    border: 1px solid #e3e6f0;
    border-radius: 999px;
    padding-left: 1rem;
    background: #f7f8fc;
}

.search-form .form-control:focus {
    border-color: var(--brand-1);
    box-shadow: 0 0 0 .2rem rgba(79, 110, 247, .12);
    background: #fff;
}

.btn-search {
    border-radius: 999px !important;
    background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
    color: #fff;
    padding: .25rem .8rem !important;
}

/* ---------- 公告/须知横幅（PcStore 风格） ---------- */
.hero-banner { margin-top: 1.25rem; }

.hero-banner .panel {
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(31, 35, 51, .06);
    overflow: hidden;
    height: 100%;
}

.hero-banner .panel-title {
    font-weight: 700;
    font-size: .95rem;
    padding: .7rem 1.1rem;
    background: linear-gradient(90deg, rgba(79, 110, 247, .10), rgba(139, 92, 246, .08));
    border-bottom: 1px solid #eef0f7;
    color: var(--ink);
}

.hero-banner .panel-body {
    padding: .85rem 1.1rem;
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.7;
    word-break: break-word;
}

.hero-banner .panel-body b { color: #e64340; }

/* ---------- 公告横幅（旧结构兜底） ---------- */
.notice .card {
    border: 0;
    border-radius: 16px;
    background: linear-gradient(120deg, #eef1ff, #f6f0ff);
    box-shadow: 0 4px 20px rgba(79, 110, 247, .08);
}

.notice .card-body { padding: 1rem 1.25rem; }

.notice h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-1);
    margin-bottom: .35rem;
}

.notice .lead { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- 主标题区 ---------- */
.category h3 {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--ink);
    letter-spacing: 1px;
}

.category .separator {
    width: 56px;
    height: 4px;
    border-radius: 4px;
    margin: .8rem auto;
    background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
    border: 0;
}

.category .lead { color: var(--muted); font-size: .95rem; }

/* ---------- 分类胶囊按钮 ---------- */
.category-menus .btn {
    border-radius: 999px;
    border: 1px solid #dfe3ef;
    color: var(--ink);
    background: #fff;
    padding: .42rem 1.2rem;
    font-weight: 500;
    transition: all .2s ease;
}

.category-menus .btn:hover {
    border-color: var(--brand-1);
    color: var(--brand-1);
    transform: translateY(-1px);
}

.category-menus .btn.active {
    background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(79, 110, 247, .35);
}

/* ---------- 商品卡片 ---------- */
.goods .card {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(31, 35, 51, .05);
    transition: transform .22s ease, box-shadow .22s ease;
}

.goods .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(31, 35, 51, .13);
}

.goods .card-img-top {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f2f3f9;
}

.goods .card-title {
    font-weight: 600;
    color: var(--ink);
    font-size: .92rem;
}

.goods .goods-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.goods .goods-meta .stock { font-size: .78rem; }

.goods .badge {
    border-radius: 8px 0 10px 0;
    font-weight: 500;
}

.goods .btn-outline-success {
    color: #e64340;
    border-color: #ffd9d8;
    background: #fff5f5;
    border-radius: 999px;
    font-weight: 700;
}

.goods .btn-primary {
    background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
    border: 0;
    border-radius: 999px;
    padding: .3rem 1rem;
    box-shadow: 0 4px 12px rgba(79, 110, 247, .3);
    transition: filter .2s ease;
}

.goods .btn-primary:hover { filter: brightness(1.08); }

/* ---------- 页脚 ---------- */
.footer {
    background: transparent;
    color: var(--muted);
    font-size: .82rem;
    padding-bottom: 2rem !important;
}

/* ---------- 移动端微调 ---------- */
@media (max-width: 767px) {
    .brand-name { font-size: 1.1rem; }
    .category h3 { font-size: 1.25rem; }
}
