/* 导入原页面样式 */
@import url('../../styles.css');

/* 新闻页面特有样式 */

/* 新闻页面主体 */
.news-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.news-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.news-section .section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.news-section .section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
}

/* 新闻容器 */
.news-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 左侧文章列表 */
.news-sidebar {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-item {
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.article-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.article-item.active {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-color: #3498db;
}

.article-preview h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.article-item.active .article-preview h3 {
    color: white;
}

.article-date {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 8px;
    display: block;
}

.article-item.active .article-date {
    color: rgba(255, 255, 255, 0.8);
}

.article-excerpt {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.5;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-item.active .article-excerpt {
    color: rgba(255, 255, 255, 0.9);
}

/* 右侧文章内容 */
.news-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.article-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.article-content.active {
    display: block;
}

.article-content h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.article-meta span {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-body {
    line-height: 1.8;
    color: #495057;
}

.article-body p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.article-body h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 30px 0 15px;
    font-weight: 600;
}
/* 產品清單整體外觀縮進與設計 */
.product-menu {
    list-style-type: none; /* 移除最外層的大圓點 */
    padding-left: 0;       /* 讓第一層大標題貼齊左側 */
    /* font-family: "PingFang TC", "Microsoft JhengHei", sans-serif; 乾淨的微軟正黑體 */
    font-size: 17px;
    line-height: 1.8;      /* 放大行高，讓文字不擁擠 */
    color: #333333;        /* 深灰色字體，比純黑更溫和 */
}

/* 第一層：系列大標題 (例如：1. 美國銀鱈魚系列) */
.product-menu > li {
    font-size: 16px;
    margin: 5px 0 0 40px;   /* 系列與系列之間留多點空白 */
    list-style-type: disc;
}

/* 第二層：產品項目 (例如：美國銀鱈魚扒) */
.product-menu ul {
    padding-left: 50px;    /* 關鍵：每一層往右縮進 25 像素 */
    margin-top: 8px;
}

.product-menu ul li {
    font-size: 16px;
    margin-bottom: 12px;   /* 產品與產品之間留空白 */
    color: #000000;
}

/* 第三層：詳細規格與優勢說明文字 */
.product-menu ul ul {
    padding-left: 25px;      /* 關鍵：再往右縮進 20 像素 */
    margin-top: 6px;
}

.product-menu ul ul li {
    font-size: 15px;
    /* color: #666666;          規格說明用稍淺的灰色，突顯主次分明 */
    margin-bottom: 5px;  
    margin-left: 25px;    /* 每一條規格之間的間距 */
}
/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .news-container {
        grid-template-columns: 1fr;
    }
    
    .news-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    .article-item:hover {
        transform: none;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 100px 0 60px;
    }
    
    .news-section .section-title {
        font-size: 2rem;
    }
    
    .news-content {
        padding: 25px;
    }
    
    .article-content h2 {
        font-size: 1.6rem;
    }
    
    .article-body h3 {
        font-size: 1.2rem;
    }
}
