/*
 Theme Name:  mb12 Theme
 Theme URI:   https://example.com/
 Author:      Custom
 Description:  适配必应SEO、移动端汉堡菜单、列表+内容页标准布局
 Version:     1.0
 Text Domain:  bitcoinmining
*/

/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn-primary {
    background-color: #f7931a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #e08416;
}

.btn-secondary {
    background-color: white;
    color: #f7931a;
    border: 1px solid #f7931a;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: #f7931a;
    color: white;
}

.btn-text {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin: 0 auto;
}

/* 头部导航 */
.site-header {
    background-color: white;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-weight: bold;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo::before {
    content: "⛏️";
}

/* 面包屑导航 */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: ">";
    color: #666;
    margin-left: 10px;
}

.breadcrumb-list a {
    color: #f7931a;
    text-decoration: none;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

.breadcrumb-list li[aria-current="page"] {
    color: #666;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

/* 汉堡菜单按钮 */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger-btn.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 移动端导航 */
.mobile-nav {
    display: none;
    flex-direction: column;
    background-color: white;
    padding: 20px;
    border-top: 1px solid #eee;
    list-style: none;
    margin: 0;
    padding: 20px;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    color: #333;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* 面包屑导航 */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 10px 0;
    font-size: 14px;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    gap: 10px;
}

.breadcrumb-list li:not(:last-child)::after {
    content: "/";
    margin-left: 10px;
    color: #999;
}

.breadcrumb-list a {
    color: #f7931a;
    text-decoration: none;
}

/* 英雄区 */
.hero {
    padding: 40px 0;
    background-color: #f8fbff;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.hero-text p {
    color: #666;
    margin-bottom: 30px;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: #f7931a;
}

/* 功能卡片区 */
.feature-cards {
    background-color: #f7931a;
    padding: 40px 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    text-align: left;
}

.card-icon {
    font-size: 30px;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* 内容区块 */
.content-section {
    padding: 50px 0;
}

.content-section.bg-light {
    background-color: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #666;
    font-size: 14px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.info-card.highlight {
    border-left: 3px solid #f7931a;
}

.info-card h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.info-card p, .info-card ul {
    font-size: 14px;
    color: #666;
}

.info-card ul {
    list-style: disc;
    padding-left: 20px;
}



/* CTA区 */
.cta-section {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cta-card {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* 文章列表 */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 40px;
}
.article-item {
  display: flex;
  gap: 20px;
  align-items: center;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #eee;
}
.article-thumb img {
  width: 220px;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
}
.article-info h3 {
  margin-bottom: 6px;
  font-size: 18px;
}
.article-info a {
  color: #1a1a1a;
  text-decoration: none;
}
.article-info a:hover {
  color: #f7931a;
}
.article-info p {
  color: #666;
  font-size: 14px;
}

/* 翻页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.page-btn {
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
}
.page-btn.active {
  background: #f7931a;
  color: #fff;
  border-color: #f7931a;
}

/* 内容页 正文100%宽度 */
.article-content {
  width: 100%;
  margin: 0 auto 50px;
}
.article-content h1 {
  margin-bottom: 10px;
}
.article-meta {
  color: #999;
  font-size: 14px;
  margin-bottom: 20px;
}
.article-body {
  line-height: 1.8;
  font-size: 16px;
  color: #333;
  margin-bottom: 30px;
}
.article-tags {
  margin-bottom: 30px;
}
.article-tags a {
  background: #f0f0f0;
  padding: 5px 10px;
  border-radius: 4px;
  margin-right: 6px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}
.article-tags a:hover {
  background: #f7931a;
  color: #fff;
}

/* 上一篇下一篇 */
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #eee;
  padding-top: 20px;
  margin-bottom: 40px;
}
.article-nav a {
  color: #f7931a;
  text-decoration: none;
}
.article-nav span {
  font-size: 14px;
  color: #999;
}

/* 文章列表 */
.article-list {
    margin-top: 30px;
}

.article-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
}

.article-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-thumb img {
    width: 220px;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
}

.article-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.article-info h3 a {
    color: #333;
    text-decoration: none;
}

.article-info h3 a:hover {
    color: #f7931a;
}

.article-info p {
    color: #666;
    line-height: 1.6;
}

/* 文章详情 */
.article-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

.article-content h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.article-meta {
    font-size: 14px;
    color: #999;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.article-body {
    color: #444;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px auto;
    display: block;
}


.article-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-tags span {
    font-weight: bold;
    color: #333;
}

.article-tags a {
    color: #f7931a;
    text-decoration: none;
    margin: 0 10px;
}

.article-tags a:hover {
    text-decoration: underline;
}

/* 上一篇下一篇 */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-bottom: 40px;
}

.article-nav a {
    color: #f7931a;
    text-decoration: none;
}

.article-nav span {
    font-size: 14px;
    color: #999;
}

/* 图片展示区域 */
.image-section {
    padding: 40px 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 80px;
    margin-top: 30px;
    text-align: center;
}

.image-item img {
    width: 80%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 表单展示区域 */
.table-section {
    padding: 40px 0;
}

.table-container {
    margin-top: 30px;
    overflow-x: auto;
}

.rebate-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.rebate-table th {
    background-color: #f7931a;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: bold;
}

.rebate-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.rebate-table tbody tr:hover {
    background-color: #f8f9fa;
}

.rebate-table tbody tr:last-child td {
    border-bottom: none;
}

/* 相关文章 */
.related-section {
    margin-top: 50px;
}

.related-section h3 {
    margin-bottom: 20px;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.related-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.related-item div {
    padding: 15px;
}

.related-item h4 {
    font-size: 16px;
    margin-bottom: 6px;
}
.related-item a {
  color: #1a1a1a;
  text-decoration: none;
}
.related-item p {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}
.related-item span {
  font-size: 12px;
  color: #999;
}

/* 页脚 */
.site-footer {
    background-color: #1a1a1a;
    color: white;
    padding: 40px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #aaa;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-container {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .hamburger-btn {
        display: flex;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .cta-grid {
        grid-template-columns: 1fr;
    }
    .article-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .article-thumb img {
        width: 100%;
        height: auto;
    }
    .related-list {
        grid-template-columns: 1fr;
    }
    .article-nav {
        flex-direction: column;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .hero-text h1 {
        font-size: 24px;
    }
}