/*
Theme Name: Blank
Theme URI: https://hdemo.temdemo.top/
Author: 
Author URI: 
Description: 空白自定义主题
Version: 1.0
License: MIT
Text Domain: blank
*/

/* ========================================
   Base / Reset
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}
a {
    text-decoration: none;
}
a:hover {
    color: #005a87;
    text-decoration: underline;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Header
   ======================================== */
#site-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
}
/* #site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
} */
.site-title {
    font-size: 1.5rem;
    font-weight: 700;
}
.site-title a {
    color: #222;
}
.site-description {
    color: #666;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Navigation */
#site-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}
#site-nav a {
    color: #555;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
}
#site-nav a:hover {
    color: #0073aa;
}

/* ========================================
   Main Content
   ======================================== */
#main-content {
    min-height: 60vh;
}

/* Article / Entry */
article {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}
article:last-child {
    border-bottom: none;
}
.entry-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.entry-title a {
    color: #222;
}
.entry-title a:hover {
    color: #0073aa;
}
.entry-meta {
    font-size: 0.875rem;
    color: #888;
    margin-bottom: 1rem;
}
.entry-meta span + span::before {
    content: ' | ';
}
.entry-summary {
    color: #555;
    margin-bottom: 0.75rem;
}
.read-more {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Post thumbnail */
.post-thumbnail {
    margin-bottom: 1rem;
}
.post-thumbnail img {
    border-radius: 4px;
}

/* ========================================
   Footer
   ======================================== */
#site-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem 0;
    color: #888;
    font-size: 0.875rem;
}
#footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
#footer-nav a {
    color: #666;
}

/* ========================================
   Pagination
   ======================================== */
.nav-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.nav-links a,
.nav-links span {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    font-size: 0.875rem;
}
.nav-links .current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* ========================================
   Carousel
   ======================================== */
.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 6px;
}
.carousel-slide {
    display: none;
    width: 100%;
}
.carousel-slide.active {
    display: block;
}
.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    font-size: 1.25rem;
    border-radius: 3px;
    z-index: 2;
    transition: background 0.2s;
}
.carousel-prev { left: 0.75rem; }
.carousel-next { right: 0.75rem; }
.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0,0,0,0.7);
}
.carousel-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}
.carousel-dot.active {
    background: #fff;
}

/* ========================================
   404
   ======================================== */
.error-404 {
    text-align: center;
    padding: 4rem 1rem;
}
.error-404 h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.error-404 a {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.5rem 1.5rem;
    background: #0073aa;
    color: #fff;
    border-radius: 4px;
}

/* ========================================
   Utility
   ======================================== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
