
/* 鼠标特效 Canvas 样式 */
#cursorCanvas {
    position: fixed; /* 固定在视口中 */
    top: 0;
    left: 0;
    width: 100vw; /* 视口宽度 */
    height: 100vh; /* 视口高度 */
    z-index: -1; /* 关键：确保它在所有内容之下 */
    pointer-events: none; /* 关键：允许鼠标事件穿透 Canvas，不阻碍下方内容 */
}

/* 网页特效 Canvas 样式 */
#effectCanvas {
    position: fixed; /* 固定在视口中 */
    top: 0;
    left: 0;
    width: 100vw; /* 视口宽度 */
    height: 100vh; /* 视口高度 */
    z-index: 9998; /* 比鼠标特效Canvas (9999) 低一层，确保鼠标特效在最上 */
    pointer-events: none; /* 保持鼠标事件穿透 */
}

/* 三栏布局容器 */
#wrapper {
    display: flex;
    flex-grow: 1; /* 占据 body 的剩余空间 */
    width: 100%;
    min-height: auto;
    overflow: visible; /* 允许内容溢出，由 main-content 内部滚动 */
    position: relative; /* 为内部的 fixed 元素提供相对定位 */
}

/* 左侧边栏 */
#left-sidebar {
    position: fixed; /* 固定定位 */
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px; /* 明确宽度 */
    background-color: #e9ecef;
    padding: 10px; /* 进一步减少边栏整体内边距 */
    border-right: 1px solid #dee2e6;
    overflow-y: hidden; /* 明确隐藏垂直滚动条 */
    overflow-x: hidden; /* 明确隐藏水平滚动条 */
    z-index: 1000; /* 确保边栏在内容之上 */
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column; /* 垂直堆叠内部元素 */
    justify-content: flex-start; /* 内容从顶部开始 */
    align-items: center; /* 居中内容 */
    padding-top: 30px; /* 减少顶部内边距 */
}

#left-sidebar h2 {
    margin-bottom: 10px; /* 进一步减少标题下方的间距 */
    color: #343a40;
}

#left-sidebar p {
    text-align: center;
    color: #555;
    font-size: 0.9em;
}


/* 主要内容区域 */
#main-content {
    flex-grow: 1; /* 占据剩余空间 */
    margin-left: 250px; /* 为左侧边栏留出空间 */
    margin-right: 300px; /* 为右侧边栏留出空间，与宽度保持一致 */
    padding: 20px; /* 主要内容区域内部内边距 */
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    z-index: 1; /* 确保内容在侧边栏下方 */
    display: flex;
    flex-direction: column; /* 垂直堆叠内部元素 */
    padding-top: 140px; /* 为固定头部留出空间 （解决顶部遮档问题）*/
}

/* 主要内容区域头部 */
#main-content-header {
    background: linear-gradient(to right, #ffffff, #f8f9fa);
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);

    position: fixed;
    top: 0;
    left: 250px;
    right: 300px;
    width: calc(100vw - 250px - 300px);
    z-index: 999;
    box-sizing: border-box;
}

#main-content-header h1 {
    font-size: 1.8em;
    color: #212529;
}

/*
#current-time {
    font-size: 1em;
    color: #555;
}
*/

/*
.other-time {
    margin-left: 10px;
    font-size: 0.9em;
    color: #777;
}
*/

/* 保持时间横向排列，并整体居中 */
#current-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 10px 0;
    gap: 10px;
}
/* 保持三地时间为一行横排 */
#current-time > span,
#current-time .time-display {
    display: inline;
}


#current-time .other-time {
    display: inline-block;
    font-size: 0.9em;
    color: #777;
}

/* 修改链接区域为居中 */
#current-time .link-group.pre-like {
    justify-content: center !important;
    flex-wrap: wrap;
    display: flex;
    gap: 8px;
}


/* 右侧边栏 */
#right-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 340px;
    background-color: #f1f3f5;
    padding: 20px;
    border-left: 1px solid #dee2e6;
    overflow-y: auto; /* 允许内部滚动 */
    z-index: 1000;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
}

/* 底部 */
#main-footer {
    width: 100%;
    background-color: #343a40;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    position: relative;
    z-index: 1001;
    margin-top: auto;
}
#main-content #main-content-header #current-time {
}


/* 媒体查询 - 响应式设计 */
@media (max-width: 992px) {
    #left-sidebar {
        width: 200px;
    }
    #main-content {
        margin-left: 200px;
        margin-right: 0;
        padding-top: 60px;
    }
    #right-sidebar {
        position: relative;
        width: auto;
        border-left: none;
        margin-top: 20px;
    }
    #wrapper {
        flex-direction: column;
    }
    #main-content-header {
        left: 200px;
        right: 0;
        width: calc(100vw - 200px);
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    #left-sidebar {
        position: relative;
        width: auto;
        border-right: none;
        box-shadow: none;
        padding-bottom: 0;
        padding-top: 20px;
        overflow-y: hidden; /* 确保小屏幕上没有垂直滚动条 */
        overflow-x: hidden; /* 确保小屏幕上没有水平滚动条 */
    }

    #main-content {
        margin-left: 0;
        padding-top: 0;
    }

    #main-content-header {
        margin-top: 0;
        border-radius: 0;
        box-shadow: none;
        position: static;
        width: auto;
        left: auto;
        right: auto;
    }

    #wrapper {
        flex-direction: column;
    }
}

/* 下拉选择器样式 */
.mode-selector,
.mouse-effect-selector,
.visual-effect-selector {
    margin-right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 所有选择器（<select>元素）的统一样式 */
#mode-select,
#effectSelector,
#visualEffectSelector,
.input-area select#rssSelect {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    color: #333;
    font-size: 1em;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2C197.3L159.2%2C69.5c-4.7-4.7-12.3-4.7-17%2C0L5.4%2C197.3c-4.7%2C4.7-4.7%2C12.3%2C0%2C17l8.5%2C8.5c4.7%2C4.7%2C12.3%2C4.7%2C17%2C0l118.8-118.7l118.8%2C118.7c4.7%2C4.7%2C12.3%2C4.7%2C17%2C0l8.5-8.5C291.7%2C209.6%2C291.7%2C202%2C287%2C197.3z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#mode-select:focus,
#effectSelector:focus,
#visualEffectSelector:focus,
.input-area select#rssSelect:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}


/* 新增：所有搜索块的容器，水平排列 */
.search-blocks-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); /* 仅修改这里的 minmax 值 */
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
}

/* 搜索块的基础样式 */
.search-block {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px; /* 减少内边距 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* 柔和阴影 */
    text-align: center;
    flex-basis: calc(33.33% - 10px); /* 三列布局，减去减少的间距 */
    min-width: 250px; /* 调整最小宽度 */
    max-width: 320px; /* 添加最大宽度以防止过度拉伸 */
    box-sizing: border-box; /* 包含内边距和边框 */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* 添加过渡效果 */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 标题和链接左对齐 */
    justify-content: space-between; /* 确保内容和按钮垂直分布在块内 */
}

.search-block:hover {
    transform: translateY(-5px); /* 悬停时轻微上浮 */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* 更深的阴影 */
}

.search-block h2 {
    font-size: 1.2em; /* 略小字体 */
    color: #333;
    margin-bottom: 10px; /* 减少标题下方的间距 */
    font-weight: 600;
    text-align: left; /* 标题左对齐 */
    width: 100%; /* 确保标题占据块的全部宽度 */
}

.search-block h2 a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-block h2 a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.search-block form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 表单内容左对齐 */
}

.search-block .logo-link img {
    margin-bottom: 10px; /* 减少外边距 */
}

.search-block .input-and-buttons {
    display: flex;
    flex-wrap: nowrap; /* 不允许内部元素换行，强制它们在同一行 */
    gap: 5px; /* 减少元素之间的间距，使其更紧凑 */
    width: 100%;
    justify-content: flex-start; /* 改为左对齐 */
    margin-bottom: 10px; /* 减少与上方或下方元素的间距 */
    align-items: center; /* 垂直对齐 */
}

/* 站点搜索输入-按钮容器的调整，允许换行 */
.search-block form[onsubmit^="formatGoogleSiteSearch"] .input-and-buttons,
.search-block form[onsubmit^="formatBaiduSiteSearch"] .input-and-buttons {
    flex-wrap: wrap; /* 允许空间不足时换行 */
    justify-content: flex-start; /* 改为左对齐 */
    gap: 8px; /* 站点搜索元素间距可以略大 */
}


.search-block .input-and-buttons label {
    font-size: 0.9em; /* 略小字体 */
    color: #555;
    white-space: nowrap; /* 防止标签换行 */
    width: 50px; /* 调整标签的固定宽度 */
    text-align: right;
    margin-right: 5px; /* 标签和输入框之间的间距 */
}


.search-block .search-text,
.search-block input[type="text"] {
    flex-grow: 1; /* 占据可用空间 */
    max-width: 160px; /* 调整输入框的最大宽度 */
    min-width: unset; /* 移除之前的最小宽度限制，允许 flex-grow 更好地控制 */
    padding: 8px 12px; /* 减少内边距 */
    border: 1px solid #dcdcdc;
    border-radius: 8px; /* 更大圆角 */
    font-size: 0.9em; /* 略小字体 */
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-block .search-text:focus,
.search-block input[type="text"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

/* 按钮样式 */
.search-block button {
    padding: 6px 12px; /* 减少按钮内边距 */
    font-size: 0.8em; /* 减少字体大小 */
    border-radius: 8px; /* 圆角按钮 */
    border: none;
    cursor: pointer;
    white-space: nowrap; /* 防止按钮文本换行 */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.search-block .search-button {
    background-color: #007bff;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.2);
}

.search-block .search-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.search-block .clear-button {
    background-color: #6c757d;
    color: white;
    box-shadow: 0 2px 5px rgba(108, 117, 125, 0.2);
}

.search-block .clear-button:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.3);
}

/* 美化：主内容头部链接组 */
#main-content-header .link-group.pre-like {
    display: flex;
    flex-wrap: wrap; /* 允许链接换行 */
    justify-content: flex-end; /* 链接右对齐 */
    align-items: center;
    gap: 8px; /* 减少链接之间的间距 */
    margin-left: auto; /* 将此链接组推到右侧 */
}

#main-content-header .link-group.pre-like a {
    padding: 5px 10px; /* 减少内边距 */
    border: 1px solid #007bff;
    border-radius: 20px; /* 胶囊形状 */
    background-color: #e6f2ff;
    color: #007bff;
    text-decoration: none;
    font-size: 0.8em; /* 减少字体大小 */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

#main-content-header .link-group.pre-like a:hover {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}


/* 滚动新闻容器样式 */
.scrolling-news-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    height: 300px;
    display: flex;
    flex-direction: column;
    order: 1;
}

.scrolling-news-container h2 {
    font-size: 1.4em;
    color: #333;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background-color: #f1f3f5;
    margin-bottom: 0;
}

#all-news-container {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.news-list li {
    padding: 10px 20px;
    border-bottom: 1px dashed #eee;
    font-size: 0.95em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-list li a {
    color: #495057;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-list li a:hover {
    color: #007bff;
}

.news-list li:last-child {
    border-bottom: none;
}

/* RSS 新闻轮播样式 */
.carousel-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    min-height: 550px; /* 保持最小高度，但不再限制最大高度 */
    /* max-height: 550px; */ /* 移除 max-height 以允许容器根据内容扩展 */
    display: flex;
    flex-direction: column; /* 设置为 Flex 容器，垂直排列子元素 */
    padding: 10px; /* 调整整体内边距 */
    position: relative;
    overflow: visible; /* 更改为 visible，允许内部元素溢出显示 */
    order: 2;
}

/* 轮播头部 */
.carousel-header {
    font-weight: bold;
    font-size: 1.5em;
    text-align: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    background: #fafafa;
    width: 100%;
    box-sizing: border-box;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* 轮播主体 */
#carousel {
    flex: 1 1 auto; /* 允许它填充可用空间 */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* 保持相对定位，供内部幻灯片绝对定位 */
    overflow: visible; /* 更改为 visible，允许图片放大时超出其边界 */
    margin-bottom: 15px; /* 为下方按钮留出空间 */
}

.carousel-slide {
    position: absolute; /* 保持绝对定位，相对于 #carousel */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0; /* 占据 #carousel 的全部空间 */
    margin: auto;
    text-align: center;
    font-size: 1.1em;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide p {
    margin: 10px 0;
    color: #333;
    font-size: 1.1em;
}

.carousel-slide a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    word-break: break-all; /* 防止长链接溢出 */
}

.carousel-slide a:hover {
    text-decoration: underline;
}

/* 修正：将 .nav-buttons 和 .input-area 改为正常文档流，由 Flex 容器管理 */
.carousel-container .nav-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end; /* 改为靠右对齐 */
    flex-wrap: wrap;
    width: 100%;
    /* margin-top: 15px; */ /* 由 #carousel 的 margin-bottom 控制 */
    padding-top: 5px; /* 按钮内部上方留白 */
    z-index: 10;
}

/* 调整：将 .input-area 改为正常文档流，由 Flex 容器管理 */
.carousel-container .input-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 15px; /* 与上方导航按钮的间距 */
    padding: 10px; /* 内部内边距 */
    box-sizing: border-box;
    align-items: center;
    background-color: #fff; /* 背景色 */
    border-top: 1px solid #eee; /* 上边框 */
}

/* 新增：调整 .input-area 内部的 .input-row 样式以水平排列 */
.carousel-container .input-area .input-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end; /* 改为靠右对齐 */
    width: 100%;
    align-items: center;
}


/* 新增：调整 .input-area 内部的 .button-row 样式以水平排列 */
.carousel-container .input-area .button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end; /* 改为靠右对齐 */
    width: 100%;
}


/* 通用样式以确保所有输入、选择、按钮元素的 box-sizing 行为一致 */
input, select, button, textarea {
    box-sizing: border-box;
}

/* **新/美化：左侧边栏 .category 和 ul/li/a 链接样式** */
#left-sidebar .category {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 5px; /* 进一步减少内边距 */
    margin-bottom: 8px; /* 减少外边距 */
    width: 100%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02); /* 更轻的阴影 */
}

#left-sidebar .category h3 {
    font-size: 0.9em; /* 调整字体大小以更好地适应 */
    color: #007bff;
    margin-bottom: 3px; /* 减少外边距 */
    border-bottom: 1px dashed #e9ecef;
    padding-bottom: 3px; /* 减少内边距 */
    text-align: center;
}

#left-sidebar .category ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 两列布局 */
    gap: 2px; /* 单元格之间间距进一步减少 */
}

#left-sidebar .category li {
    margin-bottom: 0;
    padding-left: 0;
    /* 移除 text-align: center 以允许内部锚点控制对齐 */
}

#left-sidebar .category a {
    text-decoration: none;
    color: #495057;
    font-size: 0.55em; /* 字体大小略微增大 (从 0.7em) */
    display: block;
    padding: 2px 3px; /* 最小内边距 */
    border: 1px solid transparent;
    border-radius: 3px; /* 更小圆角 */
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    white-space: normal; /* 允许文本换行以防止截断 */
    overflow: visible; /* 允许文本溢出以在必要时完全显示 */
    text-overflow: clip; /* 移除省略号以完全显示文本 */
    text-align: left; /* 明确设置为左对齐 */
}

#left-sidebar .category a:hover {
    color: #007bff;
    background-color: #e9f2ff;
    border-color: #a0c8f7;
    box-shadow: 0 1px 2px rgba(0, 123, 255, 0.03); /* 更轻的阴影 */
}

.link-sections {
  display: flex;
  flex-wrap: wrap;      /* 多个 .link-category 自动换行 */
  gap: 20px;
  padding: 10px;
  background-color: #f9f9f9;
}

/* 两列布局：每个 .link-category 占50%宽度 */
.link-category {
  width: calc(50% - 10px);
  background: #fff;
  padding: 12px 15px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);

  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;    /* 顶端对齐每行内元素 */
  align-content: flex-start;  /* 顶端对齐多行整体 */
}


/* 标题宽度自适应，不换行，和链接同行 */
.link-category > span {
  flex: 0 0 auto;       /* 宽度自适应，不能撑满整行 */
  font-weight: 600;
  font-size: 1.1em;
  margin-bottom: 0;     /* 去掉底部间距 */
  color: #222;
  white-space: nowrap;  /* 标题不换行 */
}

/* 链接横向排列，块状，自动换行 */
.link-category a {
  display: inline-block;
  padding: 6px 12px;
  background-color: #e6f0ff;
  border-radius: 4px;
  color: #0066cc;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.link-category a:hover {
  background-color: #c0d4ff;
}

/* 响应式：屏幕小于700px时，改为单列 */
@media (max-width: 700px) {
  .link-category {
    width: 100%;
  }
  /* 标题在小屏幕下可以单独占一行 */
  .link-category > span {
    flex-basis: 100%;
    margin-bottom: 10px;
  }
}

/* **美化：官网资料与快捷键区域 (.link-group-container) 的样式** */
.link-group-container {
    display: flex;
    flex-wrap: wrap; /* 允许子元素自动换行 */
    gap: 20px; /* 块之间的间距 */
    padding: 10px; /* 容器内边距 */
    background-color: #f9f9f9; /* 容器背景色 */
    border-radius: 12px; /* 圆角 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* 轻微阴影 */
    margin-top: 20px; /* 与上方元素的间距 */
    margin-bottom: 20px;
}

#official-resources-title,
#shortcut-title {
    width: 100%; /* 确保标题独占一行 */
    font-size: 1.5em; /* 标题字体大小 */
    color: #333;
    margin-bottom: 15px; /* 标题与内容间距 */
    padding-left: 10px; /* 左侧内边距 */
    border-bottom: 1px solid #eee; /* 底部细线 */
    padding-bottom: 8px; /* 底部内边距 */
    font-weight: 600;
}

.link-group-block {
    background: #fff;
    padding: 12px 15px; /* 内部内边距 */
    border-radius: 8px; /* 圆角 */
    box-shadow: 0 1px 4px rgba(0,0,0,0.1); /* 轻微阴影 */
    flex-basis: calc(33.33% - 14px); /* 三列布局，减去gap和边框 */
    display: flex;
    flex-direction: column; /* 使标题和链接垂直堆叠 */
    gap: 10px; /* 标题与链接组之间的间距 */
    min-width: 280px; /* 确保在较小屏幕上不会过小 */
    box-sizing: border-box; /* 盒模型 */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* 添加过渡效果 */
}

.link-group-block:hover {
    transform: translateY(-5px); /* 悬停时轻微上浮 */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* 更深的阴影 */
}

.link-group-block h3 {
    font-size: 1.1em; /* 子标题字体大小 */
    color: #007bff; /* 子标题颜色 */
    margin-bottom: 0; /* 移除默认外边距 */
    padding-bottom: 5px; /* 底部内边距 */
    border-bottom: 1px dashed #e9ecef; /* 底部虚线 */
}

.link-group-block ul {
    list-style: none; /* 移除列表点 */
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* 链接自动换行 */
    gap: 8px; /* 链接之间的间距 */
}

.link-group-block li {
    margin-bottom: 0; /* 移除列表项默认外边距 */
}

.link-group-block a {
    display: inline-block; /* 使链接像块一样但横向排列 */
    padding: 6px 12px; /* 链接内边距 */
    background-color: #e6f0ff; /* 链接背景色 */
    border-radius: 4px; /* 圆角 */
    color: #0066cc; /* 链接文字颜色 */
    text-decoration: none; /* 移除下划线 */
    white-space: nowrap; /* 防止链接文本换行 */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.link-group-block a:hover {
    background-color: #c0d4ff; /* 悬停背景色 */
    transform: translateY(-2px); /* 悬停时轻微上浮 */
}

/* 媒体查询：适应小屏幕上的官网资料和快捷键区域 */
@media (max-width: 1200px) { /* 调整为两列 */
    .link-group-block {
        flex-basis: calc(50% - 15px); /* 两列布局 */
    }
}

@media (max-width: 768px) { /* 调整为单列 */
    .link-group-container {
        padding: 10px;
        gap: 15px;
    }
    .link-group-block {
        flex-basis: 100%; /* 单列布局 */
        min-width: unset;
        padding: 10px;
    }
    #official-resources-title,
    #shortcut-title {
        font-size: 1.3em;
        margin-bottom: 10px;
        padding-bottom: 5px;
        padding-left: 0;
    }
    .link-group-block h3 {
        font-size: 1em;
        padding-bottom: 3px;
    }
    .link-group-block ul {
        gap: 6px;
    }
    .link-group-block a {
        padding: 5px 10px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .link-group-container {
        padding: 5px;
        gap: 10px;
    }
    .link-group-block {
        padding: 8px;
    }
    #official-resources-title,
    #shortcut-title {
        font-size: 1.1em;
        margin-bottom: 8px;
    }
    .link-group-block h3 {
        font-size: 0.9em;
    }
    .link-group-block a {
        padding: 4px 8px;
        font-size: 0.8em;
    }
}
/* 外层居中容器 */
#current-time {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* 保持时间横排 */
#current-time .time-row {
    display: inline-block;
    white-space: nowrap;
    font-size: 1em;
    color: #333;
}

/* 洛杉矶/纽约时间样式 */
#current-time .other-time {
    margin-left: 10px;
    font-size: 0.9em;
    color: #777;
}

/* 链接组：改为居中显示 */
#current-time .link-group.pre-like {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

/* 保留原有胶囊样式 */
#current-time .link-group.pre-like a {
    padding: 5px 10px;
    border: 1px solid #007bff;
    border-radius: 20px;
    background-color: #e6f2ff;
    color: #007bff;
    text-decoration: none;
    font-size: 0.8em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

#current-time .link-group.pre-like a:hover {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

aside img {
    display: block; /* 让图片变成块级元素 */
    margin: 10px auto; /* 水平居中 */
    width: 75%; /* 默认大小 */
    transition: width 0.3s ease-in-out; /* 添加过渡动画，使变化更平滑 */
}

aside img:hover {
    width: 90%; /* 鼠标悬停时恢复原始大小 */
}

/* 新增或修改：确保右侧边栏内容可以滚动并隐藏滚动条，同时管理图片显示 */
#right-sidebar {
    /* 保持原有布局属性 */
    width: 280px;
    padding: 20px;
    box-sizing: border-box;
    background-color: #f7f7f7;
    border-left: 1px solid #eee;
    flex-shrink: 0;
    order: 3;

    /* 新增或修改：使其可以垂直滚动 */
    overflow-y: auto; /* 允许垂直方向内容溢出时自动滚动 */
    overflow-x: hidden; /* 防止水平滚动条 */
    /* 关键：设置一个最大高度，如果内容超过此高度，则触发滚动 */
    /* 这里的 calc(100vh - ...) 需要根据你的实际布局调整，确保它不会溢出wrapper或body */
    /* 暂时先不设置 max-height，先尝试隐藏滚动条的效果，因为 height:auto 默认会撑开 */
    /* max-height: calc(100vh - XXXpx);  <-- XXX 是顶部和底部可能占据的高度，例如 header/footer/topbar */
}

/* 隐藏 Webkit 浏览器（Chrome, Safari, Edge）的滚动条 */
#right-sidebar::-webkit-scrollbar {
    width: 0;   /* 隐藏垂直滚动条的宽度 */
    height: 0;  /* 隐藏水平滚动条的高度 */
    background: transparent; /* 使滚动条背景透明 */
}

/* Firefox 隐藏滚动条 */
#right-sidebar {
    scrollbar-width: none; /* 隐藏滚动条 */
    -ms-overflow-style: none; /* IE/Edge 隐藏滚动条 */
}

/* 确保右侧边栏内的图片自适应宽度并防止溢出 */
#right-sidebar img {
    max-width: 100%; /* 确保图片最大宽度为其父容器的100% */
    height: auto;    /* 保持图片纵横比 */
    display: block;  /* 将图片转换为块级元素，消除图片下方可能存在的额外空间 */
	
    margin-bottom: 50px; /* 如果有多张图片，增加底部间距 */
	
	
}




