/*
Theme Name: Telegrammy
Description: A WordPress theme that replicates the exact design of Telegram.org official website. Features the same layout, colors, typography and animations as the original.
Version: 1.0.0
Author: Custom Theme
Text Domain: telegrammy
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: telegram, official-design, blue, messaging, clean, modern, responsive
*/

/* Telegram.org 官网样式重现 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #222;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Telegram 官网布局样式 */

/* 容器 */
.tg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 - 完全按照 Telegram.org */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e6ecf0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Telegram Logo */
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #222;
}

.site-logo img {
    width: 32px;
    height: 32px;
    margin-right: 8px;
}

.site-title {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    color: #222;
}

/* 主导航菜单 - Telegram 风格 */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-navigation li {
    margin: 0 15px;
}

.main-navigation a {
    color: #222;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.main-navigation a:hover {
    background-color: #f7f9fa;
}

/* 语言选择器 */
.language-selector {
    position: relative;
    margin-right: 20px;
}

.language-selector select {
    background: none;
    border: none;
    color: #222;
    font-size: 15px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
}

.language-selector select:hover {
    background-color: #f7f9fa;
}

/* 主要内容区域 - Telegram 官网风格 */
.site-content {
    margin-top: 60px; /* 为固定头部留出空间 */
}

/* 英雄区域 - Telegram 主页大标题区域 */
.hero-section {
    background: linear-gradient(135deg, #54a9eb 0%, #006fc8 100%);
    color: white;
    text-align: center;
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.4;
}

/* 下载按钮区域 */
.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.download-btn img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

/* 更多应用链接 */
.more-apps {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.more-apps:hover {
    color: white;
    border-bottom-color: white;
}

/* 最新消息区域 - Telegram 官网风格 */
.news-section {
    background: #f7f9fa;
    padding: 60px 0;
}

.news-header {
    text-align: center;
    margin-bottom: 50px;
}

.news-title {
    font-size: 32px;
    font-weight: 400;
    color: #222;
    margin-bottom: 15px;
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-item {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e6ecf0;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.news-item-title {
    font-size: 20px;
    font-weight: 500;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-item-title a {
    color: #222;
    text-decoration: none;
}

.news-item-title a:hover {
    color: #54a9eb;
}

.news-item-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.news-item-date {
    color: #999;
    font-size: 13px;
    font-weight: 500;
}

/* 介绍区域 */
.intro-section {
    text-align: center;
    padding: 40px 0 20px;
    background: white;
}

.intro-section h2 {
    font-size: 28px;
    color: #333;
    margin: 0;
    font-weight: 400;
}

/* "为什么选择 Telegram" 特性区域 - 9个特性网格 */
.features-section {
    background: white;
    padding: 40px 0 60px;
}

.features-header {
    text-align: center;
    margin-bottom: 60px;
}

.features-title {
    font-size: 36px;
    font-weight: 400;
    color: #222;
    margin-bottom: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-card {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 64px;
    margin-bottom: 15px;
    display: block;
}

.feature-card h3 {
    color: #0088cc;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    line-height: 1.5;
    font-size: 14px;
    margin: 0;
}

/* 响应式设计 - 特性网格 */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.entry-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.entry-meta a {
    color: #0088cc;
    text-decoration: none;
}

.entry-content {
    line-height: 1.7;
    color: #444;
}

.entry-content p {
    margin-bottom: 1rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin: 1.5rem 0 1rem 0;
    color: #333;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #0088cc 0%, #006bb3 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
    color: white;
}

/* 侧边栏 */
.sidebar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #0088cc;
    padding-bottom: 0.5rem;
}

/* 页脚 - Telegram 官网风格 */
.site-footer {
    background: #f7f9fa;
    border-top: 1px solid #e6ecf0;
    padding: 60px 0 40px;
    margin-top: 80px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 500;
    color: #222;
    margin-bottom: 20px;
}

.footer-section p {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #54a9eb;
}

.footer-bottom {
    border-top: 1px solid #e6ecf0;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 14px;
}

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

.footer-social a {
    color: #999;
    font-size: 18px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #54a9eb;
}

/* Telegram 官网首页专用样式 */

/* 侧边栏最新消息 */
.recent-news-sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 280px;
    height: calc(100vh - 60px);
    background: #f7f9fa;
    border-right: 1px solid #e6ecf0;
    padding: 30px 20px;
    overflow-y: auto;
    z-index: 100;
}

.recent-news-sidebar h3 {
    font-size: 18px;
    font-weight: 500;
    color: #222;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e6ecf0;
}

.news-item-sidebar {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.news-item-sidebar:last-child {
    border-bottom: none;
}

.news-date {
    font-size: 12px;
    color: #999;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.news-item-sidebar .news-title {
    font-size: 14px;
    line-height: 1.4;
}

.news-item-sidebar .news-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-item-sidebar .news-title a:hover {
    color: #54a9eb;
}

/* 主要内容区域调整 */
.telegram-homepage .site-content {
    margin-left: 280px;
}

/* 英雄区域调整 */
.telegram-homepage .hero-section {
    padding: 100px 0 120px;
    text-align: center;
    position: relative;
}

.hero-logo {
    margin-bottom: 40px;
}

.telegram-logo {
    width: 120px;
    height: 120px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.telegram-homepage .hero-title {
    font-size: 52px;
    font-weight: 300;
    color: white;
    margin-bottom: 50px;
    letter-spacing: -1px;
}

.telegram-homepage .download-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.desktop-download {
    margin-bottom: 30px;
}

.desktop-options {
    margin-top: 40px;
}

.desktop-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.desktop-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.desktop-link:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

/* 主要新闻区域 */
.main-news-section {
    background: white;
    padding: 80px 0;
}

.main-news-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

.main-news-item {
    background: #f7f9fa;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.main-news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.main-news-title {
    font-size: 24px;
    font-weight: 500;
    color: #222;
    margin-bottom: 15px;
    line-height: 1.3;
}

.main-news-title a {
    color: #222;
    text-decoration: none;
}

.main-news-title a:hover {
    color: #54a9eb;
}

.main-news-excerpt {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.main-news-date {
    color: #999;
    font-size: 14px;
    font-weight: 500;
}

/* 头部右侧元素 */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.twitter-link {
    color: #222;
    text-decoration: none;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.twitter-link:hover {
    background-color: #f7f9fa;
}

/* 页脚底部链接 */
.footer-links-bottom {
    display: flex;
    gap: 30px;
    justify-content: center;
    padding-top: 30px;
    border-top: 1px solid #e6ecf0;
}

.footer-links-bottom a {
    color: #666;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-links-bottom a:hover {
    color: #54a9eb;
}

/* 响应式设计 - Telegram 官网风格 */

/* 平板设备 */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }

    .hero-title {
        font-size: 40px;
    }

    /* 侧边栏在平板上隐藏 */
    .recent-news-sidebar {
        display: none;
    }

    .telegram-homepage .site-content {
        margin-left: 0;
    }

    .main-news-list {
        padding: 0 30px;
    }

    .telegram-homepage .hero-title {
        font-size: 44px;
    }
}

/* 手机设备 */
@media (max-width: 768px) {
    .header-content {
        padding: 0 15px;
    }

    .main-navigation {
        display: none; /* 移动端隐藏主导航，使用汉堡菜单 */
    }

    .mobile-menu-toggle {
        display: block !important;
        background: none;
        border: none;
        font-size: 24px;
        color: #222;
        cursor: pointer;
        padding: 8px;
    }

    .language-selector {
        display: none; /* 移动端隐藏语言选择器 */
    }

    .twitter-link {
        display: none; /* 移动端隐藏Twitter链接 */
    }

    /* 侧边栏在移动端完全隐藏 */
    .recent-news-sidebar {
        display: none;
    }

    .telegram-homepage .site-content {
        margin-left: 0;
    }

    .telegram-homepage .hero-section {
        padding: 80px 0 100px;
    }

    .telegram-homepage .hero-title {
        font-size: 36px;
    }

    .telegram-logo {
        width: 100px;
        height: 100px;
    }

    .telegram-homepage .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .download-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .desktop-links {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .desktop-link {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 15px;
    }

    .main-news-list {
        padding: 0 15px;
    }

    .main-news-item {
        padding: 30px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-links-bottom {
        flex-direction: column;
        gap: 15px;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .features-title {
        font-size: 28px;
    }

    .news-title {
        font-size: 26px;
    }
}

/* 表单样式 */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: #0088cc;
}

/* 评论样式 */
.comment {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #0088cc;
}

.comment-author {
    font-weight: 600;
    color: #0088cc;
}

.comment-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    color: #0088cc;
    border: 2px solid #0088cc;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: #0088cc;
    color: white;
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.wp-post-image {
    margin-bottom: 1rem;
}

/* 标签和分类 */
.post-tags,
.post-categories {
    margin-top: 1rem;
}

.post-tags a,
.post-categories a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f0f8ff;
    color: #0088cc;
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.post-tags a:hover,
.post-categories a:hover {
    background: #0088cc;
    color: white;
}

/* 返回顶部按钮 */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0088cc 0%, #006bb3 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

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

.scroll-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 136, 204, 0.4);
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu-toggle.active {
    background-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 136, 204, 0.95);
        padding: 1rem;
        border-radius: 0 0 8px 8px;
    }

    .main-navigation.mobile-menu-open {
        display: block;
    }
}

/* 搜索框增强样式 */
.search-form {
    position: relative;
    max-width: 400px;
    margin: 1rem 0;
}

.search-form.search-focused .search-field {
    border-color: #0088cc;
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
}

/* 表单错误样式 */
.form-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

/* 字符计数样式 */
.char-count {
    font-size: 0.8rem;
    color: #666;
    text-align: right;
    margin-top: 0.5rem;
}

.char-count.over-limit {
    color: #e74c3c;
}

/* 阅读进度条 */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 136, 204, 0.2);
    z-index: 1000;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0088cc 0%, #006bb3 100%);
    width: 0%;
    transition: width 0.1s ease;
}

/* 响应式表格 */
.table-responsive {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-responsive table {
    min-width: 600px;
    width: 100%;
    border-collapse: collapse;
}

.table-responsive th,
.table-responsive td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table-responsive th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.table-responsive tr:hover {
    background: #f8f9fa;
}

/* 搜索表单增强样式 */
.search-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-field {
    flex: 1;
    min-width: 200px;
}

.search-submit {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-icon {
    font-size: 0.9rem;
}

/* 导航链接样式 */
.post-navigation {
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
}

.post-navigation a {
    display: block;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.post-navigation a:hover {
    background: #0088cc;
    color: white;
    transform: translateY(-2px);
}

.nav-subtitle {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.post-navigation a:hover .nav-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.nav-title {
    font-weight: 600;
}

/* 无内容页面样式 */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
}

.no-results .page-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #666;
}

.no-results .page-content {
    max-width: 600px;
    margin: 0 auto;
}

/* 归档页面标题样式 */
.page-header {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.archive-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 404页面特殊样式 */
.error-404 .page-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.error-404 .page-title {
    color: white;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.error-actions {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.error-actions h3 {
    margin-bottom: 1rem;
    color: #333;
}

.error-actions ul {
    list-style: none;
    padding: 0;
}

.error-actions li {
    margin-bottom: 0.5rem;
}

.recent-posts,
.categories-widget {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recent-posts h3,
.categories-widget h3 {
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #0088cc;
    padding-bottom: 0.5rem;
}

.recent-posts ul,
.categories-widget ul {
    list-style: none;
    padding: 0;
}

.recent-posts li,
.categories-widget li {
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.recent-posts a,
.categories-widget a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-posts a:hover,
.categories-widget a:hover {
    color: #0088cc;
}

/* 屏幕阅读器文本 */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    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 !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
