/* 页面主体样式 */
.craftsman-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
}

/* 页面标题样式 */
.page-header {
    position: relative;
    height: 400px;
    margin-bottom: 50px;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.header-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

.header-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header-content p {
    font-size: 24px;
    opacity: 0.9;
}

/* 工匠导航样式 */
.craftsman-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.craftsman-nav ul {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.craftsman-nav a {
    display: block;
    padding: 15px 25px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
}

.craftsman-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #c41230;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.craftsman-nav a:hover,
.craftsman-nav a.active {
    color: #c41230;
}

.craftsman-nav a:hover::after,
.craftsman-nav a.active::after {
    width: 100%;
}

/* 工匠展示区域样式 */
.craftsman-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.craftsman-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.craftsman-section:nth-child(even) {
    direction: rtl;
}

.craftsman-section:nth-child(even) .craftsman-info {
    direction: ltr;
}

/* 工匠图片样式 */
.craftsman-image {
    position: relative;
    height: 600px;
    border-radius: 8px;
    overflow: hidden;
}

.craftsman-image.parallax {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.craftsman-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.craftsman-section:hover .craftsman-image img {
    transform: scale(1.05);
}

/* 工匠信息样式 */
.craftsman-info {
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.craftsman-info h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.craftsman-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #c41230;
}

.info-content {
    display: grid;
    gap: 30px;
}

.info-block {
    position: relative;
}

.info-block h3 {
    font-size: 20px;
    color: #c41230;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.info-block h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #c41230;
    margin-right: 10px;
}

.info-block p {
    color: #666;
    line-height: 1.8;
    margin: 0;
}

.info-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-block ul li {
    color: #666;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.info-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c41230;
    transform: translateY(-50%);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.craftsman-section {
    animation: fadeInUp 0.6s ease forwards;
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .page-header {
        height: 300px;
    }

    .header-content h1 {
        font-size: 36px;
    }

    .header-content p {
        font-size: 18px;
    }

    .craftsman-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .craftsman-image {
        height: 400px;
    }

    .craftsman-section:nth-child(even) {
        direction: ltr;
    }
}

@media screen and (max-width: 768px) {
    .craftsman-nav ul {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px;
    }

    .craftsman-nav a {
        padding: 10px 15px;
        font-size: 14px;
    }

    .craftsman-info h2 {
        font-size: 24px;
    }

    .info-block h3 {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .page-header {
        height: 200px;
    }

    .header-content h1 {
        font-size: 28px;
    }

    .header-content p {
        font-size: 16px;
    }

    .craftsman-image {
        height: 300px;
    }

    .craftsman-info {
        padding: 20px;
    }
} 