/**
 * 认准啦 - 认真生活指南样式文件
 * 路径：living-guide.css
 *
 * @package RenZhunla
 * @since 2026-03-28
 */

/* ==================== 栏目首页 ==================== */

.living-guide-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.living-guide-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.living-guide-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.living-guide-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.living-guide-desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* 搜索框 */
.living-guide-search {
    max-width: 600px;
    margin: 0 auto;
}

.living-guide-search-form {
    display: flex;
}

.living-guide-search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    outline: none;
}

.living-guide-search-button {
    background: #667eea;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 0 8px 8px 0;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.living-guide-search-button:hover {
    background: #5568d3;
}

/* 内容入口 */
.living-guide-entries {
    padding: 0 20px 60px;
}

.living-guide-entries-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.living-guide-entry {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
}

.living-guide-entry:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.living-guide-entry-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.living-guide-entry-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.living-guide-entry-desc {
    color: #666;
    font-size: 0.95rem;
}

/* 栏目标题 */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #666;
    font-size: 1rem;
}

/* 卡片网格 */
.popular-posts-grid,
.recent-posts-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.living-guide-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.living-guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.living-guide-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f0f0f0;
}

.living-guide-thumbnail-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #999;
    font-size: 4rem;
}

.living-guide-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.living-guide-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 20px;
    color: #333;
}

.standard-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 20px;
    margin-bottom: 15px;
}

.standard-number,
.standard-name {
    font-size: 0.85rem;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 500;
}

.standard-number {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.standard-name {
    color: #764ba2;
    background: rgba(118, 75, 162, 0.1);
}

.living-guide-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    padding: 0 20px;
}

.living-guide-tags {
    margin-bottom: 15px;
    padding: 0 20px;
}

.living-guide-tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #666;
}

.living-guide-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 20px;
    font-size: 0.85rem;
    color: #999;
}

.living-guide-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 无文章提示 */
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: #999;
    font-size: 1.1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* 分类入口 */
.living-guide-categories {
    padding: 60px 20px;
    background: #f8f9fa;
}

.categories-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: white;
    padding: 25px 20px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.category-info {
    text-align: center;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.category-count {
    color: #666;
    font-size: 0.9rem;
}

/* ==================== 响应式设计 ==================== */

@media (max-width: 1024px) {
    .popular-posts-grid,
    .recent-posts-grid,
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .living-guide-title {
        font-size: 2rem;
    }

    .living-guide-subtitle {
        font-size: 1.2rem;
    }

    .living-guide-entries-grid,
    .popular-posts-grid,
    .recent-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .living-guide-entries-grid,
    .popular-posts-grid,
    .recent-posts-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .living-guide-header {
        padding: 60px 0;
    }

    .living-guide-entries {
        padding: 0 15px 40px;
    }
}