/*
 * @kanway-css-index
 * 文件: css/media/media-center.css
 * 层级: 媒体
 * 引用页面: media.html
 * 依赖: contact.css
 * 修改指引: .media-center-* 媒体首页
 * 索引: css/00-样式文件索引.css
 */
/* =====================================================
 * Media Center Landing Page - Styles
 * Guangdong Kanway Smart Technology Co., Ltd.
 * ===================================================== */

/* CSS Variables */
:root {
    --primary-blue: #1D5198;
    --secondary-blue: #3a7bd5;
    --dark-bg: #0a1628;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #6c757d;
    --accent-orange: #FC6B00;
    --border-color: #e1e5ea;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --transition: all 0.3s ease;
}

/* =====================================================
 * MEDIA LANDING - Main Wrapper
 * ===================================================== */
.media-landing {
    padding: 10px 0 20px;
    background: var(--white);
}

.media-landing .container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 30px;
}

/* =====================================================
 * MEDIA HERO - Section Header
 * ===================================================== */
.media-hero {
    text-align: center;
    margin-bottom: 60px;
}

.media-hero h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.media-hero p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.media-hero .hero-desc {
    margin-top: 20px;
}

/* =====================================================
 * MEDIA CATEGORIES GRID - 3 Column
 * ===================================================== */
.media-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.media-category-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid var(--border-color);
}

.media-category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-blue);
}

/* Card Image Area */
.media-card-img {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.media-card-img.bg-blog {
    background: linear-gradient(135deg, #1D5198 0%, #3a7bd5 100%);
}

.media-card-img.bg-news {
    background: linear-gradient(135deg, #0a1628 0%, #1D5198 100%);
}

.media-card-img.bg-download {
    background: linear-gradient(135deg, #2c3e50 0%, #1D5198 100%);
}

.media-card-img.bg-faq {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
}

.media-card-img i {
    font-size: 64px;
    color: rgba(255, 255, 255, 0.9);
    transition: transform 0.4s ease;
}

.media-category-card:hover .media-card-img i {
    transform: scale(1.15);
}

/* Card Image Overlay on Hover */
.media-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-category-card:hover .media-card-overlay {
    opacity: 1;
}

.media-card-overlay span {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border: 2px solid #fff;
    border-radius: 30px;
}

/* Card Content */
.media-card-content {
    padding: 28px 24px;
}

.media-card-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.media-category-card:hover .media-card-content h3 {
    color: var(--primary-blue);
}

.media-card-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Card Meta */
.media-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.media-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
}

.media-meta-item i {
    font-size: 16px;
    color: var(--primary-blue);
}

/* Card Link Arrow */
.media-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--light-bg);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue);
    transition: var(--transition);
}

.media-category-card:hover .media-card-link {
    background: var(--primary-blue);
    color: #fff;
}

.media-card-link i {
    transition: transform 0.3s ease;
}

.media-category-card:hover .media-card-link i {
    transform: translateX(4px);
}

/* =====================================================
 * MEDIA STATS - Stats Row
 * ===================================================== */
.media-stats {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-blue) 100%);
    margin-bottom: 60px;
    border-radius: 12px;
}

.media-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    padding: 0 30px;
}

.media-stats .stat-item {
    color: var(--white);
}

.media-stats .stat-number {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}

.media-stats .stat-label {
    font-size: 14px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =====================================================
 * MEDIA LATEST SECTION
 * ===================================================== */
.media-latest {
    margin-bottom: 60px;
}

.media-latest .section-title {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.media-latest .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.media-latest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.media-latest-item {
    display: flex;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.media-latest-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.media-latest-img {
    width: 180px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
}

.media-latest-img i {
    font-size: 36px;
    color: var(--primary-blue);
    opacity: 0.6;
}

.media-latest-body {
    flex: 1;
    padding: 20px;
}

.media-latest-body .item-tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    border-radius: 3px;
    font-weight: 600;
    margin-bottom: 8px;
}

.media-latest-body .item-tag.blog {
    background: #e8f5e9;
    color: #2e7d32;
}

.media-latest-body .item-tag.news {
    background: #e3f2fd;
    color: #1565c0;
}

.media-latest-body .item-tag.faq {
    background: #fff3e0;
    color: #ef6c00;
}

.media-latest-body h4 {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: 600;
}

.media-latest-body p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.media-latest-body .item-date {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    display: block;
}

/* =====================================================
 * MEDIA CTA SECTION
 * ===================================================== */
.media-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border-radius: 12px;
    text-align: center;
    color: #fff;
}

.media-cta h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.media-cta p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.media-cta .cta-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--white);
    color: var(--primary-blue);
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition);
}

.media-cta .cta-btn:hover {
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

/* =====================================================
 * RESPONSIVE BREAKPOINTS
 * ===================================================== */

/* 1200px */
@media (max-width: 1200px) {
    .media-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .media-stats .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* 992px */
@media (max-width: 992px) {
    .media-landing {
        padding: 60px 0 80px;
    }
    
    .media-hero h2 {
        font-size: 30px;
    }
    
    .media-categories {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .media-latest-grid {
        grid-template-columns: 1fr;
    }
}

/* 768px */
@media (max-width: 768px) {
    .media-landing .container {
        padding: 0 20px;
    }
    
    .media-hero h2 {
        font-size: 26px;
    }
    
    .media-hero p {
        font-size: 16px;
    }
    
    .media-card-img {
        height: 180px;
    }
    
    .media-latest-item {
        flex-direction: column;
    }
    
    .media-latest-img {
        width: 100%;
        height: 120px;
    }
    
    .media-stats .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .media-stats .stat-number {
        font-size: 32px;
    }
    
    .media-cta h2 {
        font-size: 26px;
    }
}
