/* 页面标题样式 */
.page-title {
    background-color: #f8f8f8;
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.page-title h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.page-title p {
    color: #666;
    font-size: 16px;
}

/* 大师分类导航样式 */
.masters-nav {
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.category-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.category-list a {
    padding: 8px 20px;
    color: #666;
    border-radius: 20px;
    transition: all 0.3s;
}

.category-list a:hover,
.category-list a.active {
    background-color: #c41230;
    color: #fff;
}

/* 大师展示网格样式 */
.masters-grid {
    padding: 40px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.master-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.master-item:hover {
    transform: translateY(-5px);
}

.master-image {
    position: relative;
    overflow: hidden;
}

.master-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s;
}

.master-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.master-item:hover .master-overlay {
    opacity: 1;
}

.view-details {
    padding: 10px 20px;
    background-color: #fff;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.view-details:hover {
    background-color: #c41230;
    color: #fff;
}

.master-info {
    padding: 20px;
}

.master-info h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.master-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

/* 分页导航样式 */
.pagination {
    padding: 40px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a,
.pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background-color: #c41230;
    color: #fff;
    border-color: #c41230;
}

.pagination .next {
    width: auto;
    padding: 0 15px;
}

/* 大师详情弹窗样式 */
.master-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 1000;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #c41230;
}

.modal-body {
    display: flex;
    gap: 40px;
}

.master-gallery {
    flex: 1;
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.works-preview {
    margin-top: 20px;
}

.works-preview h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.works-list {
    display: flex;
    gap: 10px;
}

.work-thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.work-thumb:hover,
.work-thumb.active {
    opacity: 1;
}

.master-details {
    flex: 1;
    padding: 20px;
}

.master-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.master-info p {
    margin-bottom: 10px;
    color: #666;
}

.master-biography {
    margin: 30px 0;
    line-height: 1.8;
    color: #666;
}

.master-achievements h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.achievement-list li {
    margin-bottom: 10px;
    color: #666;
    line-height: 1.6;
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .masters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-body {
        flex-direction: column;
    }

    .main-image {
        height: 300px;
    }
}

@media screen and (max-width: 768px) {
    .masters-grid {
        grid-template-columns: 1fr;
    }

    .master-image img {
        height: 300px;
    }

    .works-list {
        flex-wrap: wrap;
    }

    .work-thumb {
        width: 80px;
        height: 80px;
    }
} 