﻿/* ==================== 共用樣式 ==================== */
/* 側邊欄 */
.sidebar {
		position: sticky;
		top: 110px;
}
.sidebar-widget {
		background: #fff;
		border-radius: 15px;
		padding: 25px;
		box-shadow: 0 4px 20px rgba(212, 165, 165, 0.1);
		margin-bottom: 25px;
}
.widget-title {
		font-size: 1.2rem;
		color: #333;
		font-weight: 600;
		margin-bottom: 20px;
		padding-bottom: 12px;
		border-bottom: 2px solid #F5E5E7;
		display: flex;
		align-items: center;
		gap: 10px;
}
.widget-title i {
		color: var(--primary-color);
}
/* 熱門文章 */
.popular-news-list {
		display: flex;
		flex-direction: column;
		gap: 15px;
}
.popular-news-item {
		display: flex;
		gap: 12px;
		cursor: pointer;
		padding: .25rem;
		border-radius: 1rem;
		transition: all 0.3s;
		text-decoration: none;
}
.popular-news-item:hover {
		background: #FFF5F7;
}
.popular-news-info {
		flex: 1;
}
.popular-news-title {
		font-size: 0.9rem;
		color: #333;
		margin-bottom: 5px;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		line-height: 1.5;
}
.popular-news-date {
		font-size: 0.75rem;
		color: #999;
}
/* ==================== 新聞列表頁面樣式 ==================== */
/* 分類篩選 */
.category-filter {
		background: #fff;
		border-radius: 15px;
		padding: 25px;
		box-shadow: 0 4px 20px rgba(212, 165, 165, 0.1);
		margin-bottom: 30px;
}
.filter-title {
		font-size: 1.1rem;
		color: #333;
		font-weight: 600;
		margin-bottom: 20px;
		display: flex;
		align-items: center;
		gap: 10px;
}
.filter-title i {
		color: var(--primary-color);
}
.category-tabs {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
}
.category-tab {
		padding: 10px 25px;
		border: 2px solid #F5E5E7;
		border-radius: 25px;
		background: #fff;
		color: #666;
		cursor: pointer;
		transition: all 0.3s;
		font-size: 0.95rem;
}
.category-tab:hover {
		border-color: var(--primary-color);
		color: var(--primary-color);
		background: #FFF5F7;
}
.category-tab.active {
		border-color: var(--primary-color);
		background: var(--primary-color);
		color: #fff;
}
.category-tab .badge {
		background: rgba(255, 255, 255, 0.3);
		color: inherit;
		font-size: 0.8rem;
		padding: 3px 8px;
		border-radius: 10px;
		margin-left: 5px;
}
.category-tab.active .badge {
		background: rgba(255, 255, 255, 0.3);
}
/* 搜尋框 */
.news-search {
		background: #fff;
		border-radius: 15px;
		padding: 25px;
		box-shadow: 0 4px 20px rgba(212, 165, 165, 0.1);
		margin-bottom: 30px;
}
.search-input-wrapper {
		position: relative;
}
.search-input-wrapper input {
		width: 100%;
		padding: 15px 55px 15px 20px;
		border: 2px solid #F5E5E7;
		border-radius: 30px;
		font-size: 0.95rem;
		transition: all 0.3s;
}
.search-input-wrapper input:focus {
		outline: none;
		border-color: var(--primary-color);
		box-shadow: 0 0 0 3px rgba(212, 165, 165, 0.1);
}
.search-input-wrapper button {
		position: absolute;
		right: 8px;
		top: 50%;
		transform: translateY(-50%);
		background: var(--primary-color);
		border: none;
		width: 40px;
		height: 40px;
		border-radius: 50%;
		color: white;
		cursor: pointer;
		transition: all 0.3s;
		display: flex;
		align-items: center;
		justify-content: center;
}
.search-input-wrapper button:hover {
		background: #C89B9B;
		transform: translateY(-50%) scale(1.05);
}
/* 新聞列表 */
.news-list {
		display: flex;
		flex-direction: column;
		gap: 25px;
}
.news-list .news-item {
		background: #fff;
		overflow: hidden;
		transition: all 0.3s;
		display: flex;
		cursor: pointer;
}
.news-list .news-item:hover {
		padding: 15px 0;
		transform: translateY(0);
}
.news-list .news-image { /** 16/9 **/
		width: 300px;
		height: 300px;
		flex-shrink: 0;
		overflow: hidden;
		background: #F5F5F5;
		position: relative;
}
.news-list .news-image img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: transform 0.5s;
}
.news-list .news-item:hover .news-image img {
		transform: scale(1.1);
}
.news-list .news-badge {
		position: absolute;
		top: 15px;
		left: 15px;
		padding: 6px 15px;
		border-radius: 20px;
		font-size: 0.8rem;
		font-weight: 600;
		color: #fff;
		z-index: 2;
}
.news-badge.activity {
		background: linear-gradient(135deg, #FF6B9D, #FFA8C5);
}
.news-badge.announcement {
		background: linear-gradient(135deg, #4CAF50, #66BB6A);
}
.news-badge.new-product {
		background: linear-gradient(135deg, #2196F3, #42A5F5);
}
.news-badge.promotion {
		background: linear-gradient(135deg, #FF9800, #FFB74D);
}
.news-content {
		padding: 30px;
		flex: 1;
		display: flex;
		flex-direction: column;
}
.featured-news-content .news-meta, .news-content .news-meta {
		display: flex;
		align-items: center;
		gap: 20px;
		margin-bottom: 15px;
		font-size: 1rem;
		color: #999;
}
.featured-news-content .news-meta-item, .news-content .news-meta-item {
		display: flex;
		align-items: center;
		gap: 5px;
}
.featured-news-content .news-meta-item i, .news-content .news-meta-item i {
		color: var(--primary-color);
}
.news-content .news-title {
		font-size: 1.25rem;
		color: #333;
		font-weight: 600;
		margin-bottom: 15px;
		line-height: 1.5;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		white-space: pre-wrap;
}
.news-content .news-excerpt {
		font-size: 1rem;
		color: #666;
		line-height: 1.8;
		margin-bottom: 20px;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
}
.news-footer {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding-top: 15px;
		border-top: 1px solid #F5F5F5;
}
.news-tags {
		display: flex;
		gap: 8px;
		flex-wrap: wrap;
}
.news-tag {
		padding: 5px 12px;
		background: #FFF5F7;
		color: var(--click-color);
		border-radius: 15px;
		font-size: 0.8rem;
}
.news-read-more {
		color: var(--primary-color);
		text-decoration: none;
		font-weight: 500;
		display: flex;
		align-items: center;
		gap: 5px;
		transition: all 0.3s;
}
.news-read-more:hover {
		gap: 10px;
}
/* 精選新聞（大卡片） */
.featured-news {
		background: #fff;
		border-radius: 20px;
		overflow: hidden;
		box-shadow: 0 8px 30px rgba(212, 165, 165, 0.15);
		margin-bottom: 40px;
		cursor: pointer;
		transition: all 0.3s;
}
.featured-news:hover {
		transform: translateY(-8px);
		box-shadow: 0 12px 40px rgba(212, 165, 165, 0.25);
}
.featured-news-image { /** 16/9 **/
		width: 100%;
		height: 480px;
		overflow: hidden;
		position: relative;
		background: #F5F5F5;
}
.featured-news-image img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: transform 0.5s;
}
.featured-news:hover .featured-news-image img {
		transform: scale(1.05);
}
.featured-badge {
		position: absolute;
		top: 20px;
		left: 20px;
		padding: 10px 20px;
		background: linear-gradient(135deg, var(--primary-color), #C89B9B);
		color: #fff;
		border-radius: 25px;
		font-weight: 600;
		display: flex;
		align-items: center;
		gap: 8px;
		z-index: 2;
}
.featured-news-content {
		padding: 40px;
}
.featured-news-title {
		font-size: 1.75rem;
		color: #333;
		font-weight: 600;
		margin-bottom: 20px;
		line-height: 1.5;
}
.featured-news-excerpt {
		font-size: 1.1rem;
		color: #666;
		line-height: 1.8;
		margin-bottom: 25px;
}
/* 熱門文章編號樣式（列表頁專用） */
.popular-news-number {
		width: 30px;
		height: 30px;
		background: var(--primary-color);
		color: #ffffff;
		border-radius: 8px;
		display: flex;
		align-items: center;
		justify-content: center;
		font-weight: 600;
		flex-shrink: 0;
}
/* 熱門文章圖片樣式（詳細頁專用） */
.popular-news-image {
		width: 70px;
		height: 70px;
		border-radius: 8px;
		overflow: hidden;
		flex-shrink: 0;
		background: #F5F5F5;
}
.popular-news-image img {
		width: 100%;
		height: 100%;
		object-fit: cover;
}
/* 標籤雲 */
.tag-cloud {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
}
.tag-cloud-item {
		padding: 8px 18px;
		background: #FFF5F7;
		color: var(--primary-color);
		border-radius: 20px;
		font-size: 1rem;
		text-decoration: none;
		transition: all 0.3s;
		border: 2px solid transparent;
}
.tag-cloud-item:hover {
		background: var(--primary-color);
		color: #fff;
		border-color: var(--primary-color);
}
/* 空狀態 */
.empty-state {
		text-align: center;
		padding: 80px 20px;
}
.empty-state-icon {
		font-size: 5rem;
		color: #E5E5E5;
		margin-bottom: 25px;
}
.empty-state-text {
		font-size: 1.2rem;
		color: #999;
		margin-bottom: 30px;
}
.btn-empty-action {
		background: var(--primary-color);
		color: #fff;
		border: none;
		padding: 12px 30px;
		border-radius: 25px;
		font-size: 1rem;
		cursor: pointer;
		transition: all 0.3s;
}
.btn-empty-action:hover {
		background: #C89B9B;
		transform: translateY(-2px);
}
/* ==================== 新聞詳細頁面樣式 ==================== */
/* 文章主體 */
.article-container {
		background: #fff;
		border-radius: 20px;
		overflow: hidden;
		box-shadow: 0 4px 20px rgba(212, 165, 165, 0.1);
}
/* 文章標題區 */
.article-header {
		padding: 50px;
		background: linear-gradient(135deg, rgba(255, 245, 247, 0.8), rgba(245, 215, 219, 0.6));
}
.article-category {
		display: inline-block;
		padding: 8px 20px;
		background: linear-gradient(135deg, var(--primary-color), #C89B9B);
		color: #fff;
		border-radius: 25px;
		font-size: 1rem;
		font-weight: 600;
		margin-bottom: 20px;
}
.article-title {
		font-size: 2.5rem;
		color: #333;
		font-weight: 600;
		line-height: 1.5;
		margin-bottom: 25px;
}
.article-meta {
		display: flex;
		align-items: center;
		gap: 30px;
		flex-wrap: wrap;
		font-size: 0.9rem;
		color: #999;
}
.article-meta-item {
		display: flex;
		align-items: center;
		gap: 8px;
}
.article-meta-item i {
		color: var(--primary-color);
		font-size: 1.1rem;
}
/* 文章特色圖 */
.article-featured-image {
		width: 100%;
		height: 482px;
		overflow: hidden;
		background: #F5F5F5;
}
.article-featured-image img {
		width: 100%;
		height: 100%;
		object-fit: cover;
}
/* 文章內容 */
.article-content {
		padding: 50px;
}
.article-body {
		font-size: 1.05rem;
		line-height: 2;
		color: #333;
}
.article-body h2 {
		font-size: 1.8rem;
		color: var(--primary-color);
		font-weight: 600;
		margin: 40px 0 20px;
		padding-bottom: 15px;
		border-bottom: 2px solid #F5E5E7;
}
.article-body h3 {
		font-size: 1.4rem;
		color: #333;
		font-weight: 600;
		margin: 30px 0 15px;
}
.article-body p {
		margin-bottom: 20px;
}
.article-body img {
		max-width: 100%;
		height: auto;
		border-radius: 15px;
		margin: 30px 0;
		box-shadow: 0 4px 20px rgba(212, 165, 165, 0.1);
}
.article-body ul, .article-body ol {
		margin: 20px 0;
		padding-left: 30px;
}
.article-body li {
		margin-bottom: 10px;
}
.article-body blockquote {
		background: #FFF5F7;
		border-left: 4px solid var(--primary-color);
		padding: 20px 30px;
		margin: 30px 0;
		border-radius: 0 10px 10px 0;
		font-style: italic;
		color: #666;
}
/* 文章標籤 */
.article-tags {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
		padding: 30px 50px;
		border-top: 1px solid #F5F5F5;
}
.article-tag {
		padding: 8px 18px;
		background: #FFF5F7;
		color: var(--primary-color);
		border-radius: 20px;
		font-size: 0.9rem;
		text-decoration: none;
		transition: all 0.3s;
		border: 2px solid transparent;
}
.article-tag:hover {
		background: var(--primary-color);
		color: #fff;
		border-color: var(--primary-color);
}
/* 分享按鈕 */
.article-share {
		padding: 30px 50px;
		border-top: 1px solid #F5F5F5;
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex-wrap: wrap;
		gap: 20px;
}
.share-title {
		font-size: 1.1rem;
		color: #333;
		font-weight: 600;
		display: flex;
		align-items: center;
		gap: 10px;
}
.share-title i {
		color: var(--primary-color);
}
.share-buttons {
		display: flex;
		gap: 10px;
}
.share-btn {
		width: 45px;
		height: 45px;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		color: #fff;
		cursor: pointer;
		transition: all 0.3s;
		font-size: 1.2rem;
}
.share-btn:hover {
		transform: translateY(-3px);
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.share-btn.facebook {
		background: #1877F2;
}
.share-btn.line {
		background: #00B900;
}
.share-btn.twitter {
		background: #1DA1F2;
}
.share-btn.link {
		background: #666;
}
/* 上下篇導航 */
.article-navigation {
		padding: 30px 50px;
		border-top: 1px solid #F5F5F5;
		display: flex;
		justify-content: space-between;
		gap: 20px;
}
.nav-article {
		flex: 1;
		padding: 20px;
		background: #FFF5F7;
		border-radius: 10px;
		text-decoration: none;
		transition: all 0.3s;
		display: flex;
		flex-direction: column;
		gap: 10px;
}
.nav-article:hover {
		background: #FFE8EC;
		transform: translateX(-5px);
}
.nav-article.next:hover {
		transform: translateX(5px);
}
.nav-label {
		font-size: 1rem;
		color: #999;
		display: flex;
		align-items: center;
		gap: 5px;
}
.nav-title {
		font-size: 1rem;
		color: #333;
		font-weight: 500;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
}
.nav-article.next {
		text-align: right;
}
/* 相關文章 */
.related-articles {
		background: #fff;
		border-radius: 15px;
		padding: 40px;
		box-shadow: 0 4px 20px rgba(212, 165, 165, 0.1);
		margin-top: 30px;
}
.related-title {
		font-size: 1.5rem;
		color: #333;
		font-weight: 600;
		margin-bottom: 30px;
		padding-bottom: 15px;
		border-bottom: 2px solid #F5E5E7;
		display: flex;
		align-items: center;
		gap: 10px;
}
.related-title i {
		color: var(--primary-color);
}
.related-list {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
		gap: 20px;
}
.related-item {
		background: #FFF5F7;
		border-radius: 10px;
		overflow: hidden;
		cursor: pointer;
		transition: all 0.3s;
		text-decoration: none;
		display: block;
}
.related-item:hover {
		transform: translateY(-5px);
		box-shadow: 0 8px 20px rgba(212, 165, 165, 0.2);
}
.related-item-image {
		width: 100%;
		height: 213px;
		overflow: hidden;
		background: #F5F5F5;
}
.related-item-image img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: transform 0.5s;
}
.related-item:hover .related-item-image img {
		transform: scale(1.1);
}
.related-item-content {
		padding: 20px;
}
.related-item-date {
		font-size: 0.8rem;
		color: #999;
		margin-bottom: 8px;
}
.related-item-title {
		font-size: 1rem;
		color: #333;
		font-weight: 500;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		line-height: 1.6;
}
/* 文章目錄 */
.article-toc {
		list-style: none;
		padding: 0;
		margin: 0;
}
.toc-item {
		margin-bottom: 10px;
}
.toc-link {
		display: block;
		padding: .5rem;
		color: #666;
		text-decoration: none;
		border-radius: 8px;
		transition: all 0.3s;
		font-size: 0.9rem;
}
.toc-link:hover, .toc-link.active {
		background: #FFF5F7;
		color: var(--primary-color);
		padding-left: 20px;
}
.toc-item.level-3 .toc-link {
		padding-left: 25px;
		font-size: 1rem;
}
@media (max-width: 1199px) {
		.news-list .news-image {
				width: 180px;
				height: 180px;
		}
		.news-read-more, .news-content .news-excerpt {
				font-size: .85rem;
		}
		.news-content .news-excerpt {
				-webkit-line-clamp: 2;
				margin-bottom: .5rem;
		}
		.news-content .news-title {
				font-size: 1rem;
				margin-bottom: .5rem;
		}
		.featured-news-content .news-meta, .news-content .news-meta {
				font-size: .75rem;
		}
		.news-content {
				padding: 0 0 0 20px;
		}
		.news-footer {
				padding-top: 0;
		}
		.featured-news-image {
				height: 300px;
		}
}
@media (max-width: 991px) {
		.sidebar {
				position: static;
				margin-top: 40px;
		}
		.news-list .news-image {
				width: 160px;
				height: 160px;
		}
		.featured-news-content {
				padding: 25px;
		}
		.featured-news-title {
				font-size: 1.5rem;
		}
		.featured-news-excerpt {
				font-size: 1rem;
		}
		.category-tabs {
				justify-content: center;
		}
		/* 詳細頁響應式 */
		.article-header {
				padding: 30px 25px;
		}
		.article-title {
				font-size: 1.8rem;
		}
		.article-featured-image {
				height: 300px;
		}
		.article-content {
				padding: 30px 25px;
		}
		.article-body {
				font-size: 1rem;
		}
		.article-body h2 {
				font-size: 1.5rem;
		}
		.article-tags, .article-share, .article-navigation {
				padding: 20px 25px;
		}
		.article-navigation {
				flex-direction: column;
		}
		.nav-article.next {
				text-align: left;
		}
		.related-list {
				grid-template-columns: 1fr;
		}
}
@media (max-width: 766px) {
		.featured-news-title {
				font-size: 1.25rem;
		}
		.news-list .news-badge, .tag-cloud-item, .featured-badge {
				font-size: .75rem;
				padding: 3px 8px;
		}
}
@media (max-width: 576px) {
		.featured-news-image {
				height: 200px;
		}
		.news-footer {
				flex-direction: column;
				align-items: flex-start;
		}
		.news-read-more {
				margin: 1rem 0 0 2px;
		}
		.featured-news-title {
				font-size: 1rem;
		}
		.featured-news-excerpt {
				font-size: .85rem;
		}
		.news-list .news-item {
				flex-direction: column;
		}
		.news-content .news-meta {
				font-size: .65rem;
				justify-content: space-between;
				gap: 5px;
		}
		.news-list {
				display: grid;
				gap: 10px;
				grid-template-columns: repeat(2, 1fr);
		}
		.news-list .news-image {
				width: 100%;
				height: auto;
				aspect-ratio: 1 / 1;
		}
		.news-content {
				padding: 10px 0;
		}
		.news-read-more, .news-content .news-excerpt {
				font-size: .75rem;
		}
		.news-content .news-title {
				font-size: .875rem;
		}
		.news-content .news-tag, .news-list .news-badge, .tag-cloud-item, .featured-badge {
				font-size: .65rem;
				padding: 3px 8px;
		}
		.news-list {
				padding: 15px 15px;
		}
		.empty-state {
				padding: 30px 20px;
		}
		.empty-state-icon {
				font-size: 3rem;
		}
		.empty-state-text {
				font-size: 1rem;
		}
		.btn-empty-action {
				font-size: .85rem;
		}
}