/*
Theme Name: QRO.CN
Theme URI: https://www.wangchenyu.com
Description: 一款符合GEO更符合SEO优化的企业型主题。作者网址：www.wangchenyu.com
Version: 1.0.2
Author: 王尘宇
Author URI: https://www.wangchenyu.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qro-cn
Tags: 响应式, 企业, SEO优化, GEO优化, AMP
Requires at least: 5.0
Requires PHP: 7.4
*/

/* 无图片文章样式 */
.post-no-image-item {
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.post-no-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.post-no-image-item .post-content {
    padding: 0;
}

/* ============================================
   现代SEO博客优化样式
   ============================================ */

/* 暗色模式支持 */
:root {
    --primary-color: #1d89ff;
    --secondary-color: #1a1a2e;
    --accent-color: #00d4aa;
    --bg-light: #f8fafc;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
}

[data-theme="dark"] {
    --bg-light: #1a1a2e;
    --text-dark: #f8fafc;
    --text-muted: #adb5bd;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 焦点样式优化 - 无障碍 */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 文章卡片悬停效果 */
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(29, 137, 255, 0.15) !important;
}

/* 平滑渐变背景 */
.hero-banner {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2d3a4a 100%);
}

/* 玻璃态效果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 标签云样式 */
.tagcloud a {
    display: inline-block;
    padding: 4px 12px;
    margin: 4px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.tagcloud a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* 分页按钮优化 */
.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

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

/* 代码块样式 */
pre {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
}

code {
    font-family: 'Fira Code', 'Consolas', monospace;
}

/* 引用块样式 */
blockquote {
    position: relative;
    padding: 20px 25px;
    margin: 25px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e8f4ff 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 12px 12px 0;
}

blockquote::before {
    content: """;
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.3;
}

/* 面包屑导航 */
.breadcrumbs {
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* 性能优化：减少重绘 */
img {
    max-width: 100%;
    height: auto;
}

/* 打印样式优化 */
@media print {
    .sidebar,
    .comments,
    .article-navigation,
    footer {
        display: none !important;
    }
    
    article {
        padding: 0 !important;
    }
}