:root {
    --primary-color: #234454;
    --accent-color: #C72391;
    --accent-gradient: linear-gradient(90deg, #C72391 0%, #FD385D 100%);
    --green-color: #1DA370;
    --blue-color: #0288d1;
    --bg-light: #F5F5F5;
    --border-color: #E2E4E7;
    --text-muted: #979B9F;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--primary-color);
    background-color: var(--bg-light);
}

/* ---- 侧边栏 ---- */
.sidebar {
    width: 96px;
    flex-shrink: 0 !important; /* 禁止flex压缩，重点！ */
    min-width: 96px !important; /* 额外兜底，最小宽度锁死 */
    min-height: calc(100vh - 56px);
    background: #fff;
    border-right: 2px solid #e5e7eb;
    position: sticky;
    top: 56px;
    /*height: calc(100vh - 56px);*/
    overflow-y: auto;
    z-index: 100;
}

.sidebar .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 8px;
    color: #7e98a3;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border-radius: 4px;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    color: #e91e8c;
    background-color: #e8f4fd;
    text-decoration: none;
}

.sidebar .nav-link.active {
    background-color: #e8f4fd;
    color: #2378c4;
    font-weight: 600;
}

.sidebar .nav-link svg {
    width: 20px;
    height: 20px;
    margin-bottom: 4px;
}

.sidebar .nav-link .nav-label {
    font-size: 11px;
    line-height: 1.2;
}


/* ===== Hero Carousel ===== */
.hero-carousel {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 32px;
}

.hero-carousel .carousel-item {
    min-height: 280px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(35, 68, 84, 0.85) 0%, rgba(35, 68, 84, 0.4) 100%);
    z-index: 1;
}

.hero-carousel .carousel-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 560px;
    padding: 40px;
}

.hero-carousel .carousel-content h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.hero-carousel .carousel-content p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 20px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.hero-btn-green {
    background-color: var(--green-color);
    color: #fff;
}

.hero-btn-green:hover {
    background-color: #178a5e;
    color: #fff;
    text-decoration: none;
}

.hero-btn-blue {
    background-color: var(--blue-color);
    color: #fff;
}

.hero-btn-blue:hover {
    background-color: #0270a8;
    color: #fff;
    text-decoration: none;
}

.hero-carousel .carousel-indicators {
    bottom: 16px;
    z-index: 3;
}

.hero-carousel .carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255,255,255,0.5);
    margin: 0 4px;
    transition: all 0.3s;
}

.hero-carousel .carousel-indicators li.active {
    background-color: #fff;
    width: 24px;
    border-radius: 5px;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 4;
}

.hero-carousel .carousel-control-prev { left: 16px; }
.hero-carousel .carousel-control-next { right: 16px; }

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
    opacity: 1;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    filter: invert(0.4);
}

/* ===== Section Header ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.section-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
}

.section-link:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

/* ===== Exclusive Card Carousel ===== */
.card-carousel-wrapper {
    position: relative;
    margin-bottom: 40px;
}

.card-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 16px;
    padding: 4px 0 12px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.card-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s;
    color: var(--primary-color);
}

.carousel-nav-btn:hover {
    background: var(--bg-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.carousel-nav-btn.prev { left: -16px; }
.carousel-nav-btn.next { right: -16px; }

/* ===== Listing Card ===== */
.listing-card {
    min-width: 300px;
    max-width: 300px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.listing-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: inherit;
}

.listing-card-img {
    position: relative;
    width: 100%;
    padding-top: 75%;
    background-color: #FAFAFA;
    overflow: hidden;
}

.listing-card-img img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 16px;
}

.listing-card-body {
    padding: 12px 16px 16px;
}

.listing-brand {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listing-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listing-category {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.listing-meta {
    font-size: 12px;
    color: var(--primary-color);
    line-height: 1.8;
}

.listing-meta .label {
    font-weight: 600;
}

.listing-meta .verified-time {
    color: var(--text-muted);
}

/* ===== Category Grid ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}

@media (max-width: 1199.98px) {
    .category-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 991.98px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575.98px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    min-height: 48px;
}

.category-item:hover {
    border-color: var(--blue-color);
    color: var(--blue-color);
    background-color: #f0f9ff;
    text-decoration: none;
}

/* ===== Top Makes Logo Grid ===== */
.makes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

@media (max-width: 991.98px) {
    .makes-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575.98px) {
    .makes-grid { grid-template-columns: repeat(2, 1fr); }
}

.make-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 90px;
}

.make-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--blue-color);
    text-decoration: none;
}

.make-item img {
    max-width: 100%;
    max-height: 48px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.make-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}