/*
Theme Name: Blog-001 Child
Theme URI: http://www.blog-yifu.com
Description: 科技感子主题，GPU 3D 效果，侧边栏在左
Author: Yifu
Author URI: http://www.blog-yifu.com
Template: twentytwentyfive
Version: 2.2.0
*/

/* 导入父主题样式 */
@import url("../twentytwentyfive/style.css");

/* ========== 全局样式 ========== */
body {
    background: #f0f2f5 !important;
    color: #1a1a2e !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
}

/* ========== 头部样式 ========== */
.site-header {
    background: #0d1b2a !important;
    border-bottom: none !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    padding: 0 40px !important;
}

.site-title a,
.site-title a:visited {
    color: #00d4ff !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    pointer-events: none !important;
    cursor: default !important;
}

.main-navigation a {
    color: #e0e6ed !important;
    font-weight: 500;
    font-size: 0.95rem !important;
    padding: 0 15px !important;
}

.main-navigation a:hover {
    color: #00d4ff !important;
}

/* 隐藏首页特定菜单项 */
.home .menu-item:has(a[href*="文章"]),
.home .menu-item:has(a[href*="留言"]),
.home .menu-item:has(a[href*="关于"]) {
    display: none !important;
}

/* ========== 完全隐藏首页站点标题和描述 ========== */
.home .site-title,
.home .site-title a,
.home .site-description,
.home .site-branding,
.home header .site-title {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    clip: rect(0, 0, 0, 0) !important;
}

/* ========== 3D 容器 ========== */
#hero-3d-container {
    position: relative;
    width: 100%;
    height: 35vh;
    min-height: 280px;
    overflow: hidden;
    background: #050510;
    z-index: 1;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

#hero-3d-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    bottom: 15%;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    z-index: 2;
    text-shadow: 0 0 20px rgba(0,212,255,0.6);
    pointer-events: none;
}

.hero-overlay h1 {
    font-size: 2.2rem !important;
    margin: 0;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700 !important;
    letter-spacing: 2px;
}

.hero-overlay p {
    font-size: 1rem !important;
    opacity: 0.85;
    color: #00d4ff;
    letter-spacing: 3px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    #hero-3d-container {
        height: 30vh;
        min-height: 220px;
    }
    .hero-overlay h1 {
        font-size: 1.6rem !important;
    }
}

/* ========== 博客内容区域 ========== */
.blog-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 50px;
    display: flex;
    gap: 40px;
    background: #f0f2f5;
    flex-direction: row;
}

.blog-sidebar {
    flex: 0 0 300px;
    max-width: 300px;
    order: 1;
}

.blog-main {
    flex: 1;
    min-width: 0;
    order: 2;
}

/* ========== 文章列表顶部 Logo 区 ========== */
.blog-main-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.15);
}

.blog-main-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: contain;
}

.blog-main-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #0d1b2a !important;
    margin: 0 !important;
    letter-spacing: 1px;
}

.blog-main-title span {
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== 文章卡片样式（高可见度标题） ========== */
.post-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px 30px;
    margin-bottom: 25px;
    border: 1px solid #e4e8ec;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: #00d4ff;
    box-shadow: 0 8px 25px rgba(0,212,255,0.15);
}

/* 文章标题 - 高可见度 */
.post-title {
    font-size: 1.5rem !important;
    margin: 0 0 14px 0;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.post-title a {
    color: #0d1b2a !important;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-block;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

.post-title a:hover {
    color: #00d4ff !important;
    border-bottom-color: #00d4ff;
    transform: translateX(4px);
}

.post-meta {
    color: #6b7280;
    font-size: 0.82rem !important;
    margin-bottom: 14px;
    border-left: 3px solid #00d4ff;
    padding-left: 12px;
    font-family: "SF Mono", Monaco, "Cascadia Code", monospace !important;
}

.post-excerpt {
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 16px;
    font-size: 0.95rem !important;
}

.read-more {
    display: inline-block;
    color: #00d4ff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem !important;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.read-more:hover {
    border-bottom-color: #00d4ff;
}

/* ========== 侧边栏样式 ========== */
.sidebar-widget {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 25px;
    border: 1px solid #e4e8ec;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.sidebar-widget h3 {
    color: #0d1b2a;
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    border-left: 3px solid #00d4ff;
    padding-left: 12px;
    letter-spacing: 0.5px;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 0.92rem !important;
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget ul li a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-widget ul li a:hover {
    color: #00d4ff;
}

.widget-stats {
    display: flex;
    gap: 15px;
    justify-content: space-around;
    text-align: center;
    margin-top: 18px;
}

.widget-stats .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #00d4ff;
}

.widget-stats .stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 4px;
}

/* ========== 页脚样式 ========== */
.site-footer {
    background: #0d1b2a !important;
    border-top: none !important;
    text-align: center;
    padding: 35px 20px !important;
    color: #8b9cb3 !important;
    font-size: 0.85rem !important;
}

.site-footer .footer-copyright {
    text-align: center;
}

.footer-icp {
    text-align: center;
    margin-top: 12px;
    font-size: 0.8rem;
    color: #8b9cb3;
}

.footer-icp a {
    color: #8b9cb3;
    text-decoration: none;
}

.footer-icp a:hover {
    color: #00d4ff;
}

hr, .separator, .border-top, .border-bottom {
    display: none !important;
}

.site-logo img,
.custom-logo {
    max-height: 45px;
    width: auto;
}

/* Make site title not clickable */
.site-title a, .brand a, .neve-site-title a {
    pointer-events: none !important;
    cursor: default !important;
}
