.market-home {
    --market-blue: #165dff;
    --market-edge: #dbe5f2;
    background: #f4f6f9;
}

.market-quick,
.market-home .front-shell {
    width: min(1220px, calc(100% - 48px));
    margin-inline: auto;
}

.market-quick {
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: 8px 14px;
    align-items: center;
    padding-top: 14px;
}

.market-quick .home-top-search {
    display: flex;
    width: 100%;
    min-width: 0;
    background: white;
}

.market-quick .home-top-search input { flex: 1; min-width: 0; }
.market-quick .home-top-search button {
    flex: none;
    width: auto;
    padding-inline: 13px;
    background: var(--market-blue);
    font-size: 14px;
    white-space: nowrap;
}
.market-quick .ad-bar-slot { margin: 0; padding: 0; min-width: 0; }
.market-quick .ad-bar { margin: 0; }

.market-quick .notice-bar {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    min-height: 33px;
    font-size: 13px;
    box-shadow: none;
}

.market-quick .notice-slider { min-height: 33px; }
.market-quick .notice-item:not(.active) { visibility: hidden; pointer-events: none; }
.market-quick .notice-item { display: block; line-height: 33px; }

.market-home .front-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0 0;
}

.market-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(120deg, #165dff, #123ea8 58%, #102e70);
    color: white;
}

.market-hero .home-hero-carousel {
    min-width: 0;
    min-height: 280px;
    aspect-ratio: auto;
    border-radius: 0;
    background: radial-gradient(ellipse at 60% 55%, #4786fa, transparent 72%);
    box-shadow: none;
}

.market-hero .carousel-slide img {
    display: block;
    object-fit: contain;
    background: transparent;
}

.market-hero .carousel-slide img[src="/uploads/banner/banner_20260428094422_176.webp"] {
    position: absolute;
    top: -9%;
    right: 3%;
    width: auto;
    max-width: none;
    height: 118%;
    mask-image: linear-gradient(90deg, transparent 61%, #000 67%, #000 94%, transparent);
}

.market-hero .carousel-dot { border: 0; padding: 0; }
.market-hero .carousel-dots { padding: 7px; border-radius: 999px; background: #102e70c9; }
.market-hero .home-side { display: block; align-self: center; min-width: 0; padding: 22px 24px 22px 10px; }
.market-heading span { color: #dbe8ff; font-size: 12px; font-weight: 700; }
.market-heading h1 { margin: 4px 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.15; }
.market-heading p { margin: 0 0 12px; color: #e1ecff; }

.market-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid #ffffff54;
    border-radius: 14px;
    background: #ffffff20;
}

.market-tools .side-card { border: 0; border-radius: 8px; background: none; box-shadow: none; padding: 0; }
.market-tools .action-card-head,
.market-tools .action-card::after { display: none; }
.market-tools .action-card-buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.market-tools .action-card-buttons a,
.market-ad-contact {
    min-height: 34px;
    border: 1px solid var(--market-edge);
    border-radius: 7px;
    background: #fff;
    color: #183e86;
    padding: 4px 6px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.market-tools .action-card-buttons a:first-child { background: #e5efff; }
.market-home .sponsor-banner { display: flex; gap: 8px; }
.market-home .sponsor-banner > div { margin-right: auto; }
.market-home .sponsor-banner > button,
.market-home .sponsor-banner > a { flex: none; }
.market-home .category-strip { border-radius: 12px; }
.market-home .category-strip a { padding-block: 8px; }
.market-home .content-card { border-radius: 14px; }
.market-home .site-list-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.market-home .site-mini-card { border-radius: 10px; box-shadow: 0 2px 7px #1839660b; }
.market-home .site-avatar { object-fit: contain; }

@media (max-width: 760px) {
    .market-quick,
    .market-home .front-shell { width: calc(100% - 24px); }
    .market-quick { grid-template-columns: minmax(0, 1fr); padding-top: 8px; gap: 6px; }
    .market-quick .notice-bar { font-size: 12px; grid-template-columns: 44px minmax(0, 1fr) auto; }
    .market-quick .notice-more { padding-inline: 7px; }
    .market-quick .notice-item { padding-inline: 7px; }
    .market-home .front-shell { padding-top: 8px; gap: 8px; }

    .market-hero { position: relative; display: block; border-radius: 14px; }
    .market-hero .home-hero-carousel { position: absolute; inset: 0 0 auto auto; width: 55%; height: 112px; min-height: 0; }
    .market-hero .home-side { position: relative; padding: 10px; pointer-events: none; }
    .market-hero .market-heading { width: 48%; min-height: 103px; }
    .market-heading span { font-size: 10px; }
    .market-heading h1 { font-size: 24px; }
    .market-heading p { font-size: 11px; margin-bottom: 5px; }
    .market-tools { grid-template-columns: minmax(0, 1fr); padding: 5px; pointer-events: auto; }
    .market-tools .action-card-buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
    .market-tools .action-card-buttons a { min-height: 36px; padding: 3px 2px; font-size: 11px; white-space: nowrap; }

    .market-home .category-strip,
    .market-home .site-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .market-home .category-strip a { min-height: 52px; padding: 5px 8px; gap: 6px; }
    .market-home .category-strip .strip-icon { width: 27px; height: 27px; }
    .market-home .category-strip strong { font-size: 13px; }
    .market-home .category-strip small { font-size: 11px; }
    .market-home .sponsor-banner small { display: none; }
    .market-home .sponsor-banner { padding-inline: 7px; }
    .market-home .site-mini-card { min-height: 49px; padding: 6px; gap: 6px; }
    .market-home .site-avatar { width: 28px; height: 28px; }
    .market-home .site-mini-card strong { font-size: 13px; }
    .market-home .site-mini-card small { font-size: 11px; }
}
