/*
Theme Name: MiningHardware Pro
Theme URI: https://example.com/mininghardwarepro
Author: Your Name
Author URI: https://example.com
Description: A professional dark theme for mining hardware reviews, optimized for SEO and mobile.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mininghardwarepro
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #000000;
    --bg-card: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-blue: #33ccff;
    --accent-purple: #cc33ff;
    --accent-gradient: linear-gradient(90deg, #33ccff, #cc33ff);
    --border-color: #222222;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: rgba(0,0,0,0.95);
    border-bottom: 1px solid rgba(51,204,255,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    color: var(--accent-blue);
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.desktop-nav .nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.desktop-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: var(--accent-blue);
}

/* 汉堡菜单按钮 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    background-color: rgba(0,0,0,0.98);
    border-top: 1px solid var(--border-color);
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-menu {
    list-style: none;
    padding: 20px;
}

.mobile-nav-menu li {
    margin-bottom: 15px;
}

.mobile-nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
}

/* 面包屑导航 */
.breadcrumbs {
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumbs a {
    color: var(--accent-blue);
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(to bottom, #0a0a1a, #000000);
}

.hero-title {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--accent-blue), #ff3399);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(51,204,255,0.5);
}

.hero-subtitle {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(51,204,255,0.2);
    padding: 20px;
    border-radius: 8px;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-blue);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
}

/* Reviews Section */
.reviews-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--accent-blue);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 14px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.review-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(51,204,255,0.2);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ff3366;
    color: #fff;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.card-icon {
    background: linear-gradient(135deg, var(--accent-blue), #9966ff);
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.review-card h3 {
    padding: 20px 20px 10px;
    font-size: 16px;
}

.card-desc {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    font-size: 12px;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 20px 20px;
}

.spec-item {
    background-color: rgba(51,204,255,0.1);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.spec-value {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: var(--accent-blue);
}

.spec-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.card-price {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #ff3399;
    margin-bottom: 15px;
}

.btn-card {
    display: block;
    width: 90%;
    margin: 0 auto 20px;
    background: var(--accent-gradient);
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
}

/* Benchmarks Section */
.benchmarks-section {
    padding: 60px 0;
}

.benchmarks-table {
    overflow-x: auto;
}

.benchmarks-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
}

.benchmarks-table th {
    background-color: rgba(51,204,255,0.1);
    padding: 12px;
    text-align: left;
    color: var(--accent-blue);
    font-size: 11px;
    text-transform: uppercase;
}

.benchmarks-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

/* Newsletter Section */
.newsletter-section {
    padding: 60px 0;
    background: linear-gradient(90deg, var(--accent-blue), #9966ff);
    text-align: center;
}

.newsletter-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.newsletter-subtitle {
    margin-bottom: 30px;
    font-size: 14px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 450px;
    margin: 0 auto 20px;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 25px;
    border: none;
    outline: none;
}

.btn-subscribe {
    background-color: #fff;
    color: #000;
    font-weight: bold;
}

.newsletter-small {
    font-size: 12px;
    opacity: 0.8;
}

/* Footer */
.site-footer {
    background-color: #050505;
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h4 {
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--accent-blue);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
}

.footer-bottom a {
    color: var(--accent-blue);
    text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 28px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form input {
        width: 100%;
    }
}



/* =======================================
   Archive 列表页样式
======================================= */
.archive-page {
    padding: 40px 0;
}

/* 列表页标题 */
.archive-header {
    text-align: center;
    margin-bottom: 40px;
}
.archive-title {
    font-size: 28px;
    color: var(--accent-blue);
    margin-bottom: 10px;
}
.archive-desc {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 文章网格布局 3列 × 3行 = 9个 */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* 文章卡片 */
.article-card {
    background: var(--bg-card);
    border: 1px solid rgba(51,204,255,0.15);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.article-card:hover {
    transform: translateY(-5px);
}

/* 缩略图 */
.article-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}
.article-card:hover .article-thumbnail img {
    transform: scale(1.05);
}

/* 文章内容 */
.article-content {
    padding: 20px;
}
.article-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}
.article-title a {
    color: var(--text-primary);
    text-decoration: none;
}
.article-title a:hover {
    color: var(--accent-blue);
}

/* 发布时间 */
.article-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

/* 摘要 */
.article-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}
.article-excerpt p {
    margin: 0;
}

/* 阅读更多 */
.read-more {
    display: inline-block;
    font-size: 13px;
    color: var(--accent-blue);
    text-decoration: none;
}
.read-more:hover {
    color: #fff;
}

/* 无内容提示 */
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

/* =======================================
   翻页样式
======================================= */
.pagination {
    text-align: center;
    margin-top: 20px;
}
.pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 4px;
    background: var(--bg-card);
    border: 1px solid rgba(51,204,255,0.2);
    color: var(--text-primary);
    border-radius: 4px;
    text-decoration: none;
}
.pagination .page-numbers.current {
    background: var(--accent-blue);
    color: #000;
    font-weight: bold;
}
.pagination .page-numbers:hover:not(.current) {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* =======================================
   移动端适配
======================================= */
@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .archive-title {
        font-size: 24px;
    }
}




/* =======================================
   Single 文章详情页样式
======================================= */
.single-page {
    padding: 40px 0;
}

/* 左右布局容器 */
.single-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* 左侧正文 */
.single-content {
    flex: 1;
    min-width: 0;
}

/* 文章标题 */
.single-header {
    margin-bottom: 25px;
}
.single-title {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}
.single-meta {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    gap: 20px;
}

/* 文章大图 */
.single-thumbnail {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}
.single-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* 文章正文 */
.single-body {
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.8;
}
.single-body p {
    margin-bottom: 20px;
}
.single-body h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--accent-blue);
}
.single-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 10px 0;
}
.single-body a {
    color: var(--accent-blue);
}

/* 上一篇 / 下一篇 */
.single-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.single-nav a {
    color: var(--accent-blue);
    text-decoration: none;
}
.single-nav a:hover {
    color: #fff;
}

/* =======================================
   右侧边栏 / 相关文章
======================================= */
.single-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.widget {
    background: var(--bg-card);
    border: 1px solid rgba(51,204,255,0.15);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}
.widget-title {
    font-size: 18px;
    color: var(--accent-blue);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* 相关文章列表 */
.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.related-list li {
    margin-bottom: 12px;
}
.related-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.related-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}
.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-title {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
}
.related-item:hover .related-title {
    color: var(--accent-blue);
}

/* =======================================
   移动端适配
======================================= */
@media (max-width: 992px) {
    .single-container {
        flex-direction: column;
    }
    .single-sidebar {
        width: 100%;
    }
    .single-title {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .single-meta {
        flex-direction: column;
        gap: 5px;
    }
    .single-nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}


/* =======================================
   News Section 样式
======================================= */
.news-section {
    padding: 60px 0;
    background-color: var(--bg-dark);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(51,204,255,0.15);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(51,204,255,0.3);
}

.news-thumbnail {
    width: 100%;
    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: 20px;
}

.news-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.news-title a:hover {
    color: var(--accent-blue);
}

.news-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.news-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-excerpt p {
    margin: 0;
}

.btn-news {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-news:hover {
    background: var(--accent-blue);
    color: #fff;
}

/* =======================================
   News Section 响应式设计
======================================= */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}
