/* ============================================================
   PC 商城公共头部（与首页保持一致）
   购物车、订单确认、支付等独立页面引用
   ============================================================ */
body {
    min-width: 1200px;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

/* ---------- 顶部信息栏 ---------- */
.topbar,
.mall-header {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

.topbar {
    height: 36px;
    background: #232323;
    color: #a9a9a9;
    font-size: 12px;
    line-height: 36px;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left {
    letter-spacing: .5px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-right a {
    color: #d7d7d7;
    transition: color .2s;
}

.topbar-right a:hover {
    color: #ffca28;
}

/* 旧页面样式表对 a:hover 统一加了亮度滤镜，头部的悬停效果与首页保持一致 */
.topbar a:hover,
.mall-header a:hover {
    filter: none;
}

.topbar-sep {
    margin: 0 6px;
    color: #555;
}

.user-area {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.user-area .user-name {
    color: #ffca28;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-link {
    padding-left: 22px;
    background: url("/static/pc/images/cart.svg") left center no-repeat;
    background-size: 15px 15px;
}

/* ---------- 头部 LOGO 与导航 ---------- */
.mall-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.header-main {
    height: 96px;
    display: flex;
    align-items: center;
}

.logo {
    display: block;
}

.logo img {
    display: block;
    width: 200px;
    height: 50px;
    object-fit: contain;
    border: 0;
}

.site-title {
    margin-left: 22px;
    padding-left: 22px;
    border-left: 1px solid #e8e8e8;
}

.site-title h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #b71c1c;
}

.site-title p {
    margin-top: 5px;
    font-size: 12px;
    color: #999;
    letter-spacing: 1px;
}

.header-badges {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.header-badges span {
    padding: 5px 14px;
    border: 1px solid #ead6d6;
    border-radius: 20px;
    color: #b76b6b;
    background: #fff9f9;
    font-size: 12px;
}

.mall-nav {
    height: 46px;
    background: linear-gradient(90deg, #9f1717 0%, #d32f2f 48%, #9f1717 100%);
}

.nav-inner {
    display: flex;
    align-items: stretch;
    height: 46px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 22px;
    color: #fff;
    font-size: 15px;
    letter-spacing: .5px;
    transition: background .2s, color .2s;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(0, 0, 0, .16);
    color: #ffd54f;
}

.nav-item.active::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 0;
    height: 2px;
    background: #ffd54f;
}
