/* Aklan 轮播组件样式 */
.aklan-carousel-container {
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fff;
}

.aklan-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.aklan-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.aklan-carousel-slide {
    min-width: 100%;
    position: relative;
}

.aklan-carousel-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.aklan-carousel-link {
    display: block;
    position: relative;
    height: 100%;
}

/* 确保链接内的图片正确显示 */
.aklan-carousel-link .aklan-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 修改：标题简介容器固定在轮播容器内 */
.aklan-carousel-caption-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    z-index: 5;
    pointer-events: none; /* 防止干扰点击 */
}

/* 修改：每个标题简介的样式 */
.aklan-carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: auto; /* 允许标题区域点击 */
    width: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
}

.aklan-carousel-caption.active {
    opacity: 1;
    visibility: visible;
}

/* 修改：标题简介内容样式 */
.aklan-carousel-caption-content {
    color: white;
    padding: 20px;
    text-align: left;
    display: inline-block;
    max-width: 70%;
    border-top-right-radius: 8px;
}

.aklan-carousel-caption h3 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: left;
}

.aklan-carousel-caption p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    text-align: left;
}

/* 演示幻灯片样式 */
.aklan-carousel-demo-slide {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.aklan-demo-slide-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.aklan-demo-slide-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.aklan-demo-slide-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.aklan-demo-content {
    text-align: center;
    padding: 20px;
}

.aklan-demo-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.aklan-demo-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* 导航按钮样式 */
.aklan-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 50px;  /* 改宽一些 */
    height: 100px; /* 改高多一些 */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.aklan-carousel-nav:hover {
    background: rgba(0,0,0,0.7);
    transform: translateY(-50%) scale(1.1);
}

/* 上一张按钮：靠左侧垂直居中，矩形，右上角和右下角圆角5px */
.aklan-carousel-prev {
    left: 0;
    border-radius: 0 10px 10px 0;
}

/* 下一张按钮：靠右侧垂直居中，矩形，左上角和左下角圆角5px */
.aklan-carousel-next {
    right: 0;
    border-radius: 10px 0 0 10px;
}

/* 修改：指示点样式 - 移到右下角 */
.aklan-carousel-dots {
    position: absolute;
    bottom: 20px;
    right: 20px; /* 修改：从居中改为右对齐 */
    /* 移除：left: 50%; transform: translateX(-50%); */
    display: flex;
    gap: 10px;
    z-index: 10;
}

.aklan-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
}

.aklan-carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

.aklan-carousel-dot:hover {
    background: rgba(255,255,255,0.8);
}

/* 响应式设计 - 轮播组件内部 */
@media (max-width: 1024px) {
    .aklan-carousel-caption-content {
        padding: 18px;
        max-width: 75%; /* 稍微增加最大宽度 */
    }
    
    .aklan-carousel-caption h3 {
        font-size: 1.4rem;
    }
    
    .aklan-carousel-caption p {
        font-size: 0.85rem;
    }
    
    .aklan-carousel-nav {
        width: 45px;
        height: 90px;
    }
    
    .aklan-demo-content h3 {
        font-size: 1.8rem;
    }
    
    .aklan-demo-content p {
        font-size: 1.1rem;
    }
    
    /* 大屏幕：调整指示点位置 */
    .aklan-carousel-dots {
        bottom: 18px;
        right: 18px;
    }
}

@media (max-width: 768px) {
    .aklan-carousel-caption-content {
        padding: 15px;
        max-width: 80%; /* 中屏幕：增加最大宽度 */
    }
    
    .aklan-carousel-caption h3 {
        font-size: 1.2rem;
    }
    
    .aklan-carousel-caption p {
        font-size: 0.8rem;
    }
    
    .aklan-carousel-nav {
        width: 40px;
        height: 70px;
    }
    
    .aklan-demo-content h3 {
        font-size: 1.5rem;
    }
    
    .aklan-demo-content p {
        font-size: 1rem;
    }
    
    /* 中屏幕：调整指示点位置 */
    .aklan-carousel-dots {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    
    .aklan-carousel-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .aklan-carousel-nav {
        width: 35px;
        height: 60px;
    }
    
    .aklan-carousel-prev {
        left: 0;
        border-radius: 0 5px 5px 0;
    }
    
    .aklan-carousel-next {
        right: 0;
        border-radius: 5px 0 0 5px;
    }
    
    /* 小屏幕：调整标题简介 */
    .aklan-carousel-caption-content {
        padding: 12px;
        max-width: 85%; /* 小屏幕：进一步增加最大宽度 */
    }
    
    .aklan-carousel-caption h3 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .aklan-carousel-caption p {
        font-size: 0.75rem;
    }
    
    .aklan-carousel-dots {
        bottom: 10px;
        right: 10px;
        gap: 6px; /* 小屏幕：缩小间距 */
    }
    
    .aklan-carousel-dot {
        width: 8px;
        height: 8px;
    }
}

/* ====== 主题轮播Flex布局样式 ====== */
.themes-carousel {
    height: 350px; /* 桌面默认高度（原400px减少50px） */
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-bottom:10px;
}

/* 轮播容器默认宽度（桌面） */
.aklan-carousel-container {
    flex: 1;
    margin-bottom: 0;
    height: 100%;
}

.aklan-carousel-wrapper {
    height: 100%;
}

.aklan-carousel-track {
    height: 100%;
}

.aklan-carousel-slide {
    height: 100%;
}

.aklan-carousel-image,
.aklan-carousel-demo-slide {
    height: 100% !important;
}

/* 右侧列表样式 */
.themes-carousel-sidebar {
    width: 300px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.themes-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.themes-sidebar-item {
    flex: 1;
    border-bottom: 1px solid #eee;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.themes-sidebar-item:last-child {
    border-bottom: none;
}

.themes-sidebar-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.themes-sidebar-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    height: 100%;
    position: relative;
    z-index: 2;
    padding: 10px;
    transition: background 0.2s ease;
}

.themes-sidebar-link:hover {
    background: rgba(255,255,255,0.1);
}

.themes-sidebar-name {
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    padding: 10px;
}

/* 响应式设计 - 高度调整 */
/* 大屏幕：最大宽度1024px */
@media (max-width: 1024px) {
    .themes-carousel {
        height: 300px; /* 原350px减少50px */
    }
    
    .aklan-carousel-container {
        flex: 2; /* 3分之2 */
    }
    
    .themes-carousel-sidebar {
        flex: 1; /* 3分之1 */
        width: auto;
    }
    
    .themes-sidebar-name {
        font-size: 0.95rem;
        padding: 8px;
    }
}

/* 中屏幕：最大宽度768px */
@media (max-width: 768px) {
    .themes-carousel {
        height: 250px; /* 原300px减少50px */
    }
    
    .aklan-carousel-container {
        flex: 3; /* 5分之3 */
    }
    
    .themes-carousel-sidebar {
        flex: 2; /* 5分之2 */
        width: auto;
    }
    
    .themes-sidebar-name {
        font-size: 0.9rem;
        padding: 8px;
    }
    
    .themes-sidebar-link {
        padding: 8px;
    }
}

/* 小屏幕：最大宽度480px */
@media (max-width: 480px) {
    .themes-carousel {
        height: 200px; /* 原250px减少50px */
        flex-direction: column;
        gap: 15px;
    }
    
    .aklan-carousel-container {
        flex: 1;
        width: 100%;
    }
    
    .themes-carousel-sidebar {
        display: none; /* 隐藏列表 */
    }
}

/* ====== 主题网格组件样式 ====== */
.themes-grid-container {
    margin: 20px 0;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.themes-grid-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.themes-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.themes-grid-item-current {
    border: 2px solid #3498db;
}

.themes-grid-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.themes-grid-image-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.themes-grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.themes-grid-link:hover .themes-grid-image {
    transform: scale(1.05);
}

.themes-grid-content {
    padding: 15px;
}

.themes-grid-title {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.themes-grid-summary {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* 响应式设计 - 主题网格 */
@media (max-width: 1024px) {
    .themes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .themes-grid-image-container {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .themes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .themes-grid-image-container {
        height: 140px;
    }
    
    .themes-grid-content {
        padding: 12px;
    }
    
    .themes-grid-title {
        font-size: 1rem;
    }
    
    .themes-grid-summary {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .themes-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .themes-grid-image-container {
        height: 120px;
    }
    
    .themes-grid-content {
        padding: 10px;
    }
    
    .themes-grid-title {
        font-size: 0.95rem;
    }
    
    .themes-grid-summary {
        font-size: 0.8rem;
    }
}
