/*
Theme Name: Arrizo8 教程主题
Theme URI: https://arrizo8.suhm.top
Author: SuHaoming
Description: 一个简洁、实用的用车教程主题，适合文章与分类展示。
Version: 1.0
License: GPL v2 or later
Text Domain: arrizo8
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background: #fff;
    color: #1e2a3a;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航 */
.site-header {
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    padding: 16px 0;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.site-title a {
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    color: #c0392b;
}
.nav-links {
    display: flex;
    gap: 24px;
    font-size: 0.95rem;
}
.nav-links a {
    text-decoration: none;
    color: #2c3e50;
}
.nav-links a:hover {
    color: #c0392b;
}
.user-btn {
    border: 1px solid #cbd5e1;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.9rem;
    text-decoration: none;
    color: #2c3e50;
}
.user-btn:hover {
    background: #f8fafc;
}

/* 英雄区 */
.hero {
    text-align: center;
    padding: 60px 20px 50px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.hero h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1e2a3a;
}
.hero p {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 28px;
}
.search-form {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    border: 1px solid #cbd5e1;
    border-radius: 40px;
    background: #fff;
    overflow: hidden;
}
.search-form input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 0.9rem;
    outline: none;
}
.search-form button {
    background: #c0392b;
    border: none;
    color: white;
    padding: 0 24px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
}
.search-form button:hover {
    background: #a93226;
}

/* 区块标题 */
.section-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 48px 0 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

/* 分类卡片网格 */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.cat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 12px;
    text-align: center;
    text-decoration: none;
    color: #1e2a3a;
    transition: 0.1s;
}
.cat-card:hover {
    border-color: #c0392b;
}
.cat-card i {
    font-size: 2rem;
    color: #c0392b;
    margin-bottom: 8px;
}
.cat-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}
.cat-card p {
    font-size: 0.75rem;
    color: #64748b;
}

/* 文章网格 */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0 50px;
}
.post-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.post-img {
    height: 160px;
    background-color: #f1f5f9;
    background-size: cover;
    background-position: center;
}
.post-content {
    padding: 18px;
}
.post-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.post-title a {
    text-decoration: none;
    color: #1e2a3a;
}
.post-title a:hover {
    color: #c0392b;
}
.post-excerpt {
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 12px;
}
.post-meta {
    font-size: 0.7rem;
    color: #94a3b8;
    border-top: 1px solid #eef2f6;
    padding-top: 12px;
}

/* 专题横幅 */
.feature-banner {
    background: #f1f5f9;
    border-radius: 16px;
    padding: 28px 32px;
    margin: 40px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.feature-text h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.feature-btn {
    background: #2c3e50;
    color: white;
    padding: 8px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
}
.feature-btn:hover {
    background: #1e2a3a;
}

/* 分页 */
.pagination {
    text-align: center;
    margin: 30px 0;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: #2c3e50;
}
.pagination .current {
    background: #c0392b;
    border-color: #c0392b;
    color: white;
}

/* 页脚 */
.site-footer {
    text-align: center;
    padding: 32px 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 60px;
    font-size: 0.8rem;
    color: #64748b;
}
.user-btn {
    display: none;
}
/* 移动端适配 */
@media (max-width: 700px) {
    .nav-links, .user-btn {
        display: none;
    }
    .hero h1 {
        font-size: 1.6rem;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .feature-banner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}