/* ===== 字典页面专用样式 ===== */

/* 字典容器 */
.dict-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.7;
    color: #2c3e50;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8faff 0%, #f1f5ff 100%);
    border-radius: 8px;
    border-left: 4px solid #6366f1;
    font-size: 14px;
}

.breadcrumb a {
    color: #6366f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #8b5cf6;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #94a3b8;
    font-weight: bold;
}

.breadcrumb .current {
    color: #1e293b;
    font-weight: 600;
}

/* 术语文章容器 */
.term-article {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.term-article .article-content {
    padding:20px;
}

/* 术语标题区 */
.term-header {
    padding: 20px 30px;
    text-align: center;
    position: relative;
}

.term-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.term-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.term-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* 信息卡片 */
.term-info-card {
    background: linear-gradient(135deg, #f8faff 0%, #f1f5ff 100%);
    padding: 25px;
    margin: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.tag-category, .tag-alias, .tag-position {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.info-related {
    margin-bottom: 20px;
    color: #475569;
    line-height: 1.6;
}

.info-related a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.info-related a:hover {
    color: #8b5cf6;
}

.info-action {
    text-align: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.cta-icon {
    font-size: 18px;
}

/* 目录 */
.table-of-contents {
    background: #f8fafc;
    padding: 25px;
    margin: 30px;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
}

.table-of-contents h3 {
    margin: 0 0 15px 0;
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 600;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.table-of-contents li a {
    display: block;
    color: #475569;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.table-of-contents li a:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: translateX(5px);
}

/* 内容区块 */
.content-section {
    padding: 30px;
    border-bottom: 1px solid #f1f5f9;
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h2 {
    color: #1e293b;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 25px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #6366f1;
}

/* 定义框 */
.definition-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.definition-box p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #92400e;
    font-weight: 500;
}

.definition-box strong {
    color: #78350f;
    font-weight: 700;
}

/* 要点列表 */
.key-points {
    background: #f8faff;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
}

.key-points h3 {
    color: #1e293b;
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.key-points ul {
    margin: 0;
    padding-left: 20px;
}

.key-points li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.key-points strong {
    color: #6366f1;
    font-weight: 600;
}

/* 提示框 */
.note-box {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 4px solid #3b82f6;
    padding: 18px 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.15);
}

.note-box p {
    margin: 0;
    color: #1e40af;
    line-height: 1.6;
}

/* 判读网格 */
.interpretation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.interp-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.interp-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.interp-item h3 {
    color: #1e293b;
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.interp-item ul {
    margin: 0;
    padding-left: 18px;
}

.interp-item li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #475569;
}

.interp-item strong {
    color: #1e293b;
    font-weight: 600;
}

/* 主星网格 */
.stars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.star-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.star-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.star-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.star-card h3 {
    color: #1e293b;
    font-size: 1.3rem;
    margin: 0 0 15px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.star-card p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: #475569;
}

.star-card p:last-child {
    margin-bottom: 0;
}

.star-card strong {
    color: #1e293b;
    font-weight: 600;
}

/* 四化影响 */
.transformations-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.transformation-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.transformation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.trans-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.transformation-item.positive .trans-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.transformation-item.neutral .trans-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.transformation-item.negative .trans-header {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.trans-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.trans-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.trans-content {
    background: white;
    padding: 20px;
}

.trans-content p {
    margin: 0 0 12px 0;
    color: #1e293b;
    font-weight: 600;
}

.trans-content ul {
    margin: 0 0 15px 0;
    padding-left: 20px;
}

.trans-content li {
    margin-bottom: 6px;
    line-height: 1.5;
    color: #475569;
}

.trans-note {
    background: #f1f5f9;
    padding: 12px;
    border-radius: 8px;
    font-style: italic;
    margin-top: 15px;
    border-left: 3px solid #6366f1;
}

/* 案例研究 */
.example-cases {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 25px;
}

.case-study {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.case-study h3 {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    margin: 0;
    padding: 18px 25px;
    font-size: 1.2rem;
    font-weight: 600;
}

.case-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 25px;
}

.case-chart {
    background: #f8faff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.case-chart p {
    margin: 0 0 12px 0;
    color: #1e293b;
    font-weight: 600;
}

.case-chart ul {
    margin: 0;
    padding-left: 20px;
}

.case-chart li {
    margin-bottom: 6px;
    color: #475569;
    line-height: 1.5;
}

.case-analysis p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #374151;
}

.case-advice {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    font-style: italic;
    color: #1e40af !important;
}

/* 时机分析 */
.timing-analysis {
    margin-top: 25px;
}

.timing-section {
    margin-bottom: 30px;
}

.timing-section h3 {
    color: #1e293b;
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid #6366f1;
}

.timing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.timing-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.timing-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.timing-item h4 {
    color: #6366f1;
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.timing-item p {
    margin: 0;
    line-height: 1.6;
    color: #475569;
}

/* 误区对比 */
.pitfalls-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 25px;
}

.pitfall-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.pitfall-wrong {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    padding: 20px;
    position: relative;
}

.pitfall-right {
    background: linear-gradient(135deg, #bbf7d0 0%, #86efac 100%);
    padding: 20px;
    position: relative;
}

.pitfall-wrong h3, .pitfall-right h3 {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.pitfall-wrong h3 {
    color: #dc2626;
}

.pitfall-right h3 {
    color: #16a34a;
}

.pitfall-wrong p, .pitfall-right p {
    margin: 0;
    line-height: 1.6;
}

.pitfall-wrong p {
    color: #7f1d1d;
}

.pitfall-right p {
    color: #14532d;
}

/* 流派对比 */
.schools-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.school-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
}

.school-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
    border-radius: 12px 12px 0 0;
}

.school-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
}

.school-item h3 {
    color: #1e293b;
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.school-item p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: #475569;
}

.school-item strong {
    color: #1e293b;
    font-weight: 600;
}

/* 延伸阅读 */
.related-content {
    background: #f8faff;
    padding: 30px;
    margin-top: 40px;
    border: 1px solid #e2e8f0;
}

.related-content h2 {
    color: #1e293b;
    font-size: 1.6rem;
    margin: 20px 0 20px 0;
    text-align: center;
    font-weight: 700;
}

.related-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

.related-link {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 18px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.related-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #6366f1;
}

.related-link.special {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #059669;
}

.related-link.special:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.link-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: #1e293b;
}

.related-link.special .link-title {
    color: white;
}

.link-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
}

.related-link.special .link-desc {
    color: rgba(255, 255, 255, 0.9);
}

/* 编辑信息 */
.edit-info {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 0 0 16px 16px;
    border-top: 1px solid #e2e8f0;
}

.edit-info h3 {
    color: #475569;
    font-size: 1rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.edit-details {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

/* ===== 响应式设计 ===== */

/* 平板端 */
@media (max-width: 1024px) {
    .dict-container {
        padding: 15px;
    }

    .term-title {
        font-size: 2.2rem;
    }

    .case-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pitfall-item {
        grid-template-columns: 1fr;
    }

    .interpretation-grid, .stars-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* 手机端 */
@media (max-width: 768px) {
    .dict-container {
        padding: 10px;
    }
    
    .dict-content h2{
        font-size: 1.2em;
        color: #6366f1;
        margin: 20px 0px;
        text-align: center;
    }
    .term-article {
        border-radius: 0px;
        box-shadow: none;
        border: 0px;
    }

    .term-article .article-content {
        padding: 0px 15px;
    }
    .term-header {
        padding: 30px 20px;
    }

    .term-title {
        font-size: 2rem;
    }

    .term-subtitle {
        font-size: 1rem;
    }

    .term-info-card, .table-of-contents, .content-section {
        padding: 20px;
        margin: 20px 15px;
    }

    .info-tags {
        justify-content: center;
    }

    .table-of-contents ul {
        display: flex;       /* 1. 將佈局改為 flex */
        flex-wrap: nowrap;   /* 2. 禁止項目換行，強制排成一行 */
        overflow-x: auto;    /* 3. 當內容超出時，顯示水平滾動條 */
        padding-bottom: 10px;/* 4. 為滾動條留出一些空間，避免遮擋內容 */

        /* --- 以下為可選的優化，讓滾動更平滑 --- */
        -webkit-overflow-scrolling: touch; /* 在 iOS 上啟用慣性滾動 */
        scrollbar-width: thin;             /* 在 Firefox 上使用較細的滾動條 */
    }

    /* 為了防止滾動時連結變形，移除 hover 的位移效果 */
    .table-of-contents li a:hover {
        transform: none;
    }

    /* 讓連結文字不換行，保持單個標籤的完整性 */
    .table-of-contents li a {
        white-space: nowrap;
    }

    /* ===== (可選) 美化滾動條樣式 ===== */
    .table-of-contents ul::-webkit-scrollbar {
        height: 6px; /* 滾動條高度 */
    }

    .table-of-contents ul::-webkit-scrollbar-track {
        background: #e2e8f0; /* 軌道顏色 */
        border-radius: 3px;
    }

    .table-of-contents ul::-webkit-scrollbar-thumb {
        background: #a5b4fc; /* 滾動條本身的顏色 */
        border-radius: 3px;
    }

    .table-of-contents ul::-webkit-scrollbar-thumb:hover {
        background: #818cf8; /* 滑鼠懸停時的顏色 */
    }

    .interpretation-grid, .stars-grid, .transformations-container, 
    .timing-grid, .schools-comparison, .related-links {
        grid-template-columns: 1fr;
    }

    .breadcrumb {
        font-size: 13px;
        padding: 10px 15px;
        margin: 15px;
    }

    .case-study h3 {
        font-size: 1.1rem;
        padding: 15px 20px;
    }

    .pitfall-item {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .pitfall-wrong, .pitfall-right {
        padding: 15px;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .dict-container {
        padding: 5px;
    }

    .term-header {
        padding: 25px 15px;
    }

    .term-title {
        font-size: 1.8rem;
    }

    .term-info-card, .table-of-contents, .content-section {
        padding: 15px;
        margin: 15px 10px;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .definition-box, .key-points, .note-box {
        padding: 15px;
    }

    .star-card, .interp-item, .timing-item, .school-item {
        padding: 15px;
    }

    .case-details {
        padding: 20px;
    }

    .trans-header, .trans-content {
        padding: 15px;
    }

    .related-content {
        padding: 10px;
        margin-top: 30px;
    }

    .edit-info {
        padding: 15px;
    }

    .breadcrumb {
        margin: 10px;
        padding: 8px 12px;
    }

    .breadcrumb .separator {
        margin: 0 8px;
    }
}

/* 超小屏优化 */
@media (max-width: 360px) {
    .term-title {
        font-size: 1.6rem;
    }

    .tag-category, .tag-alias, .tag-position {
        font-size: 12px;
        padding: 4px 10px;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 14px;
    }

    .interp-item h3, .star-card h3 {
        font-size: 1rem;
    }

    .content-section h2 {
        font-size: 1.3rem;
    }
}

/* 辅助类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-bold { font-weight: 600; }
.font-semibold { font-weight: 500; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.p-4 { padding: 1rem; }

/* 打印样式 */
@media print {
    .breadcrumb, .table-of-contents, .cta-button, .related-content {
        display: none;
    }
    
    .dict-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .term-header {
        background: #f5f5f5 !important;
        color: #000 !important;
    }
}

.dict-articles-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.dict-article-row {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  position: relative;
}

.dict-article-row:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 1rem;
  margin: 0 -1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.dict-article-row:hover .dict-article-icon {
  color: #3b82f6;
  transform: scale(1.1);
}

.dict-article-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: all 0.3s ease;
  margin-top: 0.25rem;
}

.dict-article-content {
  flex: 1;
  min-width: 0;
}

.dict-article-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.dict-article-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dict-article-tag {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #3b82f6;
  background: #eff6ff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.dict-article-heading {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  line-height: 1.4;
  font-weight: 600;
}

.dict-article-heading a {
  color: #1f2937;
  text-decoration: none;
  transition: color 0.2s ease;
}

.dict-article-heading a:hover {
  color: #3b82f6;
}

.dict-article-desc {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 0.75rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dict-article-readmore {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #3b82f6;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.7;  /* 改为半透明，始终可见 */
  transition: all 0.3s ease;
  cursor: pointer;
}

.dict-article-row:hover .dict-article-readmore {
  opacity: 1;
}

.dict-article-readmore:hover {
  color: #2563eb;
  transform: translateX(2px);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .dict-articles-wrapper {
    padding: 0 0.5rem;
  }
  
  .dict-article-row {
    gap: 0.75rem;
    padding: 0.75rem 0;
  }
  
  .dict-article-icon {
    width: 32px;
    height: 32px;
  }
  
  .dict-article-icon svg {
    width: 14px;
    height: 14px;
  }
  
  .dict-article-meta {
    gap: 0.75rem;
    margin-bottom: 0.4rem;
  }
  
  .dict-article-heading {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }
  
  .dict-article-desc {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }
}

/* 最后一项去掉边框 */
.dict-article-row:last-child {
  border-bottom: none;
}