:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #0f766e;
    --warm: #f59e0b;
    --ink: #101828;
    --muted: #7f8a9d;
    --line: #e6ebf2;
    --panel: #ffffff;
    --page: #f4f6f9;
    --shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.front-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 70px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    width: min(1320px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.logo-img,
.logo-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 8px;
}

.logo-img {
    object-fit: cover;
}

.logo-mark {
    display: grid;
    place-items: center;
    background: #082f49;
    color: #67e8f9;
    font-weight: 800;
}

.logo-text {
    color: #0b1220;
    font-size: 22px;
    font-weight: 800;
    white-space: nowrap;
}

.search-box {
    display: flex;
    align-items: center;
    width: min(430px, 38vw);
    height: 48px;
    margin-left: auto;
    padding: 0 14px 0 20px;
    background: #f3f5f9;
    border: 1px solid transparent;
    border-radius: 8px;
}

.search-box:focus-within {
    border-color: #bfd1ff;
    background: #fff;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-weight: 700;
}

.search-box input::placeholder {
    color: #9aa4b6;
}

.search-btn {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8a94a6;
    cursor: pointer;
}

.search-btn svg {
    width: 21px;
    height: 21px;
}

.header-submit,
.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 900;
    white-space: nowrap;
}

.header-submit,
.primary-action {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.header-submit:hover,
.primary-action:hover {
    background: var(--primary-dark);
}

.secondary-action {
    border: 1px solid #bfd1ff;
    color: var(--primary);
    background: #fff;
    cursor: pointer;
}

.home-hero,
.featured-section,
.notice-strip,
.front-layout {
    width: min(1320px, calc(100% - 32px));
    margin: 24px auto 0;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 28px;
    padding: 24px 28px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.09), rgba(15, 118, 110, 0.08)),
        #fff;
    border: 1px solid #dfe8f7;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    margin-bottom: 10px;
    border-radius: 999px;
    color: #075985;
    background: #e0f2fe;
    font-size: 12px;
    font-weight: 900;
}

.home-hero h1 {
    margin: 0;
    color: #0b1220;
    font-size: 26px;
    line-height: 1.25;
}

.home-hero p {
    max-width: 680px;
    margin: 8px 0 0;
    color: #596579;
    line-height: 1.7;
    font-weight: 650;
}

.hero-actions,
.hero-stats {
    display: inline-flex;
    gap: 10px;
}

.hero-stats span {
    display: grid;
    place-items: center;
    min-width: 86px;
    height: 58px;
    padding: 0 12px;
    color: #667085;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #e2e9f5;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.hero-stats strong {
    color: #0f172a;
    font-size: 20px;
}

.notice-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    padding: 0 16px;
    color: #42526b;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.notice-strip span {
    padding: 4px 8px;
    color: #b45309;
    background: #fef3c7;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.notice-strip strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-strip em {
    color: var(--primary);
    font-style: normal;
    font-weight: 900;
}

.featured-section,
.cat-section,
.sidebar-card,
.submit-card,
.single-page {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.featured-section {
    padding: 26px 30px 30px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.section-hint {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.front-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
}

.front-main {
    display: grid;
    gap: 24px;
}

.cat-section {
    padding: 30px;
}

.cat-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.cat-section h2,
.sidebar-card h3,
.submit-card h1,
.page-title h1 {
    position: relative;
    margin: 0;
    padding-left: 18px;
    font-size: 20px;
    font-weight: 800;
}

.cat-section h2::before,
.sidebar-card h3::before,
.submit-card h1::before,
.page-title h1::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 5px;
    height: 22px;
    border-radius: 4px;
    background: var(--primary);
}

.cat-section h2 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    margin-left: 8px;
    border-radius: 999px;
    color: #667085;
    background: #eef2f7;
    font-size: 12px;
    vertical-align: 2px;
}

.cat-section-header a,
.page-title a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.cat-section-header a:hover,
.page-title a:hover {
    color: var(--primary);
}

.site-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.site-card {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 88px;
    padding: 16px 18px;
    gap: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.site-card-featured {
    border-color: #d2ddff;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.site-card-featured::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.site-card:hover {
    transform: translateY(-2px);
    border-color: #c7d7fe;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.card-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    overflow: hidden;
    border-radius: 8px;
    background: #f6f8fb;
    color: var(--primary);
    font-size: 20px;
    font-weight: 800;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.card-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.card-info strong,
.card-info small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-info strong {
    font-size: 16px;
    font-weight: 800;
}

.card-info small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.site-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.badge-blue {
    color: #1d4ed8;
    background: #dbeafe;
}

.badge-green {
    color: #047857;
    background: #d1fae5;
}

.badge-red {
    color: #b91c1c;
    background: #fee2e2;
}

.badge-amber {
    color: #b45309;
    background: #fef3c7;
}

.badge-slate {
    color: #475569;
    background: #e2e8f0;
}

.front-sidebar {
    display: grid;
    align-content: start;
    gap: 18px;
    position: sticky;
    top: 92px;
}

.sidebar-card {
    padding: 26px 22px;
}

.sidebar-nav,
.notice-list {
    display: grid;
    gap: 20px;
    margin-top: 26px;
}

.sidebar-nav a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #778294;
    font-size: 15px;
    font-weight: 800;
}

.sidebar-nav span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e4e8ef;
}

.sidebar-nav a:hover {
    color: var(--primary);
}

.notice-list a {
    overflow: hidden;
    color: #4b5565;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ad-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    color: #fff;
    background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.ad-card img {
    width: 100%;
    border-radius: 8px;
}

.single-page,
.submit-page {
    width: min(990px, calc(100% - 32px));
    margin: 36px auto 0;
}

.single-page {
    padding: 30px;
}

.category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 26px;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.search-summary {
    color: #3d4656;
    font-size: 17px;
    font-weight: 800;
}

.empty-state {
    padding: 34px;
    color: var(--muted);
    font-weight: 750;
}

.submit-page {
    display: grid;
    place-items: start center;
}

.submit-card {
    width: min(620px, 100%);
    padding: 30px;
}

.submit-card p {
    margin: 16px 0 24px;
    color: #667085;
    line-height: 1.7;
}

.submit-card form {
    display: grid;
    gap: 18px;
}

.submit-card label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-weight: 800;
}

.submit-card input,
.submit-card textarea,
.submit-card select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    outline: 0;
}

.submit-card input:focus,
.submit-card textarea:focus,
.submit-card select:focus {
    border-color: #a9c0ff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.submit-card small {
    color: #ef4444;
}

.submit-card button[type="submit"] {
    height: 46px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--primary);
    font-weight: 900;
    cursor: pointer;
}

.hidden-field {
    position: absolute;
    left: -9999px;
}

.form-success {
    margin-bottom: 18px;
    padding: 12px 14px;
    color: #166534;
    background: #dcfce7;
    border-radius: 8px;
    font-weight: 750;
}

.front-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 110px;
    color: #a0a9ba;
    font-weight: 750;
}

.customer-service {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 70;
    width: 275px;
}

.customer-service.collapsed {
    display: none;
}

.service-panel {
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(17, 24, 39, 0.18);
}

.service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
    padding: 0 18px;
    color: #fff;
    background: #34495e;
}

.service-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 800;
}

.service-title svg,
.service-icon-btn svg,
.m-cat-fab svg {
    width: 24px;
    height: 24px;
}

.service-header button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    font-size: 24px;
    cursor: pointer;
}

.service-body {
    display: grid;
    gap: 14px;
    justify-items: center;
    padding: 22px;
    text-align: center;
}

.service-lead {
    color: #233047;
    font-size: 15px;
}

.qr-code {
    display: grid;
    place-items: center;
    width: 156px;
    height: 156px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.qr-empty {
    color: #98a2b3;
    font-weight: 800;
}

.service-body p {
    margin: 0;
    color: #5f6878;
    font-weight: 800;
}

.service-body .qq button,
.copy-btn {
    border: 0;
    background: transparent;
    color: #ef4444;
    font-weight: 900;
    cursor: pointer;
}

.service-icon-btn,
.m-cat-fab {
    display: none;
    position: fixed;
    z-index: 72;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: #34495e;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.2);
    cursor: pointer;
}

.service-icon-btn {
    right: 24px;
    bottom: 24px;
}

.service-icon-btn.show {
    display: grid;
}

.service-icon-btn span {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    font-size: 12px;
    font-weight: 800;
    line-height: 20px;
}

.m-cat-fab {
    left: 18px;
    bottom: 18px;
    background: var(--primary);
}

.m-cat-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 68;
    background: rgba(17, 24, 39, 0.42);
    backdrop-filter: blur(3px);
}

.m-cat-panel {
    display: none;
    position: fixed;
    left: 16px;
    bottom: 92px;
    z-index: 69;
    width: 140px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(17, 24, 39, 0.18);
}

.m-cat-panel span,
.m-cat-panel a {
    display: block;
    font-weight: 800;
}

.m-cat-panel span {
    margin-bottom: 12px;
    color: #a0a9ba;
    font-size: 13px;
}

.m-cat-panel a {
    padding: 8px 0;
    color: #172033;
}

.m-submit-link {
    margin-top: 8px;
    color: var(--primary) !important;
    border-top: 1px solid var(--line);
}

.m-cat-overlay.show,
.m-cat-panel.show {
    display: block;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 110px;
    z-index: 100;
    transform: translateX(-50%);
    padding: 10px 16px;
    color: #fff;
    background: rgba(17, 24, 39, 0.92);
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.toast.show {
    opacity: 1;
}

@media (max-width: 1180px) {
    .site-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .home-hero {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .hero-stats {
        justify-self: start;
    }
}

@media (max-width: 900px) {
    body {
        padding-bottom: 72px;
    }

    .home-hero,
    .featured-section,
    .notice-strip,
    .front-layout {
        width: calc(100% - 20px);
        margin-top: 10px;
    }

    .front-layout {
        display: block;
    }

    .front-sidebar {
        display: none;
    }

    .front-header {
        height: 50px;
    }

    .header-inner {
        width: calc(100% - 20px);
        gap: 10px;
    }

    .logo-img,
    .logo-mark {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        border-radius: 7px;
    }

    .logo-text {
        max-width: 150px;
        overflow: hidden;
        font-size: 15px;
        text-overflow: ellipsis;
    }

    .header-submit {
        display: none;
    }

    .search-box {
        width: 145px;
        height: 34px;
        padding: 0 9px 0 14px;
        border-radius: 8px;
    }

    .search-box input {
        font-size: 12px;
    }

    .search-btn {
        width: 24px;
        height: 24px;
    }

    .search-btn svg {
        width: 17px;
        height: 17px;
    }

    .home-hero {
        gap: 14px;
        padding: 14px;
        border-radius: 8px;
    }

    .hero-kicker {
        height: 22px;
        margin-bottom: 8px;
        font-size: 11px;
    }

    .home-hero h1 {
        font-size: 18px;
    }

    .home-hero p {
        margin-top: 6px;
        font-size: 12px;
        line-height: 1.55;
    }

    .hero-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .primary-action,
    .secondary-action {
        height: 36px;
        padding: 0 10px;
        border-radius: 8px;
        font-size: 12px;
    }

    .hero-stats {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .hero-stats span {
        min-width: 0;
        height: 46px;
        font-size: 11px;
    }

    .hero-stats strong {
        font-size: 16px;
    }

    .notice-strip {
        min-height: 36px;
        padding: 0 10px;
        gap: 8px;
        border-radius: 8px;
        font-size: 12px;
    }

    .notice-strip em {
        display: none;
    }

    .featured-section,
    .cat-section {
        padding: 12px 8px 8px;
        border-radius: 8px;
        box-shadow: none;
    }

    .featured-grid,
    .site-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin-top: 0;
    }

    .section-hint {
        display: none;
    }

    .front-main {
        display: grid;
        gap: 8px;
    }

    .cat-section-header {
        margin-bottom: 10px;
    }

    .cat-section h2,
    .submit-card h1,
    .page-title h1 {
        padding-left: 12px;
        font-size: 14px;
    }

    .cat-section h2::before,
    .submit-card h1::before,
    .page-title h1::before {
        top: 3px;
        width: 4px;
        height: 16px;
    }

    .cat-section h2 span {
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        font-size: 10px;
    }

    .cat-section-header a {
        display: none;
    }

    .site-card {
        min-height: 44px;
        padding: 7px 8px;
        gap: 8px;
        border-radius: 6px;
    }

    .card-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        border-radius: 7px;
        font-size: 14px;
    }

    .card-title-row {
        gap: 4px;
    }

    .card-info strong {
        font-size: 12px;
    }

    .card-info small {
        display: none;
    }

    .site-badge {
        height: 16px;
        padding: 0 5px;
        font-size: 10px;
    }

    .single-page,
    .submit-page {
        width: calc(100% - 20px);
        margin-top: 12px;
    }

    .single-page,
    .submit-card {
        padding: 16px;
        border-radius: 8px;
        box-shadow: none;
    }

    .page-title {
        margin-bottom: 12px;
    }

    .customer-service {
        left: 12px;
        right: 12px;
        bottom: 76px;
        width: auto;
    }

    .service-panel {
        border-radius: 10px;
    }

    .service-header {
        height: 46px;
        padding: 0 14px;
    }

    .service-title {
        gap: 8px;
        font-size: 14px;
    }

    .service-title svg {
        width: 16px;
        height: 16px;
    }

    .service-header button {
        width: 26px;
        height: 26px;
        border-radius: 6px;
        font-size: 16px;
    }

    .service-body {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        justify-items: start;
        gap: 8px 12px;
        padding: 14px;
        text-align: left;
        font-size: 12px;
    }

    .qr-code {
        grid-row: span 4;
        width: 92px;
        height: 92px;
    }

    .service-lead {
        font-size: 13px;
    }

    .service-icon-btn,
    .m-cat-fab {
        display: grid;
        width: 46px;
        height: 46px;
    }

    .service-icon-btn {
        right: 16px;
        bottom: 18px;
    }

    .customer-service.collapsed + .service-icon-btn {
        display: grid;
    }

    .m-cat-panel {
        left: 12px;
        right: 12px;
        bottom: 78px;
        width: auto;
        padding: 16px;
        border-radius: 10px;
    }

    .m-cat-panel a {
        padding: 11px 0;
        border-bottom: 1px solid #f0f2f6;
    }

    .front-footer {
        min-height: 104px;
        flex-direction: column;
        gap: 8px;
        padding-bottom: 62px;
        font-size: 12px;
    }
}

/* Case demo frontend polish */
:root {
    --primary: #1677ff;
    --primary-dark: #0958d9;
    --accent: #10b981;
    --warm: #f59e0b;
    --danger: #ef4444;
    --ink: #101828;
    --muted: #667085;
    --line: #e5e7eb;
    --panel: #ffffff;
    --page: #f5f7fb;
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

body {
    background:
        linear-gradient(180deg, #f8fbff 0, #f5f7fb 320px),
        var(--page);
    color: var(--ink);
    font-size: 14px;
    letter-spacing: 0;
}

.front-header {
    height: 64px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom-color: #e8edf5;
}

.header-inner,
.home-hero,
.featured-section,
.notice-strip,
.front-layout {
    width: min(1200px, calc(100% - 40px));
}

.header-inner {
    gap: 16px;
}

.logo-img,
.logo-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 8px;
}

.logo-mark {
    background: linear-gradient(135deg, #111827, #1d4ed8);
    color: #fff;
    font-size: 17px;
}

.logo-text {
    font-size: 18px;
    font-weight: 800;
}

.search-box {
    width: min(420px, 36vw);
    height: 40px;
    background: #f2f5f9;
    border-color: transparent;
}

.search-box input {
    font-weight: 600;
}

.header-submit,
.primary-action,
.secondary-action {
    height: 38px;
    padding: 0 16px;
    border-radius: 8px;
    font-weight: 800;
}

.home-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px 28px;
    padding: 28px 30px;
    background:
        linear-gradient(135deg, rgba(22, 119, 255, 0.08), rgba(16, 185, 129, 0.08)),
        #ffffff;
    border-color: #dfe7f3;
    border-radius: 8px;
}

.hero-copy {
    min-width: 0;
}

.hero-kicker {
    height: 24px;
    margin-bottom: 12px;
    color: #0f766e;
    background: #dff7ef;
    font-size: 12px;
    font-weight: 800;
}

.home-hero h1 {
    max-width: 720px;
    font-size: 30px;
    line-height: 1.22;
    letter-spacing: 0;
}

.home-hero p {
    max-width: 720px;
    color: #5f6b7a;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.75;
}

.hero-actions {
    grid-column: 2;
    grid-row: 1;
}

.hero-stats {
    grid-column: 1 / -1;
    justify-self: start;
}

.hero-stats span {
    min-width: 110px;
    height: 56px;
    background: rgba(255, 255, 255, 0.82);
    border-color: #dfe7f3;
    font-weight: 700;
}

.hero-stats strong {
    color: #111827;
    font-size: 21px;
    line-height: 1;
}

.notice-strip,
.featured-section,
.cat-section,
.sidebar-card,
.submit-card,
.single-page {
    border-radius: 8px;
    border-color: var(--line);
    box-shadow: var(--shadow);
}

.notice-strip {
    min-height: 42px;
}

.featured-section,
.cat-section {
    padding: 24px;
}

.front-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 22px;
}

.front-main {
    gap: 18px;
}

.cat-section-header {
    margin-bottom: 18px;
}

.cat-section h2,
.sidebar-card h3,
.submit-card h1,
.page-title h1 {
    padding-left: 14px;
    font-size: 18px;
    line-height: 26px;
}

.cat-section h2::before,
.sidebar-card h3::before,
.submit-card h1::before,
.page-title h1::before {
    top: 4px;
    width: 4px;
    height: 18px;
    background: var(--primary);
}

.featured-grid,
.site-grid {
    gap: 12px;
}

.site-card {
    min-height: 82px;
    padding: 14px 16px;
    border-color: #e7ebf2;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

.site-card-featured {
    border-color: #cfe0ff;
    background: #ffffff;
}

.site-card-featured::after {
    height: 2px;
}

.site-card:hover {
    transform: translateY(-1px);
    border-color: #bcd3ff;
    box-shadow: 0 10px 24px rgba(22, 119, 255, 0.08);
}

.card-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 8px;
    color: var(--primary);
}

.card-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.card-icon-blue {
    color: #1677ff;
    background: #eaf3ff;
}

.card-icon-green {
    color: #059669;
    background: #e7f8f0;
}

.card-icon-amber {
    color: #b45309;
    background: #fff4d8;
}

.card-icon-red {
    color: #dc2626;
    background: #feecec;
}

.card-icon-slate {
    color: #475569;
    background: #eef2f7;
}

.card-info {
    gap: 4px;
}

.card-info strong {
    color: #172033;
    font-size: 15px;
    font-weight: 750;
}

.card-info small {
    color: #667085;
    font-size: 13px;
    font-weight: 500;
}

.site-badge {
    height: 19px;
    padding: 0 7px;
    font-weight: 750;
}

.front-sidebar {
    top: 86px;
    gap: 14px;
}

.sidebar-card {
    padding: 22px 20px;
}

.sidebar-nav,
.notice-list {
    gap: 14px;
    margin-top: 18px;
}

.sidebar-nav a {
    color: #667085;
    font-size: 14px;
    font-weight: 700;
}

.ad-card {
    border-radius: 8px;
    background: linear-gradient(135deg, #111827 0%, #1677ff 100%);
}

.customer-service {
    width: 260px;
}

.service-panel {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.service-header,
.service-icon-btn {
    background: #111827;
}

.m-cat-fab {
    background: var(--primary);
}

@media (max-width: 1180px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .hero-stats {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 900px) {
    body {
        padding-bottom: 72px;
        background: #f5f7fb;
    }

    .front-header {
        height: 54px;
    }

    .header-inner,
    .home-hero,
    .featured-section,
    .notice-strip,
    .front-layout {
        width: calc(100% - 20px);
    }

    .logo-img,
    .logo-mark {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .logo-text {
        max-width: 124px;
        font-size: 15px;
    }

    .search-box {
        width: min(168px, 46vw);
        height: 34px;
    }

    .home-hero {
        gap: 12px;
        padding: 16px;
    }

    .home-hero h1 {
        font-size: 21px;
        line-height: 1.3;
    }

    .home-hero p {
        font-size: 13px;
        line-height: 1.65;
    }

    .hero-actions,
    .hero-stats {
        width: 100%;
    }

    .featured-section,
    .cat-section {
        padding: 14px 10px 10px;
        box-shadow: none;
    }

    .cat-section-header {
        margin-bottom: 12px;
    }

    .featured-grid,
    .site-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .site-card {
        min-height: 58px;
        padding: 9px;
        gap: 9px;
    }

    .card-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .card-icon svg {
        width: 20px;
        height: 20px;
    }

    .card-info strong {
        font-size: 13px;
    }

    .card-info small {
        display: block;
        font-size: 11px;
    }

    .site-badge {
        height: 16px;
        padding: 0 5px;
        font-size: 10px;
    }

    .single-page,
    .submit-page {
        width: calc(100% - 20px);
    }

    .service-icon-btn,
    .m-cat-fab {
        width: 46px;
        height: 46px;
    }
}
