/**
 * yanyi.css - 核心业务页面样式
 */

/* --- 全局及背景 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    color: #bca475; 
    font-size: 14px;
    line-height: 1.8;
    position: relative; 
    min-height: 100vh;
    overflow-x: hidden;
}
.page-content-wrapper {
    padding-top: 0px;
    position: relative;
}
.page-content-wrapper::before {
    content: ""; position: absolute; top: 50px; left: 0;
    width: 100%; height: calc(100% - 90px); 
    background: #111 url('../img/bg-4.png') no-repeat top center; 
    background-size: 100% 100%; 
    z-index: -1;
}
.container { width: 72vw; margin: 0 auto; position: relative; }

/* --- 导航栏样式 --- */
.nav-wrapper { width: 100%; height: 50px; margin-bottom: 60px; display: flex; }
.nav-item { 
    width: 160px; height: 50px; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 18px; cursor: pointer; 
    border: 1px solid #b08d55; margin-right: -1px; 
    background-color: #fff; color: #b08d55; 
    position: relative; 
    text-decoration: none;
    transition: all 0.2s;
}
.nav-item.active { 
    background-color: #b08d55; 
    color: #fff; 
    border-color: #b08d55; 
    z-index: 2; 
}
.nav-item.active::after { 
    content: ''; position: absolute; bottom: -10px; left: 50%; 
    transform: translateX(-50%); width: 0; height: 0; 
    border-left: 10px solid transparent; 
    border-right: 10px solid transparent; 
    border-top: 10px solid #b08d55; 
}

/* --- 布局核心 --- */
.show-section { display: flex; margin-bottom: 80px; align-items: stretch; }
.poster-col { flex: 0 0 480px; margin-right: 60px; }
.poster-col img { 
    width: 100%; height: 100%; object-fit: cover; display: block; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); 
    transition: transform 0.3s ease;
}
.poster-col img:hover { transform: scale(1.05); }
.info-col { flex: 1; padding-top: 5px; display: flex; flex-direction: column; }

/* 标题区域 */
.section-header { display: flex; align-items: flex-end; border-bottom: 1px solid #b08d55; height: 60px; margin-bottom: 25px; position: relative; flex-shrink: 0; }
.icon-doc { width: 22px; height: 25px; border: 1px solid #b08d55; border-radius: 1px; display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; padding: 4px 3px; margin-bottom: 15px; margin-right: 10px; }
.icon-doc span { display: block; width: 12px; height: 1px; background-color: #b08d55; }
.vertical-line { width: 1px; height: 50px; background-color: #b08d55; margin-bottom: 0; margin-right: 10px; }
.section-header h2 { font-size: 28px; color: #b08d55; font-weight: normal; line-height: 1; letter-spacing: 2px; margin-bottom: 15px; }
.icon-more { position: absolute; right: 0; bottom: 15px; }

/* 文本描述 */
.description { margin-top: 10px; height: 350px; overflow: hidden; }
.description p { font-size: 16px; color: #bca475; text-align: justify; line-height: 1.6em; margin-bottom: 20px; }
.thumbnails { display: flex; gap: 20px; margin-top: auto; }
.thumbnails img { 
    width: calc(50% - 10px); height: 220px; object-fit: cover; 
    border: 1px solid #bca475; padding: 8px; 
    transition: transform 0.3s ease;
}
.thumbnails img:hover { transform: scale(1.05); }

/* 底部卡片轮播 */
.card-carousel {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    margin-bottom: 40px;
    position: relative;
}
.card-carousel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #b08d55;
    z-index: 10;
}
.card-track {
    display: flex;
    gap: 20px;
    width: fit-content;
    will-change: transform;
}

.card { 
    display: flex; 
    flex-direction: column; 
    height: 450px; 
    position: relative; 
    overflow: hidden;
    /* 固定卡片宽度：容器宽度72vw，减去3个间距60px，除以4 */
    width: calc((72vw - 60px) / 4);
    flex-shrink: 0;
}
.card-img-wrap { width: 100%; overflow: hidden; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-content { padding: 25px; display: flex; flex-direction: column; overflow: hidden; }
.card h3 { font-size: 18px; margin-bottom: 12px; font-weight: normal; }
.card p { font-size: 12px; line-height: 1.6; text-align: justify; }

/* 卡片风格：黑底风格 */
.style-dark .card-img-wrap { height: 40%; flex-shrink: 0; }
.style-dark .card-content { height: 60%; background-color: #000; border-top: none; border-bottom: 2px solid #b08d55; color: #fff; }
.style-dark h3 { color: #fff; }
.butterfly h3 { color: #d32f2f; }

/* 去除卡片内容中a标签的默认样式 */
.card-content a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

/* 确保h3在a标签内时保持原有样式 */
.card-content a h3 {
    margin: 0;
    padding: 0;
    color: inherit;
}

/* 去除海报区域a标签的默认样式 */
.poster-col a {
    display: block;
    width: 100%;
    height: 100%;
}

/* 去除标题区域a标签的默认样式 */
.section-header a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

/* 确保h2在a标签内时保持原有样式 */
.section-header a h2 {
    margin: 0;
    padding: 0;
    color: inherit;
}

/* 去除卡片图片区域a标签的默认样式 */
.card-img-wrap a {
    display: block;
    width: 100%;
    height: 100%;
}

/* 卡片风格：金底遮罩风格 */
.style-gold { border: none; }
.style-gold .card-img-wrap { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.style-gold .card-content { position: absolute; bottom: 0; left: 0; width: 100%; height: 40%; z-index: 1; background-color: rgba(198, 181, 147, 0.9); color: #000; }
.style-gold h3 { color: #000; }
.style-gold p { color: #1a1a1a; }

/* 底部箭头按钮样式 */
.slider-controls { display: flex; justify-content: center; gap: 60px; padding: 0px 0 60px 0; }
.arrow { width: 40px; height: 40px; border-radius: 50%; background-color: #a6a6a6; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.3s; }
.arrow:hover { background-color: #b08d55; }
.arrow::before { content: ''; width: 10px; height: 10px; border-top: 2px solid #fff; border-right: 2px solid #fff; display: block; }
.arrow:first-child::before { transform: rotate(-135deg); margin-left: 4px; }
.arrow:last-child::before { transform: rotate(45deg); margin-right: 4px; }

