/* ============================================================
   skin936.css - 暗夜之舞
   风格: 明亮 | 主色: 7.4880000000121°
   5层色彩: 主色 + 辅色 + 背景 + 卡片 + 互补强调色
   移动端: 抽屉式侧边栏（左侧竖向按钮触发）
   ============================================================ */

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: hsl(352.48800000001, 33%, 69%);
    color: #1a2332;
    line-height: 1.8;
    font-size: 16px;
    transition: background 0.3s ease;
}

/* ===== 顶部导航 ===== */
.top-nav {
    background: hsl(7.4880000000121, 50%, 44%);
    padding: 15px 20px;
    text-align: center;
    border-bottom: 3px solid hsl(187.48800000001, 60%, 54%);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.16);
}

.top-nav a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 16px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 400;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
}

.top-nav a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* ===== 布局 ===== */
.layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 120px);
    background: hsl(352.48800000001, 33%, 69%);
}

/* ===== 侧边栏（桌面端默认） ===== */
.sidebar {
    width: 240px;
    min-width: 240px;
    background: hsl(17.488000000012, 33%, 79%);
    padding: 20px 16px;
    border-right: 1px solid hsla(187.48800000001, 60%, 54%, 0.3);
    height: 100%;
    position: sticky;
    top: 70px;
    overflow-y: auto;
    max-height: calc(100vh - 70px);
}

.sidebar .side-menu h3 {
    color: hsl(7.4880000000121, 50%, 44%);
    font-size: 16px;
    border-bottom: 2px solid hsl(7.4880000000121, 50%, 44%);
    padding-bottom: 10px;
    margin: 0 0 15px 0;
    font-weight: 400;
}

.sidebar .category-group h4 {
    color: #5a6a7a;
    font-size: 12px;
    font-weight: 600;
    margin: 8px 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar .category-group ul li a {
    display: block;
    color: #1a2332;
    padding: 6px 14px;
    margin-bottom: 3px;
    background: hsla(352.48800000001, 33%, 69%, 0.6);
    border-radius: 16px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.25s ease;
}

.sidebar .category-group ul li a:hover {
    background: hsl(7.4880000000121, 50%, 44%);
    color: #fff;
    transform: translateX(4px);
    box-shadow: 0 4px 15px hsla(7.4880000000121, 50%, 44%, 0.3);
}

/* ===== 主内容区 ===== */
.main-content {
    flex: 1;
    padding: 35px 45px;
    background: hsl(352.48800000001, 33%, 69%);
    min-width: 0;
}

/* ===== 首页样式 ===== */
.custom-block {
    background: linear-gradient(135deg, hsl(7.4880000000121, 50%, 44%), hsl(37.488000000012, 40%, 59%));
    color: #fff;
    padding: 24px 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.custom-block h2 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 400;
}

.custom-block p {
    text-indent: 0;
    color: rgba(255,255,255,0.92);
    font-size: 15px;
    margin: 0;
}

.platform-section {
    background: hsl(17.488000000012, 33%, 79%);
    padding: 18px 24px;
    margin-bottom: 24px;
    border-radius: 16px;
    border-left: 4px solid hsl(187.48800000001, 60%, 54%);
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}

.platform-section h2 {
    font-size: 17px;
    color: hsl(7.4880000000121, 50%, 44%);
    margin: 0 0 10px 0;
    font-weight: 400;
}

.platform-section ul li a {
    color: #1a2332;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.25s ease;
}

.platform-section ul li a:hover {
    color: hsl(7.4880000000121, 50%, 44%);
    transform: translateX(4px);
}

/* ===== 分类页样式 ===== */
.main-content > h1:first-child {
    font-size: 28px;
    font-weight: 400;
    color: #1a2332;
    border-bottom: 2px solid hsla(187.48800000001, 60%, 54%, 0.3);
    padding-bottom: 14px;
    margin: 0 0 20px 0;
}

.main-content > ul li a {
    display: block;
    padding: 10px 16px;
    background: hsl(17.488000000012, 33%, 79%);
    border-radius: 16px;
    color: #1a2332;
    text-decoration: none;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: all 0.25s ease;
    margin-bottom: 4px;
}

.main-content > ul li a:hover {
    background: hsl(7.4880000000121, 50%, 44%);
    color: #fff;
    transform: translateX(4px);
    box-shadow: 0 4px 15px hsla(7.4880000000121, 50%, 44%, 0.25);
}

/* ===== 详情页样式 ===== */
.main-content > h1:only-child {
    font-size: 30px;
    font-weight: 400;
    color: #1a2332;
    border-bottom: 3px solid hsl(7.4880000000121, 50%, 44%);
    padding-bottom: 18px;
    margin: 0 0 28px 0;
    line-height: 1.3;
}

.main-content p {
    font-size: 16.5px;
    line-height: 2;
    color: #1a2332;
    text-indent: 2em;
    letter-spacing: 0.3px;
    background: hsl(17.488000000012, 33%, 79%);
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    margin-bottom: 20px;
}

.main-content p a {
    color: hsl(7.4880000000121, 50%, 44%);
    text-decoration: none;
    border-bottom: 1px dashed hsl(7.4880000000121, 50%, 44%);
    transition: all 0.25s ease;
}

.main-content p a:hover {
    color: hsl(187.48800000001, 60%, 54%);
}

/* ===== 翻页导航 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid hsla(187.48800000001, 60%, 54%, 0.25);
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 16px;
    min-width: 40px;
    text-align: center;
    border-radius: 16px;
    font-size: 14px;
    text-decoration: none;
}

.pagination a {
    color: #1a2332;
    background: hsl(17.488000000012, 33%, 79%);
    border: 1px solid hsla(187.48800000001, 60%, 54%, 0.2);
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    transition: all 0.25s ease;
}

.pagination a:hover {
    background: hsl(7.4880000000121, 50%, 44%);
    color: #fff;
    border-color: hsl(7.4880000000121, 50%, 44%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px hsla(7.4880000000121, 50%, 44%, 0.2);
}

.pagination .active {
    background: hsl(7.4880000000121, 50%, 44%);
    color: #fff;
    border-color: hsl(7.4880000000121, 50%, 44%);
}

.pagination .disabled {
    color: #5a6a7a;
    background: hsl(352.48800000001, 33%, 69%);
    border: 1px solid hsla(187.48800000001, 60%, 54%, 0.15);
    cursor: not-allowed;
}

.pagination .ellipsis {
    color: #5a6a7a;
    background: transparent;
    border: none;
    padding: 8px 4px;
}

.pagination .goto {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5a6a7a;
    font-size: 13px;
    margin-left: 10px;
    padding: 6px 12px;
    background: hsl(17.488000000012, 33%, 79%);
    border-radius: 16px;
    border: 1px solid hsla(187.48800000001, 60%, 54%, 0.2);
}

.pagination .goto input[type="number"] {
    width: 50px;
    padding: 4px 6px;
    border: 1px solid hsla(187.48800000001, 60%, 54%, 0.2);
    border-radius: 4px;
    background: hsl(352.48800000001, 33%, 69%);
    color: #1a2332;
    font-size: 13px;
    text-align: center;
}

.pagination .goto input[type="number"]:focus {
    outline: none;
    border-color: hsl(7.4880000000121, 50%, 44%);
}

.pagination .goto button {
    padding: 4px 12px;
    border: none;
    border-radius: 4px;
    background: hsl(7.4880000000121, 50%, 44%);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.25s ease;
}

.pagination .goto button:hover {
    background: hsl(7.4880000000121, 50%, 34%);
}

/* ===== 历史热搜样式 ===== */
.history-hot {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid hsla(187.48800000001, 60%, 54%, 0.25);
}

.history-hot h3 {
    color: #5a6a7a;
    font-size: 16px;
    margin-bottom: 15px;
}

.history-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.history-tag {
    display: inline-block;
    padding: 5px 14px;
    background: hsl(17.488000000012, 33%, 79%);
    border: 1px solid hsla(187.48800000001, 60%, 54%, 0.2);
    border-radius: 20px;
    color: #1a2332;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.history-tag:hover {
    background: hsl(7.4880000000121, 50%, 44%);
    color: #fff;
    border-color: hsl(7.4880000000121, 50%, 44%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px hsla(7.4880000000121, 50%, 44%, 0.2);
}

/* ===== 底部推荐样式 ===== */
.footer-recommendations {
    padding: 15px 0 20px 0;
    border-bottom: 1px solid hsla(187.48800000001, 60%, 54%, 0.2);
    margin-bottom: 15px;
}

.footer-recommendations h4 {
    color: #5a6a7a;
    font-size: 14px;
    margin-bottom: 12px;
}

.recommend-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.rec-tag {
    display: inline-block;
    padding: 4px 12px;
    background: hsl(17.488000000012, 33%, 79%);
    border: 1px solid hsla(187.48800000001, 60%, 54%, 0.15);
    border-radius: 15px;
    color: #1a2332;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.rec-tag:hover {
    background: hsl(7.4880000000121, 50%, 44%);
    color: #fff;
    border-color: hsl(7.4880000000121, 50%, 44%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px hsla(7.4880000000121, 50%, 44%, 0.15);
}

/* ===== 时间信息样式 ===== */
.meta-info {
    background: hsl(17.488000000012, 33%, 79%);
    padding: 12px 18px;
    border-radius: 16px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #5a6a7a;
    border-left: 3px solid hsl(7.4880000000121, 50%, 44%);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.meta-info .trend-up { color: #4caf50; }
.meta-info .trend-down { color: #f44336; }
.meta-info .trend-stable { color: #ff9800; }

/* ===== 更新条目样式 ===== */
.update-entry {
    border-left: 3px solid hsl(7.4880000000121, 50%, 44%);
    padding-left: 15px;
    margin: 15px 0;
    background: hsla(17.488000000012, 33%, 79%, 0.4);
    border-radius: 16px;
}

.update-entry p {
    text-indent: 0 !important;
    margin-bottom: 10px !important;
}

/* ===== 底部 ===== */
.footer {
    text-align: center;
    padding: 20px;
    color: #5a6a7a;
    background: hsl(17.488000000012, 33%, 79%);
    font-size: 13px;
    border-top: 1px solid hsla(187.48800000001, 60%, 54%, 0.15);
}

/* ===== 桌面端隐藏竖向按钮 ===== */
.sidebar-tab {
    display: none;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .main-content { padding: 25px 30px; }
}

@media (max-width: 768px) {
    /* ===== 布局改为纵向（侧边栏不占布局流） ===== */
    .layout {
        flex-direction: column;
        min-height: auto;
    }

    /* ===== 移动端侧边栏：抽屉式，默认隐藏在左侧屏幕外 ===== */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 260px;
        max-width: 80%;
        height: 100vh;
        max-height: 100vh;
        background: hsl(17.488000000012, 33%, 79%);
        padding: 20px 16px;
        border-right: 1px solid hsla(187.48800000001, 60%, 54%, 0.3);
        overflow-y: auto;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    /* ===== 遮罩层：默认隐藏，展开时显示 ===== */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }

    .sidebar-overlay.show {
        display: block;
    }

    /* ===== 移动端竖向按钮：固定在左侧边缘，竖向文字 ===== */
    .sidebar-tab {
        display: block;
        position: fixed;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 997;
        background: hsl(7.4880000000121, 50%, 44%);
        color: #fff;
        padding: 15px 6px;
        border-radius: 0 6px 6px 0;
        cursor: pointer;
        font-size: 14px;
        letter-spacing: 2px;
        writing-mode: vertical-rl;
        text-orientation: upright;
        box-shadow: 2px 0 8px rgba(0,0,0,0.3);
    }

    .sidebar-tab span {
        display: block;
    }

    /* ===== 侧边栏内部元素 ===== */
    .sidebar .side-menu h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }
    .sidebar .category-group {
        margin-bottom: 12px;
    }
    .sidebar .category-group h4 {
        font-size: 11px;
    }
    .sidebar .category-group ul li a {
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 4px;
        background: hsla(352.48800000001, 33%, 69%, 0.4);
    }
    .sidebar .category-group ul li a:hover {
        padding-left: 16px;
        background: hsl(7.4880000000121, 50%, 44%);
        color: #fff;
    }

    /* ===== 主内容区占满宽度，不被挤压 ===== */
    .main-content {
        flex: 1;
        min-width: 0;
        padding: 16px 12px;
    }

    /* ===== 顶部导航栏换行 ===== */
    .top-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        padding: 10px 8px;
    }
    .top-nav a {
        margin: 0;
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 4px;
        white-space: nowrap;
    }

    /* ===== 搜索表单占一行 ===== */
    .top-nav .search-form {
        margin: 5px 0;
        width: 100%;
        justify-content: center;
    }
    .top-nav .search-form input[type="text"] {
        flex: 1;
        width: auto;
        min-width: 0;
    }

    /* ===== 其他移动端优化 ===== */
    .main-content > h1:first-child { font-size: 20px; }
    .main-content > h1:only-child { font-size: 22px; }
    .main-content p { font-size: 14.5px; padding: 10px 14px; text-indent: 1.5em; }
    .custom-block { padding: 16px 18px; border-radius: 6px; }
    .custom-block h2 { font-size: 18px; }
    .platform-section { padding: 12px 16px; border-radius: 6px; }
    .platform-section h2 { font-size: 15px; }
    .pagination { gap: 3px; }
    .pagination a, .pagination span { padding: 4px 8px; min-width: 26px; font-size: 11px; }
    .pagination .goto { font-size: 11px; padding: 3px 6px; margin-left: 0; margin-top: 6px; }
    .pagination .goto input[type="number"] { width: 36px; font-size: 11px; }
    .history-tags { gap: 5px; }
    .history-tag { padding: 4px 10px; font-size: 12px; }
    .recommend-tags { gap: 4px; }
    .rec-tag { padding: 3px 10px; font-size: 11px; }
    .meta-info { padding: 8px 10px; font-size: 12px; gap: 5px 10px; }
    .update-entry { padding-left: 10px; margin: 10px 0; }
    .footer { padding: 15px 10px; font-size: 12px; }
}

@media (max-width: 480px) {
    /* 小屏微调 */
    .sidebar {
        width: 220px;
        padding: 15px 10px;
    }
    .main-content { padding: 12px 8px; }
    .main-content > h1:first-child { font-size: 18px; }
    .main-content > h1:only-child { font-size: 20px; }
    .main-content p { font-size: 13.5px; padding: 8px 10px; text-indent: 1.2em; }
    .top-nav a { padding: 5px 10px; font-size: 11px; }
    .custom-block { padding: 12px 14px; }
    .platform-section { padding: 10px 12px; }
    .pagination a, .pagination span { padding: 3px 6px; min-width: 22px; font-size: 10px; }
    .pagination .goto { display: none; }
    .history-hot h3 { font-size: 14px; }
    .history-tag { font-size: 11px; padding: 3px 8px; }
    .rec-tag { font-size: 10px; padding: 2px 8px; }
    .meta-info { font-size: 11px; flex-direction: column; gap: 4px; }
}