/* 快讯小工具 */
.ymx-news-widget {
    padding: 0;
}

.ymx-news-list {
    display: flex;
    flex-direction: column;
}

.ymx-news-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ymx-news-item:hover {
    background: var(--ymx-bg-card-hover);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.ymx-news-item-icon-wrapper {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.ymx-news-item-icon {
    width: 100%;
    height: 100%;
    fill: var(--ymx-text-secondary);
    transform: rotate(-90deg);
    transition: transform 0.3s ease;
}

.ymx-news-item.expanded .ymx-news-item-icon {
    transform: rotate(0deg);
}

.ymx-news-item-content {
    flex: 1;
    min-width: 0;
}

.ymx-news-item-title {
    font-size: 13px;
    color: var(--ymx-text-secondary);
    line-height: 1.5;
    word-break: break-word;
    margin: 0 0 8px 0;
}

.ymx-news-item-title a {
    color: var(--ymx-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.ymx-news-item-title a:hover {
    color: var(--ymx-accent-secondary);
}

.ymx-news-item-excerpt {
    display: none;
    font-size: 12px;
    color: var(--ymx-text-muted);
    line-height: 1.6;
    word-break: break-word;
    margin: 0 0 8px 0;
    max-height: 100px;
    overflow: hidden;
}

.ymx-news-item.expanded .ymx-news-item-excerpt {
    display: block;
}

.ymx-news-item-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.ymx-news-item-time {
    color: var(--ymx-text-muted);
    font-size: 11px;
    flex-shrink: 0;
}

.ymx-news-more-wrapper {
    text-align: center;
    margin: 12px auto;
}

.ymx-news-more-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--ymx-accent-secondary);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.ymx-news-more-btn:hover {
    background: #2980b9;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

.ymx-news-empty {
    text-align: center;
    color: var(--ymx-text-muted);
    padding: 20px 0;
    margin: 0;
}

body.ymx-dark-mode .ymx-news-item {
    background: #3a3a3a;
    color: #eaeaea;
}

body.ymx-dark-mode .ymx-news-item:hover {
    background: #404040;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

body.ymx-dark-mode .ymx-news-item-icon {
    fill: #bbb;
}

body.ymx-dark-mode .ymx-news-item-title,
body.ymx-dark-mode .ymx-news-item-title a {
    color: #bbbbbb;
}

body.ymx-dark-mode .ymx-news-item-time {
    color: #999;
}

body.ymx-dark-mode .ymx-news-more-wrapper {
    border-top-color: #444;
}

body.ymx-dark-mode .ymx-news-more-btn {
    background: #2980b9;
}

body.ymx-dark-mode .ymx-news-more-btn:hover {
    background: #3498db;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.5);
}
