﻿<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>小报童精选专栏导航</title>
  <style>
     body {
        margin: 0;
        padding: 0;
        font-family: Arial, sans-serif;
        background-color: #fafafa;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        color: #1d1d1d;
    }

    a {
        text-decoration: none;
        color: inherit;
    }

    header {
        display: flex;
        align-items: center;
        padding: 20px;
        background-color: #ffffff;
        width: 100%;
        box-sizing: border-box;
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .logo-container {
        display: flex;
        align-items: center;
    }

    .logo {
        height: 2.8em;
        width: auto;
        margin-right: 10px;
        margin-top: 10px;
    }

    header h1 {
        margin: 0;
        color: #1d1d1d;
        font-size: 2.4em;
        white-space: nowrap;
    }

    header input {
        padding: 10px;
        width: 100%;
        max-width: 800px;
        border: 1px solid #b0b0b0;
        border-radius: 5px;
        font-size: 18px;
        box-sizing: border-box;
        margin-top: 10px;
    }

    #tags {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin: 5px auto;
        width: 100%;
        padding: 0 5px;
    }

    .tag {
        margin: 5px;
        padding: 5px 10px;
        background-color: #ffffff;
        font-size: 16px;
        color: #1d1d1d;
        border: 2px dashed #1d1d1d;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s, border-color 0.3s; /* 添加边框颜色变化 */
    }

    .tag:hover,
    .tag.selected {
        background-color: #1d1d1d;
        color: #ffffff;
        border-color: #ffffff; /* 点击后的边框颜色变化 */
    }

    #card-count {
        color: #e63946;
        padding: 10px;
        border-radius: 5px;
        margin: 5px 0;
        font-size: 20px;
        text-align: center;
    }

    #content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
        justify-items: center;
        justify-content: space-between;
    }

    .card {
        background-color: #ffffff;
        border-radius: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        transition: transform 0.2s;
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 350px;
        max-height: 300px; /* 固定卡片最大高度 */
    }

    .card:hover {
        transform: scale(1.05);
    }

    .card-content {
        padding: 15px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .uppart {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 10px;
    }

    .data {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        flex-grow: 1;
    }

    .datacell {
        flex: 1;
        text-align: right;
        color: #0066cc;
    }

    span.word {
        color: #999;
    }

    .maincontent h2 {
        font-size: 20px;
        margin: 10px 0;
        color: #e63946;
    }

    .maincontent p {
        font-size: 16px;
        color: #666;
    }

    .details {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding-right: 10px;
    }

    h3 {
        margin: 10px 0;
        font-size: 20px;
        color: #e63946;
        text-align: right;
        cursor: pointer;
    }

    .pagination {
        display: flex;
        justify-content: center;
        margin: 20px 0;
        width: 100%;
        padding: 10px 0;
        z-index: 100;
        flex-wrap: wrap;
    }

    .page-button {
        margin: 0 5px;
        padding: 10px 15px;
        border: 1px solid #b0b0b0;
        border-radius: 5px;
        cursor: pointer;
        background-color: #ffffff;
        transition: background-color 0.3s;
    }

    .page-button:hover {
        background-color: #f2f2f2;
    }

    main {
        flex: 1 0 auto; /* 还原为原式样 */
    }

    .footer {
        padding: 5px; /* 还原为原式样 */
        text-align: center;
        background-color: #ffffff;
        box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

    @media screen and (max-width: 768px) {
        #content {
            grid-template-columns: 1fr;
        }
        header {
            flex-direction: column;
            align-items: center;
        }
        .logo {
            height: 1.6em;
            width: auto;
            margin-right: 5px;
        }
        header h1 {
            text-align: center;
            font-size: 1.6em;
        }
        header input {
            margin-top: 10px;
            width: 90%;
            font-size: 14px;
        }
        .footer p {
            font-size: 8px; /* 还原为原式样 */
            line-height: 1.0; /* 还原为原式样 */
            margin: 0; /* 还原为原式样 */
            max-height: 30px; /* 还原为原式样 */
            overflow: hidden; /* 还原为原式样 */
        }
    }
  </style>
</head>
<body>
    <header>
        <div class="logo-container">
            <a href="/">
                <img src="/favicon-48x48.webp" alt="Logo" class="logo" width="48" height="48">
            </a>
            <h1>小报童精选内容导航</h1>
        </div>
        <input type="text" id="search-bar" placeholder="搜索小报童专栏、作者、关键词等" aria-label="搜索栏">
    </header>
    <div class="content" id="content">
        <!-- 卡片内容将由JavaScript动态加载 -->
    </div>
    <footer class="footer">
        <p>隐私政策 本站和小报童官方网站没有任何直接关系，本站不会收集任何个人信息。</p>
        <p>&copy; 2024 ixue.org 保留所有权利</p>
    </footer>
</body>
</html>
