/*
Theme Name: 极简资讯 Pro
Theme URI: https://example.com/news-pro
Author: Your Name
Author URI: https://example.com
Description: 一款高端大气、现代简约的WordPress资讯主题，完美适配响应式设计，支持SEO优化，兼容所有主流浏览器。适用于新闻、博客、资讯类网站。
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: news-pro
Tags: news, blog, responsive, custom-header, custom-menu, editor-style, featured-images, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
    /* Primary Colors */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    
    /* Secondary Colors */
    --secondary-color: #0f172a;
    --accent-color: #f97316;
    
    /* Neutral Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --border-color: #e2e8f0;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: Georgia, "Times New Roman", serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Container */
    --container-max: 1400px;
    --container-padding: 1.5rem;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* Accessibility */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    clip: auto !important;
    color: var(--text-primary);
    display: block;
    font-size: 14px;
    font-weight: 600;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9375rem; }

p {
    margin-bottom: var(--spacing-md);
}

/* ============================================
   Layout
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: var(--spacing-2xl) 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--spacing-xl);
}

.main-column {
    min-width: 0;
}

.sidebar {
    min-width: 0;
}

/* ============================================
   Header
   ============================================ */
.site-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1e293b 100%);
    color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.header-top {
    background: var(--primary-color);
    padding: var(--spacing-sm) 0;
    font-size: 0.875rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.header-date {
    color: rgba(255, 255, 255, 0.9);
}

.header-social a {
    color: var(--bg-white);
    margin-left: var(--spacing-md);
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.header-social a:hover {
    opacity: 1;
}

.header-main {
    padding: var(--spacing-lg) 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-xl);
}

.site-branding {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.site-logo img {
    height: 50px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg-white);
    margin: 0;
}

.site-title a {
    color: inherit;
}

.site-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.header-search {
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2), 0 2px 8px rgba(0, 0, 0, 0.15);
}

.search-form input[type="search"] {
    background: transparent;
    border: none;
    padding: 12px 18px;
    color: var(--text-primary);
    width: 220px;
    outline: none;
    font-size: 0.9375rem;
}

.search-form input[type="search"]::placeholder {
    color: var(--text-secondary);
}

.search-form button {
    background: var(--primary-color);
    border: none;
    padding: 12px 18px;
    color: var(--bg-white);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form button:hover {
    background: var(--primary-dark);
}

.search-form button svg {
    color: var(--bg-white);
}

/* Page Content Search Form */
.page-content .search-form {
    max-width: 500px;
    margin: var(--spacing-lg) auto 0;
    display: flex;
    border-radius: var(--radius-md);
    background: var(--bg-gray);
    border: 2px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-content .search-form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.page-content .search-form input[type="search"] {
    flex: 1;
    padding: 14px 18px;
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
    color: var(--text-primary);
}

.page-content .search-form input[type="search"]::placeholder {
    color: var(--text-light);
}

.page-content .search-form button {
    padding: 14px 24px;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.page-content .search-form button:hover {
    background: var(--primary-dark);
}

.page-content .search-form button svg {
    display: none;
}

/* Navigation */
.main-navigation {
    background: rgba(0, 0, 0, 0.3);
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: var(--spacing-md) 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width var(--transition-normal);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after,
.nav-menu .current-menu-ancestor a::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a,
.nav-menu .current-menu-ancestor a {
    color: var(--bg-white);
}

/* Dropdown Menu */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-white);
    min-width: 220px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 100;
    padding: var(--spacing-sm) 0;
}

.sub-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: var(--bg-white);
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
}

.sub-menu a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-lg);
    color: var(--text-primary) !important;
    font-size: 0.9375rem;
}

.sub-menu a:hover {
    background: var(--bg-gray);
}

.sub-menu a::after {
    display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--bg-white);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ============================================
   Featured Section
   ============================================ */
.featured-section {
    background: var(--bg-white);
    padding: var(--spacing-2xl) 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.featured-post {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--secondary-color);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.featured-post:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.featured-post .post-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.featured-post:first-child .post-thumbnail {
    aspect-ratio: 16/10;
}

.featured-post .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.featured-post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.featured-post .post-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-lg);
}

.featured-post .post-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-sm);
    width: fit-content;
}

.featured-post .post-title {
    color: var(--bg-white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

.featured-post:first-child .post-title {
    font-size: 1.25rem;
}

.featured-post .post-meta {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.featured-post .post-meta span {
    margin-right: var(--spacing-md);
}

/* ============================================
   Post Cards
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

.post-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.post-card .post-thumbnail {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-card .post-content {
    padding: var(--spacing-lg);
}

.post-card .post-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.post-card .post-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

.post-card .post-title a {
    color: var(--text-primary);
}

.post-card .post-title a:hover {
    color: var(--primary-color);
}

.post-card .post-excerpt {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .post-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--text-light);
    font-size: 0.875rem;
}

.post-card .post-meta .author {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.post-card .post-meta .author img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* ============================================
   Sidebar Widgets
   ============================================ */
.widget {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.widget-title::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

/* Trending Posts Widget */
.trending-posts {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.trending-post {
    display: flex;
    gap: var(--spacing-md);
}

.trending-post .post-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.trending-post:nth-child(2) .post-number { background: #64748b; }
.trending-post:nth-child(3) .post-number { background: #94a3b8; }

.trending-post .post-info h4 {
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.trending-post .post-info h4 a {
    color: var(--text-primary);
}

.trending-post .post-info h4 a:hover {
    color: var(--primary-color);
}

.trending-post .post-info .post-date {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* Categories Widget */
.widget_categories ul li {
    border-bottom: 1px solid var(--border-color);
}

.widget_categories ul li:last-child {
    border-bottom: none;
}

.widget_categories ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    color: var(--text-primary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.widget_categories ul li a:hover {
    color: var(--primary-color);
}

.widget_categories ul li .count {
    background: var(--bg-gray);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Tags Widget */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.tagcloud a {
    display: inline-block;
    background: var(--bg-gray);
    color: var(--text-secondary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.tagcloud a:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
}

.newsletter-widget .widget-title {
    color: var(--bg-white);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.newsletter-widget p {
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    outline: none;
    transition: border-color var(--transition-fast);
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--bg-white);
}

.newsletter-form button {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--bg-white);
    color: var(--primary-color);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.newsletter-form button:hover {
    background: var(--accent-color);
    color: var(--bg-white);
}

/* ============================================
   Single Post
   ============================================ */
.single-post {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.single-post .post-thumbnail {
    width: 100%;
    aspect-ratio: 21/9;
    overflow: hidden;
}

.single-post .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post .post-header {
    padding: var(--spacing-2xl);
}

.single-post .post-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

.single-post .post-title {
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    line-height: 1.4;
}

.single-post .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.single-post .post-meta .author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.single-post .post-meta .author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.single-post .post-content {
    padding: var(--spacing-2xl);
    font-size: 1.0625rem;
    line-height: 1.9;
}

.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4 {
    margin-top: var(--spacing-xl);
}

.single-post .post-content p {
    margin-bottom: var(--spacing-lg);
}

.single-post .post-content img {
    border-radius: var(--radius-md);
    margin: var(--spacing-xl) 0;
}

.single-post .post-content blockquote {
    background: var(--bg-gray);
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.single-post .post-content ul,
.single-post .post-content ol {
    margin: var(--spacing-lg) 0;
    padding-left: var(--spacing-xl);
}

.single-post .post-content ul li,
.single-post .post-content ol li {
    margin-bottom: var(--spacing-sm);
    list-style: disc;
}

.single-post .post-content ol li {
    list-style: decimal;
}

.single-post .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    padding: var(--spacing-xl) var(--spacing-2xl);
    border-top: 1px solid var(--border-color);
}

.single-post .post-tags a {
    display: inline-block;
    background: var(--bg-gray);
    color: var(--text-secondary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.single-post .post-tags a:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.post-nav-item {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.post-nav-item:hover {
    box-shadow: var(--shadow-lg);
}

.post-nav-item.next-post {
    text-align: right;
}

.post-nav-item span {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-nav-item h4 {
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.post-nav-item h4 a {
    color: var(--text-primary);
}

.post-nav-item h4 a:hover {
    color: var(--primary-color);
}

/* ============================================
   Comments
   ============================================ */
.comments-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    margin-top: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

.comments-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xl);
}

.comment-list {
    margin-bottom: var(--spacing-xl);
}

.comment {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--border-color);
}

.comment:last-child {
    border-bottom: none;
}

.comment .comment-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.comment .comment-body {
    flex: 1;
}

.comment .comment-author {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.comment .comment-date {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.comment .comment-content {
    color: var(--text-secondary);
}

.comment .comment-reply a {
    display: inline-block;
    margin-top: var(--spacing-sm);
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Comment Form */
.comment-respond {
    margin-top: var(--spacing-xl);
}

.comment-reply-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

.comment-form {
    display: grid;
    gap: var(--spacing-lg);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--transition-fast);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary-color);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.comment-form input[type="submit"] {
    width: auto;
    padding: var(--spacing-md) var(--spacing-2xl);
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.comment-form input[type="submit"]:hover {
    background: var(--primary-dark);
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-2xl);
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--spacing-md);
    background: var(--bg-white);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary-color);
    color: var(--bg-white);
}

.pagination .page-numbers.dots {
    background: transparent;
    box-shadow: none;
    cursor: default;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.8);
    margin-top: auto;
}

.footer-top {
    padding: var(--spacing-3xl) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
}

.footer-widget h3 {
    color: var(--bg-white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-md);
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.footer-about .footer-logo {
    margin-bottom: var(--spacing-lg);
}

.footer-about .footer-logo img {
    height: 40px;
}

.footer-about p {
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--bg-white);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-widget ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-widget ul li a:hover {
    color: var(--bg-white);
}

.footer-bottom {
    padding: var(--spacing-lg) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
}

.footer-menu {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-menu a:hover {
    color: var(--bg-white);
}

/* ============================================
   404 Page
   ============================================ */
.error-404 {
    text-align: center;
    padding: var(--spacing-3xl) 0;
}

.error-404 .error-code {
    font-size: 5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: var(--spacing-lg);
}

.error-404 h1 {
    margin-bottom: var(--spacing-lg);
}

.error-404 p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-404 .btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: var(--spacing-md) var(--spacing-2xl);
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.error-404 .btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================
   Archive & Search
   ============================================ */
.archive-header,
.search-header {
    background: var(--bg-white);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.archive-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.archive-icon svg {
    color: var(--bg-white);
}

.search-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-icon svg {
    color: var(--bg-white);
}

.archive-info,
.search-info {
    flex: 1;
}

.archive-title,
.search-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.archive-title {
    margin-bottom: var(--spacing-xs);
}

.archive-title::before {
    display: none;
}

.archive-header .archive-description,
.search-header .search-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.archive-description:empty {
    display: none;
}

.search-keyword {
    color: var(--primary-color);
    font-weight: 600;
}

.archive-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Search Results */
.search-results {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.search-result-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
}

.search-result-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.search-result-card .result-thumbnail {
    width: 280px;
    flex-shrink: 0;
}

.search-result-card .result-thumbnail a {
    display: block;
    height: 100%;
}

.search-result-card .result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-card .result-content {
    flex: 1;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
}

.search-result-card .result-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.search-result-card .result-category {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.search-result-card .result-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.search-result-card .result-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.search-result-card .result-title a {
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.search-result-card .result-title a:hover {
    color: var(--primary-color);
}

.search-result-card .result-excerpt {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    flex: 1;
}

.search-result-card .result-read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
    transition: gap 0.2s ease;
}

.search-result-card .result-read-more:hover {
    gap: var(--spacing-sm);
}

/* No Results */
.no-results.not-found {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-3xl);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.no-results-icon {
    width: 100px;
    height: 100px;
    background: var(--bg-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-xl);
}

.no-results-icon svg {
    color: var(--text-light);
}

.suggested-categories {
    margin-top: var(--spacing-2xl);
}

.suggested-categories h3 {
    margin-bottom: var(--spacing-lg);
    font-size: 1rem;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

.category-tags li {
    list-style: none;
}

.category-tags a {
    display: inline-block;
    background: var(--bg-gray);
    color: var(--text-secondary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.category-tags a:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.suggested-posts {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--border-color);
}

.suggested-posts h3 {
    margin-bottom: var(--spacing-lg);
    font-size: 1rem;
}

.suggested-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.suggested-post {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md);
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.suggested-post:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.suggested-post-title {
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.suggested-post-date {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.suggested-post:hover .suggested-post-date {
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile Search Results */
@media (max-width: 768px) {
    .search-header {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-lg);
    }
    
    .search-result-card {
        flex-direction: column;
    }
    
    .search-result-card .result-thumbnail {
        width: 100%;
        height: 180px;
    }
    
    .suggested-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Page Template
   ============================================ */
.page-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-sm);
}

.page-content .entry-title {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

/* ============================================
   Loading & Animations
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.loading {
    display: flex;
    justify-content: center;
    padding: var(--spacing-2xl);
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
    :root {
        --container-padding: 1.25rem;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr 300px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-post:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .comment-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    
    .header-top {
        display: none;
    }
    
    .header-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .site-branding {
        flex-direction: column;
        text-align: center;
    }
    
    .search-form {
        width: 100%;
    }
    
    .search-form input[type="search"] {
        width: 100%;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-color);
        flex-direction: column;
        padding: var(--spacing-md);
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu a {
        padding: var(--spacing-md);
    }
    
    .sub-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    
    .nav-menu li:hover > .sub-menu {
        display: block;
    }
    
    .sub-menu::before {
        display: none;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-post:first-child {
        grid-column: span 1;
    }
    
    .featured-post .post-title {
        font-size: 1.125rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .single-post .post-header,
    .single-post .post-content,
    .single-post .post-tags {
        padding: var(--spacing-lg);
    }
    
    .post-navigation {
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.5rem;
    }
    
    .pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        padding: 0 var(--spacing-sm);
        font-size: 0.875rem;
    }
    
    .post-card .post-content {
        padding: var(--spacing-md);
    }
    
    .widget {
        padding: var(--spacing-md);
    }
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.back-to-top:active {
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .post-navigation,
    .comments-section,
    .related-posts {
        display: none !important;
    }
    
    .single-post {
        box-shadow: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.6;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}
