body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 20px;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

h2 {
    color: #2c3e50;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 5px;
    margin-top: 30px;
}

h3 {
    color: #3498db;
    margin-top: 20px;
}

ul {
    list-style-type: none;
    padding: 0;
}

.link-item {
    display: flex;
    align-items: center;
    margin: 10px 0;
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.link-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.link-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    object-fit: cover;
}

.tab-group {
    margin-bottom: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.tab-group h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.tab-button {
    padding: 10px 20px;
    border: none;
    background-color: #f0f0f0;
    cursor: pointer;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    margin-right: 5px;
}

.tab-button.active {
    background-color: #fff;
    border: 1px solid #ccc;
    border-bottom: 1px solid #fff;
    position: relative;
    top: 1px;
    color: #007bff;
}

.tab-content {
    padding: 10px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin-bottom: 10px;
}

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

a:hover {
    text-decoration: underline;
}

.no-results {
    text-align: center;
    color: #666;
}

#search-container {
    text-align: center;
    margin: 20px auto;
}

#search-input {
    width: 300px;
    padding: 10px;
    font-size: 16px;
    margin-right: 10px;
}

#search-button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

.tab-group {
    margin-bottom: 20px;
}

.tab-header {
    margin-bottom: 10px;
}

.tab-button {
    padding: 5px 10px;
    margin-right: 5px;
    cursor: pointer;
}

.tab-button.active {
    background-color: #007BFF;
    color: white;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin-bottom: 5px;
}

a {
    text-decoration: none;
    color: #007BFF;
}

a:hover {
    text-decoration: underline;
}

#search-results {
    margin: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

#search-results h2 {
    margin-top: 0;
    color: #333;
}

#search-results ul {
    list-style-type: none;
    padding: 0;
}

#search-results li {
    margin-bottom: 5px;
}

#search-results a {
    text-decoration: none;
    color: #007BFF;
}

#search-results a:hover {
    text-decoration: underline;
}

#search-message {
    color: #ff0000;
    text-align: center;
}

#search-results {
    display: none; /* 默认隐藏搜索结果容器 */
}

#search-results h2 {
    margin-top: 0;
    color: #333;
}

#search-results ul {
    list-style-type: none;
    padding: 0;
}

#search-results li {
    margin-bottom: 5px;
}

#search-results a {
    text-decoration: none;
    color: #007BFF;
}

#search-results a:hover {
    text-decoration: underline;
}

#search-message {
    color: #ff0000;
    text-align: center;
}

#search-message a {
    color: #007BFF;
    margin-left: 5px;
}

#search-message a:hover {
    text-decoration: underline;
}

/* 搜索容器样式 */
#search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
    max-width: 600px;
}

/* 搜索框样式 */
#search-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #d1d5db;
    border-radius: 6px 0 0 6px;
    outline: none;
    transition: border-color 0.3s ease;
}

#search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 搜索按钮样式 */
#search-button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    background-color: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#search-button:hover {
    background-color: #2563eb;
}

#search-button:active {
    background-color: #1d4ed8;
}

/* 网站标题样式 */
#website-title {
    text-align: center;
    color: #333;
    font-size: 28px;
    margin-bottom: 20px;
}

.site-item {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
}

/* 网站条目整体样式 */
.site-item {
    display: inline-block;
    margin: 8px;
}

.link-item {
    display: inline-block;
    margin: 8px;
    text-align: center;
    border: 1px solid #eee; /* 保留边框 */
    border-radius: 4px; /* 添加圆角 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.link-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.link-item a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    z-index: 1;
    width: 120px;
    /* 移除边框 */
    border: none; 
    background-color: transparent; /* 设置背景为透明 */
}

.link-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* 统一设置 .site-name 样式，避免重复 */
.site-name {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 4px 0; /* 确保只有底部有 4px 外边距，清除右边距 */
    text-align: center;
    width: 100%;
}

/* 移除重复的 site-name 样式 */
/* 以下样式已被上面的定义覆盖，可直接删除
.site-name {
    font-weight: bold;
    margin-right: 10px;
}
*/

.short-description {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* 保持原有的 short-description 样式，去除重复部分
.short-description {
    color: #666;
    font-size: 0.9em;
}
*/

.short-description {
    color: #666;
    font-size: 0.9em;
}

#back-to-nav {
    color: #007BFF;
    text-decoration: none;
    margin-left: 5px;
}

#back-to-nav:hover {
    text-decoration: underline;
}

#footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

#friend-links {
    margin-bottom: 10px;
}

#friend-links a {
    margin: 0 10px;
    text-decoration: none;
    color: #007bff;
}

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

#copyright {
    color: #6c757d;
    font-size: 0.9em;
	white-space: pre-wrap;
}

#search-message {
    color: #ff0000;
    text-align: center;
}

#search-message a {
    color: #007BFF;
    margin-left: 5px;
}

#search-message a:hover {
    text-decoration: underline;
}

/* 搜索容器样式 */
#search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
    max-width: 600px;
}

/* 搜索框样式 */
#search-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #d1d5db;
    border-radius: 6px 0 0 6px;
    outline: none;
    transition: border-color 0.3s ease;
}

#search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 搜索按钮样式 */
#search-button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    background-color: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#search-button:hover {
    background-color: #2563eb;
}

#search-button:active {
    background-color: #1d4ed8;
}

/* 网站标题样式 */
#website-title {
    text-align: center;
    color: #333;
    font-size: 28px;
    margin-bottom: 20px;
}

.site-item {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
}

/* 网站条目整体样式 */
.site-item {
    display: inline-block;
    margin: 8px;
}

.link-item {
    display: inline-block;
    margin: 8px;
    text-align: center;
}

.link-item a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    z-index: 1;
    width: 120px;
    border: none;
}

.link-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* 统一设置 .site-name 样式，避免重复 */
.site-name {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 4px 0; /* 确保只有底部有 4px 外边距，清除右边距 */
    text-align: center;
    width: 100%;
}

/* 移除重复的 site-name 样式 */
/* 以下样式已被上面的定义覆盖，可直接删除
.site-name {
    font-weight: bold;
    margin-right: 10px;
}
*/

.short-description {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* 保持原有的 short-description 样式，去除重复部分
.short-description {
    color: #666;
    font-size: 0.9em;
}
*/

.short-description {
    color: #666;
    font-size: 0.9em;
}

#back-to-nav {
    color: #007BFF;
    text-decoration: none;
    margin-left: 5px;
}

#back-to-nav:hover {
    text-decoration: underline;
}

/* 现代化提示框样式 */
#modern-tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    transform: translateY(10px);
    max-width: 300px;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#modern-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

/* 控制搜索结果里链接悬停时无下划线 */
#search-results a:hover {
    text-decoration: none;
}

#footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

#friend-links {
    margin-bottom: 10px;
}

#friend-links a {
    margin: 0 10px;
    text-decoration: none;
    color: #007bff;
}

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


#search-message {
    color: #ff0000;
    text-align: center;
}

#search-message a {
    color: #007BFF;
    margin-left: 5px;
}

#search-message a:hover {
    text-decoration: underline;
}

/* 搜索容器样式 */
#search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
    max-width: 600px;
}

/* 搜索框样式 */
#search-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #d1d5db;
    border-radius: 6px 0 0 6px;
    outline: none;
    transition: border-color 0.3s ease;
}

#search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 搜索按钮样式 */
#search-button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    background-color: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#search-button:hover {
    background-color: #2563eb;
}

#search-button:active {
    background-color: #1d4ed8;
}

/* 网站标题样式 */
#website-title {
    text-align: center;
    color: #333;
    font-size: 28px;
    margin-bottom: 20px;
}

.site-item {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
}

/* 网站条目整体样式 */
.site-item {
    display: inline-block;
    margin: 8px;
}

.link-item {
    display: inline-block;
    margin: 8px;
    text-align: center;
}

.link-item a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    z-index: 1;
    width: 120px;
    border: none;
}

.link-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* 统一设置 .site-name 样式，避免重复 */
.site-name {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 4px 0; /* 确保只有底部有 4px 外边距，清除右边距 */
    text-align: center;
    width: 100%;
}

/* 移除重复的 site-name 样式 */
/* 以下样式已被上面的定义覆盖，可直接删除
.site-name {
    font-weight: bold;
    margin-right: 10px;
}
*/

.short-description {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* 保持原有的 short-description 样式，去除重复部分
.short-description {
    color: #666;
    font-size: 0.9em;
}
*/

.short-description {
    color: #666;
    font-size: 0.9em;
}

#back-to-nav {
    color: #007BFF;
    text-decoration: none;
    margin-left: 5px;
}

#back-to-nav:hover {
    text-decoration: underline;
}
