
/* 主容器 */
.carousel-wrapper {
    /*max-width: 1400px;*/
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    /*border-radius: 20px;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.2);*/
    overflow: hidden;
}

/* 头部 */
.carousel-header {
    background: linear-gradient(98deg, #3962b3 0%, #5c83cf 100%);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.title-section h2 {
    color: white;
    font-weight: 600;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.title-section h2:before {
    /*content: "⚛️";*/
    font-size: 1.7rem;
}
.sub {
    color: rgba(255,255,240,0.85);
    font-size: 0.8rem;
    margin-top: 5px;
    border-left: 2px solid #60c0ff;
    padding-left: 12px;
}
.slogan {
    background: rgba(255,255,245,0.12);
    padding: 0.3rem 0rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #d9f0ff;
    font-style: italic;
}
.slogan a{
	color: #d9f0ff;
	padding: 0.3rem 1rem;
	border-radius: 50px;
}
.slogan a:hover{
	color: #7030a0;
	background: rgba(255,255,255,1);
	padding: 0.3rem 1rem;
	border-radius: 50px;
}


/* 左右布局 */
.carousel-dual {
    display: flex;
    flex-wrap: wrap;
}
.carousel-image-area {
    flex: 1.4;
    min-width: 280px;
    background: #eef2f7;
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}
.carousel-titles-area {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e2e8f0;
}

/* 轮播容器 */
.carousel-slides-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.slide-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
}
.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 30%;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1), opacity 0.3s ease, visibility 0.3s ease;
    transform: translateX(20px);
    will-change: transform, opacity;
}
.slide-img.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
.slide-img.exit-left {
    transform: translateX(-20px);
    opacity: 0;
}
.slide-img.enter-right {
    transform: translateX(20px);
}

/* 图片底部文字 */
.img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.25) 70%, transparent);
    color: white;
    padding: 1.2rem 1.5rem;
    z-index: 15;
    pointer-events: none;
}
.img-caption .tag {
    display: inline-block;
    /*background: #0f6b9c;*/
    font-size: 0.7rem;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    margin-bottom: 8px;
}
.img-caption h4 {
    font-size: 1.2rem;
    font-weight: 600;
    max-width: 90%;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* 右侧标题卡片 - 日期样式 */
.title-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 1;
}
.title-item {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid #eff2f8;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
    background: white;
    gap: 1rem;
    height: 100%;
}
.title-link:last-child .title-item {
    border-bottom: none;
}
.title-item:hover {
    background: #f6faff;
    transform: translateX(3px);
}
.title-item.active-title {
    background: #eef4fc;
    border-left: 4px solid #3962b3;
}

/* 日期容器 - 垂直排列，上面日，下面年月 */
.date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    text-align: center;
    line-height: 1.2;
}
.date-day {
    font-size: 1.8rem;
    font-weight: 700;
    color: #bbd4f0;
    transition: color 0.15s;
}
.date-ym {
    font-size: 0.7rem;
    color: #9aafc4;
    margin-top: 2px;
    font-weight: 500;
}
.active-title .date-day {
    color: #3962b3;
}
.active-title .date-ym {
    color: #5a8fae;
}

.title-text {
    flex: 1;
}
.title-text h4 {
    font-size: 1.08rem;
    font-weight: 600;
    color: #1f2f3e;
    margin-bottom: 6px;
}
.title-text p {
    font-size: 0.78rem;
    color: #5c6f87;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.arrow-icon {
    font-size: 1.2rem;
    color: #9aaebf;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
}
.title-item:hover .arrow-icon {
    opacity: 1;
    transform: translateX(4px);
    color: #3962b3;
}
.active-title .arrow-icon {
    opacity: 1;
    color: #3962b3;
}

/* 控制按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 45, 65, 0.7);
    backdrop-filter: blur(6px);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    color: white;
    font-size: 1.8rem;
    transition: background 0.15s;
}
.carousel-btn:hover {
    background: #186e9c;
}
.btn-prev { left: 15px; }
.btn-next { right: 15px; }

/* 指示点 */
.dots-indicator {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 20;
}
.dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,245,0.6);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s;
}
.dot.active-dot {
    background: white;
    width: 24px;
}

/* 响应式 */
@media (max-width: 860px) {
    .carousel-dual { flex-direction: column; }
    .carousel-image-area { aspect-ratio: 3 / 2; width: 100%; }
    .carousel-titles-area { border-left: none; border-top: 1px solid #e2e8f0; }
    .title-item { padding: 1rem 1.2rem; }
    .date-box { min-width: 50px; }
    .date-day { font-size: 1.5rem; }
    .date-ym { font-size: 0.65rem; }
    .title-text h4 { font-size: 1rem; }
    .img-caption h4 { font-size: 1rem; }
}

@media (max-width: 550px) {
    body { /*padding: 1rem;*/ }
    .carousel-header { /*flex-direction: column;*/ align-items: flex-start; }
    .title-item { gap: 0.6rem; padding: 0.9rem 1rem; }
    .date-box { min-width: 42px; }
    .date-day { font-size: 1.2rem; }
    .date-ym { font-size: 0.55rem; }
    .title-text p { display: none; }
    .img-caption { padding: 0.8rem 1rem; }
    .carousel-btn { width: 32px; height: 32px; font-size: 1.4rem; }
}