/* ============================================================
   heie.cn 功能站页面样式（cidian / chengyu / diangu 共用）
   静态资源域名: img.heie.cn（绑定 heiehtml/img 目录）
   ============================================================ */

/* ---------- 面包屑 ---------- */
.crumb {
    padding: 14px 0 10px;
    color: #888;
    font-size: 13px;
}
.crumb a { color: #666; }
.crumb a:hover { color: #1677ff; }
.crumb span { color: #333; }

/* ---------- 索引页：搜索横幅 ---------- */
.hero-banner {
    background: linear-gradient(135deg, #1677ff 0%, #4096ff 50%, #69b1ff 100%);
    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;
    background: #1677ff;
    color: #fff;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
}
.hero-search button:hover { background: #0958d9; }

/* 统计数字 */
.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;
}

/* ---------- 通用卡片 ---------- */
.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, transform .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);
}

/* ---------- 索引页：词语网格 ---------- */
.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;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .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; }
}
