/* --- 全局样式 --- */
body {
    background-color: #f0f2f5; /* 淡灰色背景 */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 顶部对齐 */
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 800px;
}

/* --- 搜索框样式 --- */
.search-box {
    display: flex;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.search-box input {
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    flex-grow: 1; /* 让输入框占据所有空间 */
}

/* --- 标签页样式 --- */
.tab-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    min-height: 200px;
    margin-bottom: 40px;
    overflow: hidden;
}

/* 左侧导航栏 */
.tab-nav {
    flex-shrink: 0;
    width: 120px;
    border-right: 1px solid #f0f0f0;
    padding: 10px 0;
}

.tab-button {
    display: block;
    width: 100%;
    padding: 15px 20px;
    border: none;
    background-color: transparent;
    text-align: left;
    font-size: 15px;
    color: #555;
    cursor: pointer;
    transition: background-color 0.2s;
}

.tab-button:hover {
    background-color: #f7f7f7;
}

/* 当前选中标签的样式 */
.tab-button.active {
    background-color: #f0f2f5;
    color: #007bff;
    font-weight: bold;
}

/* 右侧内容区 */
.tab-content {
    flex-grow: 1;
    padding: 15px 20px;
}

/* 内容面板的默认样式（隐藏） */
.content-panel {
    display: none;
}

/* 当前显示的内容面板的样式 */
.content-panel.active {
    display: block;
}

/* --- 可折叠列表项样式 --- */
.collapsible-item {
    border-bottom: 1px solid #f0f0f0;
}
.collapsible-item:last-child {
    border-bottom: none;
}

/* 列表项的头部（可点击区域） */
.item-header {
    display: flex;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
}

.item-icon {
    width: 32px;
    height: 32px;
    margin-right: 15px;
}

.item-text {
    flex-grow: 1;
    font-size: 16px;
}

.item-arrow {
    color: #aaa;
    font-size: 18px;
    transition: transform 0.3s;
}

/* 展开时，箭头旋转90度 */
.item-header.active .item-arrow {
    transform: rotate(90deg);
}

/* 可折叠的内容区域 */
.item-content {
    max-height: 0; /* 默认收起 */
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    background-color: #f7f9fc;
    border-radius: 8px;
    margin-bottom: 0;
}
.item-content.open {
    max-height: 500px; /* 展开时给一个足够大的高度 */
    padding: 15px;
    margin-bottom: 10px;
}

/* 下载链接的每一行 */
.download-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #e9edf2;
    border-radius: 6px;
    margin-bottom: 10px;
}
.download-row:last-child {
    margin-bottom: 0;
}

.version-name {
    font-size: 15px;
    color: #333;
}

.button-group a {
    text-decoration: none;
}

/* 下载按钮的通用样式 */
.download-button {
    padding: 6px 12px;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    margin-left: 8px;
    transition: opacity 0.2s;
}
.download-button:hover {
    opacity: 0.85;
}

/* “迅雷下载”按钮的专属颜色 */
.download-button.thunder {
    background-color: #007bff; /* 蓝色 */
}

/* “夸克网盘”按钮的专属颜色 */
.download-button.quark {
    background-color: #28a745; /* 绿色 */
}

/* --- (兼容保留)旧的链接分类区样式 --- */
.link-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.category {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex-basis: calc(33.333% - 20px);
    flex-grow: 1;
    min-width: 200px;
}

.category h2 {
    margin-top: 0;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.links a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.3s, transform 0.2s;
    display: block;
}

.links a:hover {
    color: #007bff;
    transform: translateX(5px);
}
/* --- 新增的操作系统切换按钮样式 --- */
.os-switcher {
    display: flex;
    justify-content: center; /* 按钮居中 */
    gap: 15px; /* 按钮之间的间距 */
    margin-bottom: 40px; /* 和下方搜索框的间距 */
}

.os-button {
    display: flex;
    align-items: center;
    gap: 8px; /* 图标和文字的间距 */
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background-color: #e9edf2;
    color: #555;
    transition: all 0.2s ease-in-out;
}

.os-button:hover {
    transform: translateY(-2px); /* 鼠标悬停时轻微上浮 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 选中状态的按钮样式 */
.os-button.active {
    background-color: #007bff; /* 蓝色 */
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

```css
/* --- 针对右侧内容区的修改 (为了定位广告按钮) --- */
.tab-content {
    position: relative; /* 关键：让内部的绝对定位元素相对于我来定位 */
}

/* --- 新增的广告按钮样式 --- */
.ad-button {
    position: absolute;   /* 关键：让按钮脱离文档流，可以自由定位 */
    right: 20px;          /* 定位到距离右边20像素 */
    bottom: 20px;         /* 定位到距离底部20像素 */

    background-color: #ff4757; /* 醒目的红色背景 */
    color: white;             /* 白色文字 */
    padding: 10px 20px;       /* 内边距，让按钮大一些 */
    border-radius: 50px;      /* 椭圆形圆角 */
    text-decoration: none;    /* 去掉下划线 */
    font-size: 15px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* 添加阴影，更有立体感 */
    z-index: 100;             /* 确保它在最上层，不会被列表内容遮盖 */
    transition: transform 0.2s ease-in-out; /* 添加简单的动画效果 */
}

.ad-button:hover {
    transform: scale(1.05); /* 鼠标悬停时轻微放大 */
}