/* 英语词典首页样式 */

/* 面包屑导航（搜索页使用） */
.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;
}

/* 搜索区 */
.dict-hero {
    text-align: center;
    padding: 40px 0 30px;
}

.dict-hero h1 {
    font-size: 32px;
    color: #2d3748;
    margin-bottom: 10px;
}

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

.dict-hero p {
    color: #718096;
    font-size: 16px;
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    gap: 0;
    max-width: 640px;
    margin: 0 auto 16px;
    border: 2px solid #667eea;
    border-radius: 50px;
    overflow: hidden;
    background: white;
}

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

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

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

.sample-words {
    color: #a0aec0;
    font-size: 14px;
}

.sample-words a {
    color: #667eea;
    text-decoration: none;
    margin: 0 6px;
}

.sample-words a:hover {
    text-decoration: underline;
}

/* 通用区块 */
section h2 {
    font-size: 20px;
    color: #2d3748;
    margin: 35px 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #edf2f7;
}

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

/* 词书分类网格 */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.series-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 16px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.series-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.series-card i {
    font-size: 26px;
    color: #667eea;
    margin-bottom: 10px;
}

.series-card h3 {
    font-size: 15px;
    color: #2d3748;
    margin: 0 0 6px;
}

.series-card p {
    font-size: 13px;
    color: #a0aec0;
    margin: 0;
}

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

.word-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 18px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.word-chip:hover {
    transform: translateY(-2px);
    border-color: #667eea;
    box-shadow: 0 6px 14px rgba(102, 126, 234, 0.12);
}

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

.word-chip span {
    color: #a0aec0;
    font-size: 12px;
}

/* 工具介绍 */
.tool-desc p {
    color: #4a5568;
    line-height: 1.9;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
}

/* 搜索候选列表 */
.candidate-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.candidate-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 20px;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.candidate-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.candidate-item strong {
    color: #2d3748;
    font-size: 17px;
}

.candidate-item span {
    color: #a0aec0;
    font-size: 13px;
    flex: 1;
}

.candidate-item i {
    color: #cbd5e0;
    font-size: 13px;
}

/* 空结果 */
.empty-tip {
    text-align: center;
    padding: 50px 20px;
    color: #a0aec0;
}

.empty-tip i {
    font-size: 42px;
    margin-bottom: 14px;
}

.empty-tip p {
    margin-bottom: 18px;
    color: #718096;
}

.btn-back {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
}

/* 再次搜索 */
.search-again {
    margin-top: 30px;
}

/* 移动端 */
@media (max-width: 768px) {
    .dict-hero {
        padding: 30px 0 25px;
    }

    .dict-hero h1 {
        font-size: 24px;
    }

    .series-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .search-box button {
        padding: 0 20px;
    }
}
