
    /* 基础变量与样式 (遵循 dev_html.md 规范) */
    :root {
        --color-primary: #1D2F46;
        --color-accent: #00E5FF;
        --text-main: #303133;
        --text-regular: #606266;
        --text-secondary: #909399;
        --border-color: #E4E7ED;
        --bg-color: #F5F7FA;
        --bg-card: #FFFFFF;
    }

    /* 覆盖部分默认样式，保证与网站主体一致 */
    .news-wrapper {
        background-color: var(--bg-color);
        color: var(--text-main);
        padding-bottom: 60px;
    }

    .news-wrapper a {
        text-decoration: none;
        color: inherit;
    }

    .news-wrapper ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    /* 头部样式 */
    .news-header {
        padding: 60px 20px 40px;
        text-align: center;
        background-color: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 40px;
    }

    .news-header__title {
        font-size: 36px;
        font-weight: 700;
        margin: 0 0 16px;
        color: #000;
    }

    .news-header__desc {
        font-size: 16px;
        color: var(--text-regular);
        margin: 0 auto 30px;
        max-width: 800px;
        line-height: 1.6;
    }

    /* 搜索框 */
    .news-wrapper .ai-search-wrapper {
        position: relative;
        max-width: 600px;
        margin: 0 auto;
        display: flex;
        align-items: center;
    }

    .news-wrapper .ai-search-input {
        width: 100%;
        height: 50px;
        padding: 0 100px 0 44px; /* 留出右侧按钮和左侧图标的空间 */
        border: 1px solid var(--border-color);
        border-radius: 30px;
        font-size: 16px;
        outline: none;
        box-sizing: border-box;
        transition: border-color 0.3s, box-shadow 0.3s;
    }

    .news-wrapper .ai-search-input:focus {
        border-color: #c0c4cc;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    .news-wrapper .ai-search-icon {
        position: absolute;
        left: 16px;
        color: var(--text-secondary);
        font-size: 20px;
        display: flex;
    }

    .news-wrapper .ai-search-btn {
        position: absolute;
        right: 6px;
        height: 38px;
        background: #000;
        color: #fff;
        border: none;
        padding: 0 24px;
        border-radius: 20px;
        font-size: 14px;
        cursor: pointer;
        transition: background-color 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .news-wrapper .ai-search-btn:hover {
        background: #333;
    }

    /* 布局容器 */
    .news-wrapper .main-container {
        width: 100%;
        margin: 0 auto;
        padding: 0 0 60px;
        display: grid;
        grid-template-columns: 380px 1fr;
        gap: 40px;
    }

    /* 左侧边栏 - 博客分类 */
    .news-wrapper .sidebar {
        position: sticky;
        top: 20px;
        align-self: start;
        background-color: #ffffff;
        border-radius: 12px;
        padding: 24px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
        border: 1px solid var(--border-color);
    }

    .sidebar-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 40px;
    }

    .nav-item {
        display: flex;
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
        padding: 20px 24px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        color: var(--text-main);
    }

    .nav-item.active {
        background: #000;
        color: #fff;
    }

    .nav-item:not(.active):hover {
        background: #ebeef5;
    }

    .nav-item-left {
        display: flex;
        align-items: center;
        gap: 16px;
        flex: 1;
    }

    .nav-item-icon {
        font-size: 24px;
        flex-shrink: 0;
    }

    .nav-item-text {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .nav-item-title {
        font-size: 15px;
        font-weight: 500;
    }

    .nav-item-sub {
        font-size: 12px;
        color: var(--text-secondary);
        margin-top: 4px;
    }

    .nav-item.active .nav-item-sub {
        color: rgba(255,255,255,0.7);
    }

    .nav-count {
        font-size: 12px;
        background: #ebeef5;
        color: var(--text-secondary);
        padding: 4px 10px;
        border-radius: 12px;
        flex-shrink: 0;
        margin-left: 10px;
        align-self: center;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-item.active .nav-count {
        background: rgba(255,255,255,0.2);
        color: #fff;
    }

    /* 推荐卡片 */
    .sidebar-promo {
        background: #fdfdfd;
        padding: 24px;
        border-radius: 12px;
        border: 1px solid var(--border-color);
    }

    .promo-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 12px;
    }

    .promo-desc {
        font-size: 13px;
        color: var(--text-regular);
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .promo-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #fff;
        border: 1px solid var(--border-color);
        padding: 10px 16px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s;
        text-decoration: none;
        color: inherit;
    }

    .promo-btn:hover {
        border-color: #c0c4cc;
    }

    /* 右侧内容区 */
    .content-area {
        min-width: 0;
    }

    /* 置顶文章卡片 (独占一行) */
    .featured-card {
        background: var(--bg-card);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        border: 1px solid var(--border-color);
        margin-bottom: 40px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .featured-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    }

    .featured-img-wrapper {
        width: 100%;
        height: 100%;
        overflow: hidden;
        display: block;
    }

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

    .featured-content {
        padding: 24px;
    }

    .article-meta {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 13px;
        color: var(--text-secondary);
        margin-bottom: 12px;
    }

    .article-tag {
        background-color: #f4f4f5;
        color: #606266;
        padding: 4px 10px;
        border-radius: 4px;
        font-weight: 500;
    }

    .featured-title {
        font-size: 24px;
        font-weight: 700;
        line-height: 1.4;
        margin: 0 0 12px;
    }

    .featured-desc {
        font-size: 14px;
        color: var(--text-regular);
        line-height: 1.6;
        margin: 0 0 16px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 普通文章列表 (每行两篇) */
    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 16px;
    }

    .section-title {
        font-size: 20px;
        font-weight: 600;
        margin: 0;
    }

    .news-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        margin-bottom: 60px;
    }

    /* 普通卡片组件 */
    .news-card {
        background: var(--bg-card);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
        border: 1px solid var(--border-color);
    }

    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    }

    .news-card__img-wrapper {
        width: 100%;
        aspect-ratio: 5 / 3;
        overflow: hidden;
        display: block;
    }

    .news-card__img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .news-card:hover .news-card__img {
        transform: scale(1.05);
    }

    .news-card__content {
        padding: 24px;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    .news-card__title {
        font-size: 20px;
        font-weight: 600;
        line-height: 1.4;
        margin: 0 0 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-card__desc {
        font-size: 13px;
        color: var(--text-regular);
        line-height: 1.6;
        margin: 0 0 20px;
        flex-grow: 1;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 底部作者与阅读全文 */
    .author-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid var(--border-color);
        padding-top: 16px;
    }

    .author-info {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .author-avatar {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        object-fit: cover;
    }

    .author-name {
        font-size: 13px;
        font-weight: 500;
    }

    .read-more {
        font-size: 13px;
        color: #000;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    /* 响应式断点 */
    @media (max-width: 992px) {
        .news-wrapper .main-container {
            grid-template-columns: 1fr;
        }
        .news-wrapper .sidebar {
            position: static;
            margin-bottom: 40px;
        }
        .nav-menu {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
        }
        .featured-card {
            grid-template-columns: 1fr;
        }
        .news-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 768px) {
        .news-wrapper .main-container {
            padding: 0 16px 60px; /* 移动端增加外边距，避免贴边 */
        }
        .news-header {
            padding: 40px 20px 20px;
        }
        .news-grid {
            grid-template-columns: 1fr;
        }
        .nav-menu {
            grid-template-columns: 1fr;
        }
        
        .news-wrapper .ai-search-input {
            padding: 0 80px 0 44px;
        }
        .news-wrapper .ai-search-btn {
            padding: 0 16px;
        }
        
        /* 隐藏侧边栏的图标，节省空间 */
        .nav-item-icon {
            display: none;
        }
    }

    @media (max-width: 576px) {
        .news-header__title {
            font-size: 24px;
        }
        .news-header__desc {
            font-size: 14px;
        }
        .featured-title {
            font-size: 20px;
        }
        .featured-content {
            padding: 16px;
        }
        .news-card__content {
            padding: 16px;
        }
        .article-meta {
            flex-wrap: wrap;
        }
    }


    /* 基础变量与样式 */
    :root {
        --color-primary: #1D2F46;
        --color-accent: #00E5FF;
        --text-main: #303133;
        --text-regular: #606266;
        --text-secondary: #909399;
        --border-color: #E4E7ED;
        --bg-color: #F5F7FA;
        --bg-card: #FFFFFF;
    }

    .news-info-wrap {
        background-color: var(--bg-color);
        color: var(--text-main);
        padding-bottom: 80px;
    }

    .news-info-wrap a {
        text-decoration: none;
        color: #0B67C6;
        transition: color 0.3s;
    }
    
    .news-info-wrap a:hover {
        color: #465cff;
    }

    /* 顶部面包屑导航 */
    .news-info-wrap .breadcrumb-wrapper {
        background-color: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        padding: 16px 20px;
        border-radius: 8px; /* 增加圆角 */
        margin-top: 20px; /* 增加顶部间距使其与内容区和顶部导航有些间隔，凸显圆角效果 */
    }

    .news-info-wrap .breadcrumb-container {
        width: 100%;
        margin: 0 auto;
        font-size: 14px;
        color: var(--text-regular);
    }
    
    .news-info-wrap .breadcrumb-container a {
        color: var(--text-regular);
    }

    .news-info-wrap .breadcrumb-container span {
        margin: 0 8px;
        color: var(--text-secondary);
    }

    /* 布局容器 */
    .news-info-wrap .main-container {
        width: 100%;
        margin: 40px auto 0;
        padding: 0;
        display: grid;
        grid-template-columns: 1fr 380px; /* 增加右侧侧边栏宽度到380px */
        gap: 40px;
    }

    /* 左侧文章主体内容区 */
    .news-info-wrap .article-main {
        background-color: var(--bg-card);
        border-radius: 12px;
        padding: 40px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
        border: 1px solid var(--border-color);
    }

    /* 文章头部：标题与元信息 */
    .article-header {
        margin-bottom: 30px;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 24px;
    }

    .article-top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .article-title {
        font-size: 32px;
        font-weight: 700;
        color: #000;
        margin: 0 0 20px;
        line-height: 1.4;
    }

    .article-meta {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
        font-size: 14px;
        color: var(--text-secondary);
    }

    .meta-item {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .meta-tag {
        background-color: #f4f4f5;
        color: #606266;
        padding: 4px 12px;
        border-radius: 16px;
        font-size: 13px;
        font-weight: 500;
    }

    .author-avatar {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        object-fit: cover;
    }

    /* 文章内容区域 */
    .article-content {
        font-size: 16px;
        color: var(--text-main);
        line-height: 1.8;
        overflow: hidden;
    }

    .article-content p {
        margin: 0 0 20px;
    }

    .article-content h2 {
        font-size: 24px;
        font-weight: 600;
        margin: 40px 0 20px;
        color: #000;
    }

    .article-content h3 {
        font-size: 20px;
        font-weight: 600;
        margin: 30px 0 16px;
        color: #333;
    }

    .article-content img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 20px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    .article-content blockquote {
        margin: 20px 0;
        padding: 16px 20px;
        border-left: 4px solid #000;
        background-color: #f8f9fa;
        color: var(--text-regular);
        font-style: italic;
    }

    /* 文章底部标签与分享 */
    .article-footer {
        margin-top: 40px;
        padding-top: 24px;
        border-top: 1px solid var(--border-color);
    }

    .article-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .tag-item {
        display: inline-block;
        padding: 6px 16px;
        color: var(--text-main);
        border-radius: 4px;
        font-size: 13px;
        white-space: nowrap;
        transition: all 0.3s;
        border: 1px solid transparent;
    }

    .tag-item:hover {
        opacity: 0.8;
    }

    .share-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .share-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: #f4f4f5;
        color: var(--text-regular);
        cursor: pointer;
        transition: all 0.3s;
        border: none;
    }

    .share-btn:hover {
        background-color: #000;
        color: #fff;
    }

    /* 右侧边栏 */
    .news-info-wrap .sidebar {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .news-info-wrap .sidebar-widget {
        background-color: var(--bg-card);
        border-radius: 12px;
        padding: 24px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
        border: 1px solid var(--border-color);
    }

    /* 作者信息板块 */
    .author-widget {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-widget__avatar {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 16px;
        border: 2px solid #f4f4f5;
    }

    .author-widget__name {
        font-size: 18px;
        font-weight: 600;
        color: #000;
        margin: 0 0 8px;
    }

    .author-widget__desc {
        font-size: 13px;
        color: var(--text-regular);
        margin: 0 0 20px;
        line-height: 1.6;
    }

    .author-widget__btn {
        width: 100%;
        padding: 10px 0;
        background-color: #000;
        color: #fff;
        border: none;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: background-color 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .author-widget__btn:hover {
        background-color: #333;
    }

    .widget-title {
        font-size: 18px;
        font-weight: 600;
        margin: 0 0 20px;
        color: #000;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* 推荐阅读列表 */
    .recommend-list {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .recommend-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }

    .recommend-img {
        width: 80px;
        aspect-ratio: 5 / 3;
        border-radius: 6px;
        object-fit: cover;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .recommend-info {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .recommend-title {
        font-size: 14px;
        font-weight: 500;
        color: var(--text-main);
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        transition: color 0.3s;
    }

    .recommend-item:hover .recommend-title {
        color: #000;
        text-decoration: underline;
    }

    .recommend-date {
        font-size: 12px;
        color: var(--text-secondary);
    }

    /* 响应式断点 */
    @media (max-width: 992px) {
        .news-info-wrap .main-container {
            grid-template-columns: 1fr;
        }
        .news-info-wrap .sidebar {
            order: 2;
        }
    }

    @media (max-width: 768px) {
        .news-info-wrap .main-container {
            padding: 0 16px; /* 移动端增加外边距，避免贴边 */
            gap: 24px;
        }
        .news-info-wrap .article-main {
            padding: 24px 16px;
        }
        .article-title {
            font-size: 24px;
        }
        .article-meta {
            gap: 12px;
        }
        .article-footer {
            flex-direction: column;
            align-items: flex-start;
        }
        .article-top-bar {
            flex-direction: column;
            align-items: flex-start;
            gap: 16px;
        }
    }
