/*
Theme Name: Blockchain Mining
Theme URI: https://yourdomain.com/
Description: 区块链挖矿平台主题，适配移动端，符合SEO优化
Author: Your Name
Author URI: https://yourdomain.com/
Version: 1.0
License: GPLv2 or later
Text Domain: blockchain-mining
*/

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

:root {
    --primary-dark: #1a1f35;
    --primary-blue: #3b82f6;
    --light-blue: #60a5fa;
    --white: #ffffff;
    --light-gray: #f3f4f6;
    --text-gray: #4b5563;
    --green: #10b981;
}

body {
    line-height: 1.6;
    color: var(--text-gray);
}

/* 导航栏 + 汉堡菜单 */
.navbar {
    background-color: var(--primary-dark);
    padding: 1rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.btn-signin {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.btn-signup {
    background: var(--light-blue);
    color: var(--white);
}

/* 汉堡菜单按钮 */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    background-color: var(--primary-dark);
    border-top: 1px solid #374151;
    padding: 1rem;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
}

/* Hero 区域 */
.hero {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 3rem 10%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path fill="%233b82f622" d="M0,500 C200,300 400,700 600,500 S800,300 1000,500 S1200,700 1400,500"/></svg>') no-repeat right;
    background-size: contain;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.hero p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.hero-dashboard {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 1rem;
    text-align: left;
    color: #000;
}

/* 三步流程 */
.steps-section {
    padding: 4rem 10%;
    text-align: center;
}

.steps-section h2 {
    font-size: 1.8rem;
    color: #111827;
    margin-bottom: 3rem;
    font-weight: 400;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    padding: 2rem;
    text-align: center;
}

.step-number {
    width: 30px;
    height: 30px;
    background: var(--light-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
}

.step-icon {
    color: var(--light-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1rem;
    color: #111827;
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* 云挖矿介绍 */
.cloud-mining-section {
    padding: 4rem 10%;
    text-align: center;
    background: var(--light-gray);
}

.cloud-mining-section h2 {
    font-size: 1.5rem;
    color: #111827;
    margin-bottom: 1rem;
    font-weight: 400;
    display: inline-block;
    background: #dbeafe;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.cloud-mining-section p {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 0.9rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto 2rem;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-icon {
    color: var(--light-blue);
    font-size: 1.2rem;
}

.feature-text h4 {
    font-size: 0.9rem;
    color: #111827;
}

.feature-text p {
    font-size: 0.75rem;
    margin: 0;
}

.btn-primary {
    background: var(--light-blue);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
}

/* 优惠横幅 */
.banner {
    background: linear-gradient(90deg, #86efac, #4ade80);
    color: var(--white);
    text-align: center;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 2rem 0;
}

/* 合约表格 + 标签切换 */
.contracts-section {
    padding: 4rem 10%;
    text-align: center;
}

.contracts-section h2 {
    font-size: 1.8rem;
    color: #111827;
    margin-bottom: 1rem;
    font-weight: 400;
}

.contracts-section p {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 0.9rem;
}

/* 标签切换 */
.contract-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.tab-btn {
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tab-btn.active {
    border-bottom-color: var(--light-blue);
    color: var(--light-blue);
    font-weight: bold;
}

/* 表格内容 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.contract-table {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.contract-table th, .contract-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.85rem;
}

.contract-table th {
    background: var(--light-gray);
    color: #111827;
    font-weight: 500;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #111827;
}

.btn-buy {
    background: var(--light-blue);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-block;
}

.btn-out {
    background: #e5e7eb;
    color: var(--text-gray);
    cursor: not-allowed;
}

/* 支付方式 */
.payment-section {
    padding: 4rem 10%;
    text-align: center;
}

.payment-section h2 {
    font-size: 1.8rem;
    color: #111827;
    margin-bottom: 1rem;
    font-weight: 400;
}

.payment-section p {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 0.9rem;
}

.payment-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.logo-item {
    font-size: 1.5rem;
    color: var(--text-gray);
}

/* 统计数据 */
.stats-section {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 10%;
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 页脚 */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 10%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    font-size: 0.85rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: #9ca3af;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
}

.footer-bottom {
    background: var(--primary-dark);
    color: #9ca3af;
    text-align: center;
    padding: 1rem;
    font-size: 0.75rem;
    border-top: 1px solid #374151;
}

/* 响应式适配（SEO友好：移动优先） */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .steps-container, .features-grid {
        grid-template-columns: 1fr;
    }

    .contract-table {
        display: block;
        overflow-x: auto;
    }

    .stats-section {
        flex-direction: column;
        gap: 2rem;
    }
}




/* ============================== */
/* ARCHIVE LIST PAGE STYLES - 列表页样式 */
/* ============================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-header-section {
    padding: 3rem 0;
    background: #f9fafb;
    text-align: center;
    margin-bottom: 2rem;
}
.page-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #111827;
}
.breadcrumb {
    font-size: 0.9rem;
    color: #6b7280;
}
.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}

/* 文章网格 3列布局 */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}
.post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: 0.3s;
}
.post-card:hover {
    transform: translateY(-5px);
}

/* 缩略图 */
.post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 标题 */
.post-title {
    font-size: 1.1rem;
    padding: 0 1rem;
    margin-top: 1rem;
    line-height: 1.4;
}
.post-title a {
    color: #111827;
    text-decoration: none;
}
.post-title a:hover {
    color: #3b82f6;
}

/* 摘要 */
.post-excerpt {
    padding: 0 1rem;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0.5rem 0 1rem;
}

/* 阅读更多 */
.read-more-btn {
    display: inline-block;
    margin: 0 1rem 1.5rem;
    color: #3b82f6;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
}

/* 分页 */
.pagination-section {
    text-align: center;
    margin: 2rem 0;
}
.pagination-section .page-numbers {
    display: inline-block;
    padding: 0.6rem 1rem;
    margin: 0 0.2rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    color: #374151;
    text-decoration: none;
}
.pagination-section .page-numbers.current {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}
.pagination-section .page-numbers:hover:not(.current) {
    background: #f3f4f6;
}

/* 响应式 */
@media (max-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}





/* ============================== */
/* SINGLE POST 内容页样式 */
/* ============================== */
.single-post-section {
    padding: 2rem 0;
}
.single-content-wrapper {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.single-main {
    flex: 1;
    min-width: 680px;
}
.single-sidebar {
    width: 300px;
}

/* 文章标题 */
.single-title {
    font-size: 2rem;
    line-height: 1.3;
    color: #111827;
    margin-bottom: 0.5rem;
}

/* 文章缩略图 */
.single-thumbnail {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}
.single-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* 文章信息：时间 + 分类 */
.single-meta {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
}
.single-meta span {
    padding-right: 0.5rem;
}

/* 正文内容 */
.single-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 2rem;
}
.single-content p {
    margin-bottom: 1rem;
}
.single-content h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}
.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
}

/* 上一篇 / 下一篇 */
.post-nav {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    gap: 1rem;
}
.post-nav a {
    flex: 1;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: 0.2s;
}
.post-nav a:hover {
    background: #eff6ff;
    color: #3b82f6;
}
.post-nav span {
    font-size: 0.9rem;
    color: #6b7280;
}
.nav-prev {
    text-align: left;
}
.nav-next {
    text-align: right;
}

/* 右侧相关文章 */
.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3b82f6;
    color: #111827;
}
.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.related-item {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}
.related-thumb {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-info h4 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.2rem;
}
.related-info h4 a {
    color: #111827;
    text-decoration: none;
}
.related-info h4 a:hover {
    color: #3b82f6;
}
.related-info span {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* 响应式 */
@media (max-width: 992px) {
    .single-content-wrapper {
        flex-direction: column;
    }
    .single-main {
        min-width: 100%;
    }
    .single-sidebar {
        width: 100%;
    }
}




/* 页面通用内容样式 */
.page-content-section {
    padding: 3rem 0;
}
.page-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
}
.page-content p {
    margin-bottom: 1rem;
}
.page-content img {
    max-width: 100%;
    height: auto;
}