/* ==================== 文章博客样式 ==================== */

/* 卡片样式 */
.article-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.article-card-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-card-img img {
    transform: scale(1.1);
}

.article-card-body {
    padding: 20px;
}

.article-card-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 10px 0 8px;
    line-height: 1.4;
}

.article-card-body p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 标签样式 */
.article-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #e94560;
    color: #fff;
}

.article-tag.experience {
    background: #4ecdc4;
}

.article-tag.review {
    background: #45b7d1;
}

/* 元信息样式 */
.article-meta {
    font-size: 0.8rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==================== 文章详情页样式 ==================== */
.article-detail-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 40px 0;
    color: #fff;
}

.article-detail-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.article-detail-header .breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.article-detail-header .breadcrumb a:hover {
    color: #fff;
}

.article-detail-header .breadcrumb-item {
    color: rgba(255,255,255,0.7);
}

.article-detail-header .breadcrumb-item.active {
    color: #fff;
}

.article-detail-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 20px 0 15px;
    line-height: 1.3;
}

.article-detail-header .article-info {
    display: flex;
    gap: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.article-content {
    padding: 40px 0 60px;
}

.article-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.sidebar-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e94560;
}

.toc {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 10px;
}

.toc a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.toc a:hover {
    background: #f5f5f5;
    color: #e94560;
}

.article-body {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    line-height: 1.8;
    font-size: 1rem;
    color: #333;
}

.article-body h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e94560;
}

.article-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 30px 0 15px;
}

.article-body p {
    margin-bottom: 16px;
}

.article-body ul, .article-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 8px;
}

.brand-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.brand-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.brand-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.brand-list li {
    padding: 8px 12px;
    background: #fff;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #333;
    text-align: center;
}

.experience-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    color: #fff;
}

.experience-card .author {
    font-weight: 600;
    margin-bottom: 8px;
}

.experience-card .desc {
    font-size: 0.9rem;
    opacity: 0.9;
}

.share-section {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.share-btn.line {
    background: #06c755;
    color: #fff;
}

.share-btn.twitter {
    background: #1da1f2;
    color: #fff;
}

.share-btn.copy {
    background: #333;
    color: #fff;
}

/* 分类Tab */
.article-tabs {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.article-tabs .container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: #f5f5f5;
    color: #666;
    font-size: 0.95rem;
    border-radius: 25px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #e9e9e9;
    color: #333;
}

.tab-btn.active {
    background: #e94560;
    color: #fff;
}

/* section隐藏 */
section.hidden {
    display: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .blog-hero {
        padding: 40px 0;
    }

    .blog-hero h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .article-card-img {
        height: 160px;
    }

    .article-card-body {
        padding: 16px;
    }

    .article-card-body h3 {
        font-size: 1rem;
    }

    .article-body {
        padding: 24px;
    }

    .article-detail-header h1 {
        font-size: 1.5rem;
    }

    .sidebar-section {
        margin-bottom: 16px;
    }
}