/* 
 * 博客模块样式
 * 这是一个纯HTML/CSS实现的博客系统样式
 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: #3b82f6;
}

ul {
    list-style: none;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    padding: 16px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: #111;
}

.navbar nav ul {
    display: flex;
}

.navbar nav li {
    margin-left: 20px;
}

.navbar nav a {
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar nav a:hover, 
.navbar nav a.active {
    color: #3b82f6;
}

/* 英雄区域样式 */
.hero {
    background-color: #ffffff;
    padding: 50px 0;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111;
}

.hero p {
    font-size: 16px;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

/* 博客文章列表样式 */
.blog-list {
    padding: 60px 0;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.post-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.post-link {
    display: block;
    color: inherit;
}

.post-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-image img {
    width: 60%;
    height: auto;
    min-height: 100%;
    object-fit: contain;
    object-position: center;
}

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
}

.post-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.post-description {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

.read-more {
    color: #3b82f6;
    font-weight: 500;
    display: inline-block;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.pagination-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pagination-btn:hover:not([disabled]) {
    background-color: #2563eb;
}

.pagination-btn[disabled] {
    background-color: #94a3b8;
    cursor: not-allowed;
}

.page-indicator {
    font-size: 16px;
    color: #555;
}

/* 网站介绍模块样式 #f7f9fc */
.site-info {
    background-color: #ffffff;
    padding: 90px 0 60px 0;
    text-align: center;
}

.site-info h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111;
}

.site-info p {
    font-size: 16px;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta-button {
    display: inline-block;
    background-color: #3b82f6;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #2563eb;
}


/* 博客详情页样式 */
.blog-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.blog-header {
    margin-bottom: 40px;
    text-align: center;
}

.blog-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111;
}

.blog-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 14px;
}

.blog-featured-image {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 300px; /* 限制最大宽度 */
    margin-left: auto;
    margin-right: auto;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.blog-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 20px 0 10px;
    color: #111;
}

.blog-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 16px 0 6px;
    color: #111;
}

.blog-content p {
    margin-bottom: 4px;
}

.blog-content ul{
    list-style-type: disc; /* 添加实心圆点 */
    padding-left: 20px; /* 使用padding而不是margin */
    margin: 0 0 20px 0; /* 移除左边距 */
}

.blog-content ol {
    list-style-type: decimal; /* 添加数字序号 */
    padding-left: 20px; /* 使用padding而不是margin */
    margin: 0 0 20px 0; /* 移除左边距 */
}

.blog-content li {
    margin-bottom: 4px;
}

.blog-content img {
    display: block;
    max-width: 100%;
    margin: 20px auto;
    border-radius: 6px;
}

.blog-actions {
    margin-top: 60px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .post-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .blog-title {
        font-size: 20px;
    }
    
    .blog-content {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* New Footer Styles to match Tailwind CSS from main site */
footer.bg-gray-100 {
    background-color: #f3f4f6; /* Tailwind's gray-100 f3f4f6*/
    padding-top: 2rem;    /* py-8 */
    padding-bottom: 2rem; /* py-8 */
}

footer.bg-gray-100 .max-w-4xl {
    max-width: 56rem; /* 896px, Tailwind's max-w-4xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;   /* px-4 */
    padding-right: 1rem;  /* px-4 */
}

footer.bg-gray-100 .flex {
    display: flex;
}

footer.bg-gray-100 .flex-col {
    flex-direction: column;
}

footer.bg-gray-100 .justify-between {
    justify-content: space-between;
}

footer.bg-gray-100 .items-start {
    align-items: flex-start;
}

footer.bg-gray-100 .items-center {
    align-items: center;
}

footer.bg-gray-100 .gap-8 {
    gap: 2rem; /* 32px */
}

footer.bg-gray-100 .gap-2 {
    gap: 0.5rem; /* 8px */
}

footer.bg-gray-100 .w-5 {
    width: 1.25rem; /* 20px */
}

footer.bg-gray-100 .h-5 {
    height: 1.25rem; /* 20px */
}

footer.bg-gray-100 .font-medium {
    font-weight: 500;
}

footer.bg-gray-100 .mb-3 {
    margin-bottom: 0.75rem; /* 12px */
}

footer.bg-gray-100 .space-y-2 > * + * {
    margin-top: 0.5rem; /* 8px */
}

footer.bg-gray-100 .text-gray-700 {
    color: #374151; /* Tailwind's gray-700 */
}

footer.bg-gray-100 a.text-gray-700:hover {
    color: #2563eb; /* Tailwind's blue-600 */
}

footer.bg-gray-100 .transition-colors {
    transition-property: color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

footer.bg-gray-100 .mt-8 {
    margin-top: 2rem; /* 32px */
}

footer.bg-gray-100 .text-center {
    text-align: center;
}

footer.bg-gray-100 .text-sm {
    font-size: 0.875rem; /* 14px */
}

footer.bg-gray-100 .text-gray-500 {
    color: #6b7280; /* Tailwind's gray-500 */
}

/* Responsive adjustments from md: prefix */
@media (min-width: 768px) { /* Tailwind's md breakpoint */
    footer.bg-gray-100 .md\:flex-row {
        flex-direction: row;
    }
    footer.bg-gray-100 .md\:items-center {
        align-items: center;
    }
}

