/* ============================================
   Cart页面玻璃拟态样式覆盖
   按UI需求单实现
   ============================================ */

/* === 全局背景 ===
   已由 inc/site-header.php 的公共背景层（极光光斑 + 网格 + 噪点）统一提供，
   这里不再用 body{} 强行覆盖，否则会把全站背景压掉、跟首页不一致。
   页面主体统一包在 .srv-page 里，需要时按下面这条调。 */
.srv-page {
    position: relative;
    z-index: 1;
    min-height: 60vh;
}

/* === 旧版自写导航样式（导航已换成全站公共头部，以下规则不再命中，保留不影响） === */
.nav-wrap {
    background: linear-gradient(135deg, rgba(255,255,255,0.86), rgba(255,255,255,0.66)) !important;
    backdrop-filter: blur(24px) saturate(170%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(170%) !important;
    border-bottom: 1px solid rgba(255,255,255,0.9) !important;
    box-shadow: 0 4px 24px -8px rgba(28,52,120,0.10) !important;
}

.nav-logo {
    background: linear-gradient(135deg, #3355FF, #6D4BFF, #22C3E6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.nav-item > a {
    color: #3E4F70 !important;
    border-radius: 12px !important;
    transition: all 0.25s ease !important;
}
.nav-item > a:hover {
    color: #3355FF !important;
    background: rgba(51,85,255,0.08) !important;
}

/* === 登录/注册按钮 === */
.btn-login {
    color: #3E4F70 !important;
    border-radius: 12px !important;
    padding: 8px 20px !important;
    transition: all 0.25s ease !important;
}
.btn-login:hover {
    background: rgba(51,85,255,0.08) !important;
    color: #3355FF !important;
}

.btn-register {
    background: linear-gradient(135deg, #3355FF, #6D4BFF, #22C3E6) !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 8px 20px !important;
    box-shadow: 0 6px 16px -4px rgba(51,85,255,0.4) !important;
    transition: all 0.25s ease !important;
}
.btn-register:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 20px -4px rgba(51,85,255,0.5) !important;
}

/* === 产品分类标签 === */
.category-tabs .tab-item,
.product-category .cat-item {
    background: rgba(255,255,255,0.7) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255,255,255,0.8) !important;
    border-radius: 14px !important;
    color: #3E4F70 !important;
    transition: all 0.25s ease !important;
}
.category-tabs .tab-item.active,
.category-tabs .tab-item:hover,
.product-category .cat-item.active,
.product-category .cat-item:hover {
    background: linear-gradient(135deg, #3355FF, #6D4BFF) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 6px 16px -4px rgba(51,85,255,0.4) !important;
}

/* === 产品系列标签 === */
.product-series .series-item {
    background: rgba(255,255,255,0.6) !important;
    border: 1px solid rgba(196,208,232,0.4) !important;
    border-radius: 12px !important;
    color: #3E4F70 !important;
}
.product-series .series-item.active {
    background: linear-gradient(135deg, rgba(51,85,255,0.1), rgba(109,75,255,0.1)) !important;
    border-color: rgba(51,85,255,0.3) !important;
    color: #3355FF !important;
    font-weight: 600 !important;
}

/* === 产品卡片：磨砂玻璃 === */
.product-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.86), rgba(255,255,255,0.66)) !important;
    backdrop-filter: blur(24px) saturate(170%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(170%) !important;
    border: 1px solid rgba(255,255,255,0.9) !important;
    border-radius: 24px !important;
    box-shadow: 0 12px 32px -10px rgba(28,52,120,0.12) !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
}
.product-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 40px -12px rgba(28,52,120,0.18) !important;
    border-color: rgba(51,85,255,0.2) !important;
}

.product-card-head {
    border-bottom: 1px solid rgba(196,208,232,0.3) !important;
    padding: 20px !important;
}

.product-card-title {
    color: #16243F !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}

.product-card-specs {
    padding: 16px 20px !important;
}
.product-card-specs li {
    color: #3E4F70 !important;
    font-size: 13px !important;
}

.product-card-foot {
    padding: 16px 20px 20px !important;
    border-top: 1px solid rgba(196,208,232,0.3) !important;
}

/* === 价格 === */
.product-price-symbol {
    color: #3355FF !important;
    font-weight: 600 !important;
}
.product-price-num {
    color: #3355FF !important;
    font-weight: 800 !important;
    font-size: 28px !important;
    background: linear-gradient(135deg, #3355FF, #6D4BFF) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}
.product-price-unit {
    color: #7C8BA8 !important;
    font-size: 13px !important;
}

/* === 立即选购按钮：渐变 === */
.product-buy-btn {
    background: linear-gradient(135deg, #3355FF, #6D4BFF, #22C3E6) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 10px 24px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    box-shadow: 0 8px 20px -6px rgba(51,85,255,0.45) !important;
    transition: all 0.25s ease !important;
}
.product-buy-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 28px -6px rgba(51,85,255,0.55) !important;
    color: #fff !important;
}

/* === 下拉菜单：磨砂玻璃 === */
.nav-wrap .nav-links .nav-item .dropdown-menu {
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.80)) !important;
    backdrop-filter: blur(24px) saturate(170%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(170%) !important;
    border: 1px solid rgba(255,255,255,0.9) !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 40px -10px rgba(28,52,120,0.18) !important;
    padding: 12px !important;
}
.nav-wrap .nav-links .nav-item .dropdown-menu a {
    color: #3E4F70 !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    transition: all 0.2s ease !important;
}
.nav-wrap .nav-links .nav-item .dropdown-menu a:hover {
    background: rgba(51,85,255,0.08) !important;
    color: #3355FF !important;
}

/* === 页脚 === */
.footer, footer {
    background: linear-gradient(135deg, rgba(255,255,255,0.86), rgba(255,255,255,0.66)) !important;
    backdrop-filter: blur(24px) !important;
    border-top: 1px solid rgba(255,255,255,0.9) !important;
    color: #3E4F70 !important;
}

/* === 文字颜色统一 === */
h1, h2, h3, h4, h5, h6 {
    color: #16243F !important;
}
p, span, li, td, th {
    color: #3E4F70;
}
.text-muted, .muted {
    color: #7C8BA8 !important;
}
