/* --- 隐香阁主题样式 --- */

/* 核心板块 */
.yxg-core-section {
    margin: 20px 0;
}
.yxg-section-title {
    font-size: 1.8em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5em;
    font-family: var(--font-serif);
}
.yxg-core-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* 响应式网格 */
    gap: 1.5rem;
}
.yxg-core-item {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}
.yxg-core-item a {
    display: block;
    color: inherit;
    text-decoration: none;
}
.yxg-core-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
.yxg-core-img {
    height: 150px; /* 固定高度 */
    overflow: hidden;
}
.yxg-core-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持比例填充 */
}
.yxg-core-info {
    padding: 1rem;
}
.yxg-core-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    /* 使用 CSS 伪元素或背景图来定义 icon-tuijian, icon-hot 等 */
    /* 例如: */
    /*
    &.icon-tuijian::before { content: "🌟"; }
    &.icon-hot::before { content: "🔥"; }
    &.icon-jingxuan::before { content: "👑"; }
    &.icon-yajv::before { content: "🍵"; }
    */
}
.yxg-core-title {
    font-size: 1.2em;
    color: var(--primary-color);
    margin: 0.5rem 0;
    font-family: var(--font-serif);
}
.yxg-core-time {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin: 0;
}

/* 内容区域 */
.yxg-content-section {
    margin: 2rem 0;
}
.yxg-content-column {
    float: left;
    width: 49%; /* 左右各占一半 */
}
.yxg-content-left {
    margin-right: 2%; /* 左侧留右边距 */
}
.yxg-content-right {
    /* margin-left: 2%; */ /* 右侧不需要左边距 */
}
.yxg-section-block {
    margin-bottom: 2rem;
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.yxg-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}
.yxg-section-header h3 {
    margin: 0;
    font-size: 1.4em;
    color: var(--primary-color);
    font-family: var(--font-serif);
}
.yxg-section-header h3 a {
    color: inherit;
}
.yxg-section-more a {
    color: var(--accent-color);
    font-size: 0.9em;
}

/* 合作机构与友情链接 */
.yxg-partner-section,
.yxg-links-section {
    margin-top: 2rem;
    padding: 1rem;
    background-color: var(--secondary-color);
    border-radius: 8px;
}
.yxg-comm-t h3 span {
    font-size: 0.8em;
    color: var(--text-secondary);
    margin-left: 1rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .yxg-content-column {
        float: none;
        width: 100%;
        margin: 0 0 2rem 0; /* 取消浮动，垂直堆叠 */
    }
    .yxg-core-grid {
        grid-template-columns: 1fr; /* 移动端单列 */
    }
    .yxg-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .yxg-section-more {
        margin-top: 0.5rem;
    }
}