/* ========================================
   清新简约科技风格 - PbootCMS模板样式
   完全原创，不同于其他站点
   ======================================== */

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

:root {
    --primary: #7c3aed;
    --primary-light: #8b5cf6;
    --accent: #059669;
    --dark: #064e3b;
    --dark-2: #065f46;
    --gray: #6b7280;
    --gray-light: #f0fdf4;
    --white: #ffffff;
    --border: #d1fae5;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--gray-light);
    color: var(--dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

/* ========== Header ========== */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.main-nav ul {
    display: flex;
    gap: 8px;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.main-nav a:hover, .main-nav a.active {
    background: var(--primary);
    color: var(--white);
}

.nav-toggle {
    display: none;
    padding: 8px;
    color: var(--dark);
    font-size: 1.25rem;
}

/* ========== Hero ========== */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 12px;
}

.hero p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ========== Content ========== */
.content-wrapper {
    padding: 40px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
}

/* ========== Article Card ========== */
.article-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.article-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.article-body {
    padding: 20px;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.article-title a:hover { color: var(--primary); }

.article-meta {
    display: flex;
    gap: 16px;
    color: var(--gray);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.article-desc {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== List Item ========== */
.list-item {
    display: flex;
    gap: 20px;
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
}

.list-item:hover { box-shadow: var(--shadow-md); }

.list-thumb {
    flex: 0 0 180px;
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
}

.list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-info { flex: 1; }

.list-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.list-title a:hover { color: var(--primary); }

.list-desc {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-meta {
    display: flex;
    gap: 16px;
    color: var(--gray);
    font-size: 0.8rem;
}

/* ========== Sidebar ========== */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-widget {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title i { color: var(--primary); }

.sidebar-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.sidebar-list li:last-child { border-bottom: none; }

.sidebar-list a {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--gray);
}

.sidebar-list a:hover { color: var(--primary); }

.sidebar-count {
    background: var(--gray-light);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}

/* ========== Tags ========== */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }

.tag-item {
    background: var(--gray-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--gray);
}

.tag-item:hover {
    background: var(--primary);
    color: var(--white);
}

/* ========== Pagination ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    background: var(--white);
    color: var(--dark);
    box-shadow: var(--shadow);
}

.pagination a:hover { background: var(--primary); color: var(--white); }
.pagination .current { background: var(--primary); color: var(--white); }

/* ========== Footer ========== */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.6);
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}

/* ========== Detail Page ========== */
.article-detail {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.detail-header {
    text-align: center;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.detail-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.detail-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.detail-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: var(--gray);
    font-size: 0.85rem;
}

.detail-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark);
}

.detail-content p { margin-bottom: 16px; }

.detail-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

.detail-tags {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.related-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

/* ========== Page Header ========== */
.page-header {
    background: var(--dark);
    padding: 32px 0;
    text-align: center;
}

.page-title {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.page-breadcrumb {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.page-breadcrumb a:hover { color: var(--accent); }

/* ========== About Section ========== */
.about-section {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.about-section h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.about-section p { margin-bottom: 12px; line-height: 1.8; }

/* ========== Responsive ========== */
@media (max-width: 992px) {
    .content-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .main-nav.active {
        display: block;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
        background: var(--white);
        padding: 16px;
        box-shadow: var(--shadow-md);
    }
    .main-nav.active ul { flex-direction: column; }
    .nav-toggle { display: block; }
    .hero h1 { font-size: 1.5rem; }
    .list-item { flex-direction: column; }
    .list-thumb { flex: none; width: 100%; aspect-ratio: 16/9; }
    .article-detail { padding: 20px; }
    .detail-title { font-size: 1.3rem; }
}
