/*
Theme Name: 个人首页
Description: 基于WordPress的个人首页自定义主题，现代流行设计风格
Version: 1.0
Author: 您的姓名
Text Domain: personal-homepage
Domain Path: /languages
*/

/* ==========================================================================
   CSS 自定义属性 (CSS Variables)
   ========================================================================== */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    
    --primary-color: #667eea;
    --secondary-color: #f5576c;
    --accent-color: #00f2fe;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --light-bg: #f8fafc;
    
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    --border-radius: 12px;
    --border-radius-large: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   基础样式重置
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* 改善文本渲染 */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ==========================================================================
   布局样式
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

/* ==========================================================================
   现代化头部导航
   ========================================================================== */
header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
    color: var(--white);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    color: var(--text-dark);
    box-shadow: var(--shadow-medium);
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    min-height: 70px;
}

.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: nowrap;
    width: 100%;
}

.site-header .site-branding {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 0 1 auto;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--white);
    transition: var(--transition);
}

.site-title:hover {
    transform: scale(1.05);
}

.site-title a {
    color: inherit;
}

/* ==========================================================================
   现代化导航菜单
   ========================================================================== */
.main-navigation {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
    flex: 0 1 auto;
}

.site-header .main-navigation a {
    color: rgba(255, 255, 255, 0.92);
}

.site-header .main-navigation a:hover {
    color: var(--white);
}

.site-header .main-navigation a::before {
    background: rgba(255, 255, 255, 0.9);
}

.site-header .menu-toggle {
    color: rgba(255, 255, 255, 0.92);
}

.site-header.scrolled .site-title {
    color: var(--primary-color);
}

.site-header.scrolled .site-title a {
    color: inherit;
}

.site-header.scrolled .main-navigation a {
    color: var(--text-dark);
}

.site-header.scrolled .main-navigation a:hover {
    color: var(--primary-color);
}

.site-header.scrolled .main-navigation a::before {
    background: var(--primary-gradient);
}

.site-header.scrolled .menu-toggle {
    color: var(--text-dark);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.header-nav {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

.main-navigation a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.main-navigation a:hover::before,
.main-navigation a.current::before {
    width: 100%;
}

.main-navigation a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* ==========================================================================
   现代化Hero区域
   ========================================================================== */
main {
    margin-top: 70px;
}

.hero-section {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--primary-gradient);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
    color: var(--white);
}

/* ==========================================================================
   响应式设计
   ========================================================================== */
/* ==========================================================================
   现代化区域样式
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==========================================================================
   关于我区域
   ========================================================================== */
.about-section {
    background: var(--light-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-text p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.about-text h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.tech-highlights {
    margin: 1.5rem 0 2rem 0;
    display: grid;
    gap: 1rem;
}

.tech-category {
    background: rgba(255, 255, 255, 0.7);
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.tech-category h5 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-category p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 280px;
    height: 350px;
    background: var(--white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.placeholder-content {
    text-align: center;
    color: var(--text-light);
}

.placeholder-content span {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ==========================================================================
   技能区域
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.skill-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.skill-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tag {
    background: var(--light-bg);
    color: var(--text-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ==========================================================================
   联系区域
   ========================================================================== */
.contact-section {
    background: var(--light-bg);
}

.contact-info.single-contact {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    width: 100%;
}

.contact-item.featured {
    border: 2px solid transparent;
    background: linear-gradient(var(--white), var(--white)) padding-box,
                var(--primary-gradient) border-box;
    position: relative;
}

.contact-item.featured::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-large);
    z-index: -1;
}

.contact-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-heavy);
}

.contact-icon {
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.contact-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.1); opacity: 0.1; }
    100% { transform: scale(1); opacity: 0.2; }
}

.contact-details {
    flex: 1;
}

.contact-details h4 {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.email-address {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    word-break: break-all;
}

.contact-note {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

.contact-message {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-message p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   博客文章列表
   ========================================================================== */
.blog-section {
    background: var(--light-bg);
}

.blog-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-section .section-header {
    text-align: center;
    max-width: 720px;
}

.blog-filters {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: center;
    width: 100%;
}

.blog-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
}

.blog-search {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    width: min(100%, 640px);
    flex: 0 1 420px;
    justify-content: center;
}

.blog-search input[type="search"] {
    flex: 1 1 280px;
    min-width: 220px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(102, 126, 234, 0.35);
    border-radius: var(--border-radius);
    background: var(--white);
    color: var(--text-dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-search input[type="search"]:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.8);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    flex: 1 1 320px;
    max-width: 720px;
}

.category-group {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.category-group .top-level {
    min-width: 140px;
    justify-content: center;
}

.subcategory-toggle {
    background: var(--white);
    border: 1px solid rgba(118, 75, 162, 0.25);
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.subcategory-toggle:hover,
.subcategory-toggle[aria-expanded="true"] {
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: var(--shadow-light);
    color: var(--primary-color);
}

.subcategory-toggle .toggle-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.subcategory-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.subcategory-list {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 240px;
    max-width: min(320px, 90vw);
    z-index: 20;
    max-height: 320px;
    overflow-y: auto;
}

.subcategory-branch {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subcategory-chip {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.08);
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.subcategory-chip .category-count {
    min-width: 22px;
    height: 22px;
    font-size: 0.75rem;
}

.subcategory-chip:hover {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: var(--shadow-light);
}

.subcategory-chip.active {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: var(--shadow-medium);
}

.subcategory-level {
    list-style: none;
    margin: 0.35rem 0 0.2rem 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.subcategory-level .subcategory-chip {
    font-size: 0.85rem;
}

.subcategory-level.depth-2 {
    margin-left: 0.75rem;
}

.subcategory-level.depth-3,
.subcategory-level.depth-4,
.subcategory-level.depth-5 {
    margin-left: 0.5rem;
}

.subcategory-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.subcategory-list[hidden] {
    display: none !important;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    background: var(--white);
    color: var(--text-dark);
    text-decoration: none;
    border: 1px solid rgba(118, 75, 162, 0.25);
    box-shadow: var(--shadow-light);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: var(--shadow-medium);
}

.category-chip.active {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-medium);
}

.category-chip.active .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.35rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.15);
    color: var(--primary-color);
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.blog-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card-content {
    padding: 2.5rem;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.meta-separator {
    opacity: 0.5;
}

.blog-card-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.blog-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: gap 0.3s ease, transform 0.3s ease;
}

.blog-read-more:hover {
    gap: 0.6rem;
    transform: translateX(4px);
}

.blog-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 0.3rem;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-light);
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: var(--primary-gradient);
    color: var(--white);
}

/* ==========================================================================
   内容卡片样式
   ========================================================================== */
.content-card {
    background: var(--white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    padding: 3rem;
    margin-bottom: 2rem;
}

.entry-content {
    line-height: 1.8;
    color: var(--text-dark);
}

.entry-content h1, .entry-content h2, .entry-content h3 {
    color: var(--text-dark);
    margin: 2rem 0 1rem 0;
}

.entry-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-weight: 700;
}

/* ==========================================================================
   空状态样式
   ========================================================================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.empty-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* ==========================================================================
   现代化底部样式
   ========================================================================== */
.site-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 2rem;
    text-align: center;
}

.site-info {
    opacity: 0.8;
    font-size: 0.9rem;
}

.site-info a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.site-info a:hover {
    opacity: 0.7;
}

.site-info .site-icp {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

/* ==========================================================================
   响应式设计
   ========================================================================== */

/* 大屏幕 (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
}

@media (min-width: 992px) {
    .blog-card {
        grid-template-columns: minmax(320px, 1fr) minmax(0, 1.4fr);
    }

    .blog-card-thumb {
        height: 100%;
    }

    .blog-card-thumb img {
        height: 100%;
        object-fit: cover;
    }

    .blog-filter-bar {
        align-items: stretch;
        gap: 2.5rem;
    }

    .blog-filter-bar .blog-search {
        width: min(100%, 420px);
    }
}

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card {
        grid-template-columns: 1fr;
    }
}

/* 移动设备 (768px以下) */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    /* 头部导航 */
    .site-header {
        padding: 0.8rem 0;
        min-height: 60px;
    }

    .site-header .header-inner {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .site-header .site-branding,
    .site-header .main-navigation {
        width: auto;
    }
    
    .site-title {
        font-size: 1.5rem;
    }

    .blog-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }

    .blog-filters {
        gap: 1.25rem;
    }

    .blog-search {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }

    .blog-search input[type="search"] {
        flex: 1 1 100%;
        width: 100%;
    }

    .blog-search button {
        width: 100%;
    }

    .blog-categories {
        justify-content: center;
    }

    .category-chip {
        justify-content: center;
    }

    .blog-card-content {
        padding: 1.75rem;
    }

    .blog-card-title {
        font-size: 1.6rem;
    }

    .blog-card-meta {
        justify-content: center;
        text-align: center;
    }
    
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-medium);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
    
    .main-navigation ul.show {
        display: flex;
    }
    
    .main-navigation li {
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .main-navigation li:last-child {
        border-bottom: none;
    }
    
    .main-navigation a {
        display: block;
        padding: 1rem 1.5rem;
        text-align: center;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* Hero区域 */
    main {
        margin-top: 60px;
    }
    
    .hero-section {
        min-height: calc(100vh - 60px);
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    /* 区域标题 */
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* 关于我区域 */
    .about-grid {
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .image-placeholder {
        width: 220px;
        height: 280px;
    }
    
    /* 技能区域 */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-card {
        padding: 2rem 1.5rem;
    }
    
    /* 联系区域 */
    .contact-item {
        padding: 2rem 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .contact-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .contact-details h4 {
        font-size: 1.2rem;
    }
    
    .email-address {
        font-size: 1rem;
        word-break: break-all;
    }
    
    .contact-message {
        margin-top: 2rem;
        padding: 1rem;
    }
    
    /* 内容卡片 */
    .content-card {
        padding: 2rem 1.5rem;
        border-radius: var(--border-radius);
    }
    
    .entry-title {
        font-size: 2rem;
    }
}

/* 小屏幕移动设备 (480px以下) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .hero-content {
        padding: 0 16px;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .skill-card {
        padding: 1.5rem 1rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .content-card {
        padding: 1.5rem 1rem;
    }
    
    .stats-grid {
        gap: 0.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }

    .category-chip {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
    }

    .category-count {
        min-width: 22px;
        height: 22px;
    }

    .subcategory-list {
        position: static;
        transform: none;
        width: 100%;
        max-width: none;
        box-shadow: none;
        border: 1px solid rgba(102, 126, 234, 0.15);
        max-height: none;
        overflow: visible;
    }

    .category-group {
        align-items: stretch;
    }

    .category-group .top-level {
        justify-content: center;
    }
}

/* 超小屏幕 (320px以下) */
@media (max-width: 320px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}