/*
 * @kanway-css-index
 * 文件: css/media/media-news.css
 * 层级: 媒体
 * 引用页面: media-news.html
 * 依赖: media-icons.css
 * 修改指引: 新闻列表 .news-*
 * 索引: css/00-样式文件索引.css
 */
/* ==================== News Page Styles ==================== */

.news-main {
    padding: 10px 0 20px;
}

.news-grid {
    display: flex;
    gap: 30px;
}

.news-list {
    flex: 1;
    min-width: 0;
}

.section-title {
    font-size: 22px;
    color: #1D5198;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.title-line {
    width: 4px;
    height: 28px;
    background: #FC6B00;
    margin-right: 12px;
    border-radius: 2px;
}

/* Featured News */
.featured-news {
    margin-bottom: 40px;
}

.featured-news-inner {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex;
    align-items: stretch;
}

.featured-news-img {
    width: 360px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.featured-news-img img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.news-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(29, 81, 152, 0.9);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    z-index: 10;
}

.news-date-badge .day {
    display: block;
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
}

.news-date-badge .month {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.9;
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 81, 152, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.featured-news-img:hover .img-overlay {
    opacity: 1;
}

.view-btn {
    background: #fff;
    color: #1D5198;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.featured-news-img:hover .view-btn {
    transform: translateY(0);
}

.featured-news-content {
    flex: 1;
    padding: 24px;
}

.featured-badge {
    margin-bottom: 12px;
}

.badge-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #e8f0fe;
    color: #1D5198;
    font-size: 12px;
    border-radius: 3px;
    margin-right: 12px;
    font-weight: 600;
}

.badge-date {
    color: #999;
    font-size: 13px;
}

.featured-news-title {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.featured-news-title a {
    color: #333;
    text-decoration: none;
}

.featured-news-title a:hover {
    color: #1D5198;
}

.featured-news-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.read-count {
    color: #999;
    font-size: 13px;
}

.read-count i {
    margin-right: 4px;
}

/* Latest News Section */
.latest-news-section {
    margin-bottom: 30px;
}

.news-list-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    align-items: stretch;
    transition: box-shadow 0.3s;
}

.news-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.news-item-img {
    width: 220px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.news-item-img img {
    width: 100%;
    height: 100%;
    min-height: 160px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.news-item-content {
    flex: 1;
    padding: 20px;
}

.news-tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    border-radius: 3px;
    font-weight: 600;
}

.news-tag.product { background: #e8f5e9; color: #2e7d32; }
.news-tag.award { background: #fff3e0; color: #ef6c00; }
.news-tag.event { background: #e3f2fd; color: #1565c0; }
.news-tag.company { background: #f3e5f5; color: #7b1fa2; }
.news-tag.cert { background: #fce4ec; color: #c2185b; }
.news-tag.milestone { background: #fff8e1; color: #f57f17; }

.news-item-meta {
    margin-bottom: 8px;
}

.news-date {
    color: #999;
    font-size: 12px;
}

.news-item-title {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-item-title a {
    color: #333;
    text-decoration: none;
}

.news-item-title a:hover {
    color: #1D5198;
}

.news-item-desc {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.news-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.news-views {
    color: #999;
    font-size: 12px;
}

.news-views i {
    margin-right: 4px;
}



/* Sidebar */
.sidebar {
    width: 320px;
    flex-shrink: 0;
}

.sidebar-box {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}

.sidebar-box:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sidebar-title {
    font-size: 16px;
    color: #1D5198;
    margin-bottom: 16px;
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 2px solid #FC6B00;
}

.sidebar-title i {
    margin-right: 8px;
    color: #FC6B00;
}

/* Search Box */
.search-box {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    outline: none;
    font-size: 13px;
}

.search-box button {
    width: 44px;
    border: none;
    background: #1D5198;
    color: #fff;
    cursor: pointer;
}

/* Category List */
.category-list {
    list-style: none;
}

.category-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.category-list a:hover {
    color: #1D5198;
}

.category-list a i {
    color: #1D5198;
    margin-right: 8px;
}

.category-list span {
    color: #999;
    font-size: 12px;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    display: inline-block;
    padding: 6px 12px;
    background: #f5f5f5;
    color: #666;
    font-size: 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.tag-cloud a:hover {
    color: #fff;
    background: #1D5198 !important;
    color: #fff !important;
}

/* Stats Box */
.sidebar-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.stats-item {
    background: linear-gradient(135deg, #1D5198 0%, #295692 100%);
    color: #fff;
    padding: 20px 12px;
    border-radius: 8px;
    text-align: center;
}

.stats-item i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.stats-num {
    display: block;
    font-size: 24px;
    font-weight: bold;
}

.stats-label {
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
}

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(135deg, #1D5198 0%, #295692 100%);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

.sidebar-cta h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 12px;
}

.sidebar-cta p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    line-height: 1.6;
}

.cta-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #fff;
    color: #1D5198;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}

.cta-btn:hover {
    background: #f0f0f0;
}

/* Newsletter */
.sidebar-newsletter {
    background: linear-gradient(135deg, #1D5198 0%, #295692 100%);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
}

.newsletter-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.newsletter-icon i {
    font-size: 28px;
}

.sidebar-newsletter h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
}

.sidebar-newsletter p {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    margin-bottom: 16px;
}

.sidebar-newsletter input {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 13px;
}

.sidebar-newsletter button {
    width: 100%;
    padding: 12px;
    background: #FC6B00;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.sidebar-newsletter button:hover {
    background: #e55a00;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
}

.page-num {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border: 1px solid #e0e0e0;
    margin: 0 3px;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.page-num:hover {
    background: #1D5198;
    color: #fff;
    border-color: #1D5198;
}

.page-num.cur {
    background: #FC6B00;
    color: #fff;
    border-color: #FC6B00;
}

/* Read More Link */
.read-more {
    color: #1D5198;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.read-more:hover {
    color: #FC6B00;
}

/* Responsive */
@media (max-width: 1200px) {
    .news-grid {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .featured-news-img {
        width: 280px;
    }
    .news-item-img {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .featured-news-inner {
        flex-direction: column;
    }
    .featured-news-img {
        width: 100%;
    }
    .featured-news-img img {
        height: 200px;
    }
    .news-item {
        flex-direction: column;
    }
    .news-item-img {
        width: 100%;
    }
    .news-item-img img {
        height: 180px;
    }
}

/* Featured Badge Overlay */
.featured-badge-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.featured-badge-overlay .badge-tag {
    background: rgba(29, 81, 152, 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.featured-badge-overlay .badge-date {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
}


/* Override sidebar-cta colors with !important */
.sidebar-cta h3 {
    color: #fff !important;
}

.sidebar-cta p {
    color: rgba(255, 255, 255, 0.95) !important;
}

.sidebar-cta:hover h3,
.sidebar-cta:hover p {
    color: #fff !important;
}



/* Extra fixes for text links */
.cta-btn {
    color: #1D5198 !important;
    cursor: pointer;
}

.cta-btn:hover {
    cursor: pointer;
}


