﻿/* ========================================
   鍗氬鏍峰紡 - 鍗庝附鐜颁唬鐗?
   ======================================== */

/* CSS 鍙橀噺 - 鏇翠赴瀵岀殑鑹插僵绯荤粺 */
:root {
    /* 涓昏壊璋?- 缈＄繝缁挎笎鍙?*/
    --primary-50: #ecfdf5;
    --primary-100: #d1fae5;
    --primary-200: #a7f3d0;
    --primary-300: #6ee7b7;
    --primary-400: #34d399;
    --primary-500: #10b981;
    --primary-600: #059669;
    --primary-700: #047857;
    --primary-800: #065f46;
    --primary-900: #064e3b;
    
    /* 杈呭姪鑹?*/
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-pink: #ec4899;
    --accent-orange: #f97316;
    
    /* 鏂囧瓧鑹?*/
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #f8fafc;
    
    /* 鑳屾櫙鑹?*/
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    
    /* 杈规鍜岄槾褰?*/
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 0 40px -10px rgba(16, 185, 129, 0.3);
    --shadow-glow-purple: 0 0 40px -10px rgba(139, 92, 246, 0.3);
    
    /* 鍦嗚 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* 杩囨浮鍔ㄧ敾 */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* 甯冨眬 */
    --container-max: 1280px;
    --content-max: 820px;
    --sidebar-width: 340px;
}

/* ========================================
   鍩虹閲嶇疆
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-primary);
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 閫変腑鏂囧瓧鏍峰紡 */
::selection {
    background: var(--primary-200);
    color: var(--primary-900);
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-700);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   瀵艰埅鏍?- 鐜荤拑鎷熸€佹晥鏋?
   ======================================== */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

/* Logo 鏍峰紡 */
.nav-logo {
    font-size: 1.625rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
    -webkit-text-fill-color: initial;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: var(--transition-fast);
}

.nav-logo:hover .nav-logo-icon {
    transform: scale(1.1) rotate(-5deg);
}

.nav-logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-purple));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-logo:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* 瀵艰埅鑿滃崟 */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-600);
    background: var(--primary-50);
}

.nav-link.active {
    color: var(--primary-600);
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    box-shadow: inset 0 1px 2px rgba(16, 185, 129, 0.1);
}

/* 绉诲姩绔彍鍗曟寜閽?*/
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    gap: 5px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.nav-toggle:hover {
    background: var(--bg-tertiary);
}

.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: linear-gradient(90deg, var(--text-primary), var(--text-secondary));
    border-radius: 2px;
    transition: var(--transition-base);
}

/* ========================================
   涓诲唴瀹瑰尯
   ======================================== */
.main-content {
    flex: 1;
    padding: 40px 24px;
}

.page-layout {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 48px;
}

.page-content {
    min-width: 0;
}

/* ========================================
   鐗硅壊鏂囩珷鍖?- 鏉傚織椋庢牸甯冨眬
   ======================================== */
.featured-section-fullwidth {
    max-width: var(--container-max);
    margin: 0 auto 56px;
    padding: 0 24px;
}

.featured-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 280px 280px;
    gap: 24px;
    height: 584px;
}

/* 鐗硅壊鏂囩珷鍗＄墖 */
.featured-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

.featured-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
    transition: var(--transition-base);
}

.featured-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.featured-card:hover::before {
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.9) 100%);
}

/* 缃戞牸浣嶇疆 */
.featured-large-left {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.featured-top-right {
    grid-column: 3 / 5;
    grid-row: 1 / 2;
}

.featured-bottom-left {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.featured-bottom-right {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
}

/* 鑳屾櫙鍥?*/
.featured-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: var(--transition-slow);
}

.featured-card:hover .featured-card-bg {
    transform: scale(1.1);
}

/* 鍐呭瑕嗙洊灞?*/
.featured-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    z-index: 2;
    color: white;
}

/* 鏍囩 */
.featured-card-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* 鏍囬 */
.featured-card-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-large-left .featured-card-title {
    font-size: 2.5rem;
}

.featured-top-right .featured-card-title {
    font-size: 1.5rem;
}

.featured-bottom-left .featured-card-title,
.featured-bottom-right .featured-card-title {
    font-size: 1.125rem;
}

/* 鍏冧俊鎭?*/
.featured-card-meta {
    font-size: 0.875rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ========================================
   鏂囩珷鍒楄〃 - 鍗＄墖寮忚璁?
   ======================================== */
.posts-section {
    margin-bottom: 48px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--primary-500), var(--accent-purple));
    border-radius: 2px;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* 鏂囩珷鍗＄墖 */
.post-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition-base);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.post-card-image {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.post-card:hover .post-card-image {
    transform: scale(1.05);
}

.post-card-content {
    padding: 28px 28px 28px 0;
    display: flex;
    flex-direction: column;
}

/* 鏍囩 */
.post-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.post-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: var(--primary-50);
    color: var(--primary-700);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.post-tag:hover {
    background: var(--primary-100);
    color: var(--primary-800);
    transform: translateY(-1px);
}

/* 鏍囬 */
.post-card-title {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.post-card-title a {
    color: var(--text-primary);
    background: linear-gradient(90deg, var(--primary-600), var(--primary-600)) no-repeat right bottom / 0 2px;
    transition: background-size 0.3s ease;
}

.post-card-title a:hover {
    color: var(--primary-600);
    background-size: 100% 2px;
    background-position-x: left;
}

/* 鎽樿 */
.post-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 鍏冧俊鎭?*/
.post-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========================================
   渚ц竟鏍?- 鐜荤拑鍗＄墖鏁堟灉
   ======================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sidebar-widget {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition-base);
}

.sidebar-widget:hover {
    box-shadow: var(--shadow-md);
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-purple));
    border-radius: 50%;
}

/* 鐑棬鏂囩珷鍒楄〃 */
.widget-list {
    list-style: none;
}

.widget-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-fast);
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list li:hover {
    padding-left: 8px;
}

.widget-list a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.widget-list a:hover {
    color: var(--primary-600);
}

/* 鏍囩浜?*/
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition-fast);
}

.tag-cloud-item:hover {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-purple) 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   鏍囩鍒楄〃椤?
   ======================================== */
.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.tag-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition-fast);
    text-decoration: none;
}

.tag-card:hover {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-purple) 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tag-card-name {
    font-weight: 600;
}

.tag-card-count {
    font-size: 0.8125rem;
    opacity: 0.8;
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

/* ========================================
   鍒嗛〉 - 绮捐嚧鎸夐挳
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--border-light);
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-number,
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.page-number {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.page-number:hover {
    background: var(--primary-50);
    color: var(--primary-600);
    border-color: var(--primary-200);
}

.page-number.current {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.page-link {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.page-link:hover {
    background: var(--primary-50);
    color: var(--primary-600);
    border-color: var(--primary-300);
    transform: translateX(-2px);
}

.page-link.next:hover {
    transform: translateX(2px);
}

/* ========================================
   椤佃剼 - 娣辫壊娓愬彉
   ======================================== */
.footer {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
    color: var(--text-inverse);
    padding: 64px 24px 32px;
    margin-top: auto;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section {
    opacity: 0.95;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    font-size: 0.9375rem;
}

.footer-subtitle {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.9);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9375rem;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary-400);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

/* ========================================
   鏂囩珷璇︽儏椤?- 闃呰浼樺寲
   ======================================== */
.post-header {
    text-align: center;
    max-width: var(--content-max);
    margin: 0 auto 48px;
    padding: 0 24px;
}

.post-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.post-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    margin-bottom: 48px;
    box-shadow: var(--shadow-lg);
}

/* ========================================
   鏂囩珷鍐呭 - GitHub/Stripe 鏂囨。椋庢牸
   ======================================== */

/* 鏂囩珷瀹瑰櫒 */
.article-content {
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    font-size: 16px;
    line-height: 1.75;
    color: #24292f;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

/* 鏍囬灞傜骇 - GitHub 椋庢牸 */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
    color: #1f2328;
}

.article-content h1 {
    font-size: 2rem;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #d8dee4;
}

.article-content h2 {
    font-size: 1.5rem;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #d8dee4;
}

.article-content h3 {
    font-size: 1.25rem;
}

.article-content h4 {
    font-size: 1rem;
}

.article-content h5 {
    font-size: 0.875rem;
}

.article-content h6 {
    font-size: 0.85rem;
    color: #656d76;
}

/* 娈佃惤 - 棣栬缂╄繘2瀛楃 */
/* 段落 - 首行缩进2字符 */
.article-content p {
    margin-bottom: 16px;
    color: #24292f;
    text-indent: 2em;
}

/* 閾炬帴 - GitHub 钃濊壊椋庢牸 */
.article-content a {
    color: #0969da;
    text-decoration: none;
    border-bottom: none;
}

.article-content a:hover {
    text-decoration: underline;
}

/* 寮鸿皟鏂囧瓧 */
.article-content strong {
    font-weight: 600;
    color: #1f2328;
}

.article-content em {
    font-style: italic;
}

/* 鍒犻櫎绾?*/
.article-content del {
    text-decoration: line-through;
    color: #656d76;
}

/* 姘村钩绾?*/
.article-content hr {
    margin: 24px 0;
    border: none;
    border-top: 1px solid #d0d7de;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
    border-radius: 6px;
    box-shadow: none;
    display: block;
}

/* 寮曠敤鍧?- 棣栬缂╄繘2瀛楃 */
.article-content blockquote {
    margin: 16px 0;
    padding: 0 16px;
    color: #656d76;
    border-left: 4px solid #d0d7de;
    background: none;
    font-style: normal;
}

.article-content blockquote p {
    text-indent: 2em;
    color: #656d76;
}

/* 琛屽唴浠ｇ爜 - GitHub 椋庢牸 */
.article-content code {
    background-color: rgba(175, 184, 193, 0.2);
    padding: 0.2em 0.4em;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 85%;
    color: #24292f;
}

/* 浠ｇ爜鍧?- GitHub 椋庢牸 */
.article-content pre {
    background-color: #f6f8fa;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 16px 0;
    font-size: 85%;
    line-height: 1.45;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: #24292f;
    font-size: 100%;
}

/* 琛ㄦ牸鏍峰紡 - GitHub 椋庢牸 */
.article-content table,
.content-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    border: none;
}

.article-content thead,
.content-table thead {
    background: transparent;
}

.article-content th,
.content-table th {
    padding: 8px 13px;
    text-align: left;
    font-weight: 600;
    color: #24292f;
    font-size: 14px;
    border-bottom: 2px solid #d0d7de;
}

.article-content td,
.content-table td {
    padding: 8px 13px;
    border-bottom: 1px solid #d0d7de;
    color: #24292f;
    font-size: 14px;
}

.article-content tbody tr:last-child td,
.content-table tbody tr:last-child td {
    border-bottom: 1px solid #d0d7de;
}

.article-content tbody tr:hover,
.content-table tbody tr:hover {
    background: #f6f8fa;
}

/* 琛ㄦ牸妯悜婊氬姩 */
.article-content .table-wrapper {
    overflow-x: auto;
    margin: 16px 0;
    border-radius: 6px;
    box-shadow: none;
}

/* 列表样式 - 首行缩进2字符 */
.article-content ul,
.article-content ol {
    margin: 16px 0;
    padding-left: 0;
    list-style-position: inside;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content li {
    margin: 8px 0;
    color: #24292f;
    line-height: 1.75;
    text-indent: 2em;
}

.article-content li + li {
    margin-top: 8px;
}

.article-content li > ul,
.article-content li > ol {
    margin: 8px 0;
}

.article-content ul ul {
    list-style-type: circle;
}

.article-content ul ul ul {
    list-style-type: square;
}

/* 鏂囩珷椤电湁 - GitHub 椋庢牸 */
.post-header {
    text-align: left;
    max-width: 720px;
    margin: 0 auto 32px;
    padding: 0 24px;
}

.post-title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 16px;
    color: #1f2328;
    background: none;
    -webkit-text-fill-color: initial;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #656d76;
    font-size: 14px;
}

.post-featured-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 32px;
}

/* ========================================
   鍝嶅簲寮忚璁?
   ======================================== */
@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
        height: 64px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-base);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-content {
        padding: 24px 16px;
    }
    
    .featured-grid-new {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 200px);
        height: auto;
        gap: 16px;
    }
    
    .featured-large-left,
    .featured-top-right,
    .featured-bottom-left,
    .featured-bottom-right {
        grid-column: 1;
        grid-row: auto;
    }
    
    .featured-card-title {
        font-size: 1.25rem !important;
    }
    
    .post-card {
        grid-template-columns: 1fr;
    }
    
    .post-card-image {
        min-height: 180px;
    }
    
    .post-card-content {
        padding: 20px;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .post-title {
        font-size: 1.875rem;
    }
}

/* ========================================
   鍔ㄧ敾鏁堟灉
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card,
.sidebar-widget {
    animation: fadeInUp 0.5s ease forwards;
}

/* 鍔犺浇鍔ㄧ敾 */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.loading {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ========================================
   宸ュ叿绫?
   ======================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

