/* --- Base Styles --- */
:root {
    --primary-color: #3CBD00; /* 主色調 */
    --secondary-color: #f0f2f5; /* 淺灰色背景 */
    --text-color: #333;
    --light-text-color: #666;
    --border-color: #e0e0e0;
    --white-color: #fff;
    --dark-bg: #1a1a1a; /* 針對一些深色元素 */
    --card-bg: #fdfdfd; /* 卡片背景 */
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color); /* 淺灰色背景 */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2a8e00; /* 主色的深一點版本 */
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 25px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #2a8e00;
    color: var(--white-color);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* --- Header --- */
.main-header {
    background-color: var(--white-color);
    box-shadow: var(--shadow-light);
    padding: 15px 0;
    margin-bottom: 40px; /* 增加底部間距 */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px; /* Adjust logo size */
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: var(--light-text-color);
    font-weight: bold;
    padding-bottom: 5px;
    position: relative;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a.active::after,
.main-nav a:hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
}

.header-right > div {
    margin-left: 25px;
}

.search-icon i {
    font-size: 1.2rem;
    color: var(--light-text-color);
    cursor: pointer;
}

.country-selector {
    color: var(--light-text-color);
    font-size: 0.95rem;
    cursor: pointer;
}

.country-selector i {
    margin-left: 5px;
}

.user-avatar img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

/* --- Hero Section (Index Page) --- */
.hero-section {
    display: flex;
    background-color: var(--dark-bg);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-medium);
    position: relative;
    min-height: 400px;
    color: var(--white-color);
}

.hero-main-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    position: relative;
}

.hero-main-content .category-tag {
    display: inline-block;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: normal;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.hero-main-content h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--white-color);
    position: relative;
    padding-bottom: 20px;
}
.hero-main-content h2 a {
    color: var(--white-color);
}

.hero-main-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

.hero-main-content h2 span {
    display: inline-block;
    width: 30px;
    height: 20px;
    vertical-align: middle;
    margin-left: 10px;
}

.hero-main-content p {
    color: var(--white-color);
    opacity: 0.8;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    min-width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    background-color: transparent;
    z-index: 1;
}

.desktop-mockup {
    position: relative;
    width: 100%;
    max-width: 500px;
    padding-bottom: 70%;
    height: 0;
}

.desktop-screen-content {
    position: absolute;
    top: 5.5%;
    left: 10.5%;
    width: 79%;
    height: 75%;
    object-fit: cover;
    border-radius: 5px;
    z-index: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-bottom-right-radius: 10px;
    z-index: 3;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 1px;
    height: calc(100% - 20px);
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.hero-main-content::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color) 0%, transparent 100%);
    z-index: 3;
}


/* --- Main Layout for Content + Sidebar --- */
.main-layout-wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.main-content-area {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    padding: 30px;
}

.main-sidebar {
    /* 側邊欄的樣式，每個 block 會有自己的背景和陰影 */
}

/* --- TOP STORIES LIST (Revised for single column) --- */
.top-stories-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.top-story-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.top-story-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.item-thumbnail {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
}

.item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.item-content {
    flex-grow: 1;
}

.item-content h4 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.4;
}

.item-content h4 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.item-content h4 a:hover {
    color: var(--primary-color);
}

.item-content p {
    font-size: 0.95rem;
    color: var(--light-text-color);
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--light-text-color);
}

.item-meta .read-more-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.item-meta .read-more-link:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* --- Sidebar Blocks --- */
.sidebar-block {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    padding: 25px;
    margin-bottom: 30px;
}

.sidebar-block:last-child {
    margin-bottom: 0;
}

.sidebar-block h3 {
    font-size: 1.3rem;
    margin-bottom: 18px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.sidebar-block ul {
    margin-bottom: 20px;
}

.sidebar-block.latest-news ul li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}
.sidebar-block.latest-news ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-block.latest-news ul li .news-title {
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}
.sidebar-block.latest-news ul li .news-title:hover {
    color: var(--primary-color);
}

.sidebar-block.latest-news ul li .news-summary {
    color: var(--light-text-color);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-block.latest-news ul li .news-date {
    color: var(--light-text-color);
    font-size: 0.75rem;
    opacity: 0.8;
}

.sidebar-block.latest-news ul li a {
    padding: 0;
}

.sidebar-block.latest-news .news-graph {
    margin-top: 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}
.sidebar-block.latest-news .news-graph img {
    width: 100%;
    height: auto;
    display: block;
}


/* --- Crypto Market Tracker (in Sidebar) --- */
.sidebar-block.crypto-market-tracker .market-table-wrapper {
    background-color: transparent;
    box-shadow: none;
    overflow-x: auto;
    border-radius: 0;
}

.market-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.market-table th,
.market-table td {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
}

.market-table th {
    background-color: var(--primary-color);
    color: var(--white-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.market-table tbody tr:last-child td {
    border-bottom: none;
}

.market-table td {
    color: var(--text-color);
    font-size: 0.9rem;
}

.market-table td.positive {
    color: #28a745;
    font-weight: bold;
}

.market-table td.negative {
    color: #dc3545;
    font-weight: bold;
}

/* --- Featured Analysis (in Sidebar) --- */
.sidebar-block.featured-analysis .analysis-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.sidebar-block.featured-analysis .analysis-item {
    display: flex;
    align-items: center;
}

.sidebar-block.featured-analysis .analysis-item .analysis-thumb {
    flex: 0 0 50px;
    height: 50px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 15px;
}

.sidebar-block.featured-analysis .analysis-item .analysis-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-block.featured-analysis .analysis-item a {
    flex: 1;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.4;
}

.sidebar-block.featured-analysis .analysis-item a:hover {
    color: var(--primary-color);
}


/* --- Footer --- */
.main-footer {
    background-color: var(--dark-bg);
    color: var(--white-color);
    padding: 40px 0 20px;
    font-size: 0.9rem;
    margin-top: 60px; /* 增加 footer 上方間距，避免與上方白色區塊太靠近 */
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--white-color);
    opacity: 0.8;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-col p {
    line-height: 1.8;
    color: var(--white-color);
    opacity: 0.8;
}

.footer-logo img {
    height: 30px;
    margin-bottom: 15px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    margin-right: 10px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 15px;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #2a8e00;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    margin-top: 30px;
}

.footer-bottom p {
    color: var(--white-color);
    opacity: 0.7;
}

/* --- List Page Header --- */
.list-page-header {
    background-color: var(--white-color);
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    margin-bottom: 40px;
    text-align: center;
}

.list-page-header .page-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.list-page-header .breadcrumb {
    font-size: 0.95rem;
    color: var(--light-text-color);
}

.list-page-header .breadcrumb a {
    color: var(--light-text-color);
}

.list-page-header .breadcrumb span {
    color: var(--primary-color);
    font-weight: bold;
}

/* --- List Section Layout --- */
.news-list-section,
.lives-list-section {
    display: grid;
    grid-template-columns: 3fr 1fr; /* 保持這個，如果它是一個大的佈局容器 */
    gap: 30px;
}

.list-main-content {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    padding: 30px;
}

.list-sidebar {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    padding: 30px;
}

/* --- News List Item (用於列表頁面) --- */
.list-item {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.list-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.list-item-thumbnail {
    flex: 0 0 220px;
    margin-right: 25px;
    border-radius: 8px; /* 修正了這裡的_px，應該是px */
    overflow: hidden;
}

.list-item-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.list-item-content {
    flex: 1;
}

.list-item-content h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.list-item-content h2 a {
    color: var(--text-color);
}

.list-item-meta {
    font-size: 0.85rem;
    color: var(--light-text-color);
    margin-bottom: 10px;
}

.list-item-meta span {
    margin-right: 15px;
}

.list-item-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.list-item-content p {
    color: var(--light-text-color);
    margin-bottom: 15px;
}


/* --- Lives List Section (Fast News) - 修正為兩列布局 --- */
/* 如果 lives-list-section 在你的模板中沒有側邊欄，那麼它應該是 1fr */
/* 我們讓 .lives-timeline-wrapper 成為 2 列的容器 */
.lives-list-section {
    display: block; /* 移除可能的 grid 布局，讓其內容自由流動 */
}

.lives-timeline-wrapper {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    padding: 30px;
    margin-bottom: 40px; /* <--- 新增: 增加這個白色區塊與下方區塊的間距 */

    /* 設置為兩列網格 */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 兩列等寬 */
    gap: 25px; /* 快訊項目之間的間距 */
}

.lives-item {
    /* 不再是時間線，而是獨立的卡片 */
    background-color: var(--card-bg); /* 或保持 var(--white-color) */
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    padding: 20px; /* 為每個卡片添加內邊距 */

    /* 調整內部元素布局 */
    display: flex; /* 讓圖標和內容在卡片內並排 */
    align-items: flex-start;
    margin-bottom: 0; /* 網格間距已處理，不需要額外的 margin-bottom */
    padding-bottom: 0; /* 移除底部內邊距 */
    border-bottom: none; /* 移除時間線虛線 */
    position: relative; /* 如果有內部絕對定位元素，需要保留 */
}

/* 調整 lives-icon 的樣式，讓它不再是時間線上的點，而是卡片內的裝飾 */
.lives-icon {
    position: static; /* 讓圖標回到正常文檔流，不再是時間線上的絕對定位點 */
    margin-right: 15px; /* 調整圖標與內容的間距 */
    flex-shrink: 0; /* 防止圖標縮小 */
    width: 35px; /* 稍微縮小圖標 */
    height: 35px;
    font-size: 1rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: inline-flex; /* 讓圖標和內容在同一行 */
    justify-content: center;
    align-items: center;
    z-index: 1; /* 保持 z-index 如果有需要 */
}

/* 移除時間線連接線，因為兩列布局不適合這種樣式 */
.lives-item:not(:last-child)::before {
    content: none; /* 完全移除連接線 */
}

/* 調整 lives-content 的布局，使其與 lives-icon 並排 */
.lives-content {
    flex: 1; /* 佔據剩餘空間 */
    display: flex;
    flex-direction: column; /* 內容本身是垂直堆疊的 */
}

/* 調整 lives-meta 的間距 */
.lives-meta {
    display: flex; /* 讓時間和日期並排 */
    margin-bottom: 10px; /* 日期和標題之間增加間距 */
    font-size: 0.85rem; /* 調整字體大小 */
}

.lives-meta .lives-time {
    margin-right: 10px; /* 時間和日期之間的間距 */
    font-weight: bold;
    color: var(--primary-color);
}
.lives-meta .lives-date {
    color: var(--light-text-color);
}


.lives-content h3 {
    font-size: 1.1rem; /* 調整標題大小 */
    margin-bottom: 8px;
    line-height: 1.4;
}
.lives-content h3 a {
    color: var(--text-color);
}
.lives-content h3 a:hover {
    color: var(--primary-color);
}


.lives-content p {
    font-size: 0.9rem;
    color: var(--light-text-color);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 限制顯示3行 */
    -webkit-box-orient: vertical;
    overflow: visible;
    text-overflow: ellipsis;
}


/* --- Article Detail Page --- */
.article-detail-page {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    padding: 40px;
    margin-bottom: 60px; /* <--- 之前調整的，增加底部間距 */
}

.article-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.article-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--text-color);
}

.article-meta {
    font-size: 0.95rem;
    color: var(--light-text-color);
    margin-bottom: 15px;
}

.article-meta span {
    margin: 0 10px;
}

.article-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.article-tags {
    margin-top: 15px;
}

.article-tags a {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 0 5px 8px 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.article-tags a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 40px;
}

.article-body p {
    margin-bottom: 1.2em;
}

.article-body img {
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

/* 確保文章內圖片居中和美觀 */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-body th, .article-body td {
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    text-align: left;
}

.article-body pre {
    background-color: var(--secondary-color);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: monospace;
    margin: 20px 0;
}

.article-body h1, .article-body h2, .article-body h3, .article-body h4, .article-body h5, .article-body h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.3;
}

.article-body ul, .article-body ol {
    margin: 15px 0 15px 25px;
}

.article-body li {
    margin-bottom: 8px;
}

/* --- Pagination --- */
.pages {
    margin-top: 40px;
    text-align: center;
}

.pages ul {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.pages li {
    margin: 0 5px;
}

.pages li a,
.pages li span {
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.pages li a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

.pages li span.current {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
    font-weight: bold;
}

.pages li.pageinfo {
    color: var(--light-text-color);
    padding: 10px 15px;
    border: none;
    font-size: 0.9rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-nav {
        order: 3;
        flex-basis: 100%;
        margin-top: 15px;
    }
    .main-nav ul {
        justify-content: center;
    }
    .header-right {
        margin-top: 10px;
    }

    .hero-section {
        flex-direction: column;
        min-height: auto;
    }
    .hero-image {
        min-height: 250px;
        padding: 0;
        background: none;
    }
    .desktop-mockup {
        padding-bottom: 70%;
    }

    .hero-main-content h2 {
        font-size: 2.2rem;
    }
    .hero-main-content p {
        font-size: 0.95rem;
    }

    .main-layout-wrapper {
        grid-template-columns: 1fr;
    }
    .main-sidebar {
        order: 2;
        margin-top: 30px;
    }
    .main-content-area {
        padding: 20px;
    }

    .top-story-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .item-thumbnail {
        width: 100%;
        height: auto;
        max-width: 300px;
    }
    .item-content h4 {
        font-size: 1.15rem;
    }

    .item-meta {
        flex-direction: column;
        gap: 10px;
    }

    .news-list-section {
        grid-template-columns: 1fr;
    }
    .list-sidebar {
        order: 2;
        margin-top: 30px;
    }

    .list-item-thumbnail {
        flex: 0 0 180px;
        margin-right: 20px;
    }
    .list-item-thumbnail img {
        height: 120px;
    }

    /* Lives List Section 響應式調整 */
    .lives-timeline-wrapper {
        grid-template-columns: 1fr; /* 在較小的平板和手機上恢復為單列 */
        gap: 20px;
        padding: 20px;
        margin-bottom: 40px; /* <--- 響應式下也增加間距 */
    }

    .lives-item {
        padding: 15px;
        flex-direction: column; /* 圖標和內容垂直堆疊 */
        align-items: flex-start;
    }

    .lives-icon {
        margin-right: 0;
        margin-bottom: 10px; /* 圖標與內容垂直間距 */
    }

    .lives-item:not(:last-child)::before { /* 再次確保響應式下沒有連接線 */
        content: none;
    }

    .article-title {
        font-size: 2rem;
    }
    .article-detail-page {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 10px 0;
    }
    .logo img {
        height: 35px;
    }
    .main-nav li {
        margin-left: 15px;
    }
    .header-right > div {
        margin-left: 15px;
    }

    .hero-main-content {
        padding: 30px;
    }
    .hero-main-content h2 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .market-table th, .market-table td {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-logo {
        margin: 0 auto 15px;
    }
    .social-links {
        justify-content: center;
    }
    .newsletter-form {
        justify-content: center;
    }
    .newsletter-form input, .newsletter-form button {
        border-radius: 5px;
    }

    .list-page-header .page-title {
        font-size: 2rem;
    }

    .article-title {
        font-size: 2rem;
    }
    .article-detail-page {
        padding: 30px;
    }

    .list-item-thumbnail {
        height: 120px;
    }
    .list-item-content {
        padding: 0 10px;
    }
    .list-item-content h2 {
        font-size: 1.1rem;
    }
    .list-item-content p {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
    }
    .list-item-meta {
        font-size: 0.75rem;
    }

    .lives-timeline-wrapper {
        padding: 20px;
        margin-bottom: 40px; /* <--- 響應式下也增加間距 */
    }

    .article-title {
        font-size: 1.6rem;
    }
    .article-detail-page {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    .main-nav li {
        margin: 5px 0;
    }
    .header-right {
        flex-wrap: wrap;
        justify-content: center;
    }
    .header-right > div {
        margin: 5px 10px;
    }

    .hero-main-content {
        padding: 20px;
    }
    .hero-main-content h2 {
        font-size: 1.5rem;
    }
    .hero-image {
        min-height: 180px;
    }

    .list-item {
        flex-direction: column; /* 小屏幕下列表項垂直堆疊 */
        align-items: center;
        text-align: center;
    }
    .list-item-thumbnail {
        flex: none;
        width: 100%;
        max-width: 300px; /* 限制圖片最大寬度 */
        margin-right: 0;
        margin-bottom: 15px;
        height: 150px; /* 統一高度 */
    }
    .list-item-content {
        padding: 0;
    }
    .list-item-content h2 {
        font-size: 1.2rem; /* 更小的標題 */
    }
    .list-item-content p {
        -webkit-line-clamp: 4;
    }

    .lives-timeline-wrapper {
        padding: 20px;
        margin-bottom: 40px; /* <--- 響應式下也增加間距 */
    }

    .article-title {
        font-size: 1.6rem;
    }
    .article-detail-page {
        padding: 20px;
    }
}