﻿@charset "utf-8";
/* CSS Document */
 * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body, html {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.6;
            overflow-x: hidden; /* 防止横向滚动 */
        }

        /* 固定头部 - 使用 fixed 定位 */
        header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background-color: #fff;
            padding: 10px 20px;
            border-bottom: 1px solid #e0e0e0;
            z-index: 1000;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
        }

        .header-title h2 {
            font-weight: bold;
            font-size: 22px;
            white-space: nowrap;
            color: red;
            margin: 0;
        }

        .search-box {
            display: flex;
            max-width: 400px;
            width: 100%;
        }

        .search-box input[type="text"] {
            flex: 1;
            padding: 8px 10px;
            border: 1px solid #ccc;
            border-radius: 4px 0 0 4px;
            font-size: 14px;
            min-width: 0;
        }

        .search-box input[type="submit"] {
            padding: 8px 16px;
            background-color: #007bff;
            color: white;
            border: none;
            border-left: none;
            border-radius: 0 4px 4px 0;
            cursor: pointer;
            font-size: 14px;
        }

        .search-box input[type="submit"]:hover {
            background-color: #0069d9;
        }

        .header-nav ul {
            list-style: none;
            display: flex;
            gap: 16px;
            margin: 0;
            padding: 0;
        }

        .header-nav a {
            text-decoration: none;
            color: #212529;
            font-weight: 500;
            padding: 6px 10px;
            border-radius: 4px;
            transition: background 0.2s;
        }

        .header-nav a:hover {
            background-color: #ced4da;
        }

        /* 主体容器：两栏布局 */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
            display: grid;
            grid-template-columns: 1fr 310px;
            gap: 20px;
            /* 为固定头部留出空间 */
            margin-top: 90px; /* PC 端估算高度 */
    /* 额外增加上边距，使内容与头部之间有更多呼吸空间 */

    padding-top: 20px;        /* 在容器内部顶部增加 20px 内边距 */
        }

        .main-content {
            width: 100%;
        }

        .sidebar {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        section {
            margin-bottom: 30px;
        }

        h1 {
            font-size: 24px;
            margin-bottom: 16px;
            color: #2c3e50;
            border-bottom: 2px solid #e9ecef;
            padding-bottom: 8px;
        }

        h3 {
            font-size: 18px;
            margin-bottom: 7px;
            color: #2c3e50;
            border-bottom: 2px solid #e9ecef;
            padding-bottom: 6px;
        }

        .link-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
            gap: 10px;
        }

        .link-item {
            background: #fff;
            border: 1px solid #e0e0e0;
            border-radius: 6px;
            padding: 10px 8px;
            text-align: center;
            transition: all 0.2s;
        }

        .link-item a {
            color: #0d6efd;
            text-decoration: none;
            font-size: 14px;
            display: block;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .link-item:hover {
            background-color: #f1f8ff;
            transform: translateY(-2px);
            box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        }

        .link-item:hover a {
            color: #0056b3;
        }

        .footer {
            text-align: center;
            color: #6c757d;
            font-size: 13px;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #eee;
            grid-column: span 2;
        }

        .footer a {
            color: #6c757d;
            text-decoration: none;
        }

        .footer img {
            vertical-align: middle;
            margin-right: 4px;
        }

        /* 文章区域图片居中 + 响应式 */
        #article img {
            max-width: 100%;
            height: auto;
            border-radius: 4px;
            margin: 12px auto;
            display: block;
        }

        /* 防止长链接/URL 撑破容器 */
        #article,
        #article p,
        #article a,
        #article strong {
            word-wrap: break-word;
            overflow-wrap: break-word;
            word-break: break-word;
        }
 /* 增加----------------------------------------------------------- */
.yb-a .link-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
            gap: 7px;
        }
	
.yb-a {
    border: 1px solid #ddd;     /* 边框颜色和宽度 */
    border-radius: 8px;         /* 圆角（可选） */
    padding: 5px 5px;              /* 内边距，让内容不贴边 */
    background-color: #f8f9fa;     /* 背景色（可选，与整体风格一致） */
    margin: 0px 0px 8px 0px;        /* 保持与其他 section 一致的间距 */
}

/* 2. 仅该区块内的 link-item 去掉边框、背景等 */
.yb-a .link-item {
    border: none;
    background: transparent;
    box-shadow: none;
	padding: 2px 2px;/* 内边距：上下 10px，左右 8px，确保内容不贴边 */
	transition: all 0.2s; /* 所有可变属性（如hover效果）在0.2秒内平滑过渡 */
	 }		
.yb-a h3 {
  margin-left: 10px;
}
.yb-a .link-item a {
            color: #000;
            text-decoration: none;
            font-size: 16px;
	}
.yb-b {
    margin: 0px;        /* 保持与其他 section 一致的间距 */
}		
.yb-b .link-item a {
            color: #000;
            text-decoration: none;
            font-size: 16px;
	}
.fl-a {
    margin: 0px 0px 5px 0px;        /* 保持与其他 section 一致的间距 */
}
		
.fl-b {
     margin-bottom: 7px; 
}

.fl-b .link-item {
    padding: 4px 8px;
	background-color: #f8f9fa;
	 }	
.fl-b .link-item a {
            color: #6c757d;
            text-decoration: none;
            font-size: 14px;
	}
			
/* 	
.fl-c {
     margin-bottom: 7px; 
}

.fl-c .link-item {
    padding: 4px 8px;
	background-color: #f8f9fa;
	 }	
.fl-c .link-item a {
            color: #6c757d;
            text-decoration: none;
            font-size: 14px;
	}
	 */
.fl-c {
    border: 1px solid #ddd;     /* 边框颜色和宽度 */
    border-radius: 8px;         /* 圆角（可选） */
    padding-: 3px 0px;              /* 内边距，让内容不贴边 */
    background-color: #fff;     /* 背景色（可选，与整体风格一致） */
    margin-top: 18px;    /* 保持与其他 section 一致的间距 */
	margin-bottom: 12px;
}

/* 2. 仅该区块内的 link-item 去掉边框、背景等 */
.fl-c .link-item {
    border: none;
    background: transparent;
    box-shadow: none;
	padding: 18px 2px;/* 内边距：上下 10px，左右 8px，确保内容不贴边 */
	transition: all 0.2s; /* 所有可变属性（如hover效果）在0.2秒内平滑过渡 */
	 }
.fl-c .link-item a {
            color: #000;
            text-decoration: none;
            font-size: 16px;
	}	 
		
/* 栏目列表模板--------- */
.lb-a .link-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 8px;

        }

/* 让每个网格项内的文字左对齐 */
.lb-a .link-item {
            text-align: left;

        }
.lb-a .link-item a {
            color: #000;
            text-decoration: none;
            font-size: 16px;
	}	
/* 分页样式-------------------- */
        .pagination {
            text-align: center;
            margin-top: 20px;
            padding: 12px 0;
            font-size: 15px;
        }

        .pagination a,
        .pagination span {
            display: inline-block;
            padding: 6px 12px;
            margin: 0 4px;
            border: 1px solid #ddd;
            border-radius: 4px;
            text-decoration: none;
            color: #0d6efd;
            background: #fff;
        }

        .pagination span.current {
            background: #0d6efd;
            color: #fff;
            border-color: #0d6efd;
        }

        .pagination a:hover {
            background: #f1f8ff;
            color: #0056b3;
        }

/* 栏目列表模板结束 */	
/* 文章内容模板 */	
		
        .article-meta {
            font-size: 14px;
            color: #6c757d;
            margin: 12px 0 20px;
            padding-bottom: 12px;
            border-bottom: 1px dashed #ddd;
        }

        .article-content {
            background: #fff;
            padding: 24px;
            border-radius: 8px;
            border: 1px solid #e0e0e0;
            font-size: 17px;
            line-height: 1.8;
            color: #333;
        }

        .article-content p {
            margin-bottom: 16px;
        }

        .article-content img {
            max-width: 100%;
            height: auto;
            border-radius: 4px;
            margin: 12px 0;
        }

        .article-nav {
            margin-top: 24px;
            padding-top: 16px;
            border-top: 1px solid #eee;
            font-size: 15px;
            color: #6c757d;
        }

        .article-nav a {
            color: #0d6efd;
            text-decoration: none;
        }

        .article-nav a:hover {
            text-decoration: underline;
        }		
/* 文章内容模板结束*/		
		
		
 /* 增加----------------------------------------------------------- */		
.latest-ai-section .link-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
            gap: 7px;
        }				
		
		
/* 1. 给“最新AI网址”整个区块加外边框和内边距（可选美化） */
.latest-ai-section {
    border: 1px solid #ddd;     /* 边框颜色和宽度 */
    border-radius: 8px;         /* 圆角（可选） */
    padding: 5px 0px;              /* 内边距，让内容不贴边 */
    background-color: #f8f9fa;     /* 背景色（可选，与整体风格一致） */
    margin-bottom: 10px;        /* 保持与其他 section 一致的间距 */
}

/* 2. 仅该区块内的 link-item 去掉边框、背景等 */
.latest-ai-section .link-item {
    border: none;
    background: transparent;
    box-shadow: none;
	padding: 2px 2px;/* 内边距：上下 10px，左右 8px，确保内容不贴边 */
	transition: all 0.2s; /* 所有可变属性（如hover效果）在0.2秒内平滑过渡 */
	 }
.latest-ai-section h3 {
  margin-left: 10px;
}
.latest-ai-section .link-item a {
            color: #000;
            text-decoration: none;
            font-size: 16px;
	}		
		
.latest-ai-section .link-item a:hover{ background:#F00; color:#FFF}		
		
/* 默认（桌面端）：6列 */

.latest-ai-section .link-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 7px;
	}
/* 下拉*/		
.toggle-title {
  cursor: pointer;
  user-select: none;
}
.toggle-icon {
  float: right;
  transition: transform 0.3s;
}
.toggle-content {
  display: none;
  margin-top: 10px;
}
		
/*表单-------------------- */		
    .tabs-container {
      max-width: 100%;
      margin: 0 auto;
    }

    /* Tabs 导航栏容器 */
    .tabs {
      display: flex;
      overflow-x: auto; /* 允许横向滚动 */
      -webkit-overflow-scrolling: touch; /* iOS 平滑滚动 */
      scrollbar-width: none; /* Firefox 隐藏滚动条 */
      -ms-overflow-style: none; /* IE/Edge 隐藏滚动条 */
  	/* border-bottom: 1px solid #ddd; */ /* ← 已移除下划线 */
      padding-bottom: 4px;
      gap: 7px; /* 按钮间距 */
    }

    /* 隐藏滚动条（Webkit 浏览器如 Chrome/Safari） */
    .tabs::-webkit-scrollbar {
      display: none;
    }

    .tab-button {
      padding: 6px 15px;
      background: #f1f1f1; /* 按钮背景 */
      border: none;
      border-radius: 6px 6px 0 0;
      cursor: pointer;
      outline: none;
      white-space: nowrap; /* 防止文字换行 */
      min-width: fit-content; /* 内容多宽就多宽 */
      text-align: center;
      transition: all 0.2s ease;
    }

    .tab-button:hover,
    .tab-button:focus {
      background: #e0e0e0;
    }

    .tab-button.active {
      background: #007bff;
      color: white;
    }

    .tab-content {
      display: none;
      padding: 0;   
      background: #f8f9fa;
      min-height: 5px;
	  /*border-radius: 6px;  边框圆角*/
       /*border: 1px solid #ddd;边框颜色和宽度 */
    }

    .tab-content.active {
      display: block;
    }

    /* 在所有屏幕尺寸下都保持横向（不再使用媒体查询改为纵向） */		
		
/* 表单结束------------- */			
/* 左右双列布局容器开始 */
.dual-column-container {
  display: flex;
  gap: 10px;
  width: 100%;
}

.dual-column-container > div {
  flex: 1;
  min-width: 0; /* 防止 flex 子项溢出 */
}

/* 手机端：堆叠为两行 */
@media (max-width: 768px) {
  .dual-column-container {
    flex-direction: column;
    gap: 0px;
	  }
}		
/* 左右两列结束 */
        /* 响应式：小屏时恢复单列 */
        @media (max-width: 992px) {
            .container {
                grid-template-columns: 1fr;
                max-width: 100%;
                padding: 0 12px;
                margin-top: 100px; /* 移动端稍高 */
padding-top: 125px;        /* 在容器内部顶部增加 20px 内边距 */
            }

            .footer {
                grid-column: span 1;
            }
        }

        @media (max-width: 768px) {
            header {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
                padding: 10px 12px;
            }

            .search-box {
                width: 100%;
                max-width: none;
            }

            .search-box input[type="text"] {
                width: 100% !important;
                border-radius: 4px 4px 0 0;
            }

            .search-box input[type="submit"] {
                border-radius: 0 0 4px 4px;
                border-left: 1px solid #ccc;
            }

            .header-nav ul {
                flex-wrap: wrap;
                gap: 8px;
            }

            .link-grid {
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
                gap: 10px;
            }

            h1 {
                font-size: 20px;
            }

            /* 天气 iframe 响应式 */
            .header-weather iframe {
                width: 100% !important;
                max-width: 350px;
                height: 60px !important;
            }

            .container {
                margin-top: 120px; /* 移动端 header 可能两行，更高 */
            }
        }

        @media (max-width: 480px) {
            .link-grid {
                grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
            }

            .header-title h2 {
                font-size: 20px;
            }
			.latest-ai-section .link-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
            gap: 7px;
        }	/*新加 */
	    }
        