  
          /* ========== 全局重置与基础样式 ========== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Roboto, 'Helvetica Neue', system-ui, -apple-system, sans-serif;
            background-color: #f5f7fa;
            color: #2c3e50;
            line-height: 1.6;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        a {
            text-decoration: none;
            color: inherit;
            transition: color 0.2s ease;
        }

        ul, ol {
            list-style: none;
        }

        img {
            max-width: 100%;
            height: auto;
            display: block;
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 20px;
            width: 100%;
        }

        /* ========== 顶部区域：搜索框 + 品牌 ========== */
        .header-top {
            background: #ffffff;
            border-bottom: 1px solid #e9edf2;
            padding: 15px 0;
        }

        .header-top .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 20px;
        }

        .logo-area {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #1e2a3a, #0f1722);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffd966;
            font-size: 22px;
            font-weight: bold;
        }

        .site-name {
            font-size: 1.8rem;
            font-weight: 700;
            letter-spacing: -0.5px;
            color: #1e2a3a;
            background: linear-gradient(to right, #1e2a3a, #3a4a5a);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .search-form {
            display: flex;
            align-items: center;
            background: #f0f3f8;
            border-radius: 40px;
            padding: 4px 4px 4px 20px;
            border: 1px solid #e1e6ed;
            transition: box-shadow 0.2s, border-color 0.2s;
            min-width: 300px;
        }

        .search-form:focus-within {
            border-color: #5c6f87;
            box-shadow: 0 0 0 3px rgba(92, 111, 135, 0.15);
            background: #ffffff;
        }

        .search-input {
            border: none;
            background: transparent;
            padding: 12px 10px;
            font-size: 0.95rem;
            width: 100%;
            outline: none;
            color: #1e2a3a;
        }

        .search-input::placeholder {
            color: #8899aa;
        }

        .search-btn {
            background: #1e2a3a;
            border: none;
            color: white;
            padding: 10px 22px;
            border-radius: 30px;
            font-weight: 600;
            cursor: pointer;
            font-size: 0.9rem;
            letter-spacing: 0.3px;
            transition: background 0.2s, transform 0.1s;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .search-btn:hover {
            background: #2f3d4f;
        }

        .search-btn:active {
            transform: scale(0.96);
        }

        /* ========== 横向导航栏 ========== */
        .main-nav {
            background: #ffffff;
            box-shadow: 0 4px 12px rgba(0,0,0,0.03);
            position: sticky;
            top: 0;
            z-index: 100;
            border-bottom: 1px solid #ecf0f3;
        }

        .nav-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .nav-menu {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 5px;
        }

        .nav-menu li {
            position: relative;
        }

        .nav-menu a {
            display: block;
            padding: 18px 16px;
            font-weight: 600;
            color: #2c3e50;
            font-size: 0.95rem;
            border-bottom: 3px solid transparent;
            transition: color 0.2s, border-color 0.2s, background 0.2s;
            white-space: nowrap;
        }

        .nav-menu a:hover {
            color: #1e2a3a;
            background: #f5f9ff;
            border-bottom-color: #1e2a3a;
        }

        .nav-menu .active a {
            color: #1e2a3a;
            border-bottom-color: #ffd966;
            font-weight: 700;
        }

        /* 移动端导航暂不深入，保持横向简洁 */
        @media (max-width: 768px) {
            .nav-menu {
                gap: 2px;
            }
            .nav-menu a {
                padding: 14px 10px;
                font-size: 0.85rem;
            }
            .search-form {
                min-width: 220px;
            }
        }

        /* ========== 主体布局：左侧内容 + 右侧边栏 ========== */
        .main-content {
            display: grid;
            grid-template-columns: 1fr 320px;
            gap: 30px;
            padding: 30px 0 40px;
        }

        @media (max-width: 900px) {
            .main-content {
                grid-template-columns: 1fr;
            }
        }

        /* 左侧文章列表 */
        .content-area {
            background: transparent;
        }

        .section-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            border-bottom: 2px solid #e2e7ef;
            padding-bottom: 10px;
        }

        .section-title h2 {
            font-size: 1.5rem;
            font-weight: 700;
            color: #1e2a3a;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .section-title h2 i {
            color: #ffd966;
            font-style: normal;
            font-size: 1.8rem;
        }

        .more-link {
            color: #5c6f87;
            font-weight: 600;
            font-size: 0.9rem;
            transition: color 0.2s;
        }

        .more-link:hover {
            color: #1e2a3a;
        }

        .article-grid {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .article-item {
            background: #ffffff;
            border-radius: 12px;
            padding: 18px;
            display: flex;
            gap: 18px;
            align-items: center;
            box-shadow: 0 4px 10px rgba(0,0,0,0.02);
            border: 1px solid #eef2f7;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .article-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 22px rgba(0,0,0,0.06);
            border-color: #d9e2ef;
        }

        .article-thumb {
            width: 120px;
            height: 80px;
            border-radius: 8px;
            overflow: hidden;
            background: #e4e9f2;
            flex-shrink: 0;
        }

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

        .article-info {
            flex: 1;
        }

        .article-info h3 {
            font-size: 1.15rem;
            font-weight: 700;
            margin-bottom: 6px;
            color: #1e2a3a;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .article-info h3 a:hover {
            color: #2f4b6e;
        }

        .meta {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            font-size: 0.8rem;
            color: #6c7a89;
            margin-top: 5px;
        }

        .meta span {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        /* 右侧边栏 */
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .sidebar-card {
            background: #ffffff;
            border-radius: 14px;
            padding: 20px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.02);
            border: 1px solid #eef2f7;
        }

        .sidebar-card h3 {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 16px;
            color: #1e2a3a;
            border-left: 4px solid #ffd966;
            padding-left: 12px;
        }

        /* 新增：订阅与社区按钮卡片 */
        .action-buttons {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .btn-subscribe, .btn-community {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 14px 20px;
            border-radius: 30px;
            font-weight: 700;
            font-size: 1rem;
            transition: all 0.25s;
            cursor: pointer;
            border: none;
            text-align: center;
            letter-spacing: 0.3px;
        }

        .btn-subscribe {
            background: #ffd966;
            color: #1e2a3a;
            box-shadow: 0 4px 8px rgba(255, 217, 102, 0.3);
        }

        .btn-subscribe:hover {
            background: #ffc107;
            box-shadow: 0 8px 16px rgba(255, 193, 7, 0.4);
            transform: translateY(-2px);
        }

        .btn-community {
            background: #ffffff;
            color: #1e2a3a;
            border: 2px solid #1e2a3a;
            box-shadow: 0 4px 8px rgba(0,0,0,0.03);
        }

        .btn-community:hover {
            background: #1e2a3a;
            color: #ffffff;
            box-shadow: 0 8px 16px rgba(30, 42, 58, 0.25);
            transform: translateY(-2px);
        }

        .btn-icon {
            font-size: 1.2rem;
        }

        /* 热门点击列表 */
        .hot-list li {
            border-bottom: 1px dashed #e4eaf1;
            padding: 10px 0;
        }

        .hot-list li:last-child {
            border-bottom: none;
        }

        .hot-list a {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 500;
            color: #2c3e50;
        }

        .hot-list a:hover {
            color: #1e2a3a;
        }

        .hot-count {
            background: #f0f3f8;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 600;
            color: #5c6f87;
        }

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

        .tag-item {
            background: #f0f4fc;
            color: #2c3e50;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
            transition: all 0.2s;
            border: 1px solid transparent;
        }

        .tag-item:hover {
            background: #1e2a3a;
            color: white;
            border-color: #1e2a3a;
        }

        /* 底部 */
        .footer {
            margin-top: auto;
            background: #ffffff;
            border-top: 1px solid #e2e8f0;
            padding: 20px 0;
            text-align: center;
            font-size: 0.85rem;
            color: #5c6f87;
        }

        .footer a {
            color: #1e2a3a;
            font-weight: 600;
        }
  
        /* ========== 内页全局基础样式 ========== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Roboto, 'Helvetica Neue', system-ui, -apple-system, sans-serif;
            background-color: #f5f7fa;
            color: #2c3e50;
            line-height: 1.6;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        a {
            text-decoration: none;
            color: inherit;
            transition: color 0.2s ease;
        }

        ul, ol {
            list-style: none;
            padding-left: 0;
        }

        img {
            max-width: 100%;
            height: auto;
            display: block;
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 20px;
            width: 100%;
        }

        /* ========== 顶部区域 ========== */
        .header-top {
            background: #ffffff;
            border-bottom: 1px solid #e9edf2;
            padding: 15px 0;
        }

        .header-top .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 20px;
        }

        .logo-area {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #1e2a3a, #0f1722);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffd966;
            font-size: 22px;
            font-weight: bold;
        }

        .site-name {
            font-size: 1.8rem;
            font-weight: 700;
            letter-spacing: -0.5px;
            background: linear-gradient(to right, #1e2a3a, #3a4a5a);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .search-form {
            display: flex;
            align-items: center;
            background: #f0f3f8;
            border-radius: 40px;
            padding: 4px 4px 4px 20px;
            border: 1px solid #e1e6ed;
            transition: box-shadow 0.2s, border-color 0.2s;
            min-width: 300px;
        }

        .search-form:focus-within {
            border-color: #5c6f87;
            box-shadow: 0 0 0 3px rgba(92, 111, 135, 0.15);
            background: #ffffff;
        }

        .search-input {
            border: none;
            background: transparent;
            padding: 12px 10px;
            font-size: 0.95rem;
            width: 100%;
            outline: none;
            color: #1e2a3a;
        }

        .search-input::placeholder {
            color: #8899aa;
        }

        .search-btn {
            background: #1e2a3a;
            border: none;
            color: white;
            padding: 10px 22px;
            border-radius: 30px;
            font-weight: 600;
            cursor: pointer;
            font-size: 0.9rem;
            letter-spacing: 0.3px;
            transition: background 0.2s, transform 0.1s;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .search-btn:hover {
            background: #2f3d4f;
        }

        /* ========== 横向导航 ========== */
        .main-nav {
            background: #ffffff;
            box-shadow: 0 4px 12px rgba(0,0,0,0.03);
            position: sticky;
            top: 0;
            z-index: 100;
            border-bottom: 1px solid #ecf0f3;
        }

        .nav-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .nav-menu {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 5px;
        }

        .nav-menu li {
            position: relative;
        }

        .nav-menu a {
            display: block;
            padding: 18px 16px;
            font-weight: 600;
            color: #2c3e50;
            font-size: 0.95rem;
            border-bottom: 3px solid transparent;
            transition: color 0.2s, border-color 0.2s, background 0.2s;
            white-space: nowrap;
        }

        .nav-menu a:hover {
            color: #1e2a3a;
            background: #f5f9ff;
            border-bottom-color: #1e2a3a;
        }

        .nav-menu .active a {
            color: #1e2a3a;
            border-bottom-color: #ffd966;
            font-weight: 700;
        }

        /* ========== 内容页主体布局 ========== */
        .main-content {
            display: grid;
            grid-template-columns: 1fr 320px;
            gap: 30px;
            padding: 30px 0 40px;
        }

        @media (max-width: 900px) {
            .main-content {
                grid-template-columns: 1fr;
            }
            .search-form {
                min-width: 220px;
            }
            .nav-menu a {
                padding: 14px 10px;
                font-size: 0.85rem;
            }
        }

        /* 左侧文章详情 */
        .article-detail {
            background: #ffffff;
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 6px 18px rgba(0,0,0,0.03);
            border: 1px solid #eef2f7;
        }

        .breadcrumb {
            font-size: 0.85rem;
            color: #6c7a89;
            margin-bottom: 20px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 6px;
        }

        .breadcrumb a {
            color: #2c3e50;
            font-weight: 500;
        }

        .breadcrumb a:hover {
            color: #1e2a3a;
            text-decoration: underline;
        }

        .breadcrumb .separator {
            color: #b0bec5;
        }

        .article-header {
            margin-bottom: 25px;
            border-bottom: 1px solid #eef2f7;
            padding-bottom: 20px;
        }

        .article-title {
            font-size: 2.2rem;
            font-weight: 800;
            color: #1e2a3a;
            line-height: 1.3;
            margin-bottom: 15px;
        }

        .article-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            font-size: 0.9rem;
            color: #5c6f87;
            align-items: center;
        }

        .article-meta span {
            display: flex;
            align-items: center;
            gap: 5px;
        }

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

        .tag-badge {
            background: #f0f4fc;
            color: #2c3e50;
            padding: 4px 14px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            transition: 0.2s;
        }

        .tag-badge:hover {
            background: #1e2a3a;
            color: white;
        }

        /* 文章正文 */
        .article-body {
            font-size: 1.05rem;
            line-height: 1.8;
            color: #2c3e50;
            word-wrap: break-word;
        }

        .article-body h2 {
            font-size: 1.6rem;
            margin: 1.5em 0 0.8em;
            color: #1e2a3a;
            border-left: 5px solid #ffd966;
            padding-left: 15px;
        }

        .article-body h3 {
            font-size: 1.3rem;
            margin: 1.4em 0 0.6em;
            color: #1e2a3a;
        }

        .article-body p {
            margin-bottom: 1.2em;
        }

        .article-body img {
            border-radius: 10px;
            margin: 20px auto;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        }

        .article-body ul, .article-body ol {
            padding-left: 24px;
            margin-bottom: 1.2em;
        }

        .article-body li {
            margin-bottom: 0.4em;
            list-style: disc;
        }

        /* 上一篇下一篇 */
        .prev-next {
            display: flex;
            justify-content: space-between;
            margin-top: 35px;
            border-top: 1px solid #eef2f7;
            padding-top: 20px;
            font-weight: 500;
            gap: 15px;
        }

        .prev-next a {
            color: #1e2a3a;
            background: #f5f9ff;
            padding: 10px 18px;
            border-radius: 30px;
            transition: 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .prev-next a:hover {
            background: #e4edf9;
        }

        /* 右侧边栏 */
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .sidebar-card {
            background: #ffffff;
            border-radius: 14px;
            padding: 20px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.02);
            border: 1px solid #eef2f7;
        }

        .sidebar-card h3 {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 16px;
            color: #1e2a3a;
            border-left: 4px solid #ffd966;
            padding-left: 12px;
        }

        /* 热门点击列表 */
        .hot-list li {
            border-bottom: 1px dashed #e4eaf1;
            padding: 10px 0;
        }

        .hot-list li:last-child {
            border-bottom: none;
        }

        .hot-list a {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 500;
            color: #2c3e50;
        }

        .hot-list a:hover {
            color: #1e2a3a;
        }

        .hot-count {
            background: #f0f3f8;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 600;
            color: #5c6f87;
        }

        /* 相关推荐卡片样式 */
        .related-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .related-item {
            display: flex;
            gap: 12px;
            align-items: center;
            padding-bottom: 12px;
            border-bottom: 1px solid #f1f4f9;
        }

        .related-item:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .related-thumb {
            width: 70px;
            height: 50px;
            border-radius: 6px;
            overflow: hidden;
            background: #e4e9f2;
            flex-shrink: 0;
        }

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

        .related-info {
            flex: 1;
            font-weight: 600;
            font-size: 0.85rem;
            color: #1e2a3a;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .related-info a:hover {
            color: #2f4b6e;
            text-decoration: underline;
        }

        .footer {
            margin-top: auto;
            background: #ffffff;
            border-top: 1px solid #e2e8f0;
            padding: 20px 0;
            text-align: center;
            font-size: 0.85rem;
            color: #5c6f87;
        }