/*
 Theme Name:   mb7 Theme
 Theme URI:    https://yourdomain.com/
 Author:       自定义开发
 Author URI:   https://yourdomain.com/
 Description:  必应SEO优化 挖矿软件展示WordPress主题
 Version:      1.0
 Text Domain:  easyminer-theme
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
body {
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
    font-size: 16px; /* 基础字体提升 */
}
/* 头部样式 */
.site-header {
    background: #000 url('/wp-content/themes/EasyMiner Theme/images/website_bg.jpg') center/cover no-repeat;
    color: #fff;
    position: relative;
}
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18%;
    background: rgba(0,0,0,0.7);
}
.logo {
    width: 40px;
    height: 40px;
    background: #f1c40f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
    font-size: 20px; /* 提升 */
}
.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}
.nav-links a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px; /* 提升 */
}
.hamburger {
    display: none;
    font-size: 28px; /* 提升 */
    cursor: pointer;
}
.hero {
    padding: 60px 0;
    max-width: 300px;
    margin-left: 18%;
}
.hero h1 {
    font-size: 28px; /* 提升 */
    margin-bottom: 10px;
}
.hero p {
    font-size: 16px; /* 提升 */
    margin-bottom: 20px;
}
/* 面包屑 */
.breadcrumb {
    background: #fff;
    padding: 10px 18%;
    font-size: 14px; /* 提升 */
    color: #666;
}
.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}
/* 特色区块 */
.features {
    padding: 40px 18%;
    background: #f0f8ff;
}
.features-desc {
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px; /* 提升 */
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card {
    background: #fff;
    padding: 25px;
    text-align: center;
    border: 1px solid #eee;
}
.feature-card:nth-child(3) {
    background: #FFF;
    color: #666;
}
.feature-icon {
    font-size: 28px; /* 提升 */
    margin-bottom: 10px;
    color: #3498db;
}
.feature-card:nth-child(3) .feature-icon {
    color: #34c6eb;
}
.feature-card h3 {
    font-size: 16px; /* 提升 */
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 14px; /* 提升 */
    color: #666;
}
.feature-card:nth-child(3) p {
    color: #666;
}
/* 截图区块 */
.screenshot {
    padding: 40px 18%;
    text-align: center;
    background: #fff;
}
.screenshot img {
    background: #34c6eb;
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
}
.download-btn {
    background: #34c6eb;
    color: #fff;
    border: none;
    padding: 12px 24px; /* 同步加大按钮 */
    margin-top: 20px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px; /* 提升 */
}
/* CTA */
.cta-banner {
    background: url('/wp-content/themes/EasyMiner Theme/images/bg2.jpg') center/cover no-repeat;
    padding: 100px 18%;
    text-align: center;
    color: #fff;
    position: relative;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;left: 0;
    width: 100%;height: 100%;
    background: rgba(0,0,0,0.5);
}
.cta-banner > * {position: relative;z-index: 1;}
.cta-bar {
    background: #34c6eb;
    color: #000;
    padding: 20px 18%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.cta-buttons button {
    background: transparent;
    border: 1px solid #000;
    padding: 8px 18px; /* 同步加大按钮 */
    margin-left: 10px;
    cursor: pointer;
    font-size: 14px; /* 提升 */
}
/* 博客区块 */
.blog-section {
    padding: 40px 18%;
    background: #f0f0f0;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.blog-card {
    background: #fff;
    padding: 10px;
    text-align: center;
}
.blog-card a{
  text-decoration: none;
}
.blog-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 10px;
}
.blog-card p {
    font-size: 13px; /* 提升 */
    color: #666;
}
.view-all-btn {
    display: block;
    margin: 20px auto;
    background: #f39c12;
    color: #fff;
    border: none;
    padding: 10px 18px; /* 同步加大按钮 */
    cursor: pointer;
    font-size: 14px; /* 提升 */
    text-align: center;
}
/* 页脚 */
footer {
    background: #222;
    color: #aaa;
    padding: 40px 18%;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    font-size: 14px; /* 提升 */
}
.footer-col h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 16px; /* 提升 */
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
}
.cookie-notice {
    background: #111;
    color: #aaa;
    padding: 10px 18%;
    text-align: center;
    font-size: 13px; /* 提升 */
}
.cookie-notice a {color:#3498db;}
.cookie-notice button {
    background: #34c6eb;
    border: none;
    padding: 4px 10px; /* 同步加大按钮 */
    margin-left:10px;
    cursor:pointer;
    font-size: 13px; /* 提升 */
}

/* 移动端适配 + 汉堡菜单 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 18%;
        left: 0;
        width: 100%;
        background: rgba(0,0,0,0.9);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        z-index: 999;
    }
    .nav-links.active {display: flex;}
    .hamburger {display: block;}
    .cta-bar {flex-direction: column;text-align: center;}
    .features-grid {grid-template-columns: 1fr;}
    .blog-grid {grid-template-columns: repeat(2,1fr);}
    footer {grid-template-columns: 1fr;padding: 10px 3%;}

    .top-bar{padding: 15px 3%;}
    .features{padding: 15px 3%;}
    .cta-banner{padding: 30px 3%;}
    .blog-section{padding: 15px 3%;}
}



/* ======================================
   列表页 archive.php 样式
====================================== */
.archive-page {
  padding: 40px 18%;
  background: #f8fafc;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.archive-header {
  margin-bottom: 30px;
}
.archive-title {
  font-size: 24px; /* 提升 */
  color: #222;
}

/* 文章网格 3×3 布局 */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}
.archive-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: 0.3s;
}
.archive-card:hover {
  transform: translateY(-3px);
}

/* 缩略图 */
.archive-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* 内容区 */
.archive-content {
  padding: 18px;
}
.archive-content h2 {
  font-size: 18px; /* 提升 */
  margin-bottom: 8px;
  line-height: 1.4;
}
.archive-content h2 a {
  color: #222;
  text-decoration: none;
}
.archive-content h2 a:hover {
  color: #34c6eb;
}
.archive-meta {
  font-size: 14px; /* 提升 */
  color: #999;
  margin-bottom: 8px;
}
.archive-excerpt {
  font-size: 15px; /* 提升 */
  color: #666;
  line-height: 1.5;
  margin-bottom: 12px;
}
.read-more {
  font-size: 14px; /* 提升 */
  color: #34c6eb;
  text-decoration: none;
}

/* 翻页样式 */
.pagination {
  text-align: center;
  font-size: 16px; /* 提升 */
}
.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 3px;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}
.pagination .current {
  background: #34c6eb;
  color: #fff;
  border-color: #34c6eb;
}
.pagination a:hover {
  background: #f5f5f5;
}

/* 响应式 */
@media (max-width: 768px) {
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .archive-grid {
    grid-template-columns: 1fr;
  }
}



/* ======================================
   详情页 single.php 样式
====================================== */
.single-container {
  padding: 40px 0;
  max-width: 1200px;
  margin: 0 auto;
}
.single-row {
  display: flex;
  gap: 30px;
  margin-bottom: 50px;
}

/* 左侧正文 */
.single-content {
  flex: 1;
  background: #fff;
  padding: 30px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.single-title {
  font-size: 28px; /* 提升 */
  margin-bottom: 10px;
  color: #222;
}
.single-meta {
  font-size: 15px; /* 提升 */
  color: #999;
  margin-bottom: 25px;
}
.single-entry {
  line-height: 1.8;
  font-size: 17px; /* 提升 */
  color: #444;
}
.single-entry img {
  max-width: 100% !important;
  height: auto !important;
  margin: 15px 0;
  border-radius: 4px;
  display: block;
}
.single-entry figure {
  margin: 15px 0;
}
.single-entry figure img {
  margin: 0;
}
.single-entry p {
  margin-bottom: 15px;
}

/* 特色图片 */
.single-entry .featured-image {
  margin: 20px 0;
}
.single-entry .featured-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* 上下篇导航 */
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1;
  max-width: 48%;
}
.post-navigation .nav-next {
  text-align: right;
}
.post-navigation a {
  display: inline-block;
  padding: 12px 20px;
  background: #f8f9fa;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.post-navigation a:hover {
  background: #34c6eb;
  color: #fff;
}
.post-navigation .nav-label {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.post-navigation .nav-title {
  display: block;
  font-size: 15px;
  font-weight: 500;
}
.post-navigation a:hover .nav-label {
  color: #fff;
}

/* 右侧侧边栏 */
.single-sidebar {
  width: 300px;
}
.widget {
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 20px;
}
.widget-title {
  font-size: 18px; /* 提升 */
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  color: #222;
}
.latest-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}
.latest-posts li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #eee;
}
.latest-posts li a {
  color: #333;
  text-decoration: none;
  font-size: 16px; /* 提升 */
}
.latest-posts li a:hover {
  color: #34c6eb;
}

/* 相关文章推荐 */
.related-posts {
  margin-top: 40px;
}
.related-title {
  font-size: 20px; /* 提升 */
  margin-bottom: 20px;
  color: #222;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.related-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.related-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.related-info {
  padding: 15px;
}
.related-info h4 {
  font-size: 17px; /* 提升 */
  margin-bottom: 8px;
  line-height: 1.4;
}
.related-info h4 a {
  color: #222;
  text-decoration: none;
}
.related-info h4 a:hover {
  color: #34c6eb;
}
.related-info p {
  font-size: 14px; /* 提升 */
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* 响应式 */
@media (max-width: 992px) {
  .single-row {
    flex-direction: column;
  }
  .single-sidebar {
    width: 100%;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}