/* ============================================================
   heie.cn 全站合并样式（main.css）
   包含：基础重置 / 顶部导航 / 页脚 / 通用组件 / 各模块页面样式
   页面主题通过 body 类名区分：page-home / page-blue / page-purple / page-orange / page-green
   ============================================================ */

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    font-size: 14px;
    line-height: 1.7;
}
a { color: #1677ff; text-decoration: none; transition: color .2s, background .2s; }
a:hover { color: #0958d9; }
img { max-width: 100%; vertical-align: middle; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.4; }
input, button { font-family: inherit; outline: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 8px; padding-bottom: 12px; }

/* ---------- 顶部导航栏（公共样式，各功能页复用） ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e9edf2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    height: 64px;
    flex-wrap: nowrap;
    gap: 20px;
}
.logo { flex-shrink: 0; margin-right: 8px; }
.logo a {
    font-size: 22px;
    font-weight: 700;
    color: #1677ff;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #1677ff, #4096ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo a:hover { opacity: .85; }

.site-nav { flex: 1; min-width: 0; overflow: hidden; }
.site-nav ul { display: flex; flex-wrap: nowrap; }
.site-nav li { margin-right: 28px; flex-shrink: 0; }
.site-nav a {
    display: block;
    padding: 6px 2px;
    color: #444;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.site-nav a:hover { color: #1677ff; border-bottom-color: #1677ff; }

/* 顶部搜索框 */
.header-search {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 240px;
    height: 36px;
    border: 1px solid #d9d9d9;
    border-radius: 18px;
    overflow: hidden;
    background: #fafafa;
    transition: border-color .2s, box-shadow .2s;
}
.header-search:focus-within {
    border-color: #1677ff;
    box-shadow: 0 0 0 2px rgba(22, 119, 255, .12);
    background: #fff;
}
.header-search input {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0 12px 0 16px;
    font-size: 13px;
    color: #333;
}
.header-search input::placeholder { color: #bbb; }
.header-search button {
    height: 100%;
    border: none;
    background: linear-gradient(135deg, #1677ff, #4096ff);
    color: #fff;
    padding: 0 16px;
    font-size: 13px;
    cursor: pointer;
    transition: opacity .2s;
}
.header-search button:hover { opacity: .9; }

/* ---------- 页脚 ---------- */
.site-footer {
    background: #1f2937;
    color: #9ca3af;
    margin-top: 40px;
    padding: 32px 0 24px;
    font-size: 13px;
}
.site-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin-bottom: 16px;
}
.site-footer .footer-links a { color: #d1d5db; font-size: 14px; }
.site-footer .footer-links a:hover { color: #4096ff; }
.site-footer .footer-note {
    text-align: center;
    color: #6b7280;
    margin-bottom: 10px;
    font-size: 12px;
}
.site-footer .footer-copy {
    text-align: center;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.9;
}
.site-footer .footer-copy a { color: #9ca3af; }
.site-footer .footer-copy a:hover { color: #4096ff; }

/* 旧 footer 兼容（.foot 类） */
.foot {
    background: #1f2937;
    color: #9ca3af;
    margin-top: 40px;
    padding: 28px 16px;
    text-align: center;
    font-size: 13px;
}
.foot p { margin: 6px 0; color: #6b7280; }
.foot a { color: #9ca3af; }
.foot a:hover { color: #4096ff; }

/* ---------- 通用组件 ---------- */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 6px;
    background: linear-gradient(135deg, #1677ff, #4096ff);
    color: #fff;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
}
.btn:hover { opacity: .9; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-outline {
    background: transparent;
    border: 1px solid #1677ff;
    color: #1677ff;
}
.btn-outline:hover { background: #1677ff; color: #fff; }

.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    background: #f0f5ff;
    color: #1677ff;
    font-size: 12px;
    margin: 2px 4px 2px 0;
}

/* 回到顶部 */
.back-top {
    position: fixed;
    right: 24px;
    bottom: 40px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    color: #1677ff;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99;
    transition: all .2s;
}
.back-top:hover { background: #1677ff; color: #fff; border-color: #1677ff; }
.back-top.show { display: flex; }

/* ---------- 面包屑 ---------- */
.crumb {
    padding: 14px 0 10px;
    color: #888;
    font-size: 13px;
}
.crumb a { color: #666; }
.crumb a:hover { color: #1677ff; }
.crumb span { color: #333; }

/* ---------- 通用卡片 ---------- */
.card {
    background: #fff;
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
    transition: box-shadow .25s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .08); }
.card-title {
    display: inline-block;
    font-size: 18px;
    color: #222;
    padding-bottom: 10px;
    margin-bottom: 18px;
    position: relative;
}
.card-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #1677ff, #4096ff);
}

/* ---------- 索引页：搜索横幅（通用结构） ---------- */
.hero-banner {
    border-radius: 12px;
    padding: 40px 36px 36px;
    margin-bottom: 22px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero-banner::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}
.hero-banner::before {
    content: '';
    position: absolute;
    right: 60px;
    bottom: -60px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
}
.hero-banner h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}
.hero-banner .hero-desc {
    font-size: 15px;
    opacity: .9;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}
.hero-search {
    display: flex;
    max-width: 520px;
    height: 46px;
    border-radius: 23px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    position: relative;
    z-index: 1;
}
.hero-search input {
    flex: 1;
    border: none;
    padding: 0 20px;
    font-size: 15px;
    color: #333;
}
.hero-search input::placeholder { color: #bbb; }
.hero-search button {
    border: none;
    color: #fff;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
}

/* 统计数字 */
.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 22px;
    position: relative;
    z-index: 1;
}
.hero-stats .stat-item { text-align: left; }
.hero-stats .stat-num {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}
.hero-stats .stat-label {
    font-size: 13px;
    opacity: .85;
    margin-top: 2px;
}

/* ---------- 索引页：词语网格 ---------- */
.cd-grid {
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}
.cd-grid li {
    width: 25%;
    padding: 5px 8px;
}
.cd-grid li a {
    display: block;
    color: #444;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    border: 1px solid transparent;
    transition: all .2s;
}
.cd-grid li a:hover {
    background: #eef4ff;
    color: #1677ff;
    border-color: #d6e4ff;
}

/* ---------- 文章页 ---------- */
.cd-title {
    font-size: 28px;
    color: #1a1a1a;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 700;
}
.cd-meta {
    color: #999;
    font-size: 13px;
    margin-bottom: 16px;
}
.cd-meta span { margin-right: 18px; }
.cd-detail {
    font-size: 15px;
    color: #444;
    word-break: break-word;
    line-height: 1.9;
}
.cd-detail p { margin-bottom: 12px; }
.cd-detail strong, .cd-detail b { color: #1a1a1a; }

/* 标签云（成语接龙 / 相关词语 / 相关典故） */
.cd-tags {
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cd-tags li {
    width: auto;
    padding: 0;
}
.cd-tags li a {
    display: inline-block;
    color: #1677ff;
    padding: 6px 14px;
    background: #f0f5ff;
    border-radius: 16px;
    font-size: 13px;
    white-space: nowrap;
    transition: all .2s;
    border: 1px solid #d6e4ff;
}
.cd-tags li a:hover {
    background: #1677ff;
    color: #fff;
    border-color: #1677ff;
}

/* 相关链接（两列） */
.cd-links {
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}
.cd-links li {
    width: 50%;
    padding: 4px 8px;
}
.cd-links li a {
    display: block;
    color: #444;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    transition: all .2s;
}
.cd-links li a:hover {
    background: #f5f7fa;
    color: #1677ff;
    padding-left: 14px;
}

/* ---------- 分页（通用） ---------- */
.pagination {
    margin-top: 20px;
    text-align: center;
}
.pagination li {
    display: inline-block;
    margin: 0 4px;
}
.pagination li a {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    transition: all .2s;
}
.pagination li a:hover {
    border-color: #1677ff;
    color: #1677ff;
}
.pagination li.thisclass {
    display: inline-block;
    padding: 6px 14px;
    background: #1677ff;
    color: #fff;
    border: 1px solid #1677ff;
    border-radius: 4px;
    font-size: 14px;
}

/* ============================================================
   页面主题：蓝色（词典 / 成语 / 典故 / 电子书）
   ============================================================ */
.page-blue .hero-banner {
    background: linear-gradient(135deg, #1677ff 0%, #4096ff 50%, #69b1ff 100%);
}
.page-blue .hero-search button {
    background: #1677ff;
}
.page-blue .hero-search button:hover { background: #0958d9; }
.page-blue .card {
    transition: box-shadow .25s, transform .25s;
}
.page-blue .card-title::after {
    background: linear-gradient(90deg, #1677ff, #4096ff);
}

/* ---------- 电子书特有样式 ---------- */
.book-detail { display: flex; gap: 28px; flex-wrap: wrap; }
.book-cover { flex-shrink: 0; }
.book-cover img {
    width: 140px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.book-meta { flex: 1; min-width: 280px; }
.book-title { font-size: 24px; color: #1a1a1a; margin-bottom: 10px; font-weight: 700; }
.book-author { color: #666; font-size: 15px; margin-bottom: 12px; }
.book-desc { color: #555; font-size: 14px; line-height: 1.8; margin-bottom: 16px; }
.book-tags { margin-bottom: 18px; }
.book-tags a {
    display: inline-block;
    padding: 4px 12px;
    margin: 0 6px 6px 0;
    background: #f0f5ff;
    color: #1677ff;
    border-radius: 14px;
    font-size: 13px;
    border: 1px solid #d6e4ff;
    transition: all .2s;
}
.book-tags a:hover { background: #1677ff; color: #fff; border-color: #1677ff; }
.book-download-bar { display: flex; gap: 12px; flex-wrap: wrap; }

/* 书籍列表 */
.book-list { overflow: hidden; }
.book-list li {
    padding: 8px 10px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.book-list li:last-child { border-bottom: none; }
.book-list li a {
    color: #333;
    font-size: 14px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.book-list li a:hover { color: #1677ff; }
.book-list li span {
    color: #999;
    font-size: 13px;
    flex-shrink: 0;
    margin-left: 12px;
}

/* 下载页 */
.download-list { overflow: hidden; }
.download-list li {
    float: left;
    width: 50%;
    padding: 8px 10px;
}
.download-list li a {
    display: block;
    padding: 12px 16px;
    background: #f6f9ff;
    border: 1px solid #d6e4ff;
    border-radius: 6px;
    color: #1677ff;
    font-size: 14px;
    text-align: center;
    transition: all .2s;
}
.download-list li a:hover {
    background: #1677ff;
    color: #fff;
    border-color: #1677ff;
}

/* ============================================================
   页面主题：紫色（历史上的今天）
   ============================================================ */
.page-purple .hero-banner {
    background: linear-gradient(135deg, #722ed1 0%, #9254de 50%, #b37feb 100%);
}
.page-purple .hero-search button {
    background: #722ed1;
}
.page-purple .hero-search button:hover { background: #531dab; }
.page-purple .card-title::after {
    background: linear-gradient(90deg, #1677ff, #4096ff);
}

/* 历史事件列表 */
.history-list { overflow: hidden; }
.history-list li {
    padding: 12px 10px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: baseline;
    gap: 10px;
    line-height: 1.7;
}
.history-list li:last-child { border-bottom: none; }
.history-list li a {
    color: #333;
    font-size: 15px;
    flex: 1;
}
.history-list li a:hover { color: #722ed1; }
.history-list li span {
    color: #999;
    font-size: 13px;
    flex-shrink: 0;
}

/* ============================================================
   页面主题：橙色（蜘蛛IP）
   ============================================================ */
.page-orange .card-title::after {
    background: linear-gradient(90deg, #fa8c16, #ffa940);
}
.page-orange .pagination li a:hover {
    border-color: #fa8c16;
    color: #fa8c16;
}
.page-orange .pagination li.thisclass {
    background: #fa8c16;
    border-color: #fa8c16;
}

/* 蜘蛛类型筛选 */
.spider-types { overflow: hidden; }
.spider-types a {
    display: inline-block;
    padding: 8px 18px;
    margin: 0 8px 8px 0;
    background: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
    border-radius: 6px;
    font-size: 14px;
    transition: all .2s;
}
.spider-types a:hover {
    background: #fa8c16;
    color: #fff;
    border-color: #fa8c16;
}

/* IP 列表 */
.spider-ip-list {
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}
.spider-ip-list li {
    width: 25%;
    padding: 6px 8px;
}
.spider-ip-list li a {
    display: block;
    color: #444;
    padding: 8px 12px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    font-size: 14px;
    font-family: "Courier New", monospace;
    text-align: center;
    transition: all .2s;
}
.spider-ip-list li a:hover {
    background: #fff7e6;
    color: #fa8c16;
    border-color: #ffd591;
}

/* ============================================================
   页面主题：绿色（网址库）
   ============================================================ */
.page-green .hero-banner {
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 50%, #95de64 100%);
}
.page-green .hero-search button {
    background: #52c41a;
}
.page-green .hero-search button:hover { background: #389e0d; }
.page-green .card-title::after {
    background: linear-gradient(90deg, #52c41a, #73d13d);
}
.page-green .btn {
    background: linear-gradient(135deg, #52c41a, #73d13d);
}

/* 详情页 */
.site-title { font-size: 24px; color: #1a1a1a; margin-bottom: 12px; font-weight: 700; }
.site-meta { color: #888; font-size: 13px; margin-bottom: 16px; }
.site-meta span { margin-right: 20px; }
.site-url-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 8px;
    flex-wrap: wrap;
}
.url-label { color: #666; font-size: 14px; flex-shrink: 0; }
.site-url {
    color: #52c41a;
    font-size: 14px;
    word-break: break-all;
    flex: 1;
    min-width: 200px;
}
.site-url:hover { text-decoration: underline; }

.site-desc { font-size: 15px; color: #444; line-height: 1.9; word-break: break-word; }
.site-ai {
    font-size: 15px;
    color: #444;
    line-height: 1.9;
    padding: 14px 18px;
    background: #f6ffed;
    border-left: 4px solid #52c41a;
    border-radius: 4px;
}

/* 网址列表 */
.site-list { overflow: hidden; }
.site-list li {
    padding: 10px 12px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.site-list li:last-child { border-bottom: none; }
.site-list li a {
    color: #333;
    font-size: 14px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.site-list li a:hover { color: #52c41a; }
.site-list li span {
    color: #999;
    font-size: 13px;
    flex-shrink: 0;
}

/* 网站权重（横排） */
.qz-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.qz-item {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
    flex: 1;
    min-width: 100px;
}
.qz-name { font-size: 13px; color: #888; margin-bottom: 10px; }
.qz-val {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin-bottom: 4px;
}
.qz-val img {
    height: 24px;
    width: auto;
    display: block;
}
.qz-ip { font-size: 12px; color: #999; margin-top: 4px; }

/* ============================================================
   页面主题：首页（page-home）
   ============================================================ */
.page-home .home-hero {
    text-align: center;
    padding: 80px 20px 60px;
}
.page-home .home-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: 2px;
}
.page-home .home-subtitle {
    font-size: 16px;
    color: #888;
    margin-bottom: 40px;
}

/* 首页大搜索框 */
.page-home .home-search {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 0;
}
.page-home .home-search input {
    flex: 1;
    height: 52px;
    padding: 0 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 26px 0 0 26px;
    outline: none;
    transition: border-color 0.2s;
}
.page-home .home-search input:focus {
    border-color: #1677ff;
}
.page-home .home-search button {
    height: 52px;
    padding: 0 32px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #1677ff;
    border: 2px solid #1677ff;
    border-radius: 0 26px 26px 0;
    cursor: pointer;
    transition: background 0.2s;
}
.page-home .home-search button:hover {
    background: #0958d9;
    border-color: #0958d9;
}

/* 万年历模块（hero-banner 蓝色渐变风格，四列横向布局） */
.page-home .wannianli-box {
    width: 100%;
    background: linear-gradient(135deg, #1677ff 0%, #4096ff 50%, #69b1ff 100%);
    border-radius: 12px;
    padding: 28px 32px;
    margin: 0 0 40px;
    box-sizing: border-box;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-home .wannianli-box::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}
.page-home .wannianli-box::before {
    content: '';
    position: absolute;
    right: 60px;
    bottom: -60px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
}
.page-home .wnl-main {
    display: flex;
    gap: 0;
    position: relative;
    z-index: 1;
}
.page-home .wnl-col {
    padding: 6px 24px;
    box-sizing: border-box;
}
.page-home .wnl-col + .wnl-col {
    border-left: 1px solid rgba(255,255,255,.15);
}
.page-home .wnl-solar {
    text-align: center;
    min-width: 140px;
    flex-shrink: 0;
}
.page-home .wnl-day {
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}
.page-home .wnl-ym {
    font-size: 15px;
    color: rgba(255,255,255,.9);
    margin-top: 6px;
}
.page-home .wnl-week {
    font-size: 14px;
    color: rgba(255,255,255,.75);
    margin-top: 4px;
}
.page-home .wnl-info {
    flex: 1;
    min-width: 0;
}
.page-home .wnl-lunar-date {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}
.page-home .wnl-ganzhi {
    font-size: 14px;
    color: rgba(255,255,255,.85);
    margin-bottom: 8px;
}
.page-home .wnl-extra {
    font-size: 13px;
    color: rgba(255,255,255,.75);
    margin-bottom: 6px;
    line-height: 1.6;
}
.page-home .wnl-festival {
    display: inline-block;
    font-size: 13px;
    color: #fff;
    background: rgba(255,255,255,.18);
    padding: 2px 10px;
    border-radius: 4px;
    margin-top: 4px;
}
.page-home .wnl-yiji-col {
    min-width: 200px;
    max-width: 260px;
    flex-shrink: 0;
}
.page-home .wnl-yiji-title {
    margin-bottom: 10px;
}
.page-home .wnl-tag {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    color: #fff;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
}
.page-home .wnl-tag-yi { background: #52c41a; }
.page-home .wnl-tag-ji { background: #ff4d4f; }
.page-home .wnl-yiji-text {
    font-size: 14px;
    color: rgba(255,255,255,.9);
    line-height: 1.8;
    word-break: break-all;
}

/* 首推链接模块 */
.page-home .index-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}
.page-home .index-link-card {
    display: block;
    flex: 1;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 18px 20px;
    text-decoration: none;
    transition: all 0.2s;
    box-sizing: border-box;
}
.page-home .index-link-card:hover {
    border-color: #1677ff;
    box-shadow: 0 4px 16px rgba(22,119,255,.12);
    transform: translateY(-2px);
}
.page-home .link-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
}
.page-home .link-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .header-search { width: 180px; }
    .site-nav li { margin-right: 18px; }
    .page-home .wnl-main { flex-wrap: wrap; }
    .page-home .wnl-col {
        width: 50%;
        border-left: none !important;
        border-bottom: 1px solid rgba(255,255,255,.15);
    }
    .page-home .wnl-yiji-col { max-width: none; }
}

@media (max-width: 768px) {
    .header-inner { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 10px; }
    .logo { width: auto; margin-right: 0; }
    .site-nav { width: 100%; order: 3; }
    .site-nav ul { flex-wrap: wrap; }
    .site-nav li { margin: 0 16px 6px 0; }
    .header-search { width: 100%; order: 2; }
    .container { padding: 0 12px; }

    .hero-banner { padding: 28px 20px 24px; }
    .hero-banner h1 { font-size: 22px; }
    .hero-banner .hero-desc { font-size: 13px; }
    .hero-search { height: 40px; }
    .hero-search button { padding: 0 18px; font-size: 14px; }
    .hero-stats { gap: 20px; margin-top: 16px; }
    .hero-stats .stat-num { font-size: 20px; }
    .cd-grid li { width: 50%; }
    .cd-links li { width: 100%; }
    .cd-title { font-size: 22px; }
    .card { padding: 18px 16px; }
    .card-title { font-size: 16px; }

    /* 电子书 */
    .book-detail { flex-direction: column; align-items: center; text-align: center; }
    .book-meta { text-align: left; }
    .book-download-bar { justify-content: center; }
    .download-list li { width: 100%; }

    /* 历史上的今天 */
    .history-list li { flex-wrap: wrap; }

    /* 蜘蛛IP */
    .spider-ip-list li { width: 50%; }
    .spider-types a { padding: 6px 12px; font-size: 13px; }

    /* 网址库 */
    .site-title { font-size: 20px; }
    .site-url-bar { flex-direction: column; align-items: flex-start; }
    .qz-grid { grid-template-columns: repeat(2, 1fr); }

    /* 首页 */
    .page-home .home-hero { padding: 50px 16px 40px; }
    .page-home .home-title { font-size: 28px; }
    .page-home .home-subtitle { font-size: 14px; margin-bottom: 28px; }
    .page-home .home-search { max-width: 100%; }
    .page-home .home-search input { height: 44px; font-size: 14px; padding: 0 16px; }
    .page-home .home-search button { height: 44px; padding: 0 20px; font-size: 14px; }
    .page-home .wannianli-box { padding: 20px 16px; }
    .page-home .wnl-col { width: 100%; }
    .page-home .wnl-day { font-size: 44px; }
    .page-home .wnl-solar { min-width: auto; }
}
