/**
 * 汉密尔顿美容院 - 列表页面通用样式
 * 适用于文章列表、医生列表、项目列表等页面
 */

/* ========== 项目列表项 (index.html, prices.html, doctor.html 等) ========== */
.project-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

.project-list__item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.project-list__item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.15);
}

.project-list__link {
    display: flex;
    gap: 15px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
}

.project-list__thumb {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.project-list__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-list__item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.4;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-list__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 6px;
}

.project-list__tag {
    font-size: 10px;
    color: var(--primary-color);
    background: rgba(52, 152, 219, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.project-list__desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-list__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

.project-list__meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========== 文章链接网格 ========== */
.articles-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
}

.article-link {
    display: block;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
    transition: var(--transition);
}

.article-link:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

/* ========== 医生网格卡片补充 ========== */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.doctor-card-grid__footer {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
}

.doctor-card-grid__cases,
.doctor-card-grid__comments {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== 价格页面相关 ========== */
.article-card-featured {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.article-card-featured__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

.article-card-featured__tag {
    display: inline-block;
    font-size: 12px;
    color: #fff;
    background: var(--primary-color);
    padding: 4px 12px;
    border-radius: 15px;
    margin-bottom: 12px;
}

.article-card-featured__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-card-featured__desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-card-featured__meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ========== 文章列表卡片 ========== */
.article-list-section {
    margin-bottom: 30px;
}

.article-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-list-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.article-list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.15);
    border-color: var(--primary-color);
}

.article-list-card > a {
    display: flex;
    gap: 20px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
}

.article-list-card__img {
    width: 200px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.article-list-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-list-card__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-list-card__desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-list-card__meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

.article-list-card__author,
.article-list-card__date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========== 项目网格列表 ========== */
.projects-grid-section {
    margin-bottom: 30px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ========== 栏目分类样式 ========== */
.category-section {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.category-title {
    background: linear-gradient(135deg, var(--primary-color), #74b9ff);
    color: #fff;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
}

.category-title a {
    color: #fff;
    text-decoration: none;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .article-list-card__img {
        width: 160px;
        height: 110px;
    }
}

@media (max-width: 768px) {
    .article-list-card > a {
        flex-direction: column;
    }

    .article-list-card__img {
        width: 100%;
        height: 180px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .article-list-card__title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
