/* ============================================================
   最新資訊頁樣式
   ============================================================ */

/* 分類篩選標籤 */
.news-filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.news-tab {
  padding: 8px 20px;
  border: 1px solid rgba(208, 188, 101, 0.3);
  border-radius: 4px;
  background: transparent;
  color: var(--text-light);
  font-family: 'Noto Sans HK', sans-serif;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.news-tab:hover {
  border-color: var(--gold-2);
  color: var(--gold-2);
}

.news-tab.active {
  background: var(--gold-2);
  border-color: var(--gold-2);
  color: #fff;
}

/* 文章卡片 */
.news-article {
  background: #fff;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.news-article:hover {
  border-color: var(--gold-2);
  box-shadow: var(--shadow-gold);
}

/* 置頂文章 */
.featured-article .article-img {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.featured-article .article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-article:hover .article-img img {
  transform: scale(1.03);
}

.article-cat {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold-2);
  color: #fff;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
}

.article-featured {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(26, 20, 8, 0.8);
  color: var(--gold-1);
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
}

.featured-article .article-body {
  padding: 24px;
}

.article-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.article-meta span {
  font-size: 13px;
  color: var(--text-muted);
}

.article-meta span i {
  color: var(--gold-2);
  margin-right: 4px;
}

.featured-article h2 {
  font-family: 'Noto Serif HK', serif;
  font-weight: 300;
  font-size: 26px;
  margin: 0 0 14px;
}

.featured-article h2 a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured-article h2 a:hover {
  color: var(--gold-2);
}

.featured-article p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.article-tags {
  display: flex;
  gap: 8px;
}

/* 小圖文章 */
.news-article .row {
  margin: 0;
}

.article-img-sm {
  height: 100%;
  min-height: 140px;
  overflow: hidden;
}

.article-img-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-article:hover .article-img-sm img {
  transform: scale(1.05);
}

.article-body-sm {
  padding: 20px;
}

.article-cat-inline {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  margin-left: 10px;
}

.article-cat-inline.project {
  background: rgba(173, 131, 60, 0.15);
  color: var(--gold-2);
  border: 1px solid rgba(173, 131, 60, 0.3);
}

.article-cat-inline.platform {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.article-cat-inline.market {
  background: rgba(20, 184, 166, 0.1);
  color: #0d9488;
  border: 1px solid rgba(20, 184, 166, 0.2);
}

.article-body-sm h4 {
  font-family: 'Noto Serif HK', serif;
  font-weight: 400;
  font-size: 18px;
  margin: 8px 0 10px;
}

.article-body-sm h4 a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-body-sm h4 a:hover {
  color: var(--gold-2);
}

.article-body-sm p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-more {
  font-size: 14px;
  color: var(--gold-2);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-more:hover {
  color: var(--gold-1);
}

/* 分頁 */
.news-pagination {
  margin-top: 30px;
  text-align: center;
}

.pagination-gold > li > a,
.pagination-gold > li > span {
  color: var(--gold-2);
  border-color: rgba(208, 188, 101, 0.3);
  font-family: 'Noto Sans HK', sans-serif;
  transition: all 0.3s ease;
}

.pagination-gold > li > a:hover {
  background: rgba(208, 188, 101, 0.1);
  border-color: var(--gold-2);
  color: var(--gold-2);
}

.pagination-gold > li.active > a,
.pagination-gold > li.active > span {
  background: var(--gold-2);
  border-color: var(--gold-2);
  color: #fff;
}

/* 側邊欄 */
.sidebar-widget {
  background: #fff;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.widget-title {
  font-family: 'Noto Serif HK', serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--text-dark);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-gold);
}

.sidebar-widget .input-group .form-control {
  border: 1px solid rgba(208, 188, 101, 0.3);
  border-right: none;
  border-radius: 4px 0 0 4px;
  height: 40px;
  font-size: 15px;
}

.btn-gold-sm {
  background: var(--gold-2);
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  padding: 0 14px;
  height: 40px;
}

.btn-gold-sm:hover {
  background: var(--gold-1);
  color: #fff;
}

/* 側邊欄項目 */
.sidebar-projects {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-project-item {
  display: flex;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.sidebar-project-item:hover {
  opacity: 0.8;
}

.sp-img {
  width: 70px;
  height: 52px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.sp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-info h6 {
  font-family: 'Noto Sans HK', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  margin: 0 0 4px;
  line-height: 1.4;
}

.sp-return {
  font-size: 13px;
  color: var(--gold-2);
  font-weight: 500;
}

/* 分類列表 */
.sidebar-cats {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-cats li {
  border-bottom: 1px solid rgba(208, 188, 101, 0.1);
}

.sidebar-cats li:last-child {
  border-bottom: none;
}

.sidebar-cats li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  color: var(--text-dark);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sidebar-cats li a:hover {
  color: var(--gold-2);
}

.sidebar-cats li a span {
  background: rgba(208, 188, 101, 0.15);
  color: var(--gold-2);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

/* CTA 側邊欄 */
.sidebar-cta {
  background: linear-gradient(135deg, #1a1408, #2a1f0a) !important;
  border-color: var(--gold-2) !important;
  text-align: center;
}

.sidebar-cta .cta-icon {
  width: 56px;
  height: 56px;
  background: rgba(208, 188, 101, 0.15);
  border: 1px solid rgba(208, 188, 101, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: var(--gold-1);
}

.sidebar-cta h5 {
  font-family: 'Noto Serif HK', serif;
  font-weight: 300;
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
}

.sidebar-cta p {
  font-size: 14px;
  color: rgba(228, 226, 223, 0.65);
  margin-bottom: 16px;
}

/* 彈窗樣式 */
.modal-tickcash .modal-header {
  background: linear-gradient(135deg, #1a1408, #2a1f0a);
  border-bottom: 1px solid var(--gold-2);
  padding: 20px 24px;
}

.modal-tickcash .modal-header .close {
  color: rgba(228, 226, 223, 0.7);
  opacity: 1;
  font-size: 24px;
}

.modal-tickcash .modal-header .close:hover {
  color: var(--gold-1);
}

.modal-cat {
  display: inline-block;
  background: rgba(208, 188, 101, 0.2);
  color: var(--gold-1);
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
}

.modal-tickcash .modal-title {
  font-family: 'Noto Serif HK', serif;
  font-weight: 300;
  font-size: 22px;
  color: #fff;
  margin: 0;
}

.modal-meta {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.modal-meta span {
  font-size: 13px;
  color: rgba(228, 226, 223, 0.5);
}

.modal-meta span i {
  color: var(--gold-2);
  margin-right: 4px;
}

.modal-tickcash .modal-body {
  padding: 24px;
}

.modal-img {
  border-radius: 6px;
  margin-bottom: 20px;
}

.modal-tickcash .modal-body p {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.8;
}

.modal-tickcash .modal-body h5 {
  font-family: 'Noto Serif HK', serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--text-dark);
  margin: 20px 0 10px;
}

.modal-tickcash .modal-body ul {
  padding-left: 20px;
}

.modal-tickcash .modal-body ul li {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.6;
}

.modal-tickcash .modal-footer {
  border-top: 1px solid var(--border-gold);
  padding: 16px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* 響應式 */
@media (max-width: 767px) {
  .article-img-sm {
    min-height: 180px;
  }

  .news-article .row {
    margin: 0;
  }

  .article-body-sm {
    padding: 16px;
  }

  .featured-article h2 {
    font-size: 22px;
  }
}
