/* 新闻列表容器样式优化 */
.custom-page-items {
    width: 700px;
    max-height: 600px;
    overflow: auto;
    margin: 0 auto;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border: 1px solid #e1e8ff;
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    position: relative;}

/* 添加微妙的背景纹理 */
.custom-page-items::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #1890ff 50%, transparent 100%);
    opacity: 0.1;}

/* 新闻列表样式优化 */
.custom-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;}

/* 新闻项样式优化 */
.custom-news-item {
    padding: 18px 20px 18px 48px;
    border-bottom: 1px solid #f0f4ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid transparent;}

.custom-news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;}

/* 图标样式优化 */
.custom-news-item::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231890ff'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.6;
    transition: all 0.4s ease;
    filter: brightness(1);}

/* 悬停效果优化 */
.custom-news-item:hover {
    background: linear-gradient(135deg, #f8fbff 0%, #e8f2ff 100%);
    padding-left: 52px;
    padding-right: 24px;
    margin: 4px -4px;
    border-radius: 10px;
    border: 1px solid #d1e3ff;
    box-shadow: 
        0 4px 16px rgba(24, 144, 255, 0.12),
        0 2px 8px rgba(24, 144, 255, 0.08);
    transform: translateY(-1px);}

.custom-news-item:hover::before {
    opacity: 1;
    transform: translateY(-50%) scale(1.15);
    filter: brightness(1.2);}

.custom-news-item:hover::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 3px;
    background: linear-gradient(180deg, #1890ff 0%, #52c41a 100%);
    border-radius: 0 3px 3px 0;}

/* 新闻链接样式优化 */
.custom-news-link {
    color: #1f2d3d;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.6;
    max-width: 75%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 12px;
    letter-spacing: -0.1px;}

.custom-news-link:hover {
    color: #1890ff;
    text-decoration: none;
    transform: translateX(3px);}

.custom-news-link:hover::after {
    content: '→';
    position: absolute;
    right: 0;
    color: #1890ff;
    font-weight: bold;
    font-size: 16px;
    animation: slideArrow 0.3s ease;}

@keyframes slideArrow {
    0% { transform: translateX(-5px); opacity: 0;}
    100% { transform: translateX(0); opacity: 1;}
}

/* 新闻日期样式优化 */
.custom-news-date {
    color: #8c98ae;
    font-size: 13px;
    font-weight: 500;
    min-width: 90px;
    text-align: right;
    transition: all 0.3s ease;
    background: #f8f9ff;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #f0f4ff;}

.custom-news-item:hover .custom-news-date {
    color: #1890ff;
    background: rgba(24, 144, 255, 0.08);
    border-color: rgba(24, 144, 255, 0.2);
    transform: scale(1.05);}

/* 滚动条样式优化 */
.custom-page-items::-webkit-scrollbar {
    width: 8px;}

.custom-page-items::-webkit-scrollbar-track {
    background: #f8faff;
    border-radius: 4px;}

.custom-page-items::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1890ff 0%, #096dd9 100%);
    border-radius: 4px;
    border: 2px solid #f8faff;}

.custom-page-items::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #096dd9 0%, #0050b3 100%);}

/* 响应式调整优化 */
@media (max-width: 768px) {
    .custom-page-items {
        width: calc(100% - 32px);
        height: auto;
        max-height: 500px;
        padding: 20px;
        margin: 0 16px;
        box-sizing: border-box;}
    
    .custom-news-item {
        padding: 16px 16px 16px 44px;
        margin-bottom: 6px;}
    
    .custom-news-item::before {
        left: 16px;
        width: 20px;
        height: 20px;}
    
    .custom-news-item:hover {
        padding-left: 48px;
        padding-right: 20px;
        margin: 3px -2px;}
    
    .custom-news-link {
        max-width: 65%;
        font-size: 14px;}
    
    .custom-news-date {
        font-size: 12px;
        min-width: 80px;
        padding: 4px 10px;}
    
    .custom-news-item {
        padding: 14px 16px 14px 44px;}
}

/* 加载动画优化 */
.custom-news-item {
    animation: slideInUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(15px);}
    to {
        opacity: 1;
        transform: translateY(0);}
}

/* 为不同位置的新闻项添加延迟动画 */
.custom-news-list li:nth-child(1) .custom-news-item { animation-delay: 0.05s;}
.custom-news-list li:nth-child(2) .custom-news-item { animation-delay: 0.1s;}
.custom-news-list li:nth-child(3) .custom-news-item { animation-delay: 0.15s;}
.custom-news-list li:nth-child(4) .custom-news-item { animation-delay: 0.2s;}
.custom-news-list li:nth-child(5) .custom-news-item { animation-delay: 0.25s;}
.custom-news-list li:nth-child(6) .custom-news-item { animation-delay: 0.3s;}
.custom-news-list li:nth-child(7) .custom-news-item { animation-delay: 0.35s;}
.custom-news-list li:nth-child(8) .custom-news-item { animation-delay: 0.4s;}
.custom-news-list li:nth-child(9) .custom-news-item { animation-delay: 0.45s;}
.custom-news-list li:nth-child(10) .custom-news-item { animation-delay: 0.5s;}

/* 添加空状态样式 */
.custom-news-list:empty::before {
    content: '暂无新闻数据';
    display: block;
    text-align: center;
    color: #8c98ae;
    font-size: 14px;
    padding: 40px 20px;
    font-style: italic;}

/* 焦点状态优化 */
.custom-news-link:focus {
    outline: 2px solid rgba(24, 144, 255, 0.3);
    outline-offset: 2px;
    border-radius: 4px;}

/* 高亮重要新闻项 */
.custom-news-item.highlight {
    background: linear-gradient(135deg, #fff7e6 0%, #fff1eb 100%);
    border: 1px solid #ffd591;}

.custom-news-item.highlight::before {
    filter: sepia(1) saturate(5) hue-rotate(350deg);}
