:root {
    --brand: #0d6efd;
    --brand-strong: #0a5ce0;
    --ink: #1f1f1f;
    --muted: #626262;
    --bg: #f5f5f5;
    --panel: #ffffff;
    --line: #ececec;
    --accent: #0d6efd;
}

* {
    box-sizing: border-box;
}

body.home-page {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Noto Sans", "Segoe UI", sans-serif;
}

.container {
    width: min(1120px, 94vw);
    margin: 0 auto;
}

.utility-bar {
    background: #eef5ff;
    border-bottom: 1px solid #dbe9ff;
}

.utility-inner {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.utility-links {
    display: flex;
    gap: 14px;
}

.utility-links a {
    text-decoration: none;
    color: #646464;
    font-size: 13px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--brand);
    border-bottom: 1px solid rgba(0, 48, 121, 0.22);
}

.topbar-inner {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 10px 0;
}

.brand {
    min-width: 152px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fff;
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.main-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #c7ddff;
    border-radius: 12px;
    padding: 5px;
}

.main-search input {
    border: 0;
    outline: none;
    font-size: 14px;
    flex: 1;
}

.chip,
.search-btn,
.post-btn {
    border: 0;
    border-radius: 9px;
    font-weight: 700;
    height: 36px;
    padding: 0 12px;
}

.chip {
    background: #f4f5f7;
    color: #333;
}

.search-btn {
    background: #0849b8;
    color: #fff;
}

.post-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #08398f;
    color: #fff;
    text-decoration: none;
}

.post-btn--disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.topnav {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: auto;
    white-space: nowrap;
    padding-bottom: 4px;
}

.topnav a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.hero {
    position: relative;
    overflow: hidden;
    background-image:
        linear-gradient(180deg, rgba(13, 110, 253, 0.35) 0%, rgba(13, 110, 253, 0.18) 58%, #f5f5f5 100%),
        url("/static/img/4a48f157e4d07c9b8ec72448fdfebb5e-2970772843167437510.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 18px 0 34px;
}

.hero::before,
.hero::after {
    display: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 16px;
}

.hero-text,
.hero-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #efefef;
    padding: 22px;
}

.hero-tag {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #2153a8;
}

.hero h1 {
    margin: 8px 0;
    line-height: 1.2;
    font-size: 34px;
}

.hero-text p {
    margin: 0;
    color: var(--muted);
}

.hero-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.hero-quick-links a {
    text-decoration: none;
    color: #3c3c3c;
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 7px 12px;
    font-size: 13px;
}

.hero-card h3 {
    margin-top: 0;
}

.hero-card ul {
    margin: 12px 0;
    padding-left: 18px;
    color: #484848;
}

.hero-btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background: #0d6efd;
    color: #fff;
    border-radius: 10px;
    height: 40px;
    font-weight: 700;
}

.banner-slider {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dfe5ee;
    background: #e9eef9;
}

.banner-slider--home {
    margin: 14px 0 8px;
}

.banner-slider--search {
    margin: 0 0 12px;
}

.banner-slider-track {
    position: relative;
    min-height: 196px;
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
}

.banner-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.banner-slide img {
    width: 100%;
    height: 196px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(14, 22, 35, 0.56);
    color: #fff;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.banner-nav--prev {
    left: 10px;
}

.banner-nav--next {
    right: 10px;
}

.banner-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: inline-flex;
    gap: 6px;
    z-index: 2;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.58);
    cursor: pointer;
    padding: 0;
}

.banner-dot.is-active {
    background: #fff;
}

.block {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    margin: 18px 0;
    padding: 18px;
}

.listing-head,
.block-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.block-title-row {
    margin-bottom: 14px;
}

.block h2 {
    margin: 0;
    font-size: 23px;
}

.block-title-row a {
    text-decoration: none;
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
}

.listing-tabs {
    display: inline-flex;
    border: 1px solid #ececec;
    background: #f4f4f4;
    border-radius: 10px;
    padding: 4px;
}

.tab-btn {
    border: 0;
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    background: transparent;
    font-weight: 700;
    color: #5f5f5f;
}

.tab-btn.is-active {
    background: #fff;
    color: #111;
}

.quick-filter-row {
    display: flex;
    gap: 8px;
    overflow: auto;
    white-space: nowrap;
    margin: 14px 0;
}

.quick-filter {
    border: 1px solid #e7e7e7;
    background: #fff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    color: #444;
}

.listing-grid,
.icon-grid,
.tool-grid,
.city-grid,
.price-grid,
.partner-grid,
.project-grid,
.post-grid {
    display: grid;
    gap: 12px;
}

.listing-grid,
.icon-grid,
.tool-grid,
.price-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.listing-card,
.icon-card,
.tool-card,
.city-card,
.price-card,
.project-card,
.post-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow .15s ease, transform .15s ease;
}

.listing-card:hover,
.icon-card:hover,
.tool-card:hover,
.city-card:hover,
.price-card:hover,
.project-card:hover,
.post-card:hover {
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.listing-cover-link,
.listing-cover-trigger {
    display: block;
    border: 0;
    padding: 0;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.listing-cover-img {
    width: 100%;
    height: 172px;
    object-fit: cover;
    display: block;
}

.listing-body {
    padding: 12px;
}

.listing-badge {
    display: inline-flex;
    border-radius: 999px;
    background: #eaf2ff;
    color: #17489a;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
}

.listing-body h3 {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.35;
    min-height: 40px;
}

.listing-body h3 a {
    color: inherit;
    text-decoration: none;
}

.listing-price {
    margin: 0 0 6px;
    color: #0a55cf;
    font-size: 18px;
    font-weight: 800;
}

.listing-meta {
    margin: 0;
    color: #606060;
    font-size: 13px;
}

.icon-card {
    text-align: center;
    padding: 14px;
}

.icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin: 0 auto 10px;
    background: linear-gradient(145deg, #eaf2ff, #c9ddff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2459b5;
}

.icon-circle img {
    width: 26px;
    height: 26px;
}

.icon-card h3 {
    margin: 0;
    font-size: 14px;
}

.icon-card p {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.tool-card,
.price-card {
    padding: 14px;
}

.tool-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #eaf2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2459b5;
}

.tool-icon img {
    width: 20px;
    height: 20px;
}

.tool-card h3,
.price-card h3 {
    margin: 10px 0 0;
    font-size: 16px;
}

.tool-card p,
.city-card p {
    margin: 8px 0;
    color: var(--muted);
    font-size: 13px;
}

.city-grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-auto-rows: 200px;
}

.city-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #dce8ff;
    text-decoration: none;
    color: inherit;
}

.city-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.city-card--large {
    grid-row: span 2;
}

.city-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    background: linear-gradient(180deg, rgba(8, 21, 50, 0) 35%, rgba(8, 21, 50, 0.7) 100%);
    color: #fff;
}

.city-overlay h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.city-overlay p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
}

.tool-card a {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.promo-banner {
    background: linear-gradient(120deg, #0a3f9f, #0f6bfd);
    color: #fff;
    border-radius: 16px;
    padding: 22px;
    margin: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.promo-banner h2 {
    margin: 0 0 6px;
}

.promo-banner p {
    margin: 0;
    color: #c0cbe2;
}

.promo-banner button {
    border: 0;
    background: #fff;
    color: #0d6efd;
    border-radius: 10px;
    padding: 0 14px;
    height: 40px;
    font-weight: 700;
}

.price-card .price {
    margin: 8px 0 6px;
    font-size: 18px;
    font-weight: 800;
}

.trend {
    display: inline-block;
    border-radius: 999px;
    background: #eaf2ff;
    color: #0d4eb3;
    font-size: 12px;
    padding: 4px 8px;
}

.partner-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.partner-card {
    min-height: 60px;
    border: 1px dashed #d9d9d9;
    border-radius: 10px;
    color: #5d5d5d;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-grid,
.post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-image,
.post-cover {
    width: 100%;
    height: 156px;
    object-fit: cover;
    display: block;
}

.post-cover {
    height: 130px;
}

.project-body,
.post-body {
    padding: 14px;
}

.project-body h3,
.post-body h3 {
    margin: 0;
    font-size: 17px;
}

.project-body p,
.post-body p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.site-footer {
    margin-top: 24px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
    padding: 26px 0;
}

.footer-grid h4 {
    margin: 0 0 10px;
}

.footer-grid p,
.footer-grid a {
    display: block;
    margin: 0 0 8px;
    color: #5a5a5a;
    text-decoration: none;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .hero::before,
    .hero::after {
        width: 180px;
        height: 140px;
        top: 108px;
        opacity: 0.22;
    }

    .post-btn {
        display: none;
    }

    .hero-inner,
    .project-grid,
    .post-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .banner-slide img {
        height: 168px;
    }

    .listing-grid,
    .icon-grid,
    .tool-grid,
    .city-grid,
    .price-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .partner-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .city-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 190px;
    }

    .city-card--large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 720px) {
    .hero::before,
    .hero::after {
        display: none;
    }

    .utility-bar {
        display: none;
    }

    .topbar-inner {
        flex-wrap: wrap;
    }

    .brand {
        min-width: auto;
    }

    .main-search {
        min-width: 100%;
        order: 3;
    }

    .chip {
        display: none;
    }

    .hero h1 {
        font-size: 28px;
    }

    .banner-slide img {
        height: 136px;
    }

    .banner-nav {
        width: 30px;
        height: 30px;
    }

    .listing-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .promo-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .listing-grid,
    .icon-grid,
    .tool-grid,
    .city-grid,
    .price-grid,
    .partner-grid {
        grid-template-columns: 1fr;
    }

    .city-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 190px;
    }

    .city-card--large {
        grid-column: span 1;
    }
}
