/*
 * AeroCore Community — Zibll-inspired card system.
 * Original implementation; no Zibll assets or code are included.
 */

/* -------------------------------------------------------------------------
 * Tokens
 * ---------------------------------------------------------------------- */

html:root {
    --theme-color: #ff7a00;
    --color-link: #2f6bff;
    --color-link-hover: #1d4ed8;
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --header-blur: 16px;
    --header-blur-classic: 8px;
    --header-bg-color: rgba(255, 255, 255, 0.9);

    --zb-blue: #2f6bff;
    --zb-blue-deep: #1c4fd7;
    --zb-orange: #ff7a00;
    --zb-orange-light: #ff9f1a;
    --zb-ink: #071a2b;
    --zb-ink-2: #0d2d47;
    --zb-bg: #f4f6fa;
    --zb-card: #ffffff;
    --zb-text: #172433;
    --zb-text-2: #43546a;
    --zb-muted: #77879a;
    --zb-line: #e8eef6;
    --zb-line-strong: #dce5f0;
    --zb-shadow: 0 14px 34px -24px rgba(10, 31, 55, 0.24);
    --zb-shadow-hover: 0 22px 44px -24px rgba(10, 31, 55, 0.32);

    --bg-body: var(--zb-bg);
    --bg-card: var(--zb-card);
    --bg-hover: #f7f9fc;
    --bg-secondary: #f8fafd;
    --border-primary: var(--zb-line);
    --border-secondary: #f0f4f9;
    --text-primary: var(--zb-text);
    --text-secondary: var(--zb-text-2);
    --text-tertiary: #5f7187;
    --text-muted: #8b99aa;
    --text-content: #35445a;
    --caption-color: var(--zb-text);
}

html[data-theme="dark"]:root {
    --theme-color: #ff9f1a;
    --color-link: #7ea2ff;
    --color-link-hover: #a8beff;
    --header-bg-color: rgba(12, 22, 34, 0.92);

    --zb-blue: #6f94ff;
    --zb-blue-deep: #4f78f5;
    --zb-orange: #ff9f1a;
    --zb-orange-light: #ffb84d;
    --zb-ink: #08131f;
    --zb-ink-2: #0e2235;
    --zb-bg: #0c1622;
    --zb-card: #132131;
    --zb-text: #edf3fa;
    --zb-text-2: #c1cedd;
    --zb-muted: #93a4b7;
    --zb-line: rgba(222, 235, 250, 0.12);
    --zb-line-strong: rgba(222, 235, 250, 0.2);
    --zb-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.8);
    --zb-shadow-hover: 0 24px 50px -24px rgba(0, 0, 0, 0.9);

    --bg-body: var(--zb-bg);
    --bg-card: var(--zb-card);
    --bg-hover: #192a3d;
    --bg-secondary: #101e2d;
    --border-primary: var(--zb-line);
    --border-secondary: rgba(222, 235, 250, 0.07);
    --text-primary: var(--zb-text);
    --text-secondary: var(--zb-text-2);
    --text-tertiary: #a8b7c7;
    --text-muted: #8798aa;
    --text-content: #d2dde9;
    --caption-color: var(--zb-text);
}

/* -------------------------------------------------------------------------
 * Base
 * ---------------------------------------------------------------------- */

body.aerocore-community {
    background-color: var(--zb-bg);
    color: var(--zb-text);
    font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.aerocore-community ::selection {
    background: var(--zb-orange);
    color: #fff;
}

body.aerocore-community .page-container,
body.aerocore-community .zb-shell {
    width: min(1240px, calc(100% - 48px));
    max-width: 1240px;
    margin-inline: auto;
}

@media (max-width: 720px) {
    body.aerocore-community .page-container,
    body.aerocore-community .zb-shell {
        width: min(100% - 28px, 1240px);
    }
}

body.aerocore-community a {
    text-underline-offset: 3px;
}

body.aerocore-community img {
    max-width: 100%;
    height: auto;
}

/* -------------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------------- */

body.aerocore-community .site-header {
    position: relative;
    z-index: 30;
    border-bottom: 1px solid var(--zb-line);
    transition: box-shadow 0.25s ease;
}

body.aerocore-community .site-header.is-scrolled {
    box-shadow: 0 10px 28px -22px rgba(10, 31, 55, 0.45);
}

body.aerocore-community .site-header__top {
    background: var(--header-bg-color);
    backdrop-filter: blur(var(--header-blur));
    -webkit-backdrop-filter: blur(var(--header-blur));
}

body.aerocore-community .site-header__top-inner,
body.aerocore-community .site-header__bottom-inner,
body.aerocore-community .site-footer__inner {
    width: min(1240px, calc(100% - 48px));
}

body.aerocore-community .site-header__bottom {
    background: var(--zb-card);
}

body.aerocore-community .site-logo-text {
    color: var(--zb-text);
    font-weight: 850;
    letter-spacing: -0.05em;
    font-size: 1.22rem;
}

body.aerocore-community .site-logo-img {
    max-height: 32px;
}

body.aerocore-community .site-header__search {
    border: 1px solid var(--zb-line);
    border-radius: 999px;
    background: var(--zb-bg);
    padding: 4px 8px 4px 16px;
}

body.aerocore-community .site-header__search-input {
    background: transparent;
    color: var(--zb-text);
    font-size: 0.86rem;
}

body.aerocore-community .site-header__search-btn {
    border-radius: 50%;
    color: var(--zb-muted);
}

body.aerocore-community .site-header__bottom a {
    color: var(--zb-text-2);
    font-weight: 650;
    padding: 14px 13px;
    position: relative;
}

body.aerocore-community .site-header__bottom a::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 7px;
    height: 2px;
    border-radius: 999px;
    background: var(--zb-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

body.aerocore-community .site-header__bottom a:hover {
    color: var(--zb-text);
}

body.aerocore-community .site-header__bottom a:hover::after {
    transform: scaleX(1);
}

body.aerocore-community .header-login-btn {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(110deg, var(--zb-orange), var(--zb-orange-light));
    color: #fff;
    padding: 9px 18px;
    font-weight: 750;
    box-shadow: 0 10px 22px -14px rgba(255, 122, 0, 0.7);
}

body.aerocore-community .header-login-btn:hover {
    color: #fff;
    filter: brightness(1.04);
    transform: translateY(-1px);
}

body.aerocore-community .nav-toggle {
    border: 1px solid var(--zb-line);
    border-radius: 10px;
    background: var(--zb-card);
}

/* -------------------------------------------------------------------------
 * Hero
 * ---------------------------------------------------------------------- */

.zb-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(58px, 9vw, 98px) 0 clamp(92px, 11vw, 124px);
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 122, 0, 0.38), transparent 34%),
        radial-gradient(circle at 14% 86%, rgba(47, 107, 255, 0.42), transparent 38%),
        linear-gradient(120deg, #061725 0%, #0a2942 55%, #0b3c50 100%);
    color: #fff;
}

.zb-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.zb-hero::after {
    content: "";
    position: absolute;
    left: -8%;
    right: -8%;
    bottom: -58%;
    height: 70%;
    border-radius: 50%;
    background: rgba(7, 26, 43, 0.42);
    filter: blur(2px);
}

.zb-hero .zb-shell {
    position: relative;
    z-index: 1;
}

.zb-hero__inner {
    max-width: 900px;
    text-align: center;
}

.zb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.zb-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--zb-orange-light);
    box-shadow: 0 0 0 4px rgba(255, 159, 26, 0.2);
}

.zb-hero__title {
    margin: 20px 0 14px;
    color: #fff;
    font-size: clamp(2.4rem, 5.2vw, 4.5rem);
    font-weight: 900;
    line-height: 1.03;
    letter-spacing: -0.07em;
}

.zb-hero__title em {
    color: #ffb84d;
    font-style: normal;
}

.zb-hero__desc {
    max-width: 42em;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.94rem, 1.35vw, 1.08rem);
    line-height: 1.85;
}

.zb-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(660px, 100%);
    margin: 30px auto 0;
    padding: 7px 7px 7px 20px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
}

.zb-search__icon {
    flex: 0 0 auto;
    color: #8b99aa;
}

.zb-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--zb-text);
    font-size: 0.95rem;
    padding: 10px 4px;
}

.zb-search input::placeholder {
    color: #9aa8b8;
}

.zb-search button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    padding: 11px 24px;
    background: linear-gradient(110deg, var(--zb-orange), var(--zb-orange-light));
    color: #fff;
    font-weight: 750;
    font-size: 0.86rem;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.zb-search button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.zb-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin-top: 20px;
}

.zb-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.zb-chip:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

/* -------------------------------------------------------------------------
 * Quick entries
 * ---------------------------------------------------------------------- */

.zb-quick-wrap {
    position: relative;
    z-index: 3;
    margin-top: -52px;
}

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

.zb-quick-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--zb-line);
    border-radius: 15px;
    background: var(--zb-card);
    box-shadow: var(--zb-shadow);
    color: var(--zb-text);
    text-decoration: none;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.zb-quick-card:hover {
    transform: translateY(-4px);
    border-color: var(--zb-line-strong);
    box-shadow: var(--zb-shadow-hover);
}

.zb-quick-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    color: #fff;
}

.zb-quick-card__icon svg {
    width: 22px;
    height: 22px;
}

.zb-icon-blue { background: linear-gradient(145deg, #3d7bff, #2458df); }
.zb-icon-orange { background: linear-gradient(145deg, #ff9f1a, #f26a00); }
.zb-icon-cyan { background: linear-gradient(145deg, #20c7c0, #0b9f9b); }
.zb-icon-pink { background: linear-gradient(145deg, #ff6f91, #e24672); }
.zb-icon-purple { background: linear-gradient(145deg, #8b7cff, #6552e8); }

.zb-quick-card__text {
    min-width: 0;
}

.zb-quick-card__name {
    display: block;
    color: var(--zb-text);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.zb-quick-card__desc {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--zb-muted);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* -------------------------------------------------------------------------
 * Home layout
 * ---------------------------------------------------------------------- */

.zb-home {
    padding: 24px 0 64px;
}

.zb-promo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 26px 30px;
    border-radius: 17px;
    background:
        radial-gradient(circle at 88% 28%, rgba(255, 255, 255, 0.22), transparent 28%),
        linear-gradient(110deg, #ff7a00, #ff9f1a 62%, #ffb84d);
    color: #fff;
    box-shadow: 0 20px 42px -28px rgba(255, 122, 0, 0.85);
}

.zb-promo::after {
    content: "";
    position: absolute;
    right: 13%;
    bottom: -70%;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    box-shadow: 0 0 0 26px rgba(255, 255, 255, 0.06), 0 0 0 52px rgba(255, 255, 255, 0.04);
}

.zb-promo__copy,
.zb-promo__action {
    position: relative;
    z-index: 1;
}

.zb-promo__copy {
    min-width: 0;
}

.zb-promo__kicker {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.zb-promo__title {
    margin: 8px 0 6px;
    color: #fff;
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
    font-weight: 850;
    letter-spacing: -0.04em;
}

.zb-promo__desc {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.84rem;
    line-height: 1.7;
}

.zb-promo__action {
    flex: 0 0 auto;
}

.zb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 19px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--zb-blue);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.zb-btn:hover {
    color: #fff;
    background: var(--zb-blue-deep);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -16px rgba(47, 107, 255, 0.8);
}

.zb-btn--orange {
    background: linear-gradient(110deg, #ff7a00, #ff9f1a);
}

.zb-btn--orange:hover {
    background: linear-gradient(110deg, #f26a00, #ff9408);
}

.zb-btn--ghost {
    border-color: var(--zb-line-strong);
    background: var(--zb-card);
    color: var(--zb-text);
}

.zb-btn--ghost:hover {
    background: var(--zb-bg);
    color: var(--zb-blue);
    box-shadow: none;
}

.zb-btn--white {
    background: #fff;
    color: #d85f00;
}

.zb-btn--white:hover {
    background: #fff7ed;
    color: #b64d00;
}

.zb-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    align-items: start;
}

.zb-feed,
.zb-sidebar {
    min-width: 0;
}

.zb-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.zb-section-title {
    margin: 0;
    color: var(--zb-text);
    font-size: 1.28rem;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.zb-section-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 16px;
    margin-right: 9px;
    border-radius: 999px;
    background: var(--zb-orange);
    vertical-align: -2px;
}

.zb-section-more {
    color: var(--zb-muted);
    font-size: 0.78rem;
    text-decoration: none;
    white-space: nowrap;
}

.zb-section-more:hover {
    color: var(--zb-blue);
}

.zb-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 10px;
    background: var(--zb-card);
    border: 1px solid var(--zb-line);
}

.zb-tab {
    padding: 7px 12px;
    border-radius: 7px;
    color: var(--zb-muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
}

.zb-tab.is-active,
.zb-tab:hover {
    background: #fff3e6;
    color: #d85f00;
}

.zb-post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.zb-post-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--zb-line);
    border-radius: 15px;
    background: var(--zb-card);
    box-shadow: var(--zb-shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.zb-post-card:hover {
    transform: translateY(-4px);
    border-color: var(--zb-line-strong);
    box-shadow: var(--zb-shadow-hover);
}

.zb-post-card__thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(135deg, rgba(47, 107, 255, 0.2), rgba(255, 122, 0, 0.25)),
        #eaf0f8;
}

.zb-post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.zb-post-card:hover .zb-post-card__thumb img {
    transform: scale(1.04);
}

.zb-post-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.9);
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -0.08em;
}

.zb-post-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 18px 15px;
}

.zb-post-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--zb-muted);
    font-size: 0.7rem;
}

.zb-post-card__cat {
    color: var(--zb-orange);
    font-weight: 750;
    text-decoration: none;
}

.zb-post-card__title {
    margin: 8px 0 8px;
    color: var(--zb-text);
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -0.025em;
}

.zb-post-card__title a {
    color: inherit;
    text-decoration: none;
}

.zb-post-card__title a:hover {
    color: var(--zb-blue);
}

.zb-post-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 14px;
    color: var(--zb-muted);
    font-size: 0.8rem;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.zb-post-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 11px;
    border-top: 1px solid var(--zb-line);
    color: var(--zb-muted);
    font-size: 0.7rem;
}

.zb-post-card__author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.zb-post-card__avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--zb-line);
}

.zb-empty {
    padding: 52px 24px;
    border: 1px dashed var(--zb-line-strong);
    border-radius: 15px;
    color: var(--zb-muted);
    text-align: center;
    background: var(--zb-card);
}

.zb-empty strong {
    display: block;
    margin-bottom: 7px;
    color: var(--zb-text);
    font-size: 1.04rem;
}

/* -------------------------------------------------------------------------
 * Sidebar
 * ---------------------------------------------------------------------- */

.zb-sidebar {
    position: sticky;
    top: 86px;
    display: grid;
    gap: 18px;
}

.zb-widget {
    overflow: hidden;
    border: 1px solid var(--zb-line);
    border-radius: 15px;
    background: var(--zb-card);
    box-shadow: var(--zb-shadow);
}

.zb-widget__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 0;
}

.zb-widget__title {
    margin: 0;
    color: var(--zb-text);
    font-size: 0.92rem;
    font-weight: 850;
}

.zb-widget__body {
    padding: 14px 18px 18px;
}

.zb-user-card {
    position: relative;
    text-align: center;
}

.zb-user-card__cover {
    height: 76px;
    background:
        radial-gradient(circle at 26% 10%, rgba(255, 255, 255, 0.35), transparent 28%),
        linear-gradient(110deg, #1f5ce8, #2f6bff 48%, #20b2c9);
}

.zb-user-card__body {
    position: relative;
    padding: 0 18px 18px;
}

.zb-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin-top: -35px;
    overflow: hidden;
    border: 4px solid var(--zb-card);
    border-radius: 50%;
    background: linear-gradient(145deg, #ff9f1a, #ff6a00);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 850;
    box-shadow: 0 8px 20px -12px rgba(10, 31, 55, 0.5);
}

.zb-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zb-user-card__name {
    margin: 9px 0 4px;
    color: var(--zb-text);
    font-size: 0.98rem;
    font-weight: 850;
}

.zb-user-card__desc {
    margin: 0;
    color: var(--zb-muted);
    font-size: 0.74rem;
    line-height: 1.6;
}

.zb-user-card__actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.zb-user-card__actions .zb-btn {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.76rem;
}

.zb-user-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--zb-line);
}

.zb-user-stat__value {
    color: var(--zb-text);
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.2;
}

.zb-user-stat__label {
    margin-top: 3px;
    color: var(--zb-muted);
    font-size: 0.66rem;
}

.zb-icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.zb-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 10px 4px;
    border-radius: 10px;
    color: var(--zb-muted);
    font-size: 0.66rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.zb-icon-link:hover {
    background: var(--zb-bg);
    color: var(--zb-blue);
}

.zb-icon-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--zb-bg);
}

.zb-icon-link__icon svg {
    width: 17px;
    height: 17px;
}

.zb-hot-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.zb-hot-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.zb-hot-item__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--zb-bg);
    color: var(--zb-muted);
    font-size: 0.66rem;
    font-weight: 800;
}

.zb-hot-item:nth-child(1) .zb-hot-item__index { background: #fff0e4; color: #e76800; }
.zb-hot-item:nth-child(2) .zb-hot-item__index { background: #eef3ff; color: #2f6bff; }
.zb-hot-item:nth-child(3) .zb-hot-item__index { background: #e9fbf9; color: #0b9f9b; }

.zb-hot-item__title {
    overflow: hidden;
    color: var(--zb-text-2);
    font-size: 0.78rem;
    line-height: 1.5;
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.zb-hot-item__title:hover {
    color: var(--zb-blue);
}

.zb-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.zb-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 7px;
    background: var(--zb-bg);
    color: var(--zb-muted);
    font-size: 0.7rem;
    text-decoration: none;
}

.zb-tag:hover {
    background: #fff3e6;
    color: #d85f00;
}

/* -------------------------------------------------------------------------
 * Community page
 * ---------------------------------------------------------------------- */

.zb-page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(46px, 7vw, 76px) 0;
    background:
        radial-gradient(circle at 84% 18%, rgba(255, 122, 0, 0.34), transparent 32%),
        linear-gradient(115deg, #071a2b, #0b304a);
    color: #fff;
}

.zb-page-hero::after {
    content: "";
    position: absolute;
    right: -8%;
    bottom: -70%;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.04), 0 0 0 68px rgba(255, 255, 255, 0.03);
}

.zb-page-hero .zb-shell {
    position: relative;
    z-index: 1;
}

.zb-community-page .zb-page-hero .zb-shell,
.zb-mall-page .zb-page-hero .zb-shell {
    max-width: 880px;
    text-align: center;
}

.zb-community-page .zb-page-hero__actions,
.zb-mall-page .zb-page-hero__actions,
.zb-community-page .zb-page-hero__stats,
.zb-mall-page .zb-page-hero__stats {
    justify-content: center;
}

.zb-page-hero__title {
    margin: 12px 0 8px;
    color: #fff;
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    font-weight: 880;
    letter-spacing: -0.055em;
}

.zb-page-hero__desc {
    max-width: 42em;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.8;
}

.zb-page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.zb-page-hero__actions .zb-btn {
    min-height: 40px;
    padding-inline: 20px;
}

.zb-page-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: 26px;
}

.zb-page-hero__stat {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.zb-page-hero__stat strong {
    color: #ffb84d;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
}

.zb-page-hero__stat span {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.74rem;
}

.zb-community {
    padding: 26px 0 64px;
}

.zb-board-section {
    margin-bottom: 26px;
}

.zb-board-section:last-child {
    margin-bottom: 0;
}

.zb-community__content {
    margin-top: 26px;
    padding: 4px 0;
    color: var(--text-content);
    line-height: 1.9;
}

.zb-community-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.zb-community__main {
    min-width: 0;
}

.zb-board-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.zb-board {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--zb-line);
    border-radius: 14px;
    background: var(--zb-card);
    box-shadow: var(--zb-shadow);
    color: var(--zb-text);
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.zb-board:hover {
    transform: translateY(-3px);
    border-color: var(--zb-line-strong);
    box-shadow: var(--zb-shadow-hover);
}

.zb-board__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(145deg, #2f6bff, #1c4fd7);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 850;
}

.zb-board:nth-child(2n) .zb-board__icon {
    background: linear-gradient(145deg, #ff9f1a, #f26a00);
}

.zb-board__main {
    min-width: 0;
    flex: 1;
}

.zb-board__name {
    display: block;
    color: var(--zb-text);
    font-size: 0.92rem;
    font-weight: 800;
}

.zb-board__desc {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: var(--zb-muted);
    font-size: 0.74rem;
    line-height: 1.6;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zb-board__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: var(--zb-muted);
    font-size: 0.68rem;
}

.zb-board__count {
    color: var(--zb-blue);
    font-weight: 750;
}

.zb-notice {
    padding: 18px 20px;
    border: 1px solid #ffe3c2;
    border-radius: 12px;
    background: #fff8f0;
    color: #9a5200;
    font-size: 0.82rem;
    line-height: 1.7;
}

html[data-theme="dark"] .zb-notice {
    border-color: rgba(255, 159, 26, 0.24);
    background: rgba(255, 159, 26, 0.08);
    color: #ffc370;
}

/* Parent BBS plugin polish */
body.aerocore-community .bbs-home {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    padding: 26px 0 64px;
}

body.aerocore-community .bbs-home__main,
body.aerocore-community .bbs-home__sidebar {
    min-width: 0;
}

body.aerocore-community .bbs-cat {
    margin-bottom: 22px;
}

body.aerocore-community .bbs-cat__title {
    margin: 0 0 12px;
    color: var(--zb-text);
    font-size: 1rem;
    font-weight: 850;
}

body.aerocore-community .bbs-cat__boards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

body.aerocore-community .bbs-board {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--zb-line);
    border-radius: 13px;
    background: var(--zb-card);
    box-shadow: var(--zb-shadow);
    color: var(--zb-text);
    text-decoration: none;
}

body.aerocore-community .bbs-board:hover {
    transform: translateY(-3px);
    box-shadow: var(--zb-shadow-hover);
}

body.aerocore-community .bbs-board__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(145deg, #2f6bff, #1c4fd7);
    color: #fff;
    font-weight: 850;
}

body.aerocore-community .bbs-board__name {
    color: var(--zb-text);
    font-weight: 800;
}

body.aerocore-community .bbs-board__desc,
body.aerocore-community .bbs-board__last-meta {
    color: var(--zb-muted);
    font-size: 0.72rem;
}

/* -------------------------------------------------------------------------
 * Mall / resource page
 * ---------------------------------------------------------------------- */

.zb-mall {
    padding: 26px 0 64px;
}

.zb-mall-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.zb-mall-note {
    color: var(--zb-muted);
    font-size: 0.76rem;
}

.zb-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.zb-product {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--zb-line);
    border-radius: 15px;
    background: var(--zb-card);
    box-shadow: var(--zb-shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.zb-product:hover {
    transform: translateY(-4px);
    border-color: var(--zb-line-strong);
    box-shadow: var(--zb-shadow-hover);
}

.zb-product__cover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.28), transparent 30%),
        linear-gradient(135deg, #2f6bff, #1c4fd7);
    color: #fff;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.08em;
}

.zb-product:nth-child(3n + 2) .zb-product__cover {
    background:
        radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.24), transparent 30%),
        linear-gradient(135deg, #ff9f1a, #f26a00);
}

.zb-product:nth-child(3n) .zb-product__cover {
    background:
        radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.24), transparent 30%),
        linear-gradient(135deg, #20c7c0, #0b7f9f);
}

.zb-product__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zb-product__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 9px;
    border-radius: 6px;
    background: rgba(7, 26, 43, 0.62);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    backdrop-filter: blur(4px);
}

.zb-product__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 17px 16px;
}

.zb-product__title {
    margin: 0 0 6px;
    color: var(--zb-text);
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.45;
}

.zb-product__desc {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 14px;
    color: var(--zb-muted);
    font-size: 0.75rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.zb-product__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--zb-line);
}

.zb-product__price {
    color: #e76800;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.zb-product__price small {
    font-size: 0.66rem;
    font-weight: 600;
}

.zb-product__action {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.72rem;
}

/* -------------------------------------------------------------------------
 * Generic content surfaces
 * ---------------------------------------------------------------------- */

body.aerocore-community .article-item,
body.aerocore-community .single-article,
body.aerocore-community .widget {
    border: 1px solid var(--zb-line);
    border-radius: 15px;
    background: var(--zb-card);
    box-shadow: var(--zb-shadow);
}

body.aerocore-community .article-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--zb-shadow-hover);
}

body.aerocore-community .article-item__title {
    letter-spacing: -0.03em;
    font-weight: 800;
}

body.aerocore-community .single-article__title {
    letter-spacing: -0.05em;
    font-weight: 880;
}

body.aerocore-community .single-article__content {
    color: var(--text-content);
    line-height: 1.9;
}

body.aerocore-community .single-article__content blockquote {
    border-left: 3px solid var(--zb-orange);
    background: var(--zb-bg);
    border-radius: 0 10px 10px 0;
    padding: 18px 20px;
}

body.aerocore-community .widget-title {
    color: var(--zb-text);
    font-weight: 850;
}

body.aerocore-community .site-footer {
    border-top: 1px solid var(--zb-line);
    background: var(--zb-card);
}

body.aerocore-community .site-footer__name {
    letter-spacing: -0.04em;
    font-weight: 850;
}

/* Floating actions */
.zb-float {
    position: fixed;
    right: 20px;
    bottom: 26px;
    z-index: 60;
    display: grid;
    gap: 8px;
}

.zb-float button,
.zb-float a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--zb-line);
    border-radius: 12px;
    background: var(--zb-card);
    color: var(--zb-text-2);
    box-shadow: var(--zb-shadow);
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.zb-float button:hover,
.zb-float a:hover {
    color: var(--zb-orange);
    transform: translateY(-2px);
}

.zb-float button[hidden] {
    display: none;
}

/* -------------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------------- */

@media (max-width: 1080px) {
    .zb-layout,
    .zb-community-grid,
    body.aerocore-community .bbs-home {
        grid-template-columns: minmax(0, 1fr) 292px;
    }

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

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

@media (max-width: 860px) {
    body.aerocore-community .site-header__top-inner,
    body.aerocore-community .site-header__bottom-inner,
    body.aerocore-community .site-footer__inner {
        width: min(100% - 32px, 1240px);
    }

    .zb-hero {
        padding-top: 52px;
    }

    .zb-layout,
    .zb-community-grid,
    body.aerocore-community .bbs-home {
        grid-template-columns: 1fr;
    }

    .zb-sidebar {
        position: static;
    }

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

    .zb-promo__action {
        width: 100%;
    }

    .zb-promo__action .zb-btn {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .zb-quick {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .zb-quick-wrap {
        margin-top: -38px;
    }

    .zb-post-grid,
    .zb-board-grid,
    .zb-product-grid,
    body.aerocore-community .bbs-cat__boards {
        grid-template-columns: 1fr;
    }

    .zb-search {
        padding-left: 14px;
    }

    .zb-search button {
        padding-inline: 18px;
    }

    .zb-hero__title {
        font-size: clamp(2.1rem, 11vw, 3.3rem);
    }

    .zb-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .zb-float {
        right: 12px;
        bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zb-post-card,
    .zb-post-card__thumb img,
    .zb-quick-card,
    .zb-product,
    .zb-btn,
    .zb-board {
        transition: none;
    }
}
