@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;
        }

        /* 固定头部 */
        header {
            position: sticky;
            top: 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;
        }

        .search-box input[type="text"] {
            flex: 1;
            padding: 6px 10px;
            border: 1px solid #ccc;
            border-radius: 4px 0 0 4px;
            font-size: 14px;
        }

        .search-box input[type="submit"] {
            padding: 6px 12px;
            background-color: #f3f3f3;
            border: 1px solid #ccc;
            border-left: none;
            border-radius: 0 4px 4px 0;
            cursor: pointer;
            font-size: 14px;
        }

        .search-box input[type="submit"]:hover {
            background-color: #e0e0e0;
        }

        .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: 66%;
            margin: 20px auto;
            padding: 0 15px;
            display: grid;
            grid-template-columns: 1fr 30%; /* 左主右侧栏，右侧固定300px ≈30% */
            gap: 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(100px, 1fr));
            gap: 12px;
        }

        .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横跨两列 */
        }

        .footer a {
            color: #6c757d;
            text-decoration: none;
        }

        .footer img {
            vertical-align: middle;
            margin-right: 4px;
        }

/* 百度搜索 */		
.search-box input[type="text"] {
    width: 500px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-box input[type="submit"] {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}
/* 百度搜索 */	
/* 图片 */	
#article img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 12px auto;   /* 左右 auto 实现水平居中 */
    display: block;      /* 必须设为 block，margin: auto 才生效 */
}
/* 图片 */	


/* 超链溢出 */	

#article a,
#article p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}
/* 超链溢出 */		

        /* 响应式：小屏时恢复单列 */
        @media (max-width: 992px) {
            .container {
                grid-template-columns: 1fr;
                max-width: 100%;
            }

            .footer {
                grid-column: span 1;
            }
        }

        @media (max-width: 768px) {
            header {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            .search-box {
                width: 100%;
                max-width: none;
            }

            .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;
            }
        }

        @media (max-width: 480px) {
            .link-grid {
                grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
            }
        }
   
