/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "微软雅黑", sans-serif;
    background-color: #f0f2f5;
}

/* 主体内容容器 */
.container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    width: 80%;
    margin: 0 auto;
    max-width: 1280px;
}

/* 左侧内容区域 */
.left-content {
    display: flex;
    flex: 2; /* 占据2/3的空间 */
    flex-wrap: wrap; /* 允许换行 */
    justify-content: space-between; /* 两端对齐 */
    width: 78%;
}

/* 单个网站信息Tab样式 */
.website-tab {
    width: 45%; /* 每行两个，留点间距 */
    margin-bottom: 100px;
    background-color: #f8f8f8;
    border-radius: 0 8px 8px 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.website-tab:nth-child(even) {
    margin-right: 30px;
}

/* Tab 标题 */
.tab-title {
    background-color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 20px;
    text-align: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    position: absolute;
    top: -61px;
}

/* Tab 内容 */
.tab-content {
    padding: 20px;
    background-color: #fff;
}

/* Logo 样式 */
.website-logo {
    text-align: center;
    margin-bottom: 15px;
    height: 42px;
}

.website-logo img {
    max-width: 100px; /* 限制logo大小 */
    max-height: 100px;
}

/* 评分和介绍区域 */
.info-area {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.rating-area {
    text-align: center;
}

.rating-score {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.stars {
    color: #ffd700; /* 星星颜色 */
    margin-bottom: 5px;
}

.visits {
    font-size: 0.8em;
    color: #888;
}

.description-area {
    flex: 1; /* 占据剩余空间 */
    padding-left: 15px;
}

.website-description {
    margin-bottom: 10px;
    color: #555;
    height: 104px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5; /* 显示 3 行 */
    overflow: hidden;
}

.website-type {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 10px;
    height: 36px;
}

.view-button {
    background-color: #007bff;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none; /* 去除链接下划线 */
    display: inline-block; /* 让按钮可以设置宽高 */
}

.view-button:hover {
    background-color: #0056b3;
}

/* 数据中心 */
.data-center {
    padding: 10px;
    text-align: center;
    background-color: #f8f8f8;
    border-top: 1px solid #ddd;
    height: 100px;
}

.data-center-content {
    overflow-x: auto; /* 水平滚动 */
    white-space: nowrap; /* 禁止换行 */
    padding: 10px 0;
}

.data-item {
    display: inline-block; /* 让数据项横向排列 */
    margin-right: 20px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    background-color: #fff;
}

/* 针对整个页面的滚动条 */
::-webkit-scrollbar {
    width: 10px; /* 滚动条整体宽度 */
    height: 10px; /* 滚动条整体高度（横向滚动条） */
}

/* 滚动条轨道 */
::-webkit-scrollbar-track {
    background: #f0f0f0; /* 轨道背景颜色 */
    border-radius: 5px; /* 轨道圆角 */
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
    background: #888; /* 滑块背景颜色 */
    border-radius: 5px; /* 滑块圆角 */
}

/* 鼠标悬停在滑块上时 */
::-webkit-scrollbar-thumb:hover {
    background: #555; /* 悬停时滑块背景颜色 */
}

/* 滚动条两端的箭头（可选） */
::-webkit-scrollbar-button {
    display: none; /* 默认隐藏箭头，可以根据需要显示 */
    /* background-color: #ccc; */ /* 箭头背景颜色 */
    /* border-radius: 5px; */ /* 箭头圆角 */
}

/* 针对特定容器的滚动条（假设容器 class 为 "my-container"） */
.my-container::-webkit-scrollbar {
    height: 8px; /* 针对容器的横向滚动条高度 */
}

.my-container::-webkit-scrollbar-track {
    background: #eee;
}

.my-container::-webkit-scrollbar-thumb {
    background: #aaa;
}

.my-container::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* Firefox 的滚动条美化 (可选) */
/* 注意：Firefox 的滚动条样式支持有限，主要通过 scrollbar-width 和 scrollbar-color 属性 */
.my-container {
    scrollbar-width: thin; /*  'thin' | 'auto' | 'none' */
    scrollbar-color: #aaa #eee; /*  滑块颜色 轨道颜色 */
}

/*分页代码开始*/

.pagination {
    display: flex; /* 让分页组件以内联块级元素显示 */
    padding: 10px;
    border-radius: 5px;
    background-color: #f2f2f2; /* 浅灰色背景 */
    width: 100%;
    justify-content: center;
    margin-top: -50px;
    margin-left: -16px;
}

.page-link {
    color: #333; /* 文字颜色 */
    padding: 8px 12px;
    text-decoration: none; /* 去除链接下划线 */
    border: 1px solid #ddd; /* 边框 */
    margin: 0 4px; /* 按钮间距 */
    border-radius: 4px; /* 圆角边框 */
    transition: background-color 0.3s, color 0.3s; /* 平滑过渡效果 */
    height: 42px;
}

.page-link:hover {
    background-color: #ddd; /* 鼠标悬停时背景颜色 */
}

/*当前页样式*/
.page-link.active {
    background-color: #007bff; /* 激活状态背景颜色 (蓝色) */
    color: white; /* 激活状态文字颜色 (白色) */
    border-color: #007bff; /* 激活状态边框颜色 */
}

/*禁用页样式*/
.page-link.disabled {
    color: #aaa; /* 禁用状态文字颜色 (浅灰色) */
    pointer-events: none; /* 禁用状态下鼠标事件 */
    cursor: not-allowed; /* 禁用状态鼠标样式 */
    border-color: #ddd;
}

/* 媒体查询：针对手机屏幕 */
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* 改为垂直布局 */
        width: 100%; /* 宽度占满屏幕 */
    }

    .left-content {
        margin-right: 0; /* 去除右边距 */
    }

    .website-tab {
        width: 100%; /* 宽度占满 */
        margin-bottom: 50px; /* 调整下边距 */
    }

    .right-sidebar {
        margin-top: 20px; /* 调整上边距 */
        border-left: none; /* 去除左边框 */
    }

    .pagination {
        display: block; /* 改为块级元素 */
        text-align: center; /* 居中对齐 */
        margin-bottom: 20px;
        margin-top: 10px;
        margin-left: 0;
    }

    .website-tab {
        margin-top: 40px;
    }

    .website-tab:nth-child(even) {
        margin-right: 0px;
    }
}

/* 底部样式 */
.footer {
    background-color: #000;
    color: #fff;
    padding: 40px 0 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    width: 30%;
    margin-bottom: 20px;
}

.footer-section h2 {
    color: #ffc107;
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 10px;
}

.footer-section p {
    line-height: 1.6;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffc107;
}

.footer-bottom {
    background-color: #111;
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #333;
}


/*---*/
.sidebar {
    /*width: 100%; 侧边栏宽度 */
    width: 22%;
}

.sidebar-nav, .sidebar-recent-posts {
    background-color: #fff; /* 背景颜色 */
    border-radius: 8px; /* 圆角 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 阴影效果 */
    overflow: hidden; /* 隐藏溢出内容 */
    margin-bottom: 20px; /* 两个模块之间的间距 */
}

.sidebar-nav h3, .sidebar-recent-posts h3 {
    background-color: #f0f0f0; /* 标题背景色 */
    padding: 10px 15px; /* 标题内边距 */
    margin: 0; /* 去除默认外边距 */
    font-size: 16px; /* 标题字体大小 */
    font-weight: normal;
    border-bottom: 1px solid #ddd; /* 标题下边框 */
}

.sidebar-nav ul, .sidebar-recent-posts ul {
    list-style: none; /* 去除列表样式 */
    padding: 0; /* 去除内边距 */
    margin: 0; /* 去除外边距 */
}

.sidebar-nav li a, .sidebar-recent-posts li a {
    display: block; /* 块级显示 */
    padding: 10px 15px; /* 内边距 */
    text-decoration: none; /* 去除下划线 */
    color: #333; /* 链接文字颜色 */
    transition: background-color 0.2s; /* 过渡效果 */
}

.sidebar-nav li a:hover, .sidebar-recent-posts li a:hover {
    background-color: #eee; /* 鼠标悬停背景色 */
}

/*分割线样式*/
.sidebar-divider {
    height: 1px;
    background-color: #ddd;
    margin: 10px 0;
}

.website-type a {
    text-decoration: none;
    color: #26a69a;
}

.data-center-content .data-item a {
    text-decoration: none;
    color: #333333;
}

.levelPrice {
    text-decoration: none;
    color: #C8161D;
}


.filter-panel {
    width: 96.88888%;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif; /* 替换为你喜欢的字体 */
    background-color: #fff;
}

.filter-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.filter-title {
    flex: 0 0 120px; /* 标题固定宽度 */
    font-weight: bold;
    color: #333;
}

.filter-options {
    flex: 1; /* 选项部分自动填充剩余空间 */
    display: flex;
    flex-wrap: wrap; /* 允许选项换行 */
}

.filter-options button {
    margin-right: 8px;
    margin-bottom: 8px; /* 让按钮之间有垂直间距 */
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease; /* 平滑过渡效果 */
}

/*隐藏多余选项*/
.filter-options.multi-select .hidden {
    display: none;
}

.filter-options button.active {
    border-color: #28a745;
    background-color: transparent;
    color: #28a745;
}

.filter-options button:hover {
    background-color: #e9e9e9;
}

.filter-panel .search-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: #28a745;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.filter-panel .search-button:hover {
    background-color: #28a740;
    opacity: 0.9;
}

.more-button {
    color: #28a745;
    border-color: #28a745;

}

.item-list {
    display: flex;
    flex: 2; /* 占据2/3的空间 */
    flex-wrap: wrap; /* 允许换行 */
    justify-content: space-between; /* 两端对齐 */
    width: 90%;
    margin-top: 80px;
}

/* 媒体查询：针对手机屏幕 */
@media (max-width: 768px) {
    .left-content {
        width: 100%;
    }

    .sidebar {
        width: 100%;
    }

    .item-list {
        margin-top: 50px;
    }
}
/* 评分星星显示样式 */
.star {
    font-size: 15px; /* 星星大小，可调整 */
    color: #ccc; /* 空星颜色（灰色） */
}

.star.full {
    color: #ffcc00; /* 满星颜色（黄色） */
}

.star.half {
    position: relative;
    overflow: hidden;
    color: #ccc;
}

.star.half::before {
    content: '★';
    position: absolute;
    left: 0;
    width: 50%; /* 半星填充 */
    color: #ffcc00;
    overflow: hidden;
}