        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            background: linear-gradient(180deg, #16181e 0%, #0a0b0e 100%);
            display: flex;
            justify-content: center;
            min-height: 100vh;
        }

        /* App Container for Mobile */
        .app {
            width: 100%;
            max-width: 430px;
            background: linear-gradient(180deg, #1f222b 0%, #14161c 100%);
            padding: 0 12px 60px;
            position: relative;
        }

        /* Header - Mobile Style */
        header.top-bar {
            height: 56px;
            background: #22252d;
            border-radius: 0 0 10px 10px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 14px;
            box-shadow: 0 6px 14px rgba(0,0,0,0.25);
            margin: 0 -12px 16px -12px;
            width: calc(100% + 24px);
            position: relative;
        }

        .logo {
            font-size: 24px;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 2px;
            color: #f7f7f7;
        }

        .logo img {
            height: 30px;
            display: block;
        }

        .badge img {
            height: 32px;
            width: 32px;
            object-fit: contain;
            display: block;
            filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
        }

        .badge {
            width: 40px;
            height: 40px;
            background: linear-gradient(145deg, #f6ca00, #c68d00);
            border-radius: 12px;
            display: grid;
            place-items: center;
            color: #101216;
            font-size: 20px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.35);
        }

        /* PC端也使用移动端布局，居中显示 */
        @media (min-width: 431px) {
            .app {
                margin: 0 auto;
            }
            nav {
                left: 50%;
                transform: translateX(-50%);
            }
        }

        .header-content {
            max-width: 1440px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: auto 1fr auto;
            align-items: center;
            gap: 20px;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .header-center {
            display: flex;
            justify-content: center;
        }

        .menu-toggle {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            font-size: 16px;
            color: #fff;
        }

        .menu-icon {
            width: 24px;
            height: 24px;
            display: flex;
            flex-direction: column;
            justify-content: space-around;
        }

        .menu-icon span {
            width: 100%;
            height: 2px;
            background-color: #fff;
            transition: all 0.3s;
        }

        .header-logo img {
            height: 44px;
            max-width: 200px;
            width: auto;
            display: block;
            object-fit: contain;
            filter: drop-shadow(0 1px 3px rgba(0,0,0,0.2));
        }

        .header-right {
            min-width: 48px;
            height: 24px;
        }

        /* Breadcrumb */
        .breadcrumb {
            max-width: 1440px;
            margin: 20px auto;
            padding: 0 20px;
            font-size: 14px;
            color: rgba(255, 255, 255, 0.8);
        }

        .breadcrumb a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
        }

        .breadcrumb a:hover {
            color: #fff;
        }

        /* Main Container */
        .container {
            max-width: 1440px;
            margin: 0 auto;
            padding: 0 20px;
            display: grid;
            grid-template-columns: 1fr; /* 单列布局，适配桌面宽屏 */
            gap: 30px;
            margin-bottom: 40px;
        }

        /* Sidebar */
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .sidebar-section {
            background-color: #fff;
            border: 2px solid #2a2e37;
            border-radius: 4px;
            overflow: hidden;
        }

        .sidebar-header {
            padding: 15px;
            background-color: #f9f9f9;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            font-weight: 600;
            transition: background-color 0.3s;
        }

        .sidebar-header:hover {
            background-color: rgba(24, 75, 56, 0.05);
        }

        .sidebar-content {
            padding: 15px;
            display: none;
        }

        .sidebar-section.active .sidebar-content {
            display: block;
        }

        .sidebar-content a {
            color: #333;
            text-decoration: none;
            transition: color 0.3s;
        }

        .sidebar-content a:hover {
            color: #2a2e37;
        }

        .tag-item {
            padding: 5px 10px;
            background-color: #f0f0f0;
            border-radius: 15px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s;
            display: inline-block;
        }

        .tag-item:hover {
            background-color: #2a2e37;
            color: #fff;
        }

        /* Main Content - desktop：根据屏幕宽度自动 4 / 3 / 2 / 1 列 */
        .main-content {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 24px;
            align-items: stretch;
        }

        /* 中等大屏：3 列 */
        @media (max-width: 1400px) {
            .main-content {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
        }

        /* 平板 / 小桌面：2 列 */
        @media (max-width: 1024px) {
            .main-content {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        .blog-post {
            background-color: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0,0,0,0.12);
            transition: transform 0.22s ease, box-shadow 0.22s ease;
            height: 100%;
        }

        .blog-post:hover {
            transform: translateY(-6px);
            box-shadow: 0 8px 18px rgba(24, 75, 56, 0.28);
        }

        .blog-post-card {
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .blog-post-image {
            width: 100%;
            height: 260px;
            background-color: #1b1b1b;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .blog-post-content {
            padding: 18px 20px 22px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .blog-post-title {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 8px;
            color: #333;
            line-height: 1.3;
        }

        .blog-post-title:hover {
            color: #2a2e37;
        }

        .blog-post-date {
            color: #999;
            font-size: 14px;
            margin-bottom: 15px;
        }

        .blog-post-content p {
            font-size: 14px;
            color: #555;
            line-height: 1.6;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 4; /* 最多 4 行，避免太长 */
            line-clamp: 4;
            overflow: hidden;
        }

        .blog-post-readmore {
            margin-top: auto;
            font-weight: 600;
            color: #22674b;
        }


        /* Blog Title Styles */
        .blog-title {
            margin: 20px 0;
            font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
            font-weight: 700;
            font-size: 1.5rem;
            color: #ffffff;
        }

        /* Mobile Content Styles */
        .mobile-content {
            width: 100%;
        }

        .mobile-content .main-content {
            display: grid;
            grid-template-columns: 1fr;
            gap: 14px;
        }

        /* 隐藏桌面端元素 */
        .header,
        .breadcrumb,
        .container {
            display: none;
        }

        @media (max-width: 480px) {
            .breadcrumb {
                padding: 0 15px;
                font-size: 12px;
            }

            .container {
                padding: 0 15px;
            }

            .blog-post-content {
                padding: 15px;
            }

            .blog-post-title {
                font-size: 16px;
            }
        }

        /* Placeholder Images */
        .placeholder-image {
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(255,255,255,0.8);
            font-size: 18px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        /* Bottom Navigation */
        nav {
            position: fixed;
            left: 50%;
            transform: translateX(-50%);
            bottom: 0;
            width: 100%;
            max-width: 430px;
            background: linear-gradient(180deg, #2a2e37 0%, #16181d 100%);
            padding: 6px 0 8px;
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            text-align: center;
            color: #ffffff;
            font-size: 11px;
            border-top: 1px solid rgba(255,255,255,0.14);
            border-radius: 10px 10px 0 0;
            box-shadow: 0 -5px 12px rgba(0,0,0,0.3);
            overflow: hidden;
            z-index: 1000;
        }
        nav .item {
            display: grid;
            gap: 3px;
            place-items: center;
            font-weight: 700;
            color: #ffffff;
        }
        nav .item a {
            text-decoration: none;
            color: #ffffff;
            display: grid;
            gap: 3px;
            place-items: center;
            width: 100%;
        }
        nav .item img { 
            height: 20px; 
            width: auto; 
            display: block; 
        }
        nav .active { 
            color: #f6ca00; 
        }
        nav .active img { 
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35)); 
        }

        /* PC端导航栏居中 */
        @media (min-width: 431px) {
            nav {
                left: 50%;
                transform: translateX(-50%);
            }
        }


        /* 文章详情页（post.php）新增样式 — 仅作用于详情页新 class，不影响列表页 */
        .blog-post-detail { padding: 20px 15px; }
        .blog-post-detail-image { height: 200px; background-size: cover; background-position: center; border-radius: 8px; margin: 12px 0; }
        .blog-post-full p { -webkit-line-clamp: unset !important; line-clamp: unset !important; display: block !important; font-size: 14px; color: #555; line-height: 1.6; }
        .blog-post-full img { max-width: 100%; height: auto; }
