/* 词条页面样式 - 简洁清爽的国外网站风格 */

/* 列表页样式 */
.words-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.page-header {
    text-align: center;
    margin-bottom: 80px;
    padding: 60px 0 40px;
}

.page-header h1 {
    font-size: 3.5em;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.page-header .subtitle {
    font-size: 1.1em;
    color: #666;
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* 分组区域 */
.words-section {
    margin-bottom: 80px;
}

.section-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e8e8e8;
}

.section-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.section-title-content {
    flex: 1;
}

.section-title {
    font-size: 2.2em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.section-desc {
    font-size: 1.05em;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* 词条网格 */
.words-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

/* 词条卡片 */
.word-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.word-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.word-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: #d0d0d0;
}

.word-card:hover::before {
    transform: scaleX(1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.8em;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-badge {
    background: #f0f2f5;
    color: #666;
    font-size: 0.85em;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.card-content {
    flex: 1;
    margin-bottom: 24px;
}

.card-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.card-desc {
    font-size: 0.95em;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
}

.card-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    color: #888;
}

.stat-item i {
    font-size: 1em;
}

.card-footer {
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
    color: #667eea;
    font-weight: 500;
    transition: all 0.3s ease;
}

.word-card:hover .card-link {
    color: #764ba2;
    gap: 12px;
}

.card-link i {
    font-size: 0.85em;
    transition: transform 0.3s ease;
}

.word-card:hover .card-link i {
    transform: translateX(4px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .words-container {
        padding: 20px 16px 60px;
    }

    .page-header {
        margin-bottom: 48px;
        padding: 40px 0 30px;
    }

    .page-header h1 {
        font-size: 2.5em;
    }

    .section-header {
        flex-direction: column;
        gap: 16px;
    }

    .section-title {
        font-size: 1.8em;
    }

    .words-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .word-card {
        padding: 24px;
    }

    .card-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2em;
    }

    .section-title {
        font-size: 1.5em;
    }

    .card-title {
        font-size: 1.3em;
    }
}
