/* 汉语词典详情页 */

/* 词语图片卡 */
.ci-word-card {
    margin-bottom: 1.5rem;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}
.ci-word-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: #f0ece0;
}

/* 发音按钮 */
.ci-speak-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 1.3rem;
    line-height: 1;
    vertical-align: middle;
    color: #f59e0b;
}
.ci-speak-btn:hover { color: #d97706; }

/* 搜索框 */
.ci-search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}
.ci-search-bar input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Noto Sans SC', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}
.ci-search-bar input:focus { border-color: #2563eb; }
.ci-search-bar button {
    padding: 10px 20px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
}
.ci-search-bar button:hover { background: #1d4ed8; }

/* 词头卡片 */
.ci-header {
    background: #f8faff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    padding: 1.2rem 1.6rem;
    margin-bottom: 1.2rem;
}
.ci-title { font-size: 2rem; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
.ci-pinyin { font-size: 1.05rem; color: #2563eb; margin-bottom: 6px; }
.ci-wordclass { display: flex; gap: 6px; flex-wrap: wrap; }
.ci-wordclass span {
    background: #e0e7ff; color: #3730a3;
    font-size: 0.78rem; padding: 2px 8px; border-radius: 4px;
}

/* 释义区块（白色区域内） */
.ci-section { margin-bottom: 1.2rem; }
.ci-section-title {
    font-size: 0.95rem; font-weight: 600; color: #333;
    border-left: 3px solid #2563eb; padding-left: 10px; margin-bottom: 6px;
}
.ci-section p { color: #444; line-height: 1.75; margin: 0; }

/* ── 下方内容区（白底） ── */
.ci-bottom {
    background: #fff;
    border-top: 1px solid #f0f0f0;
    padding: 1.5rem 0 2rem;
}
.ci-block { margin-bottom: 1.6rem; }
.ci-block-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.6rem;
}

/* 彩色标签 */
.ci-tags { display: flex; flex-wrap: wrap; gap: 7px; }

/* 通用标签（相关词语用） */
.ci-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #334155;
    font-size: 0.88rem;
    text-decoration: none;
    transition: background 0.15s;
}
.ci-tag:hover { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }

/* 彩色实心标签（近反义词/成语） */
.ci-btn {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.15s;
}
.ci-btn:hover { opacity: 0.85; color: #fff; }

/* 颜色循环：近义词红/蓝/橙/灰 */
.ci-btn-0 { background: #ef4444; }
.ci-btn-1 { background: #64748b; }
.ci-btn-2 { background: #3b82f6; }
.ci-btn-3 { background: #f97316; }
.ci-btn-4 { background: #8b5cf6; }
.ci-btn-5 { background: #10b981; }
.ci-btn-6 { background: #0ea5e9; }
.ci-btn-7 { background: #6b7280; }

/* 造句列表 */
.ci-sentences { list-style: none; padding: 0; margin: 0; }
.ci-sentences li {
    padding: 9px 12px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    margin-bottom: 6px;
    color: #333;
    line-height: 1.7;
    font-size: 0.92rem;
    background: #fafafa;
}
.ci-sentences li .ci-num {
    color: #2563eb;
    font-weight: 600;
    margin-right: 4px;
}

/* 相关词语行 */
.ci-char-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.ci-char-label {
    font-size: 0.88rem; color: #555; white-space: nowrap;
    padding-top: 4px; min-width: 80px;
}
.ci-char-tags { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 640px) {
    .ci-title { font-size: 1.7rem; }
    .ci-header { padding: 1rem; }
    .ci-char-row { flex-direction: column; gap: 6px; }
    .ci-char-label { min-width: unset; }
}
