/*
 * @Author: iowen
 * @Author URI: https://www.iowen.cn/
 * @Date: 2024-01-03 00:15:11
 * @LastEditors: iowen
 * @LastEditTime: 2024-01-13 11:05:39
 * @FilePath: \onenavsub\assets\css\sub-style.css
 * @Description: 自定义样式
 */

.ainews-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.ainews-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.ainews-item .item-header {
    flex-shrink: 0;
}

.ainews-item .item-media {
    width: 120px;
    height: 90px;
    overflow: hidden;
}

.ainews-item .item-image {
    display: block;
    width: 100%;
    height: 100%;
}

.ainews-item .item-body {
    padding: 14px 18px;
}

.ainews-item .item-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.ainews-item .ainews-excerpt {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ainews-item .ainews-meta {
    gap: 12px;
}

.ainews-item .ainews-source {
    display: flex;
    align-items: center;
}

.ainews-item .ainews-date {
    display: flex;
    align-items: center;
}

.style-ainews-min .ainews-item .item-media {
    width: 80px;
    height: 60px;
}

.style-ainews-max .ainews-item .item-media {
    width: 180px;
    height: 135px;
}

.ainews-page-head {
    margin: -0.5rem -0.5rem 0.5rem;
    padding: 20px 15px;
}

.ainews-header {
    text-align: center;
    padding: 10px 0 15px;
}

.ainews-title {
    font-size: 26px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.ainews-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
    font-weight: 400;
}

.ainews-banner {
    margin-bottom: 0;
}

.ainews-banner img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
}

.ainews-timeline {
    background: #fff;
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.ainews-date-group {
    margin-bottom: 25px;
}

.ainews-date-group:last-child {
    margin-bottom: 0;
}

.ainews-date-header {
    padding: 0 0 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.ainews-date-header span {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    padding: 4px 0;
}

.ainews-timeline-item {
    position: relative;
    padding: 16px 0 16px 55px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.ainews-timeline-item:hover {
    background: rgba(0,124,186,0.03);
    margin: 0 -10px;
    padding-left: 65px;
    padding-right: 10px;
    border-radius: 8px;
}

.ainews-timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ainews-timeline-item:first-child {
    padding-top: 0;
}

.ainews-timeline-time {
    position: absolute;
    left: 0;
    top: 20px;
    width: 40px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    line-height: 1.3;
}

.ainews-timeline-dot {
    position: absolute;
    left: 42px;
    top: 24px;
    width: 8px;
    height: 8px;
    background: #c0c0c0;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 1;
}

.ainews-timeline-item:hover .ainews-timeline-dot {
    background: #007cba;
    transform: scale(1.3);
}

.ainews-timeline-content {
    padding-left: 5px;
}

.ainews-timeline-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 10px;
}

.ainews-timeline-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ainews-timeline-title a:hover {
    color: #007cba;
}

.ainews-timeline-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ainews-timeline-source {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #777;
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 12px;
}

.ainews-timeline-source:hover {
    color: #444;
    background: #eee;
}

.ainews-sidebar .card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: none;
    margin-bottom: 20px;
}

.ainews-sidebar .card-header {
    background: transparent;
    border-bottom: 1px solid #eee;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.ainews-sidebar .card-body {
    padding: 16px 18px;
    font-size: 14px;
    color: #555;
}

@media (max-width: 768px) {
    .ainews-page-head {
        margin: -0.25rem -0.25rem 0.25rem;
        padding: 15px 10px;
    }
    
    .ainews-title {
        font-size: 24px;
    }
    
    .ainews-subtitle {
        font-size: 14px;
    }
    
    .ainews-header {
        padding: 10px 0 15px;
    }
    
    .ainews-timeline {
        padding: 20px;
        border-radius: 8px;
    }
    
    .ainews-date-group {
        margin-bottom: 20px;
    }
    
    .ainews-date-header {
        padding: 0 0 12px;
        margin-bottom: 12px;
    }
    
    .ainews-date-header span {
        font-size: 13px;
    }
    
    .ainews-timeline-item {
        padding: 14px 0 14px 50px;
    }
    
    .ainews-timeline-item:hover {
        padding-left: 60px;
        margin: 0 -5px;
        padding-right: 5px;
    }
    
    .ainews-timeline-time {
        top: 18px;
        width: 35px;
        font-size: 13px;
    }
    
    .ainews-timeline-dot {
        left: 36px;
        top: 21px;
        width: 7px;
        height: 7px;
    }
    
    .ainews-timeline-title {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .ainews-timeline-excerpt {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .ainews-sidebar {
        margin-top: 20px;
    }
}

.ainews-widget-list {
    padding: 0;
}

.ainews-widget-list .ainews-widget-item {
    list-style: none;
}

.ainews-widget-list .ainews-widget-item:last-child {
    border-bottom: none !important;
}

.ainews-widget-list .ainews-widget-title {
    display: block;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.5;
}

.ainews-widget-list .ainews-widget-title:hover {
    color: #007cba !important;
}

.ainews-widget-list .ainews-widget-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.widget_ainews .ainews-widget-list {
    padding: 12px 18px 16px;
}

.widget_ainews .ainews-widget-item {
    border-color: #eee !important;
}

.breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb .breadcrumb-item {
    font-size: 14px;
}

.breadcrumb .breadcrumb-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb .breadcrumb-item a:hover {
    color: #007cba;
}

.breadcrumb .breadcrumb-item.active {
    color: #333;
}

.ainews-back .btn {
    transition: all 0.2s ease;
}

.ainews-back .btn:hover {
    background: #007cba;
    border-color: #007cba;
    color: #fff;
}

@media (max-width: 768px) {
    .breadcrumb .breadcrumb-item {
        font-size: 13px;
    }
}

.ainews-page-head {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    width: 100%;
}

.ainews-head-content {
    position: relative;
    z-index: 3;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.ainews-header {
    padding: 1.5rem 0;
}

.ainews-head-full {
    background-color: #f8f9fa;
}

.ainews-head-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.ainews-head-card {
    background-color: #f8f9fa;
}

.ainews-head-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.3) 100%);
    z-index: 2;
}

.ainews-head-blur {
    background-color: #f8f9fa;
}

.ainews-head-blur-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    z-index: 1;
}

.ainews-head-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

@media (max-width: 768px) {
    .ainews-page-head {
        border-radius: 6px;
    }
    
    .ainews-head-content {
        padding: 15px;
    }
    
    .ainews-head-card-content {
        padding: 12px 20px !important;
    }
}
