/* =========================================================
   AeroCore Green — 广然笔记式绿白博客皮肤
   主色 #41B883 / 圆角 5px / 经典浅色头部 / 1fr + 300px 侧栏
   ========================================================= */

html:root {
    --theme-color: #41B883;
    --color-link: #41B883;
    --color-link-hover: #2f9d6e;
    --border-radius: 5px;
    --border-radius-sm: 3px;
    --header-blur: 100px;
    --header-blur-classic: 8px;
    --header-bg-color: #FEFFFE;

    --zb-blue: #2f8f68;
    --zb-blue-deep: #237654;
    --zb-orange: #41B883;
    --zb-orange-light: #63c99b;
    --zb-ink: #1d2b24;
    --zb-ink-2: #2f453a;
    --zb-bg: #f4f8f5;
    --zb-card: #ffffff;
    --zb-text: #1f2d27;
    --zb-text-2: #52665c;
    --zb-muted: #7c8f85;
    --zb-line: #e6eee9;
    --zb-line-strong: #d8e5dd;
    --zb-shadow: 0 14px 34px -26px rgba(22, 58, 42, .22);
    --zb-shadow-hover: 0 22px 44px -26px rgba(22, 58, 42, .3);

    --bg-body: #f4f8f5;
    --bg-card: #ffffff;
    --bg-hover: #f2f8f4;
    --bg-secondary: #eef5f0;
    --border-primary: #e6eee9;
    --border-secondary: #eef3f0;
    --text-primary: #1f2d27;
    --text-secondary: #52665c;
    --text-tertiary: #7c8f85;
    --text-muted: #8b9b92;
}

html[data-theme="dark"]:root {
    --header-bg-color: #262628;
    --bg-body: #171c19;
    --bg-card: #202723;
    --bg-hover: #26302a;
    --bg-secondary: #26302a;
    --border-primary: #334039;
    --border-secondary: #2b3630;
    --text-primary: #e8f1ec;
    --text-secondary: #b7c8bf;
    --text-tertiary: #8fa59a;
    --text-muted: #83968b;
    --zb-ink: #e8f1ec;
    --zb-text: #e8f1ec;
    --zb-text-2: #b7c8bf;
    --zb-muted: #8fa59a;
    --zb-bg: #171c19;
    --zb-card: #202723;
    --zb-line: #334039;
}

body {
    background: var(--bg-body);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ---------- 头部：浅色、细边框、菜单靠右 ---------- */
.site-header--classic {
    background: var(--header-bg-color);
    box-shadow: 0 1px 0 rgba(31, 45, 39, .06), 0 8px 30px -24px rgba(31, 45, 39, .18);
    border-bottom: 1px solid rgba(31, 45, 39, .05);
}

.site-header--classic .site-header__top-inner {
    height: 56px;
}

.site-header--classic .site-header__search-btn,
.site-header--classic .theme-toggle {
    color: #53665b;
}

.site-header--classic .site-header__search-btn:hover,
.site-header--classic .theme-toggle:hover {
    background: #f0f7f3;
    color: #1f2d27;
}

.site-header--classic .site-nav--inline {
    margin-left: auto;
}

.site-header--classic .nav-list {
    gap: 4px;
}

.site-header--classic .nav-list li a {
    color: #40544a;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    padding: 7px 10px;
}

.site-header--classic .nav-list li a:hover,
.site-header--classic .nav-list li.current-menu-item > a,
.site-header--classic .nav-list li.current-menu-ancestor > a {
    color: #1f7f5b;
    background: #edf7f1;
}

.site-header--classic .header-login-btn {
    color: #1f7f5b;
    background: #f0f8f4;
    border-color: #dcebe3;
}

.site-header--classic .header-login-btn:hover {
    color: #fff;
    background: var(--theme-color);
    border-color: var(--theme-color);
}

.site-logo-text {
    color: #1d2b24 !important;
    font-weight: 700;
    letter-spacing: -.02em;
}

.site-logo-text::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 5px;
    border-radius: 50%;
    background: var(--theme-color);
    vertical-align: 3px;
}

/* ---------- 首页布局 ---------- */
.g-home {
    padding-bottom: 34px;
}

.g-home__layout {
    margin-bottom: 0;
}

.g-home__grid {
    align-items: start;
}

.g-main {
    min-width: 0;
}

.g-main > .slider-component {
    margin-bottom: 14px;
}

.g-main > .quad-images {
    margin-bottom: 14px;
}

.g-main > .main-article-list {
    margin-bottom: 14px;
}

/* 轮播：与 grbj 相同的 330 / 140 高度 */
.g-home .slider-component {
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #e9f2ec;
}

.g-home .slider-component .swiper {
    height: var(--slider-h, 330px);
}

.g-home .slider-component .swiper-slide img {
    width: 100%;
    height: 100%;
    display: block;
}

/* 文章列表卡片：给内容留白，而不是把卡片塞满 */
.g-home .main-article-list {
    padding: 20px 24px;
    border-radius: var(--border-radius);
    background: var(--bg-card);
    box-shadow: 0 1px 0 rgba(31, 45, 39, .02);
}

.g-home .article-tabs {
    gap: 8px;
    margin-bottom: 18px;
}

.g-home .article-tab {
    padding: 6px 15px;
    border-radius: 20px;
    background: #f1f7f3;
    color: #63766b;
    font-size: 13px;
    font-weight: 600;
}

.g-home .article-tab:hover {
    color: #2f8f68;
    background: #eaf5ef;
}

.g-home .article-tab.active {
    color: #fff;
    background: var(--theme-color);
    box-shadow: 0 4px 12px -6px rgba(65, 184, 131, .65);
}

.g-home .article-list--image_text .article-item {
    gap: 20px;
    padding: 20px 0;
}

.g-home .article-list--image_text .article-item__thumb {
    width: 230px;
    height: 144px;
    border-radius: 5px;
    background: #edf5f0;
}

.g-home .article-list--image_text .article-item__title {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 9px;
    color: #1f2d27;
}

.g-home .article-list--image_text .article-item__excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: #5c6f64;
    -webkit-line-clamp: 2;
}

.g-home .article-list--image_text .article-item__meta {
    padding-top: 10px;
}

.g-home .article-list--image_text .article-item__date,
.g-home .article-list--image_text .article-item__stat {
    font-size: 12px;
    color: #8b9b92;
}

.g-home .article-item__sticky {
    display: inline-flex;
    align-items: center;
    height: 20px;
    margin-right: 8px;
    padding: 0 7px;
    border-radius: 3px;
    background: #e9f7f0;
    color: #2f8f68;
    font-size: 11px;
    font-weight: 600;
    vertical-align: 2px;
}

.g-home .article-load-more {
    padding: 16px 0 4px;
}

.g-home .load-more-btn {
    border: 1px solid #dcebe3;
    border-radius: 4px;
    background: #fff;
    color: #3c5a4b;
    padding: 9px 22px;
    font-size: 13px;
}

.g-home .load-more-btn:hover {
    border-color: var(--theme-color);
    color: #2f8f68;
    background: #f5fbf8;
}

/* ---------- 侧栏 ---------- */
.g-sidebar {
    min-width: 0;
    position: sticky;
    top: 76px;
}

.g-widget-area .widget,
.g-widget {
    margin-bottom: 14px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: var(--border-radius);
    box-shadow: 0 1px 0 rgba(31, 45, 39, .02);
}

.g-widget-area .widget:last-child {
    margin-bottom: 0;
}

.g-widget-area .widget-title,
.g-widget .widget-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 14px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--border-secondary);
    color: #1f2d27;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    position: relative;
}

.g-widget-area .widget-title::after,
.g-widget .widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 32px;
    height: 2px;
    border-radius: 2px;
    background: var(--theme-color);
}

.g-widget-empty {
    margin: 0;
    color: #8b9b92;
    font-size: 13px;
}

/* 热门文章：编号列表 */
.g-rank-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.g-rank-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed #edf3ef;
}

.g-rank-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.g-rank-item__index {
    flex: 0 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 4px;
    background: #f0f6f2;
    color: #7c8f85;
    font-size: 11px;
    font-weight: 600;
}

.g-rank-item__index.is-top {
    background: #e8f7ef;
    color: #2f8f68;
}

.g-rank-item__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 4px;
}

.g-rank-item__title {
    color: #2a3b32;
    font-size: 13px;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color .2s;
}

.g-rank-item:hover .g-rank-item__title {
    color: var(--color-link);
}

.g-rank-item__meta {
    color: #93a39a;
    font-size: 11px;
    line-height: 1.3;
}

/* 文章推荐：小图 + 标题 */
.g-recommend-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.g-recommend-item {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed #edf3ef;
}

.g-recommend-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.g-recommend-item__thumb {
    flex: 0 0 74px;
    width: 74px;
    height: 54px;
    overflow: hidden;
    border-radius: 4px;
    background: #edf5f0;
}

.g-recommend-item__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.g-recommend-item:hover .g-recommend-item__thumb img {
    transform: scale(1.04);
}

.g-recommend-item__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #eef8f2, #dceee4);
    color: #3a9c73;
    font-size: 18px;
    font-weight: 600;
}

.g-recommend-item__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 5px;
}

.g-recommend-item__title {
    color: #2a3b32;
    font-size: 13px;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color .2s;
}

.g-recommend-item:hover .g-recommend-item__title {
    color: var(--color-link);
}

.g-recommend-item__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #93a39a;
    font-size: 11px;
    line-height: 1.2;
}

/* 标签 */
.g-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.g-tag {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 9px;
    border-radius: 3px;
    background: #f2f8f4;
    color: #5a7064;
    font-size: 12px;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.g-tag:hover {
    background: #e5f5ec;
    color: #2f8f68;
}

/* 父主题小工具也统一绿白卡片 */
.g-widget-area .widget {
    border: 1px solid var(--border-secondary);
}

.g-widget-area .widget-title {
    border-bottom: 1px solid var(--border-secondary);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .g-home__grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .g-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .g-sidebar .g-widget-area {
        display: contents;
    }

    .g-sidebar .widget {
        margin-bottom: 0;
    }

    .g-sidebar .widget:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 680px) {
    .g-home {
        padding-bottom: 24px;
    }

    .g-home .main-article-list {
        padding: 16px 16px;
    }

    .g-home .article-tabs {
        gap: 6px;
        margin-bottom: 14px;
    }

    .g-home .article-tab {
        padding: 6px 12px;
        font-size: 12px;
    }

    .g-home .article-list--image_text .article-item {
        flex-direction: column;
        gap: 12px;
        padding: 16px 0;
    }

    .g-home .article-list--image_text .article-item__thumb {
        width: 100%;
        height: 188px;
    }

    .g-home .article-list--image_text .article-item__title {
        font-size: 18px;
        margin-bottom: 7px;
    }

    .g-home .article-list--image_text .article-item__excerpt {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }

    .g-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .g-home .slider-component .swiper {
        height: var(--slider-h-mobile, 140px);
    }
}

/* ---------- 旧社区 / 商城页面的绿色兼容 ---------- */
.aerocore-community .zb-hero {
    background:
        radial-gradient(circle at 18% 20%, rgba(65, 184, 131, .2), transparent 42%),
        linear-gradient(135deg, #edf8f2, #f9fcfa);
    color: #1f2d27;
}

.aerocore-community .zb-eyebrow {
    color: #2f8f68;
}

.aerocore-community .zb-hero__title,
.aerocore-community .zb-hero__title em {
    color: #1d2b24;
}

.aerocore-community .zb-hero__desc {
    color: #5c7064;
}

.aerocore-community .zb-search {
    background: #fff;
    border-color: #dfece5;
}

.aerocore-community .zb-search button,
.aerocore-community .zb-btn {
    background: var(--theme-color);
    color: #fff;
}

.aerocore-community .zb-search button:hover,
.aerocore-community .zb-btn:hover {
    background: #2f9d6e;
}

.aerocore-community .zb-chip {
    background: #fff;
    border-color: #dfece5;
    color: #52665c;
}

.aerocore-community .zb-chip:hover {
    border-color: var(--theme-color);
    color: #2f8f68;
}

.aerocore-community .zb-quick-card,
.aerocore-community .zb-post-card,
.aerocore-community .zb-widget {
    border-color: #e6eee9;
}

.aerocore-community .zb-promo {
    background: linear-gradient(135deg, #2f8f68, #41b883);
}

.aerocore-community .zb-post-card__cat,
.aerocore-community .zb-section-more {
    color: #2f8f68;
}

.aerocore-community .zb-post-card:hover {
    border-color: #cfe8db;
}
