/* 名家介绍页样式 */
body {
    padding-top: 60px;
}

.page-banner {
    height: 300px;
    background: url('../../images/masters/banner.png') no-repeat center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.page-banner h1 {
    font-size: 40px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-banner p {
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.masters-nav {
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 60px;
    z-index: 90;
}

.masters-nav .nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.masters-nav a {
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s;
}

.masters-nav a:hover,
.masters-nav a.active {
    background-color: #333;
    color: #fff;
}

.masters-content {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.masters-section {
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s;
}

.masters-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.masters-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
}

.masters-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* 名家卡片样式 */
.master-card {
    position: relative;
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card-front {
    background-color: #fff;
}

.card-back {
    background-color: #f8f8f8;
    transform: rotateY(180deg);
    padding: 20px;
}

.master-card:hover .card-front {
    transform: rotateY(180deg);
}

.master-card:hover .card-back {
    transform: rotateY(360deg);
}

.card-front img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.card-front h3 {
    font-size: 20px;
    color: #333;
    margin: 15px 0 5px;
    text-align: center;
}

.card-front p {
    color: #666;
    text-align: center;
}

.card-back h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.card-back ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.card-back li {
    color: #666;
    margin-bottom: 10px;
    list-style: disc;
}

.view-more {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.view-more:hover {
    background-color: #444;
}

/* 详情弹窗样式 */
.master-detail {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 100;
    overflow-y: auto;
}

.detail-content {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
}

.close-detail {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.close-detail:hover {
    color: #666;
}

.detail-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.detail-header img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.header-info h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.header-info p {
    color: #666;
}

.detail-body h4 {
    font-size: 20px;
    color: #333;
    margin: 20px 0 15px;
}

.detail-body p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.detail-body ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.detail-body li {
    color: #666;
    margin-bottom: 10px;
    list-style: disc;
}

.photo-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.photo-list img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
}

.photo-list img:hover {
    transform: scale(1.05);
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .masters-nav .nav-content {
        flex-wrap: wrap;
        gap: 10px;
    }

    .masters-nav a {
        font-size: 14px;
        padding: 6px 15px;
    }

    .detail-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .detail-header img {
        margin: 0 auto;
    }

    .photo-list {
        grid-template-columns: 1fr;
    }
} 