/*
Theme Name: mb8 Theme
Theme URI: https://yourdomain.com/
Author: Your Name
Author URI: https://yourdomain.com/
Description: Blockchain Mining WordPress Theme
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: blockmine
*/

:root {
    --primary: #ff5a1f;
    --primary-dark: #e04a18;
    --light-bg: #fff8f5;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --border: #eee;
    --footer-bg: #222;
}
/* 清除WordPress菜单默认列表点 */
.nav-links,
.mobile-menu {
    list-style: none;
}
.nav-links li,
.mobile-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links li a,
.mobile-menu li a {
    display: inline-block;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 18px;
}

.logo-icon {
    color: var(--primary);
    font-size: 22px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 25px;
    font-size: 15px;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.btn-login {
    background: transparent;
    color: var(--text-dark);
}

.btn-signup {
    background: var(--primary);
    color: #fff;
}

.btn-signup:hover {
    background: var(--primary-dark);
}

.hamburger {
    display: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-top: 1px solid var(--border);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 10px 0;
    font-weight: 500;
    font-size: 16px;
}

/* Hero Section */
.hero {
    padding: 50px 0;
    text-align: center;
}

.hero h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.hero p {
    color: var(--text-light);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 40px;
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.hero-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-icon {
    height: 200px;
    background: linear-gradient(to bottom right, #fff5f0, #ffe8dd);
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 40px;
}
.card-icon img{
    height: 200px;
    width: 100%;
}

.hero-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.hero-card p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.card-link {
    color: var(--primary);
    font-size: 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Trusted Section */
.trusted {
    padding: 40px 0;
    text-align: center;
    background: #fafafa;
}

.trusted-label {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: 500;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    opacity: 0.7;
}

.trusted-logos img {
    height: 24px;
    filter: grayscale(100%);
    opacity: 0.7;
}

/* Solutions Section */
.solutions {
    padding: 60px 0;
    text-align: center;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 26px;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-light);
    font-size: 16px;
}

.solution-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    text-align: left;
}

.solution-item:nth-child(even) {
    direction: rtl;
}

.solution-item:nth-child(even) .solution-content {
    direction: ltr;
}

.solution-icon {
    height: 260px;
    background: linear-gradient(to bottom right, #fff5f0, #ffe8dd);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 60px;
}
.solution-icon img{
    height: 260px;
    width: 100%;
}

.solution-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.solution-content p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.solution-features {
    list-style: none;
    margin-bottom: 20px;
}

.solution-features li {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.solution-features li::before {
    content: "○";
    color: var(--primary);
    font-size: 10px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 4px;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: #aaa;
    padding: 40px 0 20px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #aaa;
}

.social-links a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-cards {
        grid-template-columns: 1fr;
    }

    .solution-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .solution-item:nth-child(even) {
        direction: ltr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}




/* --------------------------
   列表页 / 归档页样式
--------------------------- */
.breadcrumb {
    padding: 20px 0;
    font-size: 15px;
    color: var(--text-light);
}
.breadcrumb a {
    color: var(--primary);
}
.breadcrumb span {
    margin: 0 6px;
}

/* 列表标题区域 */
.archive-header {
    padding: 20px 0 40px;
    text-align: center;
}
.archive-title {
    font-size: 32px;
    margin-bottom: 10px;
}
.archive-desc {
    font-size: 16px;
    color: var(--text-light);
}

/* 文章网格布局 */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 50px;
}
@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* 文章卡片 */
.article-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease;
}
.article-card:hover {
    transform: translateY(-3px);
}
.article-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}
.article-thumb img {
    width: 100%;
    object-fit: cover;
}
.article-body {
    padding: 22px;
}
.article-category {
    display: inline-block;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}
.article-title {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 10px;
}
.article-title a {
    color: var(--text-dark);
}
.article-title a:hover {
    color: var(--primary);
}
.article-excerpt {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 12px;
}
.article-read-more {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.pagination a,
.pagination span {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 15px;
}
.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}






/* --------------------------
   内容详情页 single.php 样式
--------------------------- */
.single-wrap {
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 30px;
    margin-bottom: 50px;
}
@media (max-width: 992px) {
    .single-wrap {
        grid-template-columns: 1fr;
    }
}

/* 文章主体 */
.single-main {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    border: 1px solid var(--border);
}
.single-cat {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
}
.single-title {
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 15px;
}
.single-meta {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}
.single-meta span {
    margin-right: 15px;
}
.single-thumb {
    width: 100%;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
}
.single-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 文章内容 */
.single-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}
.single-content p {
    margin-bottom: 20px;
}
.single-content h2 {
    font-size: 22px;
    margin: 30px 0 15px;
}
.single-content ul,
.single-content ol {
    margin: 0 0 20px 20px;
}
.single-content li {
    margin-bottom: 8px;
}

/* 上一篇 / 下一篇 */
.post-page-nav {
    display: flex;
    justify-content: space-between;
    margin: 35px 0 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.post-page-nav a {
    color: var(--primary);
    font-weight: 500;
    transition: color 0.2s;
}
.post-page-nav a:hover {
    color: var(--primary-dark);
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.sidebar-widget {
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 25px;
}
.widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.sidebar-news-list li {
    list-style: none;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}
.sidebar-news-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.sidebar-news-list a {
    font-size: 15px;
    transition: color 0.2s;
}
.sidebar-news-list a:hover {
    color: var(--primary);
}

/* 相关文章推荐 */
.related-wrap {
    margin: 40px 0;
}
.related-title {
    font-size: 22px;
    margin-bottom: 25px;
    padding-left: 10px;
    border-left: 4px solid var(--primary);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    .single-title {
        font-size: 24px;
    }
    .single-thumb {
        height: 220px;
    }
}
.related-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s;
}
.related-card:hover {
    transform: translateY(-3px);
}
.related-thumb {
    width: 100%;
    height: 160px;
}
.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-info {
    padding: 18px;
}
.related-info h3 {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 5px;
}
.related-date {
    font-size: 13px;
    color: var(--text-light);
}






/* News Section Styles */
.news-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.news-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.news-section .section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #333;
}

.news-section .section-header p {
    font-size: 18px;
    color: #666;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-thumbnail {
    height: 200px;
    overflow: hidden;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-thumbnail img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
}

.news-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.news-excerpt {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.news-date {
    font-size: 14px;
    color: #999;
}

.news-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: #0056b3;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-section .section-header h2 {
        font-size: 30px;
    }
    
    .news-section .section-header p {
        font-size: 16px;
    }
}
