/* BenQ Main Icons 頁面樣式 */



/* 主要特色區塊容器 */
.news-list-section {
    padding: 60px 0;
    background: transparent;
}

.benq-features-grid {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

/* 特色項目基本樣式 */
.feature-item {
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.feature-content {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0;
    gap: 0;
}

/* 圖片區域 - 佔50% */
.feature-icon {
    flex: 0 0 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* 文字內容區域 - 佔50% */
.feature-text {
    flex: 0 0 45%;
    color: white;
    padding: 60px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    max-height: 100%;
}

.feature-text h3 {
    font-size: 20px; /* 從 22px 增加到 26px */
    font-weight: 350; /* 改為細體 (原本是 bold) */
    margin-bottom: 15px;
    line-height: 1.3;
    flex-shrink: 0;
}

.feature-text p {
    font-size: 17px; /* 從 13px 增加到 15px */
    font-weight: 220; /* 增加細體設定 */
    line-height: 1.8; /* 從 1.7 增加到 1.8，讓行距更舒適 */
    margin-bottom: 12px;
    opacity: 0.95;
}

/* Read More 按鈕容器 */
.read-more-container {
    padding: 30px 0 30px calc(50% + 40px); /* 左邊距 = 圖片寬度(50%) + feature-text的padding-left(40px) */
    margin-bottom: 40px;
    text-align: left; /* 改為左對齊 */
    background: transparent;
}

/* Read More 按鈕容器背景顏色 */
.read-more-container.feature-green {
    background: #75a52b;
    background: linear-gradient(to bottom, #75a52b 0%, #75a52b 100%);
}
.read-more-container.feature-green2 {
    background: #2b6332;
    background-color: #2b6332;
}

.read-more-container.feature-pink {
    background: #e1999d;
    background: linear-gradient(to bottom, #e1999d 0%, #e1999d 100%);
}
.read-more-container.feature-pink2 {
    background: #cb8384;
    background: linear-gradient(to bottom, #cb8384 0%, #cb8384 100%);
}
.read-more-container.feature-blue {
    background: #2180b0;
    background: linear-gradient(to bottom, #2180b0 0%, #2180b0 100%);
}
.read-more-container.feature-blue2 {
    background: #5673af;
    background: linear-gradient(to bottom, #5673af 0%, #5673af 100%);
}
.read-more-container.feature-yellow {
    background: #decb52;
    background: linear-gradient(to bottom, #decb52 0%, #decb52 100%);
}
.read-more-container.feature-yellow2 {
    background: #b7a960;
    background: linear-gradient(to bottom, #b7a960 0%, #b7a960 100%);
}
/* Read More 按鈕 */
.read-more-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 0 0 0 35px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    position: relative;
}

.read-more-btn::before {
    content: "+";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: white;
    transition: all 0.3s ease;
    line-height: 1; /* 確保文字垂直居中 */
}

.read-more-btn:hover::before {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) rotate(90deg);
}

.read-more-btn:hover {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    transform: none;
    box-shadow: none;
}

.read-more-btn::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 35px;
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.3s ease;
}

.read-more-btn:hover::after {
    width: calc(100% - 35px);
}

/* Read More 按鈕 active 狀態 */
.read-more-btn.active {
    padding: 0;
    width: 24px;
    height: 24px;
    justify-content: center;
    color: transparent;
}

.read-more-btn.active::before {
    content: "︿";
    position: static;
    transform: none;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    transition: all 0.3s ease;
    line-height: 1; /* 確保文字垂直居中 */
    flex-shrink: 0; /* 防止被壓縮 */
}

/* 各區塊 active 按鈕的顏色 */
.feature-green2 .read-more-btn.active::before {
    color: #2b6332;
}

.feature-pink2 .read-more-btn.active::before {
    color: #cb8384;
}

.feature-blue2 .read-more-btn.active::before {
    color: #5673af;
}

.feature-yellow2 .read-more-btn.active::before {
    color: #b7a960;
}

.read-more-btn.active:hover::before {
    background: rgba(255, 255, 255, 1);
    transform: none;
}

.read-more-btn.active::after {
    display: none;
}

/* 各區塊的背景顏色 */
.feature-green {
    /* background: linear-gradient(135deg, #7CB342 0%, #8BC34A 50%, #9CCC65 100%); */
    background: #75a52b;
    background: linear-gradient(to bottom, #75a52b 0%, #75a52b 100%);
}

.feature-pink {
    /* background: linear-gradient(135deg, #E57373 0%, #EF5350 50%, #F06292 100%); */
    background: #e1999d;
    background: linear-gradient(to bottom, #e1999d 0%, #e1999d 100%);
}

.feature-blue {
    /* background: linear-gradient(135deg, #42A5F5 0%, #2196F3 50%, #1976D2 100%); */
    background: #2180b0;
    background: linear-gradient(to bottom, #2180b0 0%, #2180b0 100%);
}

.feature-yellow {
    /* background: linear-gradient(135deg, #FFD54F 0%, #FFCA28 50%, #FFC107 100%); */
    background: #decb52;
    background: linear-gradient(to bottom, #decb52 0%, #decb52 100%);
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .feature-text {
        padding: 40px 50px;
    }
    
    .feature-text h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .feature-text p {
        font-size: 12px;
        line-height: 1.6;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .feature-content {
        flex-direction: column;
        padding: 0 0 100px 0;
    }
    
    .feature-icon {
        flex: 0 0 50%;
        height: 200px;
    }
    
    .feature-text {
        flex: 0 0 50%;
        text-align: left; /* 改為左對齊 */
        padding: 25px 35px;
        max-height: none;
        margin-top: -30px; /* 往上移動 */
    }
    
    .feature-text h3 {
        font-size: 14px; /* 從 16px 縮小到 14px */
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .feature-text p {
        font-size: 11px;
        line-height: 1.5;
        margin-bottom: 8px;
    }
    
    .read-more-container {
        padding: 20px 35px; /* 左右對齊內文間距 */
        margin-bottom: 30px;
        text-align: left; /* 確保左對齊 */
    }
    
    .read-more-btn {
        padding: 0 0 0 35px; /* 保持原本的按鈕樣式 */
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .news-list-section {
        padding: 30px 0;
    }
    
    .feature-icon {
        height: 150px;
    }
    
    .feature-text {
        padding: 20px 25px;
        max-height: none;
        text-align: left; /* 確保左對齊 */
        margin-top: -30px; /* 往上移動 */
    }
    
    .feature-text h3 {
        font-size: 12px; /* 從 14px 縮小到 12px */
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .feature-text p {
        font-size: 10px;
        line-height: 1.4;
        margin-bottom: 6px;
    }
    
    .read-more-container {
        padding: 15px 25px; /* 左右對齊內文間距 */
        margin-bottom: 20px;
        text-align: left; /* 確保左對齊 */
    }
    
    .read-more-btn {
        padding: 0 0 0 35px; /* 保持原本的按鈕樣式 */
        font-size: 12px;
    }
}

/* 分類內容區域 */
.category-content {
    /* background: #f8f9fa; */
    padding: 40px 60px;
    margin: 0 auto;
    /* border-top: 1px solid #e9ecef; */
    width:70%;
}

/* 分類內容左右分欄佈局 */
.category-layout {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    min-height: 300px;
}

/* 左半邊條列式內容 */
.category-list {
    flex: 0 0 33.333%;
    padding-right: 30px;
}

.category-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item-list {
    background: transparent;
    border: none;
    border-bottom: 1px solid #e9ecef;
    border-radius: 0;
    padding: 12px 30px 12px 0;
    margin-bottom: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    font-size: 18px;
    color: #6c757d;
    font-weight: 400;
    line-height: 1.8;
    position: relative;
    cursor: pointer;
}

/* category-item-list 內的連結樣式 */
.category-item-list a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
}

.category-item-list a:hover {
    color: inherit;
    text-decoration: none;
}

.category-item-list a:visited {
    color: inherit;
}

.category-item-list a:focus,
.category-item-list a:active {
    color: inherit;
    text-decoration: none;
    outline: none;
}

.category-item-list::after {
    content: "→";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    opacity: 0;
    color: #6c757d;
    font-size: 16px;
    transition: all 0.3s ease;
}

.category-item-list:hover {
    color: #495057;
    background: transparent;
    box-shadow: none;
    transform: none;
    padding-right: 25px;
}

.category-item-list:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    color: #495057;
}

.category-item-list:last-child {
    border-bottom: none;
}

/* 右半邊圖片 */
.category-image {
    flex: 0 0 66.667%;
    display: flex;
    align-items: left;
    justify-content: flex-start;
    padding-left: 0px;
}

.category-image img {
    width: 100%;
    max-width: 800px;
    max-height: 350px;
    height: auto;
    border-radius: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: none;
    object-fit: cover;
}

/* 移除圖片 hover 放大效果 */
/* .category-image img:hover {
    transform: scale(1.05);
} */

/* 動畫效果 */
.category-content {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 響應式設計 - 分類內容 */
@media (max-width: 768px) {
    .category-content {
        padding: 30px 20px;
    }
    
    .category-layout {
        flex-direction: column;
        gap: 30px;
    }
    
    .category-list,
    .category-image {
        flex: 1 1 auto;
        padding: 0;
    }
    
    .category-item-list {
        padding: 10px 25px 10px 0;
        font-size: 13px;
    }
    
    .category-item-list:hover {
        padding-right: 20px;
    }
    
    .category-image img {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .category-content {
        padding: 20px 15px;
    }
    
    .category-layout {
        gap: 20px;
    }
    
    .category-item-list {
        padding: 8px 20px 8px 0;
        font-size: 12px;
    }
    
    .category-item-list:hover {
        padding-right: 15px;
    }
    
    .category-image img {
        max-width: 250px;
    }
}

/* 載入中提示樣式 */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.loading-indicator p {
    margin: 10px 0 0 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* 旋轉動畫的載入圖示 */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 圖片容器需要 relative positioning */
.category-image {
    position: relative;
}

/* 移除動畫效果 */
/* .feature-item {
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
} */

/* .feature-icon {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
} */
