
﻿        /* ===== 全局重置 & 基础 ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
            background: #fcf8f6;
            color: #1a1a1a;
            line-height: 1.8;
            font-size: 16px;
        }
        a {
            color: #b71c1c;
            text-decoration: none;
            transition: color 0.2s;
        }
        a:hover {
            color: #d32f2f;
            text-decoration: underline;
        }
        img {
            max-width: 100%;
            height: auto;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* ===== 红色主题色 ===== */
        :root {
            --primary: #b71c1c;
            --primary-dark: #7f0000;
            --primary-light: #ef5350;
            --primary-bg: #fdecea;
            --primary-border: #e57373;
            --gray-light: #f5f3f1;
            --gray-mid: #888888;
            --text-dark: #1a1a1a;
            --text-mid: #555555;
            --shadow: 0 4px 20px rgba(183, 28, 28, 0.08);
            --radius: 12px;
        }

        /* ===== 头部 ===== */
        .header {
            background: var(--primary);
            color: #fff;
            padding: 16px 0;
            box-shadow: 0 2px 16px rgba(183, 28, 28, 0.25);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        .header-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
        }
        .logo-area {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .logo-area .logo-icon {
            width: 44px;
            height: 44px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            font-weight: 700;
            color: #fff;
        }
        .logo-area .site-name {
            font-size: 24px;
            font-weight: 700;
            letter-spacing: 1px;
            color: #fff;
        }
        .logo-area .site-name span {
            font-weight: 300;
            opacity: 0.85;
        }
        .logo-area .site-name a {
            color: #fff;
            text-decoration: none;
        }
        .logo-area .site-name a:hover {
            color: #fff;
            text-decoration: none;
        }
        .nav {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }
        .nav a {
            color: rgba(255, 255, 255, 0.85);
            padding: 6px 18px;
            border-radius: 30px;
            font-size: 15px;
            font-weight: 500;
            transition: all 0.25s;
            text-decoration: none;
        }
        .nav a:hover,
        .nav a.active {
            color: #fff;
            background: rgba(255, 255, 255, 0.18);
            text-decoration: none;
        }
        .nav a.active {
            background: rgba(255, 255, 255, 0.25);
        }

        /* ===== 页脚 ===== */
        .footer {
            background: var(--primary-dark);
            color: rgba(255, 255, 255, 0.8);
            padding: 32px 0 28px;
            margin-top: 48px;
            border-top: 4px solid var(--primary-light);
        }
        .footer-inner {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 8px;
        }
        .footer-inner p {
            font-size: 14px;
            opacity: 0.75;
        }
        .footer-inner a {
            color: #ffcdd2;
            text-decoration: none;
        }
        .footer-inner a:hover {
            color: #fff;
            text-decoration: underline;
        }

        /* ===== 首页 / 列表页 两栏布局 ===== */
        .main-wrap {
            display: flex;
            gap: 40px;
            margin: 32px 0 16px;
            align-items: flex-start;
        }
        .main-content {
            flex: 1;
            min-width: 0;
        }
        .sidebar {
            width: 300px;
            flex-shrink: 0;
        }

        /* ===== 卡片模块 ===== */
        .card {
            background: #fff;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 28px 30px;
            margin-bottom: 28px;
            border: 1px solid rgba(183, 28, 28, 0.06);
            transition: box-shadow 0.2s;
        }
        .card:hover {
            box-shadow: 0 8px 32px rgba(183, 28, 28, 0.10);
        }
        .card-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary);
            padding-bottom: 14px;
            margin-bottom: 18px;
            border-bottom: 2px solid var(--primary-bg);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .card-title .badge {
            font-size: 12px;
            background: var(--primary-bg);
            color: var(--primary);
            padding: 0 10px;
            border-radius: 20px;
            font-weight: 500;
        }

        /* ===== 文章列表项 ===== */
        .post-item {
            padding: 16px 0;
            border-bottom: 1px solid #f0edeb;
        }
        .post-item:last-child {
            border-bottom: none;
        }
        .post-item .post-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-dark);
            display: block;
            margin-bottom: 4px;
            line-height: 1.5;
        }
        .post-item .post-title a {
            color: var(--text-dark);
            text-decoration: none;
        }
        .post-item .post-title a:hover {
            color: var(--primary);
            text-decoration: none;
        }
        .post-item .post-meta {
            font-size: 14px;
            color: var(--gray-mid);
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
            margin-top: 2px;
        }
        .post-item .post-meta .cat {
            background: var(--primary-bg);
            color: var(--primary);
            padding: 0 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
        }
        .post-item .post-excerpt {
            font-size: 15px;
            color: var(--text-mid);
            margin-top: 6px;
            line-height: 1.7;
        }

        /* ===== 侧边栏 ===== */
        .sidebar .widget {
            background: #fff;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 22px 24px;
            margin-bottom: 24px;
            border: 1px solid rgba(183, 28, 28, 0.04);
        }
        .sidebar .widget-title {
            font-size: 15px;
            font-weight: 700;
            color: var(--primary);
            padding-bottom: 10px;
            margin-bottom: 14px;
            border-bottom: 2px solid var(--primary-bg);
            letter-spacing: 0.5px;
        }
        .sidebar .widget ul {
            list-style: none;
        }
        .sidebar .widget ul li {
            padding: 6px 0;
            border-bottom: 1px solid #f5f2f0;
            font-size: 15px;
        }
        .sidebar .widget ul li:last-child {
            border-bottom: none;
        }
        .sidebar .widget ul li a {
            color: var(--text-dark);
            text-decoration: none;
            display: block;
            transition: color 0.15s;
        }
        .sidebar .widget ul li a:hover {
            color: var(--primary);
            text-decoration: none;
        }
        .tag-cloud {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 4px;
        }
        .tag-cloud a {
            background: var(--primary-bg);
            color: var(--primary);
            padding: 2px 14px;
            border-radius: 30px;
            font-size: 13px;
            transition: all 0.2s;
            text-decoration: none;
            border: 1px solid transparent;
        }
        .tag-cloud a:hover {
            background: var(--primary);
            color: #fff;
            text-decoration: none;
            border-color: var(--primary);
        }

        /* ===== 首页欢迎横幅 ===== */
        .hero {
            background: linear-gradient(135deg, #fdecea 0%, #fcf1ef 100%);
            border-radius: var(--radius);
            padding: 32px 36px;
            margin-bottom: 28px;
            border-left: 6px solid var(--primary);
            box-shadow: var(--shadow);
        }
        .hero h2 {
            font-size: 26px;
            font-weight: 700;
            color: var(--primary-dark);
            margin-bottom: 6px;
        }
        .hero p {
            font-size: 16px;
            color: var(--text-mid);
            max-width: 720px;
        }

        /* ===== 列表页 面包屑 ===== */
        .breadcrumb {
            font-size: 14px;
            color: var(--gray-mid);
            margin-bottom: 16px;
            padding: 8px 0;
            border-bottom: 1px solid #f0edeb;
        }
        .breadcrumb a {
            color: var(--primary);
            text-decoration: none;
        }
        .breadcrumb a:hover {
            text-decoration: underline;
        }
        .breadcrumb .sep {
            margin: 0 6px;
            color: #ccc;
        }

        /* ===== 分页 ===== */
        .pagination {
            display: flex;
            justify-content: center;
            gap: 6px;
            margin-top: 28px;
            flex-wrap: wrap;
        }
        .pagination a,
        .pagination span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 40px;
            height: 40px;
            padding: 0 12px;
            border-radius: 8px;
            font-size: 15px;
            font-weight: 500;
            background: #fff;
            border: 1px solid #e8e3e0;
            color: var(--text-dark);
            text-decoration: none;
            transition: all 0.2s;
        }
        .pagination a:hover {
            background: var(--primary-bg);
            border-color: var(--primary);
            color: var(--primary);
            text-decoration: none;
        }
        .pagination .current {
            background: var(--primary);
            border-color: var(--primary);
            color: #fff;
        }
        .pagination .disabled {
            opacity: 0.4;
            pointer-events: none;
        }

        /* ===== 文章页 ===== */
        .article-wrap {
            max-width: 860px;
            margin: 0 auto;
            background: #fff;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 40px 48px 36px;
            border: 1px solid rgba(183, 28, 28, 0.04);
        }
        .article-title {
            font-size: 25px;
            font-weight: 800;
            line-height: 1.4;
            color: var(--text-dark);
            margin-bottom: 12px;
        }
        .article-meta {
            display: flex;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
            font-size: 14px;
            color: var(--gray-mid);
            padding-bottom: 18px;
            margin-bottom: 24px;
            border-bottom: 2px solid var(--primary-bg);
        }
        .article-meta .cat {
            background: var(--primary-bg);
            color: var(--primary);
            padding: 0 14px;
            border-radius: 20px;
            font-weight: 500;
        }
        .article-body {
            font-size: 16px;
            line-height: 1.9;
            color: var(--text-dark);
        }
        .article-body p {
            margin-bottom: 1.2em;
        }
        .article-body h2,
        .article-body h3,
        .article-body h4 {
            margin-top: 1.8em;
            margin-bottom: 0.6em;
            font-weight: 700;
            color: var(--primary-dark);
        }
        .article-body h2 {
            font-size: 18px;
            border-bottom: 2px solid var(--primary-bg);
            padding-bottom: 6px;
        }
        .article-body h3 {
            font-size: 16px;
        }
        .article-body ul,
        .article-body ol {
            margin: 0.8em 0 1.2em 1.8em;
        }
        .article-body blockquote {
            background: var(--primary-bg);
            border-left: 6px solid var(--primary);
            padding: 14px 24px;
            margin: 1.2em 0;
            border-radius: 0 8px 8px 0;
            color: var(--text-mid);
        }
        .article-body code {
            background: #f5f2f0;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.9em;
            font-family: "JetBrains Mono", "Consolas", monospace;
            color: var(--primary-dark);
        }
        .article-body pre {
            background: #1e1e1e;
            color: #e0e0e0;
            padding: 20px 24px;
            border-radius: 8px;
            overflow-x: auto;
            font-size: 14px;
            line-height: 1.7;
            margin: 1.2em 0;
        }
        .article-body pre code {
            background: transparent;
            color: inherit;
            padding: 0;
        }
        .article-body img {
            border-radius: 8px;
            margin: 1em 0;
            border: 1px solid #f0edeb;
        }
        .article-body a {
            color: var(--primary);
            text-decoration: underline;
        }
        .article-body a:hover {
            color: var(--primary-dark);
        }
.pror{ overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}
        /* 上一篇 / 下一篇 */
        .post-nav {
            display: flex;
            justify-content: space-between;
            gap: 20px;
            margin-top: 32px;
            padding-top: 24px;
            border-top: 2px solid var(--primary-bg);
            flex-wrap: wrap;
        }
        .post-nav a {
            color: var(--text-dark);
            text-decoration: none;
            font-size: 15px;
            max-width: 48%;
            transition: color 0.2s;
        }
        .post-nav a:hover {
            color: var(--primary);
            text-decoration: none;
        }
        .post-nav .label {
            display: block;
            font-size: 13px;
            color: var(--gray-mid);
            font-weight: 400;
        }

        /* 相关文章 */
        .related {
            margin-top: 32px;
            padding-top: 24px;
            border-top: 2px solid var(--primary-bg);
        }
        .related h4 {
            font-size: 15px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 14px;
        }
        .related ul {
            list-style: none;
            display: flex;
            flex-wrap: wrap;
            gap: 12px 28px;
        }
        .related ul li {
            font-size: 15px;
        }
        .related ul li a {
            color: var(--text-dark);
            text-decoration: none;
        }
        .related ul li a:hover {
            color: var(--primary);
            text-decoration: none;
        }

        /* ===== 响应式 ===== */
        @media (max-width: 992px) {
            .main-wrap {
                flex-direction: column;
            }
            .sidebar {
                width: 100%;
            }
            .article-wrap {
                padding: 28px 24px;
            }
            .article-title {
                font-size: 25px;
            }
        }
        @media (max-width: 640px) {
            .header-inner {
                flex-direction: column;
                align-items: stretch;
                gap: 8px;
            }
            .nav {
                justify-content: center;
            }
            .nav a {
                padding: 4px 12px;
                font-size: 14px;
            }
            .logo-area .site-name {
                font-size: 20px;
            }
            .hero h2 {
                font-size: 22px;
            }
            .article-title {
                font-size: 22px;
            }
            .article-wrap {
                padding: 20px 16px;
            }
            .post-nav {
                flex-direction: column;
            }
            .post-nav a {
                max-width: 100%;
            }
            .card {
                padding: 20px 16px;
            }
            .container {
                padding: 0 12px;
            }
            .hero {
                padding: 24px 18px;
            }
        }

        /* ===== 工具类 ===== */
        .text-center {
            text-align: center;
        }
        .mt-8 {
            margin-top: 8px;
        }
        .mt-16 {
            margin-top: 16px;
        }
        .mb-16 {
            margin-bottom: 16px;
        }
        .gap-8 {
            gap: 8px;
        }
        .flex-wrap {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
        }