:root {
            --primary-color: #1e88e5;
            --accent-color: #f44336;
            --text-color: #333;
            --bg-color: #f5f5f5;
            --card-bg: #ffffff;
            --border-color: #ddd;
            --link-color: #555;
        }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 13px;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

header {
    background: var(--primary-color);
    padding: 15px 0;
    margin-bottom: 15px;
    text-align: center;
}

h1 {
    color: white;
    font-size: 22px;
    margin-bottom: 10px;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    width: 95%;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 10px 50px 10px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
}

.search-engine-selector {
    position: absolute;
    right: 40px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.search-engine-selector select {
    padding: 3px 5px;
    border: none;
    border-radius: 3px;
    font-size: 12px;
    background-color: #f1f1f1;
}

.search-button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 16px;
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 1000; /* 确保导航栏在最上层 */
    background-color: var(--primary-color);
    padding: 10px 0;
    margin-bottom: 15px;
    overflow-x: auto;
    white-space: nowrap;
    text-align: center;
    scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
    display: none;
}

.top-nav-container {
    display: inline-block;
    margin: 0 auto;
}

.top-nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    margin: 0 2px;
    border-radius: 4px;
    transition: all 0.2s;
    display: inline-block;
    font-size: 14px;
}

.top-nav a:hover {
    background-color: rgba(255,255,255,0.2);
}

.top-nav a.active {
    background-color: rgba(255,255,255,0.3);
    font-weight: bold;
}

.columns {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.category {
    background-color: var(--card-bg);
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    scroll-margin-top: 20px;
}
.category h1{
    background: var(--primary-color);
    color: white;
    padding: 8px 12px;
    font-size: 15px;
}
h2 {
    background: var(--primary-color);
    color: white;
    padding: 8px 12px;
    font-size: 15px;
}

.category-description {
    padding: 8px 12px;
    color: var(--text-color);
    font-size: 12px;
    border-bottom: 1px solid var(--border-color);
}

.links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    padding: 8px;
    gap: 5px;
}

.link-item a {
    color: var(--link-color);
    text-decoration: none;
    display: block;
    padding: 5px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 3px;
    transition: all 0.2s;
}
.link-item1 a {
    color: #fa0a0a;;
    text-decoration: none;
    display: block;
    padding: 5px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 3px;
    transition: all 0.2s;
    font-weight: bold;
}

.link-item a:hover {
    color: var(--primary-color);
    background-color: rgba(66, 133, 244, 0.1);
}

.hot {
    color: var(--accent-color) !important;
    font-weight: bold;
}

.qrcode-section {
    background-color: var(--card-bg);
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    scroll-margin-top: 20px;
}

.qrcode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    padding: 10px;
    gap: 8px;
}

.qrcode-card {
    text-align: center;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s;
}

.qrcode-card:hover {
    background-color: rgba(66, 133, 244, 0.1);
}

.qrcode-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: white;
    padding: 5px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin: 0 auto;
    -webkit-touch-callout: default;
    -webkit-user-select: none;
    user-select: none;
}

.qrcode-name {
    margin-top: 5px;
    font-size: 13px;
    color: var(--text-color);
    font-weight: bold;
}

.qrcode-desc {
    font-size: 11px;
    color: var(--link-color);
    margin-top: 2px;
}

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 15px 0;
    color: var(--text-color);
    font-size: 12px;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .links {
        grid-template-columns: repeat(4, 1fr);
        font-size: 12px;
        gap: 4px;
        padding: 6px;
    }
    .link-item a {
        padding: 4px 5px;
    }
    .search-engine-selector {
        right: 35px;
    }
    .search-engine-selector select {
        font-size: 11px;
    }
    
    .top-nav a {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .qrcode-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 8px;
    }
    
    .qrcode-img {
        width: 80px;
        height: 80px;
    }
}

/* 电脑版布局 */
@media (min-width: 769px) {
    .links {
        grid-template-columns: repeat(8, 1fr);
    }
}








 /* 1111111111111111111111111111111111111111111111111 */
/* 基础样式 */


/* 文章容器 */
.article-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 文章头部 */
.article-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.article-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #222;
    line-height: 1.3;
}

/* 文章元信息 */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.article-meta span {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.article-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* 网站信息区块 - 修改为flex布局 */
.website-info-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 25px;
}

.website-info {
    background-color: var(--light-gray);
    border-radius: 6px;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    flex: 1;
    min-width: 300px;
}

.website-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.website-info-icon {
    margin-right: 8px;
    color: var(--primary-color);
    width: 18px;
    text-align: center;
}

.website-info-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 20px;
    font-size: 15px;
}

.website-info-item {
    display: flex;
    align-items: center;
    min-height: 24px;
    width: 100%;
}

.website-info-label {
    font-weight: 500;
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

.website-info-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
}

.website-info-value.url {
    overflow: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.website-info-value.url::-webkit-scrollbar {
    display: none;
}

.website-info a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted;
}

.visit-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.visit-button:hover {
    background-color: #3367d6;
}

.visit-button i {
    margin-right: 8px;
}

/* 新增：网站图片样式 */
.website-image1 {
    flex: 1;
    min-width: 300px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #999; 
    
}

.website-image1 img {
    max-width: 300px;  /* 图片最大宽度不超过300px */
    max-height: 300px; /* 图片最大高度不超过300px */
    width: auto;       /* 保持宽度自适应 */
    height: auto;      /* 保持高度自适应 */
    object-fit: cover; /* 保持比例填充容器（可选） */
    border-radius: 6px;
}
.website-image {
    flex: 1;
    min-width: 300px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #999; 
}

.website-image img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}

/* 频道导航模块 - 修改后的样式 */
.channel-selector {
    position: relative;
    margin: 0 auto 25px;
    width: 100%;
    max-width: 100%;
}

.selector-header {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    cursor: pointer;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s;
    max-width: 100%;
    margin: 0 auto;
}

.selector-header:hover {
    background: var(--light-gray);
}

.selector-header > i:first-child {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 16px;
}

.selector-header > span {
    font-weight: 500;
    color: var(--text-color);
    flex-grow: 1;
}

/* 只保留一个箭头图标 */
.arrow {
    transition: transform 0.3s;
    font-size: 14px;
    color: var(--primary-color);
}

.channel-grid-container {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.channel-grid li {
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
}

.channel-grid li:nth-child(4n) {
    border-right: none;
}

/* 修改：频道项只显示纯文字 */
.channel-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 5px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
    font-size: 14px;
}

.channel-grid a:hover {
    background: var(--light-gray);
}

.channel-selector.active .channel-grid-container {
    max-height: 500px;
}

.channel-selector.active .arrow {
    transform: rotate(180deg);
}

.channel-selector.active .selector-header {
    border-radius: 6px 6px 0 0;
    background: var(--light-gray);
}

@media (max-width: 900px) {
    .channel-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .channel-grid li:nth-child(4n) {
        border-right: 1px solid var(--border-color);
    }
    .channel-grid li:nth-child(3n) {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .website-info-container {
        flex-direction: column;
    }
    
    .website-image {
        order: -1; /* 图片在上方 */
        min-width: 0; /* 允许容器在小屏幕上收缩 */
        max-width: 100%; /* 确保不超过屏幕宽度 */
        
    }
    
    .article-container {
        padding: 1px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    /* 修改：文章导航样式 */
    .article-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-nav-link {
        max-width: 100%;
        margin-bottom: 0;
        padding: 8px 0;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    
    .related-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .channel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .channel-grid li:nth-child(3n) {
        border-right: 1px solid var(--border-color);
    }
    .channel-grid li:nth-child(2n) {
        border-right: none;
    }
}

/* 文章内容 - 修改为纯文本样式 */
.article-content {
    font-size: 16px;
    margin-bottom: 30px;
    overflow: hidden;
    word-wrap: break-word;
}

/* 修改：文章导航样式 */
.article-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.article-nav-link {
    color: var(--text-color);
    text-decoration: none;
    
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.article-nav-link:hover {
    color: var(--primary-color);
}

.article-nav-link.prev {
    text-align: left;
    padding-right: 10px;
}

.article-nav-link.next {
    text-align: right;
    padding-left: 10px;
}

/* 相关文章 */
.related-articles {
    margin-top: 40px;
}

.related-title {
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.related-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.related-item {
    background-color: white;
    border-radius: 6px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.related-item:hover {
    transform: translateY(-3px);
}

.related-item a {
    text-decoration: none;
    color: var(--text-color);
}

.related-item-title {
    font-weight: 500;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-item-title i {
    margin-right: 8px;
    color: var(--secondary-color);
    font-size: 14px;
}

.related-item-date {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.related-item-date i {
    margin-right: 5px;
    font-size: 12px;
}
