/* ===== Grand 经典大气商城全局主题 =====
   主色：深邃蓝 #0F2D6B
   点缀：香槟金 #C9A227
   风格：三栏布局 · 数据感 · 商务大气
*/

:root {
    --gr-primary: #0F2D6B;
    --gr-primary-dark: #0f172a;
    --gr-primary-light: #1e3a5f;
    --gr-gold: #C9A227;
    --gr-gold-light: #e8c547;
    --gr-text: #1a1a2e;
    --gr-text-secondary: #475569;
    --gr-text-muted: #94A3B8;
    --gr-border: #E2E8F0;
    --gr-bg: #f6f6f6;
    --gr-surface: #FFFFFF;
    --gr-radius: 12px;
    --gr-radius-lg: 16px;
    --gr-gold-gradient: linear-gradient(135deg, #92710a 0%, #C9A227 50%, #e8c547 100%);
    --gr-navy-gradient: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0F2D6B 100%);
    --gr-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --gr-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    --gr-shadow-md: 0 12px 40px rgba(15, 45, 107, 0.12);
}

.theme-grand body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--gr-bg);
    color: var(--gr-text);
}

.theme-grand .shop-page {
    min-height: 60vh;
}

.theme-grand .shop-container {
    max-width: 1320px;
}

/* ===== 顶部工具条 ===== */
.theme-grand .top-bar {
    background: var(--gr-primary-dark);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-grand .top-bar a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.2s var(--gr-ease);
}

.theme-grand .top-bar a:hover {
    color: var(--gr-gold-light);
}

.theme-grand .top-bar .sep {
    color: rgba(255, 255, 255, 0.2);
}

.theme-grand .top-bar-announce i {
    color: var(--gr-gold);
}

.theme-grand .agent-home-tip--float {
    background: linear-gradient(180deg, #f8f9fb 0%, #eef1f5 100%);
    border-bottom-color: #dde3ec;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.07);
}

.theme-grand .agent-home-tip-text strong {
    color: var(--gr-primary-dark);
}

.theme-grand .agent-home-tip-slogan {
    color: #dc2626;
}

.theme-grand .agent-home-tip-text i {
    color: var(--gr-primary);
}

.theme-grand .agent-home-tip-text a {
    color: var(--gr-primary);
}

.theme-grand .agent-home-tip-text a:hover {
    color: #1a4a8a;
}

.theme-grand .agent-home-tip-btn {
    background: linear-gradient(135deg, var(--gr-primary-dark), var(--gr-primary));
    color: #fff;
    box-shadow: 0 3px 12px rgba(15, 45, 107, 0.2);
}

.theme-grand .agent-home-tip-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--gr-primary), #1a4a8a);
    transform: translateY(-1px);
}

.theme-grand .home-service-strip {
    background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 100%);
    border-top: 1px solid #dde3ec;
    padding: 2rem 0 1.75rem;
}

.theme-grand .home-service-card {
    border-color: rgba(15, 45, 107, 0.08);
    border-radius: 1rem;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.theme-grand .home-service-card:hover {
    border-color: rgba(201, 162, 39, 0.35);
    box-shadow: 0 10px 28px rgba(15, 45, 107, 0.1);
}

.theme-grand .home-service-icon {
    background: linear-gradient(135deg, rgba(15, 45, 107, 0.1), rgba(201, 162, 39, 0.12));
    color: var(--gr-primary);
}

.theme-grand .home-service-text strong {
    color: var(--gr-primary-dark);
}

.theme-grand .home-service-text span {
    color: #64748b;
}

.theme-grand .top-bar-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.85rem;
    background: rgba(201, 162, 39, 0.18);
    border: 1px solid rgba(201, 162, 39, 0.35);
    border-radius: 999px;
    color: var(--gr-gold-light) !important;
    font-weight: 600;
}

.theme-grand .top-bar-cart:hover {
    background: rgba(201, 162, 39, 0.28);
    color: #fff !important;
}

.theme-grand .top-bar-agent-link {
    color: var(--gr-gold-light) !important;
}

/* ===== 主头部 ===== */
.theme-grand .header {
    position: relative;
    background: #fff;
    border-bottom: none;
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
}

.theme-grand .header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gr-primary) 20%, var(--gr-gold) 50%, var(--gr-primary) 80%, transparent);
    pointer-events: none;
}

.theme-grand .header.sticky-top.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.1);
}

.theme-grand .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    height: 110px;
    min-height: 110px;
    padding-bottom: 0.25rem;
}

.theme-grand .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--gr-text);
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: 0.02em;
}

.theme-grand .logo:hover {
    color: var(--gr-primary);
}

.theme-grand .logo-icon {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    background: var(--gr-navy-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 6px 18px rgba(15, 45, 107, 0.25);
}

.theme-grand .search-box {
    width: min(620px, 100%);
    max-width: 620px;
    position: relative;
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #f8fafc;
    border: 2px solid var(--gr-border);
    border-radius: 999px;
    padding: 0.35rem 0.35rem 0.35rem 1.1rem;
    transition: all 0.3s var(--gr-ease);
}

.theme-grand .search-box:focus-within {
    border-color: var(--gr-primary);
    box-shadow: 0 0 0 4px rgba(15, 45, 107, 0.1);
    background: #fff;
}

.theme-grand .search-box input[type="search"] {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
}

.theme-grand .search-box button {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: var(--gr-gold-gradient);
    color: #1a1a1a;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform 0.2s var(--gr-ease);
}

.theme-grand .search-box button:hover {
    transform: scale(1.05);
}

.theme-grand .search-hot a {
    color: var(--gr-text-muted);
    font-size: 0.75rem;
    text-decoration: none;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(15, 45, 107, 0.06);
}

.theme-grand .search-hot a:hover {
    color: var(--gr-primary);
    background: rgba(15, 45, 107, 0.1);
}

.theme-grand .h-action {
    color: var(--gr-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s var(--gr-ease);
}

.theme-grand .h-action:hover {
    color: var(--gr-primary);
}

.theme-grand .h-action .badge {
    background: var(--gr-gold) !important;
    color: #1a1a1a;
}

/* ===== 分类导航 ===== */
.theme-grand .cat-nav {
    background: var(--gr-navy-gradient);
    border: none;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
    margin-top: 0.35rem;
    margin-bottom: 1.5rem;
    padding: 0.35rem 0 0.5rem;
}

.theme-grand .cat-nav-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 54px;
    max-width: 1320px;
    padding: 0 0.25rem;
}

.theme-grand .cat-nav-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.35rem;
    background: rgba(201, 162, 39, 0.18);
    border: 1px solid rgba(201, 162, 39, 0.35);
    color: var(--gr-gold-light);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.25s var(--gr-ease);
    height: 38px;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.theme-grand .cat-nav-all:hover {
    color: #fff;
    background: rgba(201, 162, 39, 0.32);
    transform: translateY(-1px);
}

.theme-grand .cat-nav-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.theme-grand .cat-nav-links::-webkit-scrollbar {
    display: none;
}

.theme-grand .cat-nav-links a {
    position: relative;
    padding: 0.65rem 1.1rem;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.2s var(--gr-ease);
}

.theme-grand .cat-nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.theme-grand .cat-nav-links a.active {
    color: var(--gr-gold-light);
    font-weight: 700;
    background: rgba(201, 162, 39, 0.12);
}

.theme-grand .cat-nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--gr-gold-gradient);
    border-radius: 2px;
}

/* ===== 移动端菜单 ===== */
.theme-grand .fn-mobile-nav {
    border: none;
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
}

.theme-grand .fn-mobile-nav .offcanvas-header {
    background: var(--gr-navy-gradient);
    color: #fff;
}

.theme-grand .fn-mobile-nav .offcanvas-title {
    color: #fff;
    font-weight: 700;
}

.theme-grand .fn-mobile-nav .btn-close {
    filter: brightness(0) invert(1);
}

.theme-grand .fn-mobile-nav .list-group-item.active {
    background: rgba(201, 162, 39, 0.12);
    color: var(--gr-primary);
    border-color: rgba(201, 162, 39, 0.25);
}

/* ===== 页脚 ===== */
.theme-grand .fn-footer {
    background: var(--gr-primary-dark);
    color: rgba(255, 255, 255, 0.72);
    padding-top: 3rem;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.theme-grand .fn-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 700px 350px at 8% 0%, rgba(201, 162, 39, 0.1), transparent 55%),
        radial-gradient(ellipse 500px 280px at 92% 100%, rgba(15, 45, 107, 0.25), transparent 55%);
    pointer-events: none;
}

.theme-grand .fn-footer-main {
    position: relative;
    z-index: 1;
}

.theme-grand .fn-footer-logo {
    text-decoration: none;
    color: #fff;
}

.theme-grand .fn-footer-logo-icon {
    background: rgba(201, 162, 39, 0.18);
    color: var(--gr-gold-light);
}

.theme-grand .fn-footer-logo-text {
    color: #fff;
}

.theme-grand .fn-footer-desc {
    color: rgba(255, 255, 255, 0.58);
}

.theme-grand .fn-footer-service-tags span {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    font-size: 0.75rem;
}

.theme-grand .fn-footer-service-tags i {
    color: var(--gr-gold);
}

.theme-grand .fn-footer-social-item {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    transition: all 0.25s var(--gr-ease);
}

.theme-grand .fn-footer-social-item:hover {
    background: var(--gr-gold-gradient);
    color: #1a1a1a;
    transform: translateY(-2px);
}

.theme-grand .fn-footer-col h4,
.theme-grand .fn-footer-contact h4 {
    color: #fff;
    position: relative;
    padding-bottom: 0.55rem;
}

.theme-grand .fn-footer-col h4::after,
.theme-grand .fn-footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 3px;
    background: var(--gr-gold-gradient);
    border-radius: 3px;
}

.theme-grand .fn-footer-col a,
.theme-grand .fn-footer-contact a,
.theme-grand .fn-footer-col li,
.theme-grand .fn-footer-contact li {
    color: rgba(255, 255, 255, 0.62);
}

.theme-grand .fn-footer-col a:hover,
.theme-grand .fn-footer-contact a:hover {
    color: var(--gr-gold-light);
}

.theme-grand .fn-footer-contact li > i {
    color: var(--gr-gold);
}

.theme-grand .fn-footer-more {
    color: var(--gr-gold-light) !important;
}

.theme-grand .fn-footer-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.theme-grand .fn-footer-bar-inner {
    color: rgba(255, 255, 255, 0.48);
}

.theme-grand .fn-footer-bar a:hover {
    color: var(--gr-gold-light);
}

/* ===== 商品卡片 ===== */
.theme-grand .product-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--gr-radius);
    overflow: hidden;
    transition: transform 0.25s var(--gr-ease), box-shadow 0.25s var(--gr-ease);
}

.theme-grand .product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gr-shadow-md);
    border-color: rgba(15, 45, 107, 0.12);
}

.theme-grand .pc-name {
    color: var(--gr-text);
    font-weight: 600;
}

.theme-grand .product-card:hover .pc-name {
    color: var(--gr-primary);
}

.theme-grand .product-price,
.theme-grand .pc-price {
    color: #dc2626;
    font-weight: 800;
}

.theme-grand .pc-price-old {
    color: var(--gr-text-muted);
}

/* ===== 按钮 ===== */
.theme-grand .btn-primary,
.theme-grand .btn-dark {
    background: var(--gr-navy-gradient);
    border-color: var(--gr-primary);
}

.theme-grand .btn-primary:hover,
.theme-grand .btn-dark:hover {
    background: var(--gr-primary-light);
    border-color: var(--gr-primary-light);
}

.theme-grand .btn-outline-primary {
    color: var(--gr-primary);
    border-color: var(--gr-primary);
}

.theme-grand .btn-outline-primary:hover {
    background: var(--gr-primary);
    border-color: var(--gr-primary);
}

/* ===== 内页通用 ===== */
.theme-grand .page-header,
.theme-grand .shop-page-head {
    background: #fff;
    border-radius: var(--gr-radius-lg);
    box-shadow: var(--gr-shadow);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

.theme-grand .page-header h1,
.theme-grand .shop-page-head h1 {
    color: var(--gr-text);
    font-weight: 800;
}

.theme-grand .breadcrumb a {
    color: var(--gr-text-muted);
}

.theme-grand .breadcrumb a:hover {
    color: var(--gr-primary);
}

.theme-grand .uc-panel,
.theme-grand .shop-panel {
    background: #fff;
    border-radius: var(--gr-radius-lg);
    box-shadow: var(--gr-shadow);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.theme-grand .uc-panel-head,
.theme-grand .shop-panel-head {
    border-bottom: 1px solid var(--gr-border);
    padding: 1rem 1.25rem;
}

.theme-grand .uc-panel-head h3,
.theme-grand .shop-panel-head h3 {
    font-weight: 700;
    color: var(--gr-text);
    margin: 0;
}

/* ===== 分页 ===== */
.theme-grand .pagination .page-link {
    color: var(--gr-primary);
    border-color: var(--gr-border);
}

.theme-grand .pagination .page-item.active .page-link {
    background: var(--gr-primary);
    border-color: var(--gr-primary);
}

/* ===== 回到顶部 / 客服 ===== */
.theme-grand .back-to-top {
    background: var(--gr-navy-gradient);
    color: var(--gr-gold-light);
    border: 2px solid rgba(201, 162, 39, 0.35);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.2);
}

.theme-grand .back-to-top:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 45, 107, 0.3);
}

.theme-grand .cs-fab {
    background: var(--gr-gold-gradient);
    color: #1a1a1a;
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35);
}

/* ===== 首页非 home 路由时的容器 ===== */
.theme-grand .shop-container:not(.shop-container-grand) {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.theme-grand .db-home--grand {
    padding-top: 1.5rem;
}

.theme-grand .db-hero--grand {
    padding-top: 4rem;
}

@media (max-width: 991.98px) {
    .theme-grand .cat-nav {
        margin-bottom: 1rem;
    }

    .theme-grand .db-hero--grand {
        padding-top: 2.25rem;
    }

    .theme-grand .db-home--grand {
        padding-top: 0.85rem;
    }

    .theme-grand .header-inner {
        height: auto;
        min-height: 72px;
        padding: 0.75rem 0;
        grid-template-columns: 1fr auto;
    }

    .theme-grand .search-box {
        grid-column: 1 / -1;
        order: 3;
        max-width: 100%;
    }
}
