/* 
 ============================================
 
   版权所有 © 2026 墨迹语CMS 
   https://www.mojiyucms.com/
   
   ============================================ 
*/
:root {
    --gx2-bg: #f6f1e7;
    --gx2-bg-2: #fbf8f1;
    --gx2-ink: #1f2328;
    --gx2-muted: #5a5f66;
    --gx2-line: rgba(31, 35, 40, .14);
    --gx2-card: #ffffffcc;
    --gx2-card-solid: #ffffff;
    --gx2-accent: #9a1f24;
    --gx2-accent-2: #c7a25a;
    --gx2-radius: 8px;
    --gx2-shadow: 0 10px 30px rgba(31, 35, 40, .08);
    --gx2-shadow-sm: 0 4px 15px rgba(31, 35, 40, .06);
    --gx2-transition: all 0.2s ease;
}

/* 基础样式（保持原样） */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: "Noto Serif SC", "PingFang SC", "Microsoft YaHei", serif;
    line-height: 1.7;
    color: var(--gx2-ink);
    background: var(--gx2-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--gx2-accent);
    text-decoration: none;
    transition: var(--gx2-transition);
}

a:hover {
    color: var(--gx2-accent-2);
}

/* 容器 */
.gx2-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面头部（标题+面包屑） */
.gx2-page-header {
    padding: 12px 0 0;
    margin-bottom: 0;
}

.gx2-page-header--boxed .gx2-container {
    padding: 0 20px;
}

.gx2-page-header--boxed .gx2-page-header__inner {
    border: 1px solid rgba(31, 35, 40, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.60);
    padding: 18px 20px;
}

.gx2-page-title {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.gx2-page-desc {
    margin: 10px 0 0;
    color: var(--gx2-muted);
}

.gx2-breadcrumb {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gx2-muted);
    flex-wrap: wrap;
}

.gx2-breadcrumb a {
    color: var(--gx2-muted);
}

.gx2-breadcrumb a:hover {
    color: var(--gx2-accent);
}

.gx2-breadcrumb__separator {
    opacity: 0.55;
}

.gx2-breadcrumb__current {
    color: var(--gx2-ink);
    font-weight: 650;
}

/* 文章内容 */
.gx2-layout__main {
    background: rgba(255, 255, 255, 0.70);
    border: 1px solid rgba(31, 35, 40, 0.12);
    border-radius: 12px;
    padding: 18px;
}

.gx2-article-content {
    background: transparent;
    border: 0;
    padding: 0;
}

.gx2-article-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px dashed rgba(31, 35, 40, 0.12);
}

.gx2-prose {
    color: var(--gx2-ink);
}

.gx2-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.gx2-prose h1,
.gx2-prose h2,
.gx2-prose h3,
.gx2-prose h4 {
    margin: 1.2em 0 0.6em;
}

.gx2-prose p {
    margin: 0.9em 0;
}

/* 表格样式 */
.gx2-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    background: #fff;
    border: 1px solid rgba(31, 35, 40, 0.12);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(31, 35, 40, 0.04);
}

.gx2-prose table th,
.gx2-prose table td {
    padding: 12px 16px;
    border: 1px solid rgba(31, 35, 40, 0.10);
    text-align: left;
    line-height: 1.6;
}

.gx2-prose table thead th,
.gx2-prose table .firstRow td {
    background: linear-gradient(135deg, rgba(154, 31, 36, 0.08), rgba(199, 162, 90, 0.05));
    color: var(--gx2-ink);
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    border-bottom: 2px solid rgba(154, 31, 36, 0.15);
}

.gx2-prose table tbody tr:nth-child(even) {
    background: rgba(249, 247, 242, 0.40);
}

.gx2-prose table tbody tr:hover {
    background: rgba(199, 162, 90, 0.08);
    transition: background 0.2s ease;
}

.gx2-prose table tbody td:first-child {
    font-weight: 650;
    color: var(--gx2-ink);
}

.gx2-prose table tbody td:not(:first-child) {
    color: var(--gx2-muted);
    text-align: center;
}

/* 移动端表格响应式 */
@media (max-width: 768px) {
    .gx2-prose table {
        display: table;
        font-size: 0.9rem;
    }

    .gx2-prose table th,
    .gx2-prose table td {
        padding: 10px 12px;
        word-break: break-word;
    }
}

.gx2-article-tags {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.gx2-article-tags__label {
    color: var(--gx2-muted);
}

.gx2-post-nav {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gx2-post-nav__link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(31, 35, 40, 0.12);
    background: rgba(255, 255, 255, 0.65);
    color: var(--gx2-ink);
}

.gx2-post-nav__link:hover {
    border-color: rgba(154, 31, 36, 0.22);
    background: #fff;
}

.gx2-post-nav__label {
    display: block;
    color: var(--gx2-muted);
    font-size: 0.85rem;
}

.gx2-post-nav__title {
    display: block;
    margin-top: 4px;
    font-weight: 700;
    line-height: 1.35;
}

@media (max-width: 768px) {
    .gx2-post-nav {
        grid-template-columns: 1fr;
    }
}

/* 工具类 */
.gx2-section {
    padding: 44px 0;
}

.gx2-section--compact {
    padding: 8px 0 24px;
}

.gx2-section--tight {
    padding: 30px 0;
}

.gx2-section--muted {
    background: linear-gradient(180deg, #f9f7f2 0%, #f0ece2 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 标题样式 */
.gx2-section__head {
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.95rem 1.25rem;
    border: 1px solid rgba(31, 35, 40, 0.12);
    border-left: 4px solid var(--gx2-accent);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.65);
}

.gx2-section__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gx2-ink);
    margin: 0;
    position: relative;
}

.gx2-section__subtitle {
    color: var(--gx2-muted);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 400;
    text-align: right;
}

/* 按钮样式 */
.gx2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--gx2-transition);
    cursor: pointer;
    border: none;
    outline: none;
    text-decoration: none;
}

.gx2-btn--primary {
    background: var(--gx2-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(154, 31, 36, 0.3);
}

.gx2-btn--primary:hover {
    background: #8a1b20;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(154, 31, 36, 0.4);
}

.gx2-btn--ghost {
    background: transparent;
    border: 1px solid var(--gx2-line);
    color: var(--gx2-ink);
}

.gx2-btn--ghost:hover {
    border-color: var(--gx2-accent);
    color: var(--gx2-accent);
    transform: translateY(-2px);
}

/* 卡片样式 */
.gx2-card {
    background: var(--gx2-card);
    border-radius: var(--gx2-radius);
    overflow: hidden;
    transition: var(--gx2-transition);
    box-shadow: var(--gx2-shadow-sm);
    border: 1px solid var(--gx2-line);
}

.gx2-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--gx2-shadow);
}

/* 标签样式 */
.gx2-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gx2-accent);
    background: rgba(154, 31, 36, 0.1);
    border-radius: 50px;
    margin-right: 0.5rem;
}

/* 元信息 */
.gx2-meta {
    font-size: 0.85rem;
    color: var(--gx2-muted);
    display: inline-flex;
    align-items: center;
}

.gx2-meta i {
    margin-right: 0.3rem;
    font-size: 0.9em;
}

/* 头部样式 */
.gx2-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(251, 248, 241, 0.90);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.gx2-header.gx2-header--scrolled {
    background: rgba(251, 248, 241, 0.98);
    box-shadow: 0 6px 18px rgba(31, 35, 40, 0.10);
}

.gx2-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gx2-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--gx2-ink);
    text-decoration: none;
    white-space: nowrap;
}

.gx2-brand__name {
    display: block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gx2-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gx2-accent), var(--gx2-accent-2));
    color: white;
    font-size: 1.1rem;
    flex: 0 0 auto;
}

/* 右侧操作区（搜索+菜单） */
.gx2-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* 主导航 */
.gx2-nav {
    display: flex;
    gap: 1.5rem;
}

.gx2-nav__link {
    color: var(--gx2-ink);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--gx2-transition);
}

.gx2-nav__link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gx2-accent);
    transition: var(--gx2-transition);
}

.gx2-nav__link:hover,
.gx2-nav__link--active {
    color: var(--gx2-accent);
}

.gx2-nav__link:hover:after,
.gx2-nav__link--active:after {
    width: 100%;
}

/* 搜索框 */
.gx2-search {
    position: relative;
    margin-left: 0;
}

.gx2-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(31, 35, 40, 0.12);
    background: rgba(255, 255, 255, 0.70);
    color: var(--gx2-ink);
    cursor: pointer;
    transition: var(--gx2-transition);
}

.gx2-menu-btn:hover {
    border-color: rgba(154, 31, 36, 0.22);
    background: #fff;
}

.gx2-search__input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border-radius: 50px;
    border: 1px solid var(--gx2-line);
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    width: 200px;
    transition: var(--gx2-transition);
}

.gx2-search__input:focus {
    outline: none;
    border-color: var(--gx2-accent);
    box-shadow: 0 0 0 3px rgba(154, 31, 36, 0.1);
    width: 250px;
}

.gx2-search__icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gx2-muted);
    font-size: 1rem;
}

/* 英雄区域 */
.gx2-hero {
    padding: 32px 0 48px;
    position: relative;
    overflow: hidden;
}

.gx2-hero__frame {
    border: 1px solid rgba(31, 35, 40, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.55);
    padding: 28px;
}

.gx2-no-scroll {
    overflow: hidden;
}

/* 移动端抽屉导航 */
.gx2-drawer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}

.gx2-drawer__mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gx2-drawer__panel {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: min(84vw, 340px);
    background: rgba(251, 248, 241, 0.98);
    border-right: 1px solid rgba(31, 35, 40, 0.12);
    box-shadow: 0 12px 30px rgba(31, 35, 40, 0.18);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

.gx2-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(31, 35, 40, 0.10);
}

.gx2-drawer__title {
    font-weight: 800;
    color: var(--gx2-ink);
}

.gx2-drawer__close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(31, 35, 40, 0.12);
    background: rgba(255, 255, 255, 0.70);
    color: var(--gx2-ink);
    cursor: pointer;
}

.gx2-drawer__body {
    padding: 14px 16px;
    overflow: auto;
}

.gx2-drawer__links {
    display: grid;
    gap: 8px;
}

.gx2-drawer__link {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(31, 35, 40, 0.10);
    background: rgba(255, 255, 255, 0.60);
    color: var(--gx2-ink);
    font-weight: 650;
}

.gx2-drawer__link:hover {
    border-color: rgba(154, 31, 36, 0.20);
    background: #fff;
}

.gx2-drawer__search {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    position: relative;
}

.gx2-drawer__icon {
    position: absolute;
    left: 12px;
    color: rgba(31, 35, 40, 0.55);
}

.gx2-drawer__input {
    width: 100%;
    padding: 10px 12px 10px 34px;
    border-radius: 999px;
    border: 1px solid rgba(31, 35, 40, 0.14);
    background: rgba(255, 255, 255, 0.75);
    outline: none;
}

.gx2-drawer__submit {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(154, 31, 36, 0.18);
    background: var(--gx2-accent);
    color: #fff;
    font-weight: 800;
}

.gx2-drawer--open {
    pointer-events: auto;
}

.gx2-drawer--open .gx2-drawer__mask {
    opacity: 1;
}

.gx2-drawer--open .gx2-drawer__panel {
    transform: translateX(0);
}

.gx2-hero--editorial {
    background: linear-gradient(135deg, #f9f7f2 0%, #f0ece2 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.gx2-hero__editorial {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 2rem;
}

.gx2-hero__copy {
    flex: 1;
    max-width: 600px;
}

.gx2-kicker {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gx2-accent);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(154, 31, 36, 0.1);
}

.gx2-kicker__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--gx2-accent);
    border-radius: 50%;
    margin-right: 0.5rem;
}

.gx2-hero__title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1.5rem;
    color: var(--gx2-ink);
    letter-spacing: -0.5px;
}

.gx2-hero__subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--gx2-muted);
    margin: 0 0 2rem;
    max-width: 90%;
}

.gx2-hero__cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.gx2-hero__stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.gx2-stat {
    text-align: center;
}

.gx2-stat__num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gx2-accent);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.gx2-stat__label {
    font-size: 0.85rem;
    color: var(--gx2-muted);
}

/* 侧边卡片 */
.gx2-asidecard {
    background: white;
    border-radius: var(--gx2-radius);
    overflow: hidden;
    box-shadow: var(--gx2-shadow);
    border: 1px solid var(--gx2-line);
    width: 360px;
}

.gx2-asidecard--framed {
    border: 2px solid rgba(31, 35, 40, 0.10);
}

.gx2-asidecard__head {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gx2-line);
    background: linear-gradient(135deg, #f9f7f2 0%, #f0ece2 100%);
}

.gx2-asidecard__head--lined {
    border-bottom: 2px solid rgba(154, 31, 36, 0.15);
}

.gx2-asidecard__title {
    font-size: 1.25rem;
    margin: 0 0 0.25rem;
    color: var(--gx2-ink);
}

.gx2-asidecard__desc {
    font-size: 0.85rem;
    color: var(--gx2-muted);
    margin: 0;
}

.gx2-asidecard__tools {
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.gx2-asidecard__tools--wide {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 1.25rem;
}

.gx2-aside-tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1rem 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--gx2-line);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--gx2-ink);
    text-align: center;
    transition: var(--gx2-transition);
}

.gx2-aside-tool i {
    color: var(--gx2-accent);
    font-size: 1.15rem;
}

.gx2-aside-tool span {
    font-weight: 600;
}

.gx2-aside-tool:hover {
    background: white;
    border-color: var(--gx2-accent);
    color: var(--gx2-accent);
    transform: translateY(-2px);
    box-shadow: var(--gx2-shadow-sm);
}

/* 简介区域 */
.gx2-bio {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: white;
    padding: 2.5rem;
    border-radius: var(--gx2-radius);
    box-shadow: var(--gx2-shadow-sm);
    border: 1px solid var(--gx2-line);
}

.gx2-bio--framed {
    border: 2px solid rgba(31, 35, 40, 0.10);
}

.gx2-bio__left {
    flex: 1;
}

.gx2-bio__title {
    font-size: 1.5rem;
    margin: 0 0 1rem;
    color: var(--gx2-ink);
    position: relative;
    padding-bottom: 0.75rem;
}

.gx2-bio__title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gx2-accent);
    border-radius: 3px;
}

.gx2-bio__text {
    color: var(--gx2-muted);
    line-height: 1.7;
    margin: 0;
}

.gx2-quicklinks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.gx2-quicklinks__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--gx2-line);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--gx2-ink);
    transition: var(--gx2-transition);
    text-align: center;
}

.gx2-quicklinks__item i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: var(--gx2-accent);
}

.gx2-quicklinks__item:hover {
    background: white;
    border-color: var(--gx2-accent);
    color: var(--gx2-accent);
    transform: translateY(-2px);
    box-shadow: var(--gx2-shadow-sm);
}

/* 精选推荐 */
.gx2-featured {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.gx2-featured__card {
    background: white;
    border-radius: var(--gx2-radius);
    overflow: hidden;
    box-shadow: var(--gx2-shadow-sm);
    border: 1px solid var(--gx2-line);
    transition: var(--gx2-transition);
}

.gx2-featured__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--gx2-shadow);
}

.gx2-featured__thumb {
    display: block;
    height: 180px;
    overflow: hidden;
}

.gx2-featured__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gx2-featured__card:hover .gx2-featured__thumb img {
    transform: scale(1.05);
}

.gx2-featured__body {
    padding: 1.5rem;
}

.gx2-featured__title {
    font-size: 1.2rem;
    margin: 0.75rem 0;
    line-height: 1.4;
}

.gx2-featured__title a {
    color: var(--gx2-ink);
    text-decoration: none;
    transition: var(--gx2-transition);
}

.gx2-featured__title a:hover {
    color: var(--gx2-accent);
}

.gx2-featured__excerpt {
    color: var(--gx2-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0.75rem 0 1rem;
}

/* 分站导航 */
.gx2-branches__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.gx2-branches__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(31, 35, 40, 0.12);
    background: rgba(255, 255, 255, 0.70);
    color: var(--gx2-ink);
    font-weight: 650;
    transition: var(--gx2-transition);
}

.gx2-branches__item:hover {
    background: #fff;
    border-color: rgba(154, 31, 36, 0.22);
    color: var(--gx2-accent);
}

.gx2-branches__icon {
    color: var(--gx2-accent);
    flex: 0 0 auto;
}

.gx2-branches__name {
    font-size: 0.95rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 友情链接 */
.gx2-friends__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gx2-friends__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(31, 35, 40, 0.12);
    background: rgba(255, 255, 255, 0.70);
    color: var(--gx2-ink);
    font-weight: 650;
    transition: var(--gx2-transition);
}

.gx2-friends__item:hover {
    background: #fff;
    border-color: rgba(154, 31, 36, 0.22);
    color: var(--gx2-accent);
}

.gx2-friends__name {
    font-size: 0.95rem;
    line-height: 1;
}

/* 布局 */
.gx2-layout {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.gx2-layout__main {
    flex: 1;
    min-width: 0;
}

.gx2-layout__side {
    width: 300px;
    flex-shrink: 0;
}

/* 文章列表 */
.gx2-postlist {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gx2-post {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--gx2-radius);
    box-shadow: var(--gx2-shadow-sm);
    border: 1px solid var(--gx2-line);
    transition: var(--gx2-transition);
}

.gx2-post:hover {
    transform: translateY(-3px);
    box-shadow: var(--gx2-shadow);
}

.gx2-post__thumb {
    display: block;
    width: 220px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.gx2-post__thumb img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gx2-post:hover .gx2-post__thumb img {
    transform: scale(1.05);
}

.gx2-post__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gx2-post__title {
    font-size: 1.3rem;
    margin: 0.5rem 0 0.75rem;
    line-height: 1.4;
}

.gx2-post__title a {
    color: var(--gx2-ink);
    text-decoration: none;
    transition: var(--gx2-transition);
}

.gx2-post__title a:hover {
    color: var(--gx2-accent);
}

.gx2-post__excerpt {
    color: var(--gx2-muted);
    line-height: 1.7;
    margin: 0 0 1rem;
    flex: 1;
}

/* 侧边栏卡片 */
.gx2-sidecard {
    background: white;
    border-radius: var(--gx2-radius);
    overflow: hidden;
    box-shadow: var(--gx2-shadow-sm);
    border: 1px solid var(--gx2-line);
    margin-bottom: 1.5rem;
}

.gx2-sidecard:last-child {
    margin-bottom: 0;
}

.gx2-sidecard__title {
    font-size: 1rem;
    font-weight: 700;
    padding: 1rem 1.25rem;
    margin: 0;
    background: linear-gradient(135deg, #f9f7f2 0%, #f0ece2 100%);
    border-bottom: 1px solid var(--gx2-line);
    color: var(--gx2-ink);
}

.gx2-sidecard__links {
    padding: 0.75rem 0;
}

.gx2-sidecard__link {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--gx2-muted);
    text-decoration: none;
    transition: var(--gx2-transition);
    font-size: 0.95rem;
}

.gx2-sidecard__link:hover {
    background: rgba(154, 31, 36, 0.05);
    color: var(--gx2-accent);
    padding-left: 1.5rem;
}

.gx2-sidecard--notice {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.gx2-sidecard__text {
    padding: 1.25rem;
    margin: 0;
    font-size: 0.9rem;
    color: var(--gx2-muted);
    line-height: 1.6;
}

/* 页脚 */
.gx2-footer {
    background: #2a2a2a;
    color: #b0b0b0;
    padding: 4rem 0 2rem;
    font-size: 0.95rem;
}

.gx2-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.gx2-footer__title {
    color: white;
    font-size: 1.1rem;
    margin: 0 0 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.gx2-footer__title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gx2-accent);
}

.gx2-footer__text {
    margin: 0 0 1.5rem;
    line-height: 1.7;
}

.gx2-footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gx2-footer__links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: var(--gx2-transition);
}

.gx2-footer__links a:hover {
    color: white;
    padding-left: 5px;
}

.gx2-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #777;
    font-size: 0.85rem;
}

.gx2-footer__bottom a {
    color: #999;
    text-decoration: none;
    transition: var(--gx2-transition);
}

.gx2-footer__bottom a:hover {
    color: white;
}

/* 工具页通用样式 */
.gx2-toolcard {
    background: rgba(255, 255, 255, 0.70);
    border: 1px solid rgba(31, 35, 40, 0.12);
    border-radius: 12px;
    padding: 24px;
}

.gx2-form__head {
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(31, 35, 40, 0.12);
}

.gx2-form__title {
    font-size: 1.3rem;
    font-weight: 700;
}

.gx2-form__subtitle {
    color: var(--gx2-muted);
    margin-top: 4px;
}

.gx2-form__grid {
    display: grid;
    gap: 16px;
}

.gx2-form__grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.gx2-form__grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.gx2-form__field {
    margin-bottom: 12px;
}

.gx2-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.gx2-input,
.gx2-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(31, 35, 40, 0.14);
    background: rgba(255, 255, 255, 0.75);
    outline: none;
    transition: var(--gx2-transition);
}

.gx2-input:focus,
.gx2-select:focus {
    border-color: var(--gx2-accent);
    box-shadow: 0 0 0 3px rgba(154, 31, 36, 0.1);
}

.gx2-radio {
    display: flex;
    gap: 10px;
    align-items: center;
}

.gx2-radio__item {
    display: inline-flex;
    align-items: center;
}

.gx2-radio__item input {
    margin-right: 5px;
}

.gx2-form__submit {
    margin-top: 20px;
}

.gx2-btn--block {
    width: 100%;
    padding: 12px;
}

.gx2-toolresult__cards {
    display: grid;
    gap: 16px;
}

.gx2-toolresult__cardhead {
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gx2-line);
}

.gx2-toolresult__body {
    padding: 16px;
}

.text-center {
    text-align: center;
}

.gx2-kvgrid {
    display: grid;
    gap: 8px 12px;
}

.gx2-kvgrid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.gx2-kv {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dotted rgba(31, 35, 40, 0.1);
}

.gx2-kv .k {
    color: var(--gx2-muted);
}

.gx2-kv--full {
    grid-column: 1 / -1;
}

.gx2-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gx2-pillar {
    border: 1px solid var(--gx2-line);
    border-radius: 8px;
    text-align: center;
    padding: 8px;
}

.gx2-pillar--master {
    border-color: var(--gx2-accent);
}

.gx2-pillar__tag {
    font-size: 0.8rem;
    color: var(--gx2-muted);
}

.gx2-pillar__main {
    display: flex;
    flex-direction: column;
    margin: 4px 0;
}

.gx2-pillar__gan,
.gx2-pillar__zhi {
    font-size: 1.5rem;
    font-weight: 700;
}

.gx2-pillar__meta {
    font-size: 0.8rem;
}

.gx2-pillar__meta .m {
    display: flex;
    justify-content: space-between;
}

.gx2-wx__bars {
    display: grid;
    gap: 6px;
}

.gx2-wx__bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gx2-wx__bar .n {
    width: 40px;
    font-weight: 600;
    color: var(--gx2-ink);
}

.gx2-wx__bar .track {
    flex: 1;
    height: 14px;
    /* 增加高度让柱状图更明显 */
    background: rgba(31, 35, 40, 0.10);
    /* 加深轨道背景色 */
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid rgba(31, 35, 40, 0.08);
}

.gx2-wx__bar .fill {
    display: block;
    height: 100%;
    transition: width 0.6s ease;
    /* 添加动画效果 */
}

.gx2-wx__bar .s {
    width: 60px;
    text-align: right;
    font-weight: 600;
    color: var(--gx2-muted);
}

.bar-jin {
    background: linear-gradient(90deg, #eab308, #fbbf24);
}

.bar-mu {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

.bar-shui {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.bar-huo {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.bar-tu {
    background: linear-gradient(90deg, #a16207, #ca8a04);
}

.gx2-accent {
    color: var(--gx2-accent) !important;
    /* 朱砂色文字强调 */
    font-weight: 650;
}

.gx2-wx__sum {
    margin-top: 12px;
    border-top: 1px dashed var(--gx2-line);
    padding-top: 12px;
}

/* 黄历时辰卡片样式 */
.gx2-hour-card {
    background: rgba(255, 255, 255, 0.60);
}

.gx2-hour-ji {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0.02)) !important;
}

.gx2-hour-xiong {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.02)) !important;
}

.gx2-hour-ji .gx2-hour-luck {
    color: #22c55e;
}

.gx2-hour-xiong .gx2-hour-luck {
    color: #ef4444;
}

.gx2-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gx2-chip {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    padding: 6px 10px;
    text-align: center;
}

.gx2-chip .t {
    font-size: 0.8rem;
    color: var(--gx2-muted);
}

.gx2-chip .v {
    font-weight: 700;
}

.gx2-note {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--gx2-muted);
    text-align: center;
}

.gx2-liunian {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.gx2-liunian__item {
    border: 1px solid var(--gx2-line);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
}

.gx2-liunian__item.is-current {
    border-color: var(--gx2-accent);
}

.gx2-toolintro {
    margin-top: 24px;
    border-top: 1px solid var(--gx2-line);
    padding-top: 24px;
}

.gx2-toolintro__head {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.gx2-form__subcard {
    border: 1px solid var(--gx2-line);
    padding: 16px;
    border-radius: 8px;
}

.gx2-form__subtitle {
    font-weight: 700;
    margin-bottom: 12px;
}

.gx2-hehun-score {
    text-align: center;
}

.gx2-hehun-score__label {
    color: var(--gx2-muted);
}

.gx2-hehun-score__val {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gx2-accent);
    line-height: 1;
}

.gx2-hehun-score__desc {
    font-size: 1.2rem;
}

.gx2-hehun-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

.gx2-hehun-compare .i {
    color: var(--gx2-accent);
}

.gx2-analysis-grid {
    display: grid;
    gap: 12px;
}

.gx2-analysis-item {
    border-left: 3px solid var(--gx2-accent);
    padding-left: 12px;
}

.gx2-analysis-item .h {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
}

.gx2-lunar-picker {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.gx2-lunar-date input {
    border: 1px solid var(--gx2-line);
    padding: 8px;
    border-radius: 8px;
}

.gx2-lunar-card {
    border: 1px solid var(--gx2-line);
    border-radius: 12px;
    overflow: hidden;
}

.gx2-lunar-card__head {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    background: rgba(0, 0, 0, 0.03);
}

.gx2-lunar-card__head .d {
    font-size: 3rem;
    font-weight: 800;
}

.yiji {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.yiji__col {
    padding: 16px;
    display: flex;
    gap: 12px;
}

.yiji__label {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.yiji__label--yi {
    border: 2px solid #22c55e;
    color: #22c55e;
}

.yiji__label--ji {
    border: 2px solid #ef4444;
    color: #ef4444;
}

.yiji__content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gx2-lunar-dirs {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    border-top: 1px solid var(--gx2-line);
}

.gx2-shichen {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.gx2-shichen__item {
    border: 1px solid var(--gx2-line);
    padding: 8px;
    border-radius: 8px;
}

.gx2-shichen__item.is-ji {
    border-left-color: #22c55e;
}

.gx2-shichen__item.is-xiong {
    border-left-color: #ef4444;
}

.gx2-jieqi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.gx2-jieqi-card {
    display: block;
    border: 1px solid var(--gx2-line);
    border-radius: 8px;
    padding: 12px;
}

.gx2-jieqi-card:hover {
    border-color: var(--gx2-accent);
}

.gx2-jieqi-detail-head {
    text-align: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px dashed var(--gx2-line);
}


/* 响应式设计 */
@media (max-width: 1200px) {
    .gx2-featured {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .gx2-brand__name {
        max-width: 160px;
    }

    .gx2-footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .gx2-hero__editorial {
        flex-direction: column;
        gap: 2rem;
    }

    .gx2-hero__copy {
        max-width: 100%;
        text-align: center;
    }

    .gx2-hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .gx2-hero__cta {
        justify-content: center;
    }

    .gx2-hero__stats {
        justify-content: center;
    }

    .gx2-bio {
        flex-direction: column;
        text-align: center;
    }

    .gx2-bio__title:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .gx2-layout {
        flex-direction: column;
    }

    .gx2-layout__side {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .gx2-brand__name {
        max-width: 140px;
    }

    .gx2-hero__editorial {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
    }

    .gx2-hero__frame {
        padding: 18px;
    }

    .gx2-hero__aside {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .gx2-asidecard {
        width: 100%;
        max-width: 332px;
        margin: 0 auto;
    }

    .gx2-featured {
        grid-template-columns: 1fr;
    }

    .gx2-post {
        flex-direction: column;
    }

    .gx2-post__thumb {
        width: 100%;
    }

    .gx2-post__thumb img {
        height: 200px;
    }

    .gx2-quicklinks {
        grid-template-columns: repeat(2, 1fr);
    }

    .gx2-nav {
        display: none;
    }

    .gx2-menu-btn {
        display: block;
    }
}

@media (max-width: 576px) {
    .gx2-hero__title {
        font-size: 2.2rem;
    }

    .gx2-hero__subtitle {
        font-size: 1.1rem;
    }

    .gx2-hero__cta {
        flex-direction: column;
    }

    .gx2-hero__stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .gx2-section {
        padding: 1rem 0;
    }

    .gx2-section--tight {
        padding: 2rem 0;
    }

    .gx2-bio {
        padding: 1.5rem;
    }

    .gx2-quicklinks {
        grid-template-columns: 1fr;
    }
}