* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", serif;
}

/* 顶部导航 */
.header {
    background: #f8f9fa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 18px 0;
    list-style: none;
}
.nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
}
.nav a:hover {
    color: #8b4513;
}

/* Hero 轮播区 */
.hero {
    width: 100%;
    height: 500px;
    margin-bottom: 50px;
}
.hero-slide {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.swiper-pagination-bullet-active {
    background: #8b4513 !important;
}

/* 中间内容 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #333;
}

/* 作品卡片 */
.card-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}
.card a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.card-info {
    padding: 15px;
}
.card-title {
    font-size: 18px;
    margin-bottom: 8px;
    color: #222;
}
.card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 详情容器 */
.detail-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* 竖版布局：左图右文 */
.work-vertical {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.work-vertical .img-box {
    flex: 0 0 420px;
}
.work-vertical .info-box {
    flex: 1;
}

/* 横版布局：上图下文 */
.work-horizontal {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.work-horizontal .img-box {
    width: 100%;
}

.img-box img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.info-box h2 {
    font-size: 28px;
    color: #222;
    margin-bottom: 20px;
}
.info-box .desc {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

/* 底部 */
.footer {
    background: #f8f9fa;
    text-align: center;
    padding: 25px 0;
    margin-top: 60px;
    color: #666;
    font-size: 14px;
}
.footer a {
    color: #666;
    text-decoration: none;
}
.footer a:hover {
    color: #8b4513;
}

/* 手机适配 */
@media (max-width:768px) {
    .hero, .hero-slide {
        height: 300px;
        font-size: 24px;
    }
    .card-box {
        grid-template-columns: repeat(1, 1fr);
    }
    .nav {
        gap: 15px;
        flex-wrap: wrap;
    }
    .work-vertical {
        flex-direction: column;
    }
    .work-vertical .img-box {
        width: 100%;
        flex: none;
    }
}