/*
 Theme Name: OceanWP Child - Clean
 Template: oceanwp
 Version: 2.1
*/

:root {
    --font-body: 'Mona Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Clash Grotesk', 'Mona Sans', -apple-system, sans-serif;
    --color-primary: #494ef4;
    --color-body: #0a0916;
    --color-meta: #9ca3af;
    --color-light: #f9fafb;
    --card-radius: 12px;
}

body {
    font-family: var(--font-body);
    color: var(--color-body);
    background: var(--color-light);
}

#site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

#site-header-inner {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 20px;
}

#site-logo #site-logo-inner a img {
    max-height: 50px;
}

#site-navigation-wrap .dropdown-menu > li > a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-transform: none;
    color: var(--color-body);
    letter-spacing: 0;
}

#site-navigation-wrap .dropdown-menu > li > a:hover {
    color: var(--color-primary);
}

/* 隐藏页面的隐藏导航（skip to content） */
.navigation-top, #wpadminbar, .screen-reader-text {
    display: none !important;
}

/* 只显示正确的 WordPress 主导航 */
#site-navigation {
    display: block !important;
}

#blog-entries {
    max-width: 1480px;
    margin: 0 auto;
    padding: 20px;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-entry {
    width: auto !important;
    margin: 0 !important;
    clear: none !important;
}

.blog-entry-inner {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.blog-entry-inner:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.blog-entry .thumbnail {
    margin: 0 !important;
}

.blog-entry .thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-entry .blog-entry-header, 
.blog-entry .meta, 
.blog-entry .blog-entry-summary,
.blog-entry .blog-entry-readmore {
    padding-left: 16px;
    padding-right: 16px;
}

.blog-entry .blog-entry-header {
    margin-top: 14px;
    margin-bottom: 6px;
}

.blog-entry .entry-title {
    font-family: var(--font-heading);
    line-height: 1.3;
    font-size: 18px;
}

.blog-entry .entry-title a {
    color: var(--color-body) !important;
    text-decoration: none !important;
}

.blog-entry .entry-title a:hover {
    color: var(--color-primary) !important;
}

.blog-entry .meta {
    font-size: 12px;
    color: var(--color-meta);
    margin-bottom: 8px;
}

.blog-entry .meta li {
    list-style: none;
    line-height: 1.4;
    margin: 0;
}

.meta-cat a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.meta-date {
    color: #9ca3af;
}

.blog-entry .blog-entry-summary {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 12px;
}

.blog-entry .blog-entry-summary p {
    margin: 0;
}

.blog-entry .blog-entry-readmore {
    padding: 0 16px 16px;
    margin: auto 0 0;
}

.blog-entry .blog-entry-readmore a {
    background: var(--color-primary);
    color: #fff;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.blog-entry .blog-entry-readmore a:hover {
    opacity: 0.9;
}

#content-wrap {
    padding-top: 20px;
    padding-bottom: 0 !important;
}

/* 隐藏侧边栏 */
#right-sidebar, #left-sidebar {
    display: none !important;
}

/* 隐藏页面标题 */
.page-header {
    display: none !important;
}

/* 隐藏页脚 */
.site-footer, #footer-widgets {
    display: none !important;
}

/* 隐藏底部加密货币价格条 */
#owp-footer-top, .footer-top, .footer-price-ticker,
.oceanwp-ticker, #oceanwp-ticker {
    display: none !important;
}

/* 隐藏自定义 HTML 底部区域（加密货币行情表） */
body > ul.coingecko-ticker,
ul[class*="coingecko"],
div[id*="coingecko"] {
    display: none !important;
}

/* 彻底清理底部：所有在 footer 之后的内容 */
#footer-bottom {
    display: none !important;
}

/* 分页居中 */
.page-numbers {
    text-align: center;
    margin: 30px 0;
}

@media (max-width: 1024px) {
    #blog-entries {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #blog-entries {
        grid-template-columns: 1fr;
    }
}