/*
Theme Name: SimpleBlog
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A simple and clean responsive WordPress theme suitable for blogs
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simpleblog
Tags: blog, responsive, custom-menu, custom-logo, featured-images
*/

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --border-radius: 12px;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    /* Font families */
    --font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-mono: "SF Mono", "Consolas", "Monaco", "Courier New", monospace;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =Header
-------------------------------------------------------------- */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    height: 40px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.site-title a:hover {
    color: var(--primary-color);
}

.site-description {
    font-size: 0.85rem;
    color: var(--text-light);
    display: none;
}

/* Desktop Navigation */
.main-navigation {
    display: none;
}

.main-navigation .nav-menu {
    display: flex;
    gap: 30px;
}

.main-navigation .nav-menu > li > a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    padding: 8px 0;
    position: relative;
}

.main-navigation .nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-navigation .nav-menu > li > a:hover::after,
.main-navigation .nav-menu > li.current-menu-item > a::after {
    width: 100%;
}

.main-navigation .nav-menu > li > a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background-color: var(--white);
    border-top: 1px solid #eee;
    padding: 0 20px 20px;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu .nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu .nav-menu > li {
    border-bottom: 1px solid #eee;
}

.mobile-menu .nav-menu > li:last-child {
    border-bottom: none;
}

.mobile-menu .nav-menu > li > a {
    display: block;
    padding: 15px 0;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* =Main Content
-------------------------------------------------------------- */
.main-content {
    flex: 1;
    padding: 40px 0;
}

.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-area {
    max-width: 800px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 40px;
    text-align: center;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.page-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 10px;
}

/* =Posts List
-------------------------------------------------------------- */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.post-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.post-card.sticky {
    border: 2px solid var(--primary-color);
}

.post-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: #e0e0e0;
}

.post-thumbnail-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.post-content {
    padding: 25px;
}

.post-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.post-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta svg {
    width: 14px;
    height: 14px;
}

/* =Single Post / Page
-------------------------------------------------------------- */
.post-single,
.page-single {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.post-single .post-thumbnail,
.page-single .post-thumbnail {
    height: 350px;
}

.post-single .post-content,
.page-single .post-content {
    padding: 40px;
}

.single-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    color: var(--text-light);
}

.single-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.single-meta svg {
    width: 16px;
    height: 16px;
}

.single-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
}

.single-content p {
    margin-bottom: 1.5em;
}

.single-content h2,
.single-content h3,
.single-content h4 {
    color: var(--secondary-color);
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.single-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.single-content img {
    border-radius: 8px;
    margin: 1.5em 0;
}

.single-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--text-light);
}

.single-content ul,
.single-content ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.single-content li {
    margin-bottom: 0.5em;
}

.single-content ul {
    list-style: disc;
}

.single-content ol {
    list-style: decimal;
}

/* 表格样式 - 细边框 */
.single-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
}

.single-content table th,
.single-content table td {
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    text-align: left;
}

.single-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--secondary-color);
}

.single-content table tr:hover {
    background-color: #fafafa;
}

/* 代码块样式 */
.single-content pre {
    background-color: #282c34;
    color: #abb2bf;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5em 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
}

.single-content code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 4px;
    color: #e83e8c;
}

.single-content pre code {
    background-color: transparent;
    padding: 0;
    color: #abb2bf;
}

/* 代码复制按钮 */
.code-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #abb2bf;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.code-copy-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.code-copy-btn.copied {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

/* 图片样式 - 宽度限制和圆角 */
.single-content img {
    max-width: 100%;
    width: auto;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
}

.single-content figure {
    margin: 1.5em 0;
}

.single-content figure img {
    border-radius: 8px;
}

.single-content .wp-caption img {
    border-radius: 8px;
}

/* Post Tags */
.post-tags {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.post-tags a {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f0f0f0;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-right: 8px;
    margin-bottom: 8px;
}

.post-tags a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* =Pagination
-------------------------------------------------------------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    padding: 0 10px;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background-color: var(--white);
    border-radius: 8px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.pagination .current {
    background-color: var(--primary-color);
    color: var(--white);
}

.pagination .prev,
.pagination .next {
    min-width: auto;
    padding: 0 16px;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .pagination {
        gap: 6px;
        padding: 0 5px;
    }

    .pagination .nav-links {
        gap: 6px;
    }

    .pagination a,
    .pagination span {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }

    .pagination .prev,
    .pagination .next {
        padding: 0 12px;
    }
}

/* =No Posts Found
-------------------------------------------------------------- */
.no-posts {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow);
}

.no-posts h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.no-posts p {
    color: var(--text-light);
}

/* =Footer
-------------------------------------------------------------- */
.site-footer {
    background-color: var(--secondary-color);
    color: #ecf0f1;
    padding: 50px 20px 30px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo a:hover {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ecf0f1;
}

.footer-social a:hover {
    background-color: var(--primary-color);
}

.copyright {
    font-size: 0.85rem;
    color: #95a5a6;
    padding-top: 25px;
    border-top: 1px solid #34495e;
    width: 100%;
    text-align: center;
}

/* 微信分享模态框 */
.wechat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.wechat-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    max-width: 90%;
}

.wechat-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.wechat-modal-close:hover {
    color: #333;
}

.wechat-modal-content h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.wechat-qrcode img {
    display: block;
    border-radius: 8px;
}

.wechat-qrcode p {
    margin: 10px 0;
    text-align: center;
}

.wechat-hint {
    font-size: 14px;
    color: var(--text-light);
}

/* =Responsive
-------------------------------------------------------------- */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .main-navigation {
        display: block;
    }

    .mobile-menu {
        display: none !important;
    }

    .site-description {
        display: block;
    }

    .post-thumbnail,
    .post-thumbnail-placeholder {
        height: 250px;
    }

    .post-title {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .site-title {
        font-size: 1.75rem;
    }

    .post-thumbnail,
    .post-thumbnail-placeholder {
        height: 280px;
    }

    .post-content {
        padding: 30px;
    }

    .page-title,
    .single-title {
        font-size: 2.2rem;
    }

    .single-content {
        font-size: 1.1rem;
    }
}

@media (min-width: 1280px) {
    .post-thumbnail,
    .post-thumbnail-placeholder {
        height: 320px;
    }
}

/* =WordPress Core Classes
-------------------------------------------------------------- */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 700;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    top: 5px;
    z-index: 100000;
}

.clear::before,
.clear::after {
    content: "";
    display: table;
}

.clear::after {
    clear: both;
}

.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}

.wp-caption {
    max-width: 100%;
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 1.5em;
}

.wp-caption img {
    margin-bottom: 10px;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
}

.gallery {
    display: grid;
    gap: 20px;
    margin: 1.5em 0;
}

.gallery-item {
    text-align: center;
}

.gallery-columns-2 .gallery-item {
    grid-column: span 2;
}

.gallery-columns-3 .gallery-item {
    grid-column: span 3;
}

.gallery-columns-4 .gallery-item {
    grid-column: span 4;
}

/* Comments */
.comments-area {
    margin-top: 40px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.comments-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.comment-list {
    margin-bottom: 40px;
}

.comment {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.comment-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    color: var(--secondary-color);
}

.comment-author .says {
    color: var(--text-light);
    font-size: 0.9rem;
}

.comment-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.comment-body p {
    color: var(--text-light);
    line-height: 1.7;
}

.comment-reply-link {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

.comment-respond {
    margin-top: 30px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    margin-top: 20px;
}

.form-submit .submit {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit .submit:hover {
    background-color: #2980b9;
}

/* Page Links */
.page-links {
    margin-top: 20px;
    clear: both;
}

.page-links a {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin: 0 3px;
}

.page-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 更多文章 */
.more-posts {
    margin-top: 40px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.more-posts-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.more-posts-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.more-post-item {
    display: flex;
    gap: 15px;
    padding: 10px;
    border-radius: 8px;
    transition: var(--transition);
}

.more-post-item:hover {
    background-color: #f8f9fa;
}

.more-post-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.more-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.more-post-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.more-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.more-post-title a:hover {
    color: var(--primary-color);
}

.more-post-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* 响应式 - 更多文章 */
@media (max-width: 600px) {
    .more-posts-list {
        grid-template-columns: 1fr;
    }

    .more-post-item {
        flex-direction: column;
    }

    .more-post-thumbnail {
        width: 100%;
        height: 150px;
    }
}

/* =Back to Top Button
    flex: 1;
    min-width: 0;
}

/* =Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    text-decoration: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.back-to-top svg {
    transition: var(--transition);
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

/* =Mobile Font Optimizations */
@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }

    body {
        line-height: 1.7;
        -webkit-text-size-adjust: 100%;
    }

    /* Improve readability on mobile */
    p {
        margin-bottom: 1em;
    }

    /* Better tap targets */
    a, button {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Touch-friendly navigation */
    .main-navigation a,
    .menu-toggle {
        padding: 12px 16px;
    }

    /* Larger form inputs on mobile */
    input, textarea, select {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
    }

    /* Single post content optimization */
    .single-content {
        font-size: 1rem;
        line-height: 1.8;
    }

    .single-content h1 {
        font-size: 1.75rem;
    }

    .single-content h2 {
        font-size: 1.5rem;
    }

    .single-content h3 {
        font-size: 1.25rem;
    }

    .single-content h4 {
        font-size: 1.1rem;
    }

    /* Post list optimization */
    .post-card {
        margin-bottom: 20px;
    }

    .post-title {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    /* Header */
    .site-header {
        padding: 10px 0;
    }

    .site-title {
        font-size: 1.5rem;
    }

    /* Footer */
    .site-footer {
        padding: 20px 0;
    }

    .footer-social {
        gap: 15px;
    }

    /* Back to top button - larger on mobile */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .container {
        padding: 0 15px;
    }

    .post-card {
        border-radius: 8px;
        padding: 15px;
    }

    .single-title {
        font-size: 1.5rem;
    }

    .single-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
}
