/* 英语词典详情页样式 */

/* 面包屑导航 */
.breadcrumb {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #718096;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    list-style: none;
}

.breadcrumb-list a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb-list li::after {
    content: '/';
    margin-left: 10px;
    color: #cbd5e0;
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.result-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px 36px;
    margin: 25px 0;
}

.result-header {
    text-align: center;
    margin-bottom: 25px;
}

.result-header h1 {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 8px;
}

.result-header h1 i {
    color: #667eea;
    margin-right: 8px;
}

.result-header p {
    color: #718096;
    font-size: 14px;
}

.update-time {
    color: #cbd5e0;
    font-size: 12px;
    margin-top: 8px;
}

/* 单词头部 */
.word-head {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    padding: 30px 32px;
    color: white;
    margin-bottom: 10px;
}

.word-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
}

.word-text {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 0.5px;
    word-break: break-all;
}

.speech-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.speech-btn {
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.speech-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

.book-tag {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 13px;
}

.book-tag i {
    margin-right: 5px;
    font-size: 12px;
}

/* 区块标题 */
section h2 {
    font-size: 18px;
    color: #2d3748;
    margin: 30px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #edf2f7;
}

section h2 i {
    color: #667eea;
    margin-right: 8px;
}

/* 词性徽章 */
.pos-badge {
    display: inline-block;
    background: #ebf4ff;
    color: #667eea;
    border: 1px solid #c3dafe;
    border-radius: 6px;
    padding: 1px 10px;
    font-size: 13px;
    font-style: italic;
    margin-right: 10px;
    white-space: nowrap;
}

/* 释义 */
.trans-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: trans;
}

.trans-list li {
    display: flex;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px dashed #edf2f7;
    counter-increment: trans;
}

.trans-list li::before {
    content: counter(trans) '.';
    color: #cbd5e0;
    margin-right: 12px;
    font-size: 14px;
}

.trans-body {
    flex: 1;
}

.tran-cn {
    color: #2d3748;
    font-size: 16px;
    margin: 0 0 4px;
}

.tran-en {
    color: #a0aec0;
    font-size: 13px;
    font-style: italic;
    margin: 0;
}

/* 例句 */
.sentence-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sentence-list li {
    background: #f7fafc;
    border-left: 3px solid #667eea;
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
    margin-bottom: 10px;
}

.s-en {
    color: #2d3748;
    font-size: 15px;
    margin: 0 0 6px;
}

.s-en i {
    color: #667eea;
    margin-right: 6px;
    font-size: 12px;
}

.s-cn {
    color: #718096;
    font-size: 14px;
    margin: 0;
}

/* 短语 */
.phrase-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.phrase-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px dashed #edf2f7;
}

.p-content {
    color: #2d3748;
    font-size: 15px;
    font-weight: 600;
    min-width: 180px;
}

.p-cn {
    color: #718096;
    font-size: 14px;
}

/* 同近义词 */
.syno-group {
    margin-bottom: 16px;
}

.syno-desc {
    color: #4a5568;
    font-size: 14px;
    margin: 0 0 8px;
}

.syno-words {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.syno-chip {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 5px 16px;
    color: #667eea;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.15s;
}

.syno-chip:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* 同根词 */
.rel-group {
    margin-bottom: 16px;
}

.rel-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.rel-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px dashed #edf2f7;
}

.rel-list a {
    color: #667eea;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    min-width: 120px;
}

.rel-list a:hover {
    text-decoration: underline;
}

.rel-tran {
    color: #718096;
    font-size: 14px;
}

/* 记忆法 */
.rem-content {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 16px 20px;
    color: #92400e;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

/* 相关单词 */
.word-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.word-chip {
    display: inline-flex;
    flex-direction: column;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 18px;
    text-decoration: none;
    transition: all 0.15s;
}

.word-chip:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.word-chip strong {
    color: #2d3748;
    font-size: 15px;
}

/* 搜索框（复用首页样式） */
.search-box {
    display: flex;
    gap: 0;
    max-width: 640px;
    margin: 0 auto;
    border: 2px solid #667eea;
    border-radius: 50px;
    overflow: hidden;
    background: white;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 24px;
    font-size: 15px;
    color: #2d3748;
}

.search-box button {
    border: none;
    background: #667eea;
    color: white;
    padding: 0 28px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-box button:hover {
    background: #5a67d8;
}

/* 移动端 */
@media (max-width: 768px) {
    .result-section {
        padding: 20px 16px;
    }

    .word-head {
        padding: 20px 18px;
    }

    .word-text {
        font-size: 30px;
    }

    .word-title {
        gap: 10px;
    }

    .speech-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .p-content {
        min-width: 100%;
    }
}
