/* aklan_flex.css - 纯CSS3 Flex布局样式 */
/* 作者：Cline - 2026年1月20日 */

/* 基础重置和全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* 导航栏样式 - 直角设计 */
.navbar {
    background-color: #fff;
    border-bottom: 2px solid #e9ecef;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

/* Logo和汉堡菜单容器 - 默认显示，汉堡菜单按钮仅小屏幕显示 */
.logo-hamburger-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

/* Logo样式 */
.logo {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    margin-right: 10px;
}

/* Logo文本区域 */
.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    height: 56px; /* 增加高度以容纳两行文本 */
    overflow: hidden;
}

/* Logo名称 - 大字体，第一行 */
.logo-name {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
    /* color: #ff723b; */
    height: 28px; /* 第一行高度 */
    display: flex;
    align-items: center;
}

/* Logo更多信息容器 - 第二行轮换效果 */
.logo-more {
    position: relative;
    height: 28px; /* 第二行高度 */
    width: 300px;
    /* overflow: hidden; */
}

/* Logo标题和网站 - 小字体，在logo-more容器内轮换 */
.logo-title,
.logo-site {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    position: absolute;
    left: 0;
    width: 100%;
    height: 28px;
    display: flex;
    align-items: center;
    animation-duration: 3s; /* 加快速度：从6s改为3s */
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

/* Logo标题动画 */
.logo-title {
    animation-name: logoFlip;
}

/* Logo网站动画 */
.logo-site {
    animation-name: logoFlipReverse;
    opacity: 0; /* 初始隐藏 */
}

/* 从下往上轮换动画 - 在logo-more容器内轮换 */
@keyframes logoFlip {
    0%, 40% {
        transform: translateY(100%); /* 改为从下方开始 */
        opacity: 0;
    }
    50%, 90% {
        transform: translateY(0); /* 向上移动到正常位置 */
        opacity: 1;
    }
    100% {
        transform: translateY(100%); /* 移回下方 */
        opacity: 0;
    }
}

@keyframes logoFlipReverse {
    0%, 40% {
        transform: translateY(0); /* 从正常位置开始 */
        opacity: 1;
    }
    50%, 90% {
        transform: translateY(-100%); /* 向上移出 */
        opacity: 0;
    }
    100% {
        transform: translateY(0); /* 回到正常位置 */
        opacity: 1;
    }
}

/* 导航链接样式 - 方块设计 */
.nav-links {
    display: flex;
    flex-wrap: nowrap; /* 默认不换行 */
    list-style: none;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 20px; /* 增加padding使li更高 */
    background-color: #92cc9a;
    border: none; /* 移除边框 */
    border-radius: 0; /* 直角 */
    color: #fff; /* SVG为白色 */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap; /* 防止文本换行 */
}

.nav-link:hover {
    background-color: #d3d4d7; /* 浅灰色 */
    border-color: transparent; /* 移除边框颜色 */
    color: #fff; /* SVG为白色 */
}

.nav-link.active {
    background-color: #f5bda7; /* 浅黄色 */
    border-color: transparent; /* 移除边框颜色 */
    color: #fff; /* SVG为白色 */
}

/* 导航图标和文本样式 */
.nav-icon {
    margin-bottom: 8px; /* 图标和文本之间的间距 */
    width: 24px;
    height: 24px;
}

.nav-text {
    font-size: 15px;
    line-height: 1.2;
    color: #000; /* span文本为黑色 */
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding: 10px 0;
    /* background-color: #ebe9eb; */
}

/* 面包屑导航 */
.breadcrumb {
    background-color: #fff;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #dee2e6;
    border-radius: 0; /* 直角 */
}

.breadcrumb ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumb li {
    margin-right: 10px;
    color: #6c757d;
}

.breadcrumb li:not(:last-child):after {
    content: '/';
    margin-left: 10px;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .current {
    color: #495057;
    font-weight: 500;
}

/* 布局容器 */
.layout-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative; /* 为 sticky 定位提供参考 */
}

/* 主要内容区域 */
.main-area {
    flex: 1;
    min-width: 300px;
}

/* 侧边栏区域 */
.sidebar-area {
    width: 250px;
    /* 添加平滑过渡效果 */
    transition: all 0.3s ease;
    /* 隐藏滚动条但保留滚动功能 */
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* 为Webkit浏览器隐藏滚动条 */
.sidebar-area::-webkit-scrollbar {
    display: none;
}

/* 侧边栏粘顶时的视觉反馈 */
.sidebar-area.sticky-active {
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
    background-color: #fff;
}

/* 瀑布流网格 */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.masonry-item {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0; /* 直角 */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
/* 
.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
} */

.masonry-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.masonry-content {
    padding: 10px;
}

.masonry-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.masonry-description {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 15px;
}

.masonry-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #adb5bd;
}

/* 侧边栏列表 */
.sidebar-list {
    list-style: none;
}

.sidebar-list li {
}

.sidebar-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.sidebar-list a:hover {
    color: #db3c0c;
}

/* .sidebar-list a:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
} */

.sidebar-list .count {
    float: none;
    margin-left: 8px;
    color: #6c757d;
    font-size: 12px;
    flex-shrink: 0; /* 防止计数收缩 */
}

/* 页脚样式 */
.footer {
    background-color: #f8f9fa; /* 改为浅灰色 */
    color: #333; /* 文字颜色改为深色以适应浅色背景 */
    padding: 10px 0; /* 上下padding改为10px */
    margin-top: 10px; /* margin-top改为10px */
}

/* 新的footer布局容器 - 第一行 */
.footer-main {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    gap: 10px;
    margin-bottom: 10px;
}

/* 左侧二维码区域 */
.footer-qr-section {
    /* flex: 1; */
    min-width: 0; /* 允许缩小 */
    max-width: 20%; /* 占1/5宽度 */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 右侧友情链接区域 */
.footer-links-section {
    flex: 4;
    min-width: 0; /* 允许缩小 */
    max-width: 80%; /* 占4/5宽度 */
}

/* 友情链接标题 */
.footer-links-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px; /* 保持10px */
    padding-bottom: 10px; /* 保持10px */
    border-bottom: 1px solid #8f8f8f; /* 保持浅灰色边框 */
}

.footer-links-title span:first-child {
    font-weight: 600;
    color: #333; /* 改为深色文字以适应浅色背景 */
}

.footer-links-title span:last-child {
    font-size: 14px;
    color: #6c757d; /* 改为中等灰色 */
}

/* 友情链接列表 */
.footer-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* 保持10px间隙 */
}

.footer-links-list a {
    color: #495057; /* 改为深色文字以适应浅色背景 */
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    border: 1px solid #adb5bd; /* 改为浅灰色边框 */
    border-radius: 3px;
    transition: all 0.3s ease;
}

.footer-links-list a:hover {
    color: #fff;
    background-color: #6c757d; /* 改为中等灰色 */
    border-color: #495057; /* 改为深灰色边框 */
    text-decoration: none;
}

/* 备案信息容器 - 第二行 */
.footer-info-section {
    width: 100%;
    text-align: center;
    padding-top: 10px; /* 添加10px上边距 */
    border-top: 1px solid #dee2e6; /* 添加浅灰色顶部边框 */
}

/* 备案信息内容 */
.footer-info {
    font-size: 14px;
    color: #6c757d; /* 改为中等灰色 */
    line-height: 1.8;
}

.footer-info a {
    color: #495057; /* 改为深色文字 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-info a:hover {
    color: #007bff; /* 改为蓝色链接悬停色 */
    text-decoration: underline;
}


/* 旧的footer样式保留，但可能不再使用 */
.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

/* 旧的友情链接样式 */
.friend-links {
    list-style: none;
}

.friend-links li {
    margin-bottom: 10px;
}

.friend-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.friend-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* 旧的备案信息样式 */
.record-info {
    font-size: 14px;
    color: #adb5bd;
    line-height: 1.8;
}

/* 响应式设计 */

/* 大屏幕 (默认样式，大于1024px) */
@media (min-width: 1025px) {
    .nav-icon {
        width: 28px; /* 大屏幕时图标调大 */
        height: 28px;
    }
    
    .nav-link {
        padding: 15px 25px; /* 增加水平padding使li更宽，与高度更一致 */
        min-width: 90px; /* 设置最小宽度 */
    }
    
    /* 大屏幕下侧边栏粘顶 */
    .sidebar-area {
        position: sticky;
        top: 0px;
        align-self: flex-start;
        max-height: calc(100vh);
        overflow-y: auto;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        z-index: 10;
    }
}

/* 中等屏幕 (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
    
    .navbar .container {
        flex-direction: row;
        flex-wrap: nowrap; /* 防止换行 */
        align-items: center;
    }
    
    .logo-hamburger-container {
        flex: 0 1 auto; /* 根据内容自适应，不强制占据全部空间 */
        min-width: 0; /* 允许缩小 */
    }
    
    .nav-links {
        justify-content: flex-end;
        flex-wrap: nowrap; /* 大屏幕保持一行 */
        flex: 0 1 auto; /* 根据内容自适应 */
        /* margin-left: 20px;  */
    }
    
    .layout-container {
        flex-direction: row;
    }
    
    .main-area {
        flex: 2;
    }
    
    .sidebar-area {
        width: 250px;
        position: sticky;
        top: 0px;
        align-self: flex-start;
        max-height: calc(100vh);
        overflow-y: auto;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        z-index: 10;
    }
}

/* 中屏幕 (max-width: 768px) */
@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: wrap; /* 允许换行 */
    }
    
    .logo-hamburger-container {
        width: 100%; /* 中屏幕下恢复100%宽度 */
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    /* 汉堡菜单按钮样式 - 中屏幕下显示 */
    .hamburger-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: #92cc9a;
        border: none;
        border-radius: 0;
        cursor: pointer;
        margin-left: auto;
        transition: all 0.3s ease;
    }
    
    .hamburger-menu:hover {
        background-color: #7bb983;
    }
    
    .hamburger-icon {
        width: 24px;
        height: 24px;
        fill: #fff;
    }
    
    /* 右侧滑动导航菜单 - 中屏幕下 */
    .slide-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .slide-nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .slide-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100%;
        background-color: #fff;
        z-index: 9999;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        padding: 10px;
    }
    
    .slide-nav.active {
        right: 0;
    }
    
    .slide-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 2px solid #e9ecef;
    }
    
    .slide-nav-title {
        font-size: 18px;
        font-weight: 600;
        color: #2c3e50;
    }
    
    .slide-nav-close {
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .close-icon {
        width: 20px;
        height: 20px;
        fill: #6c757d;
    }
    
    .slide-nav-close:hover .close-icon {
        fill: #2c3e50;
    }
    
    /* 滑动导航列表样式 - 中屏幕下 */
    .slide-nav-list {
        list-style: none;
    }
    
    .slide-nav-list li {
        margin-bottom: 10px;
    }
    
    .slide-nav-list a {
        display: block;
        padding: 10px;
        background-color: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 0;
        color: #2c3e50;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    /* 中屏幕下调整Logo字体大小 */
    .logo-text {
        height: 40px; /* 减小高度以适应小字体 */
    }
    
    .logo-name {
        font-size: 20px;
        height: 20px; /* 调整第一行高度 */
    }
    
    .logo-more {
        height: 16px; /* 调整第二行高度 */
        width: 200px; /* 根据子元素宽度自适应 */
    }
    
    .logo-title,
    .logo-site {
        font-size: 14px; /* 进一步减小字体大小 */
        height: 16px; /* 调整第二行高度 */
    }
    
    
    .nav-links {
        width: 100%;
        justify-content: space-between; /* 改为space-between确保平均分布 */
        flex-wrap: nowrap; /* 改为不换行，确保一行显示 */
        gap: 0; /* 移除间隙 */
    }
    
    .nav-links li {
        flex: 1; /* 每个li平均分配空间 */
        text-align: center;
        margin: 0; /* 移除margin */
    }
    
    .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%; /* 宽度100%填充li */
        padding: 15px 10px; /* 调整padding */
        margin: 0; /* 移除margin */
        border: none; /* 移除所有边框 */
        color: #fff; /* 确保中屏幕下SVG也为白色 */
    }
    
    .nav-link:hover {
        color: #fff; /* 确保中屏幕下悬停时SVG也为白色 */
    }
    
    .nav-link.active {
        color: #fff; /* 确保中屏幕下活动状态SVG也为白色 */
    }
    
    .nav-links li:first-child .nav-link {
        border: none; /* 第一个元素无边框 */
    }
    
    .nav-links li:last-child .nav-link {
        border: none; /* 最后一个元素无边框 */
    }
    
    .layout-container {
        flex-direction: column;
    }
    
    .sidebar-area {
        width: 100%;
        order: -1; /* 侧边栏在上方 */
        position: sticky;
        top: 0px;
        align-self: flex-start;
        max-height: calc(100vh);
        overflow-y: auto;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        z-index: 10;
        background-color: #f8f9fa;
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .main-area {
        order: 1; /* 主要内容在下方 */
    }
    
    .footer .container {
        flex-direction: column;
        gap: 10px;
    }
    
    /* 新的footer布局在中屏幕下的响应式样式 */
    .footer-main {
        flex-direction: column; /* 改为垂直排列 */
        gap: 10px;
    }
    
    .footer-qr-section,
    .footer-links-section {
        max-width: 100%; /* 占满整个宽度 */
        width: 100%;
    }
    
    .footer-qr-section {
        display: flex;
        flex-direction: row; /* 二维码居中显示 */
        justify-content: center;
        align-items: center;
        gap: 10px;
    }
    
    .footer-links-title {
        flex-direction: column; /* 标题和QQ号垂直排列 */
        align-items: flex-start;
        gap: 10px;
    }
    
    .footer-links-title span:last-child {
        align-self: flex-end; /* QQ号靠右对齐 */
    }
    
    /* 旧的footer布局样式（可能不再使用） */
    .footer-layout {
        flex-direction: column; /* 改为垂直排列 */
        gap: 10px;
    }
    
    .footer-left,
    .footer-right {
        max-width: 100%; /* 占满整个宽度 */
        width: 100%;
    }
    
    .footer-left {
        display: flex;
        flex-direction: row; /* 二维码和备案信息水平排列 */
        justify-content: space-between;
        gap: 10px;
    }
    
    .footer-left .footer-section {
        flex: 1;
        min-width: 0;
    }


    
    /* 隐藏侧边栏站点信息 */
    .sidebar-site-container {
        display: none !important;
    }
    
    /* 隐藏侧边栏登录框（在中小屏幕下只在滑动导航中显示） */
    .sidebar-area {
        display: none !important;
    }

    .sidebar-area .sidebar-section-login {
        display: none !important;
    }
    
    /* 侧边栏列表在中屏幕下的样式 */
    .sidebar-list {
        height: 120px; /* 设置固定高度 */
        overflow-y: auto; /* 垂直方向滚动 */
        padding-right: 10px; /* 为滚动条留出空间 */
    }
    
    .sidebar-list li {
        display: inline-block; /* 向左排列 */
        margin-right: 15px;
        margin-bottom: 8px;
        float: left; /* 确保向左浮动 */
    }
    
    .sidebar-list a {
        display: inline-block;
        text-align: left;
        padding: 6px 0;
        white-space: nowrap; /* 防止链接文本换行 */
    }
    
    /* 自定义垂直滚动条样式 */
    .sidebar-list::-webkit-scrollbar {
        width: 6px; /* 垂直滚动条宽度 */
    }
    
    .sidebar-list::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    .sidebar-list::-webkit-scrollbar-thumb {
        background: #adb5bd;
        border-radius: 3px;
    }
}

/* 小屏幕 (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    /* 主内容区域 */
    .main-content {
        padding: 10px 0;
    }
    
    /* 隐藏侧边栏站点信息 */
    .sidebar-site-container {
        display: none !important;
    }
    
    /* 导航栏容器 - 确保logo和汉堡菜单按钮垂直对齐 */
    .navbar .container {
        align-items: center; /* 改为居中对齐，确保logo和汉堡菜单按钮垂直对齐 */
        flex-direction: column; /* 改为垂直排列，确保logo-hamburger-container和nav-links垂直排列 */
        gap: 10px; /* 添加容器内元素之间的间隙 */
    }

    .logo img {
        height: 50px;
        margin-right: 10px;
    }
    
    /* Logo和汉堡菜单容器 - 小屏幕下调整 */
    .logo-hamburger-container {
        display: flex;
        width: 100%;
        margin-bottom: 10px; /* 添加底部间距，与导航链接分开 */
        align-items: center; /* 确保logo和汉堡菜单按钮垂直对齐 */
        gap: 10px; /* logo和汉堡菜单按钮之间的间隙 */
    }
    
    /* Logo在小屏幕下的垂直对齐 */
    .logo {
        display: flex;
        align-items: center; /* 确保logo内部元素垂直对齐 */
        margin-bottom: 0;
    }
    
    /* 汉堡菜单按钮样式 - 小屏幕下显示 */
    .hamburger-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: #92cc9a;
        border: none;
        border-radius: 0;
        cursor: pointer;
        margin-left: auto;
        transition: all 0.3s ease;
    }
    
    .hamburger-menu:hover {
        background-color: #7bb983;
    }
    
    .hamburger-icon {
        width: 24px;
        height: 24px;
        fill: #fff;
    }
    
    .slide-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 250px;
        height: 100%;
        background-color: #fff;
        z-index: 9999;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        padding: 10px;
    }
    
    .slide-nav.active {
        right: 0;
    }
    
    /* 右侧滑动导航菜单 */
    .slide-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .slide-nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .slide-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 2px solid #e9ecef;
    }
    
    .slide-nav-title {
        font-size: 18px;
        font-weight: 600;
        color: #2c3e50;
    }
    
    .slide-nav-close {
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .close-icon {
        width: 20px;
        height: 20px;
        fill: #6c757d;
    }
    
    .slide-nav-close:hover .close-icon {
        fill: #2c3e50;
    }
    
    .slide-nav-list {
        list-style: none;
    }
    
    .slide-nav-list li {
        margin-bottom: 10px;
    }

    /* 侧边栏列表在中屏幕下的样式 */
    .sidebar-list {
        height: 80px; 
    }

    .sidebar-list a {
        padding: 0;
    }
    
    .slide-nav-list a {
        display: block;
        padding: 10px;
        background-color: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 0;
        color: #2c3e50;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    /* 小屏幕下调整加载更多按钮的padding */
    .load-more {
        padding: 10px;
    }
    
    /* 小屏幕下调整空状态的padding */
    .empty-state {
        padding: 10px 5px;
    }
    
    /* 小屏幕下调整空状态图标的margin */
    .empty-state-icon {
        margin-bottom: 10px;
    }
    
    /* 小屏幕下减小nav-links中元素的高度 */
    .nav-links {
        width: 100%;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 0;
    }
    
    .nav-links li {
        flex: 1;
        text-align: center;
        margin: 0;
    }
    
    .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 8px 3px; /* 减小padding以降低高度 */
        margin: 0;
        border: none;
        color: #fff;
        font-size: 9px; /* 减小字体大小 */
    }
    
    .nav-link:hover {
        color: #fff;
    }
    
    .nav-link.active {
        color: #fff;
    }
    
    .nav-icon {
        width: 12px; /* 减小图标尺寸 */
        height: 12px; /* 减小图标尺寸 */
        margin-bottom: 2px; /* 减小图标和文本之间的间距 */
    }
    
    .nav-text {
        font-size: 9px; /* 减小文本字体大小 */
        line-height: 1.2;
        color: #000;
    }
    
    /* 小屏幕下调整logo-more的宽度 */
    .logo-more {
        height: 14px; /* 调整第二行高度 */
        width: 150px;
    }
    
    .logo-title,
    .logo-site {
        font-size: 12px; /* 进一步减小字体大小 */
        height: 14px; /* 调整第二行高度 */
    }
    
    /* 滑动导航中的精简网站信息样式 */
    .slide-nav-site-info {
        text-align: left;
    }
    
    .slide-nav-site-name {
        font-size: 14px;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 8px;
    }
    
    .slide-nav-beian {
        font-size: 12px;
        color: #6c757d;
        margin-bottom: 8px;
    }
    
    .slide-nav-beian a {
        color: #6c757d;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .slide-nav-beian a:hover {
        color: #007bff;
        text-decoration: underline;
    }
    
    .slide-nav-copyright {
        font-size: 11px;
        color: #6c757d;
        margin-bottom: 0;
    }
    
    /* 滑动导航中的二维码区域样式 */
    .slide-nav-qrcode {
        width: 100%;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .slide-nav-qrcode-title {
        font-size: 14px;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 8px;
        text-align: left;
    }
    
    .slide-nav-qrcode-content {
        width: 100%;
        background-color: #f8f9fa;
        border: 1px solid #e9ecef;
        /* padding: 10px; */
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .slide-nav-qrcode-img {
        max-width: 100%;
        height: auto;
        display: block;
    }

} /* 闭合小屏幕媒体查询 */

/* 大屏幕时隐藏滑动导航菜单 */
@media (min-width: 769px) {
    .slide-nav {
        display: none;
    }
}

/* 辅助类 */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.p-20 {
    padding: 20px;
}

.bg-white {
    background-color: #fff;
}

.border {
    border: 1px solid #dee2e6;
}

.border-radius-0 {
    border-radius: 0;
}

/* 侧边栏模块样式 */
.sidebar-section {
    border: 1px solid #dee2e6; /* 为每个小模块添加边框 */
    margin-bottom: 10px; /* 模块之间的间距 */
    padding: 8px; /* 模块内边距，使元素紧凑 */
}

/* 侧边栏标题样式 */
.sidebar-tip {
    border-bottom: 1px solid #e9e9e9;
    margin-bottom: 8px; /* 减少底部间距 */
    padding-bottom: 8px; /* 减少内边距 */
    font-size: 14px; /* 稍微减小字体大小 */
    font-weight: 600;
    color: #2c3e50;
}

/* 侧边栏内容区域 */
.sidebar-content {
    padding: 0; /* 移除内边距，让内容更紧凑 */
}

.sidebar-content-none{     
    font-size: 14px;
    color: #6c757d; 
}

/* 侧边栏友情链接列表 */
.sidebar-content-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px; /* 减少链接之间的间隙 */
}

.sidebar-content-links a {
    color: #6c757d; /* 调整为更浅的灰色 */
    text-decoration: none;
    font-size: 11px; /* 进一步减小字体大小 */
    padding: 4px 8px; /* 减少内边距 */
    border: 1px solid #adb5bd;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.sidebar-content-links span{
    font-size: 14px;
    color: #6c757d;
}

.sidebar-content-links a:hover {
    color: #fff;
    background-color: #6c757d;
    border-color: #495057;
    text-decoration: none;
}

/* 侧边栏二维码区域 */
.sidebar-content-qrcode {
    text-align: center;
    padding: 5px 0; /* 减少内边距 */
}

.sidebar-content-qrcode img {
    width: 100%; /* 减小二维码图片大小 */
}

.sidebar-content-qrcode p {
    font-size: 12px; /* 减小字体大小 */
    color: #6c757d;
    margin: 0;
}

/* 侧边栏备案信息 */
.sidebar-content-info {
    font-size: 14px; /* 进一步调小字体大小 */
    color: #6c757d; /* 保持灰色 */
    line-height: 1.5;
}

.sidebar-content-info a {
    color: #6c757d; /* 调整为灰色 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-content-info a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* 侧边栏副标题 */
.sidebar-subtip {
    float: right;
    font-size: 12px;
    color: #6c757d;
    font-weight: normal;
}

/* 加载更多按钮 */
.load-more {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #fff;
    border: 2px solid #2c3e50;
    border-radius: 0;
    color: #2c3e50;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.load-more:hover {
    background-color: #2c3e50;
    color: #fff;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 20px 10px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0;
}

.empty-state-icon {
    font-size: 48px;
    color: #adb5bd;
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 24px;
    color: #495057;
    margin-bottom: 10px;
}

.empty-state-description {
    color: #6c757d;
    max-width: 500px;
    margin: 0 auto;
}

/* 滑动导航链接样式 */
.slide-nav-content {
    margin-bottom: 20px;
}

.slide-nav-links {
    list-style: none;
}

.slide-nav-links li {
    margin-bottom: 10px;
}

.slide-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.slide-nav-link:hover {
    background-color: #92cc9a;
    border-color: #92cc9a;
    color: #fff;
}

.slide-nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    fill: #6c757d;
}

.slide-nav-link:hover .slide-nav-icon {
    fill: #fff;
}

.slide-nav-text {
    font-size: 14px;
}

.slide-nav-footer {
    /* margin-top: 20px; */
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

/* 滑动导航中的登录框样式 */
.slide-nav-login {
    margin-bottom: 10px;
    /* padding: 15px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e5e7eb; */
}

/* 在小屏幕下调整登录框样式 */
@media (max-width: 768px) {
    .slide-nav-login .sidebar-section-login {
        margin-bottom: 0;
        padding: 10px;
        border: 1px solid #e5e7eb;
        border-radius: 4px;
    }
    
    .slide-nav-login .sidebar-section-title {
        margin-bottom: 10px;
        padding-bottom: 5px;
        font-size: 14px;
        /* display: none; */
    }

    .slide-nav-login .sidebar-section-title span {
        margin-bottom: 10px;
        padding-bottom: 5px;
        font-size: 14px;
        /* display: none; */
    }
    
    .slide-nav-login .sidebar_login_input {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .slide-nav-login .aklan-slider-track {
        height: 28px;
    }
    
    .slide-nav-login .aklan-slider-handle {
        width: 26px;
        height: 26px;
    }
    
    .slide-nav-login #aklanSidebarLoginBtn {
        padding: 6px;
        font-size: 13px;
    }
    
    .slide-nav-login .aklan-user-info {
        padding: 8px 0;
    }
    
    .slide-nav-login .aklan-user-avatar {
        width: 36px;
        height: 36px;
    }
    
    .slide-nav-login .aklan-user-name {
        font-size: 13px;
    }
    
    .slide-nav-login .aklan-user-email {
        font-size: 11px;
    }
    
    .slide-nav-login .aklan-logout-btn {
        width: 28px;
        height: 28px;
    }
    
    .slide-nav-login .aklan-logout-icon {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   加载更多相关样式 - 从 resources/views/open/index.blade.php 移动过来
   ============================================ */

/* 主题轮播图样式 */
.themes-carousel {
    margin-bottom: 30px;
    /* 移除 padding、background、border-radius 和 box-shadow，因为轮播组件已经有自己的样式 */
}

/* 加载更多按钮容器 */
.load-more-container {
    text-align: center;
    margin: 40px 0;
    padding: 0 15px;
}

/* 加载更多按钮 - 更圆的角，带动态点效果 */
.aklan-load-more-btn {
    background-color: #4299e1;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 25px; /* 更圆的角，使用25px实现椭圆效果 */
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 150px;
    position: relative;
    transition: background-color 0.2s ease;
}

.aklan-load-more-btn:hover {
    background-color: #3182ce;
}

.aklan-load-more-btn:disabled {
    background-color: #a0aec0;
    cursor: not-allowed;
}

/* 加载更多按钮的动态点效果 - 纯CSS控制，一直显示动态点 */
.aklan-load-more-btn::after {
    content: '';
    position: absolute;
    left: calc(100% + 6px); /* 从按钮右侧开始，留更多间距 */
    animation: button-loading-dots 0.6s infinite step-start;
    text-align: left;
    width: 30px;
    height: 1em;
    overflow: hidden;
}

@keyframes button-loading-dots {
    0% { content: '.'; }
    16.67% { content: '..'; }
    33.33% { content: '...'; }
    50% { content: '....'; }
    66.67% { content: '.....'; }
    83.33% { content: '......'; }
    100% { content: '.'; }
}

/* 加载指示器 - 更浅背景色，更圆角 */
.aklan-loading-indicator {
    text-align: center;
    padding: 20px 12px;
    color: #2c5282;
    background-color: #f7fbff; /* 更浅的蓝色背景 */
    border-radius: 12px; /* 更圆的角 */
    margin: 15px 8px;
    border: 1px solid #d1e8ff;
}

.aklan-loading-spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 2px solid rgba(66, 153, 225, 0.2);
    border-top: 2px solid #4299e1;
    border-radius: 50%;
    animation: aklan-spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes aklan-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.aklan-loading-indicator p {
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    position: relative;
    padding-right: 24px;
}

/* 动态点效果 - 加载更多....，纯CSS控制，一直显示动态点 */
.aklan-loading-indicator p::after {
    content: '.....';
    position: absolute;
    left: 100%; /* 从文本右侧开始 */
    bottom: 0;
    margin-left: 4px; /* 与文本保持一点距离 */
    animation: loading-dots 0.6s infinite step-start;
    letter-spacing: 2px;
    width: 30px;
    overflow: hidden;
    text-align: left;
}

@keyframes loading-dots {
    0% { content: '.'; }
    16.67% { content: '..'; }
    33.33% { content: '...'; }
    50% { content: '....'; }
    66.67% { content: '.....'; }
    83.33% { content: '......'; }
    100% { content: '.'; }
}

/* 没有更多内容提示 - 更浅背景色，更圆角 */
.aklan-no-more-content {
    text-align: center;
    padding: 18px 12px;
    color: #2c5282;
    background-color: #f7fbff; /* 更浅的蓝色背景 */
    border-radius: 12px; /* 更圆的角 */
    margin: 15px 8px;
    border: 1px solid #d1e8ff;
}

.aklan-no-more-content p {
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.aklan-no-more-content p::before {
    content: "✓";
    color: #38a169;
    font-weight: bold;
    font-size: 14px;
}

/* 加载错误提示 - 更浅背景色，更圆角 */
.aklan-load-error {
    text-align: center;
    padding: 18px 12px;
    color: #c53030;
    background-color: #fff5f5; /* 更浅的红色背景 */
    border-radius: 12px; /* 更圆的角 */
    margin: 15px 8px;
    border: 1px solid #fed7d7;
}

.aklan-load-error p {
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.aklan-load-error p::before {
    content: "⚠";
    font-size: 14px;
}

/* 重试按钮 - 精简紧凑设计，无悬停动画 */
.aklan-retry-btn {
    background-color: #e53e3e;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.aklan-retry-btn:hover {
    background-color: #c53030;
}

/* 空状态 - 更浅背景色，更圆角 */
.empty-state {
    text-align: center;
    padding: 24px 16px;
    background-color: #f7fbff; /* 更浅的蓝色背景 */
    border-radius: 12px; /* 更圆的角 */
    margin: 20px 10px;
    border: 1px solid #d1e8ff;
}

.empty-state-icon {
    font-size: 36px;
    color: #4299e1;
    margin-bottom: 12px;
    opacity: 0.8;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c5282;
    margin-bottom: 8px;
}

.empty-state-description {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .load-more-container {
        margin: 25px 0;
    }
    
    .aklan-load-more-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 130px;
        border-radius: 20px; /* 响应式下也保持圆角 */
    }
    
    .aklan-loading-indicator,
    .aklan-no-more-content,
    .aklan-load-error {
        padding: 20px 12px;
        margin: 15px 8px;
    }
    
    .aklan-loading-spinner {
        width: 32px;
        height: 32px;
        border-width: 2px;
        margin-bottom: 10px;
    }
    
    .aklan-loading-spinner::after {
        border-width: 2px;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
    }
    
    .aklan-loading-indicator p {
        font-size: 13px;
    }
    
    .aklan-no-more-content p {
        font-size: 13px;
    }
    
    .aklan-load-error p {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .empty-state {
        padding: 30px 15px;
        margin: 20px 10px;
    }
    
    .empty-state-icon {
        font-size: 36px;
    }
    
    .empty-state-title {
        font-size: 18px;
    }
    
    .empty-state-description {
        font-size: 13px;
        padding: 0 8px;
    }
    
    .aklan-retry-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .aklan-load-more-btn {
        width: 100%;
        max-width: 260px;
        padding: 10px 18px;
        font-size: 14px;
        border-radius: 20px; /* 响应式下也保持圆角 */
    }
    
    .aklan-loading-indicator p,
    .aklan-no-more-content p,
    .aklan-load-error p {
        font-size: 12px;
    }
    
    .empty-state {
        padding: 20px 12px;
        margin: 15px 8px;
    }
    
    .empty-state-icon {
        font-size: 32px;
    }
    
    .empty-state-title {
        font-size: 16px;
    }
    
    .empty-state-description {
        font-size: 12px;
    }
}

/* ============================================
   跳动竖条加载动画样式 - 常驻在加载更多按钮中
   ============================================ */

/* 确保按钮内部元素水平并排居中 */
.aklan-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* 控制"加载更多"文字和动画之间的间距 */
}

/* 跳动竖条加载器的容器样式 */
.aklan-bars-loader {
    display: flex;
    align-items: flex-end; /* 竖条底部对齐，跳动感更自然 */
    height: 18px; /* 容器高度，与按钮文字高度匹配 */
}

/* 每个竖条的样式 */
.aklan-bars-loader span {
    display: inline-block;
    width: 3px;
    height: 14px; /* 竖条默认高度 */
    background-color: #3498db; /* 颜色可改为你的主题色 */
    border-radius: 1.5px;
    animation: aklan-bar-stretch 1.2s infinite ease-in-out;
}

/* 为每个竖条设置不同的动画延迟，形成连续的波浪效果 */
.aklan-bars-loader span:nth-child(1) { animation-delay: 0s; }
.aklan-bars-loader span:nth-child(2) { animation-delay: 0.15s; }
.aklan-bars-loader span:nth-child(3) { animation-delay: 0.3s; }
.aklan-bars-loader span:nth-child(4) { animation-delay: 0.45s; }

/* 定义竖条跳动的关键帧动画 */
@keyframes aklan-bar-stretch {
    0%, 60%, 100% {
        height: 14px; /* 落下时的高度 */
    }
    30% {
        height: 22px; /* 跳起时的高度 */
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .aklan-bars-loader {
        height: 16px; /* 小屏幕下减小高度 */
    }
    
    .aklan-bars-loader span {
        width: 2.5px;
        height: 12px; /* 小屏幕下减小竖条高度 */
    }
    
    @keyframes aklan-bar-stretch {
        0%, 60%, 100% {
            height: 12px; /* 小屏幕下落下时的高度 */
        }
        30% {
            height: 18px; /* 小屏幕下跳起时的高度 */
        }
    }
}

@media (max-width: 480px) {
    .aklan-bars-loader {
        height: 14px; /* 更小屏幕下进一步减小高度 */
    }
    
    .aklan-bars-loader span {
        width: 2px;
        height: 10px; /* 更小屏幕下进一步减小竖条高度 */
    }
    
    @keyframes aklan-bar-stretch {
        0%, 60%, 100% {
            height: 10px; /* 更小屏幕下落下时的高度 */
        }
        30% {
            height: 16px; /* 更小屏幕下跳起时的高度 */
        }
    }
}
