:root {
    --primary-color: #FF9F41;
    --text-color-dark: #333;
    --text-color-light: #666;
    --bg-light: #fff;
    --border-color: #eee;
    --header-height: 70px;
    --container-width: 1200px;
}

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

body {
    font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: var(--text-color-dark);
    transition: color 0.3s ease, transform 0.2s ease; /* 增加 transform 過渡 */
}

a:hover {
    color: var(--primary-color);
    transform: translateY(-2px); /* 懸停時輕微上移 */
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.btn-read-more, .btn-subscribe, .btn-read-more-sm {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--bg-light);
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; /* 增加動態效果 */
    border: none;
    cursor: pointer;
}

.btn-read-more:hover, .btn-subscribe:hover, .btn-read-more-sm:hover {
    background-color: #e08c3a;
    color: var(--bg-light);
    transform: translateY(-2px); /* 懸停時輕微上移 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 增加陰影 */
}

.btn-read-more-sm {
    padding: 8px 15px;
    font-size: 0.9em;
}

.main-header {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* 增加頭部陰影 */
}

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

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

.logo img {
    height: 48px;
    margin-right: 30px;
    transition: transform 0.3s ease; /* Logo 懸停效果 */
}
.logo img:hover {
    transform: scale(1.05);
}

.main-nav ul {
    display: flex;
    gap: 35px; /* 增加導航項間距 */
}

.main-nav a {
    color: var(--text-color-dark);
    padding: 5px 0;
    position: relative;
    font-size: 1.35em; /* 增大字體大小 */
    transition: color 0.3s ease, transform 0.2s ease; /* 增加 transform 過渡 */
}

.main-nav a.active::after,
.main-nav a:hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px; /* 下劃線位置更低 */
    width: 100%;
    height: 3px; /* 更粗的下劃線 */
    background-color: var(--primary-color);
    transform: scaleX(1); /* 確保下劃線顯示 */
    transition: transform 0.3s ease; /* 下劃線動畫 */
}

.main-nav a:hover::after {
    transform: scaleX(1.1); /* 懸停時下劃線輕微放大 */
}

.main-nav a:not(.active):hover {
    color: var(--primary-color);
    transform: translateY(-3px); /* 懸停時輕微上移 */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.3em; /* 增大圖標大小 */
    color: var(--text-color-light);
}

.header-right i {
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

.header-right i:hover {
    color: var(--primary-color);
    transform: scale(1.1); /* 懸停時圖標放大 */
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0; /* 初始隱藏，用於動畫 */
    transition: opacity 0.3s ease;
}

.search-overlay.active {
    display: flex;
    opacity: 1;
}

.search-box {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px); /* 初始位置，用於動畫 */
    opacity: 0; /* 初始隱藏，用於動畫 */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.search-overlay.active .search-box {
    transform: translateY(0);
    opacity: 1;
}

.search-box form {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.search-box input {
    flex-grow: 1;
    border: none;
    padding: 12px 15px;
    font-size: 1.1em;
    outline: none;
}

.search-box button {
    background-color: var(--primary-color);
    color: var(--bg-light);
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #e08c3a;
}

.search-box .close-search {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2em;
    cursor: pointer;
    color: var(--text-color-light);
    transition: transform 0.2s ease, color 0.3s ease;
}

.search-box .close-search:hover {
    transform: rotate(90deg); /* 關閉按鈕旋轉 */
    color: var(--primary-color);
}

.hero-section {
    background-color: #f8f8f8;
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-section .container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.hero-left {
    flex: 2;
    padding-right: 30px;
    border-right: 1px solid var(--border-color);
}

.hero-right {
    flex: 1;
    padding-left: 30px;
}

.hero-label {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-light);
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: bold;
    margin-bottom: 15px;
}

.hero-left h2 {
    font-size: 2.8em;
    line-height: 1.3;
    margin-bottom: 15px;
}

.hero-left h2 a {
    color: var(--text-color-dark);
}

.hero-description {
    color:#aaa;
    margin-bottom: 25px;
    font-size: 1.05em;
}

.hero-right ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-right li {
    font-size: 1em;
    border-bottom: 1px dotted var(--border-color);
    padding-bottom: 15px;
}

.hero-right li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hero-right li a {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.hero-right .post-date {
    font-size: 0.85em;
    color: var(--text-color-light);
}

.content-section {
    padding: 60px 0;
}

.content-section .container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.main-content-area {
    flex: 3;
}

.sidebar-area {
    flex: 1;
}

.section-title {
    font-size: 1.8em;
    color: var(--text-color-dark);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

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

.article-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.article-card .card-content {
    padding: 20px;
}

.article-card .card-category {
    display: inline-block;
    background-color: #f0f0f0;
    color: var(--text-color-light);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: bold;
    margin-bottom: 10px;
}

.article-card h3 {
    font-size: 1.2em;
    line-height: 1.4;
    margin-bottom: 10px;
}

.article-card h3 a {
    color: var(--text-color-dark);
}

.article-card .card-excerpt {
    font-size: 0.9em;
    color: var(--text-color-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.article-card .card-date {
    font-size: 0.8em;
    color: var(--text-color-light);
}

.explore-title {
    margin-top: 30px;
}

.related-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.topic-card {
    background-color: var(--primary-color);
    color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.topic-card:hover {
    background-color: #e08c3a;
    transform: translateY(-3px);
    color: var(--bg-light);
}

.topic-card img {
    height: 60px;
    width: auto;
    margin: 0 auto 15px auto;
    filter: brightness(0) invert(1);
}

.topic-card h4 {
    font-size: 1.1em;
    color: var(--bg-light);
}

.sidebar-block {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sidebar-block h4 {
    font-size: 1.4em;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-block h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 1px;
}

.subscribe-block p {
    font-size: 0.95em;
    color: var(--text-color-light);
    margin-bottom: 15px;
}

.subscribe-block form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subscribe-block input[type="email"] {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    outline: none;
}

.subscribe-block input[type="email"]:focus {
    border-color: var(--primary-color);
}

.btn-subscribe {
    width: 100%;
}

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

.tag-item {
    display: inline-block;
    background-color: #ececec;
    color: var(--text-color-light);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tag-item:hover {
    background-color: var(--primary-color);
    color: var(--bg-light);
}

.popular-posts-block ul li {
    padding: 10px 0;
    border-bottom: 1px dotted var(--border-color);
}

.popular-posts-block ul li:last-child {
    border-bottom: none;
}

.popular-posts-block ul li a {
    font-size: 1em;
    color: var(--text-color-dark);
    font-weight: 500;
}

.main-footer {
    background-color: #222;
    color: #f0f0f0;
    padding: 60px 0 20px 0;
}

.main-footer a {
    color: #ccc;
}

.main-footer a:hover {
    color: var(--primary-color);
}

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

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1) grayscale(100%) brightness(150%);
}

.footer-description {
    font-size: 0.9em;
    line-height: 1.5;
    color: #ccc;
}

.footer-col h3 {
    font-size: 1.3em;
    color: var(--bg-light);
    margin-bottom: 20px;
}

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

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icons a {
    font-size: 1.5em;
    color: #ccc;
    transition: color 0.3s ease;
}

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

.newsletter-text {
    font-size: 0.9em;
    margin-bottom: 10px;
    color: #ccc;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
    font-size: 0.9em;
}

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

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

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85em;
    color: #aaa;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.footer-bottom a {
    color: #aaa;
}

.page-title-section {
    background-color: #f8f8f8;
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-title-section h1 {
    font-size: 2.5em;
    color: var(--text-color-dark);
    margin-bottom: 15px;
}

.page-title-section p {
    font-size: 1.1em;
    color: var(--text-color-light);
    max-width: 800px;
    margin: 0 auto;
}

.list-article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.list-card {
    display: flex;
    align-items: center;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.list-card .card-image-wrap {
    flex-shrink: 0;
    width: 250px;
    height: 160px;
    margin-right: 25px;
    overflow: hidden;
    border-radius: 6px;
}

.list-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.list-card:hover img {
    transform: scale(1.05);
}

.list-card .card-content {
    flex-grow: 1;
}

.list-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.list-card .card-excerpt {
    font-size: 1em;
    margin-bottom: 15px;
}

.list-card .card-meta {
    font-size: 0.9em;
    color: var(--text-color-light);
    display: flex;
    gap: 20px;
}

.list-card .card-meta .meta-item i {
    margin-right: 5px;
}


.lives-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.live-item {
    display: flex;
    align-items: flex-start;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease;
}

.live-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.live-time {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    margin-right: 25px;
    padding-right: 25px;
    position: relative;
}

.live-time::after {
    content: '';
    position: absolute;
    right: 0;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: var(--primary-color);
    border-radius: 1px;
}

.live-time .time-hour {
    display: block;
    font-size: 1.6em;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.live-time .time-date {
    display: block;
    font-size: 0.9em;
    color: var(--text-color-light);
}

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

.live-title {
    font-size: 1.4em;
    line-height: 1.4;
    margin-bottom: 10px;
}

.live-title a {
    color: var(--text-color-dark);
}

.live-excerpt {
    font-size: 1em;
    color: var(--text-color-light);
    margin-bottom: 15px;
}

.article-detail-section {
    padding: 60px 0;
}

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

.article-header .article-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-light);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 20px;
}

.article-header h1 {
    font-size: 3em;
    line-height: 1.2;
    color: var(--text-color-dark);
    margin-bottom: 20px;
}

.article-header .article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 0.95em;
    color: var(--text-color-light);
}

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

.article-body {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.article-content {
    flex: 3;
    line-height: 1.8;
    font-size: 1.1em;
}

.article-content p {
    margin-bottom: 1em;
}

.article-content img {
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.article-content h2, .article-content h3, .article-content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: var(--text-color-dark);
    line-height: 1.3;
}

.article-content h2 { font-size: 1.8em; }
.article-content h3 { font-size: 1.5em; }
.article-content h4 { font-size: 1.3em; }

.article-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 1em;
    color: var(--text-color-dark);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

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

.article-tags .tag-item {
    background-color: #f0f0f0;
    color: var(--text-color-dark);
    padding: 5px 12px;
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.article-tags .tag-item:hover {
    background-color: var(--primary-color);
    color: var(--bg-light);
}

.article-nav-links {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.article-nav-links div {
    flex-basis: 48%;
}

.article-nav-links a {
    display: block;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    color: var(--text-color-dark);
    font-weight: 500;
    font-size: 0.95em;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.article-nav-links a:hover {
    background-color: #f0f0f0;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.prev-article a { text-align: left; }
.next-article a { text-align: right; }

.related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.related-articles h3 {
    font-size: 1.8em;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.related-articles h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.related-articles .article-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 0;
}

.related-articles .article-card img {
    height: 150px;
}

.pagination {
    margin-top: 40px;
    padding: 15px 20px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.pagination * {
    list-style: none !important; 
}
.pagination a,
.pagination span.pageinfo,
.pagination span.current {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color-dark);
    font-weight: 500;
    font-size: 0.95em;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

.pagination a:hover {
    background-color: #f0f0f0;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.pagination span.current {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-light);
    font-weight: bold;
    cursor: default;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: none;
}

.pagination span.pagebreak {
    border: none;
    background-color: transparent;
    cursor: default;
    padding: 0 5px;
    color: var(--text-color-light);
    min-width: unset;
    height: auto;
    font-weight: bold;
    font-size: 1.1em;
}

.pagination .pageinfo {
    border: 1px solid var(--border-color);
    background-color: #f8f8f8;
    color: var(--text-color-light);
    cursor: default;
    margin-left: 15px;
    font-size: 0.9em;
    padding: 0 15px;
}

.pagination .options {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 15px;
    color: var(--text-color-dark);
    font-size: 0.95em;
}

.pagination .options select {
    height: 38px;
    padding: 0 8px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--bg-light);
    color: var(--text-color-dark);
    font-size: 0.95em;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13%205.4L146.2%20209.3%2018.8%2074.8c-2.6-2.6-6-4-9.7-4-3.7%200-7.1%201.4-9.7%204-5.2%205.2-5.2%2013.8%200%2019l135.9%20135.9c5.2%205.2%2013.8%205.2%2019%200L287%2088.4c5.2-5.2%205.2-13.8%200-19%20-2.6-2.7-6.1-4.1-9.7-4.1z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px;
    padding-right: 25px;
}

.pagination .options input[type="text"],
.pagination .options input[type="number"] {
    width: 60px;
    height: 38px;
    padding: 0 8px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    outline: none;
    text-align: center;
    font-size: 0.95em;
    transition: border-color 0.3s ease;
}

.pagination .options input[type="text"]:focus,
.pagination .options input[type="number"]:focus {
    border-color: var(--primary-color);
}

@media (max-width: 992px) {
    .main-header .container,
    .hero-section .container,
    .content-section .container,
    .article-body {
        flex-direction: column;
        gap: 30px;
    }

    .hero-left, .hero-right, .main-content-area, .sidebar-area {
        width: 100%;
        padding: 0;
        border-right: none;
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-left h2 {
        font-size: 1.8em;
    }

    .article-grid, .related-articles .article-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .list-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .list-card .card-image-wrap {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .live-item {
        flex-direction: column;
        text-align: center;
    }

    .live-time {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
        padding-right: 0;
        border-bottom: 1px dotted var(--border-color);
        padding-bottom: 10px;
    }

    .live-time::after {
        content: none;
    }
    .live-time .time-hour { font-size: 2em; }
    .live-time .time-date { font-size: 1.1em; }


    .article-header h1 {
        font-size: 2em;
    }

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

    .article-nav-links {
        flex-direction: column;
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 15px auto;
    }

    .social-icons {
        justify-content: center;
    }

    .newsletter-form {
        max-width: 300px;
        margin: 0 auto;
    }

    .pagination {
        padding: 10px;
        gap: 6px;
    }

    .pagination a,
    .pagination span.pageinfo,
    .pagination span.current {
        min-width: 35px;
        height: 35px;
        font-size: 0.9em;
        padding: 0 10px;
    }

    .pagination .pageinfo,
    .pagination .options {
        margin-left: 10px;
    }

    .pagination .options select,
    .pagination .options input {
        height: 35px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        /* 在小屏幕上顯示導航菜單，可以使用漢堡菜單或下拉菜單 */
        display: none; /* 您需要實現一個 JS  toggle 來控制顯示 */
    }

    .header-left {
        width: auto; /* 恢復自動寬度 */
        justify-content: flex-start; /* Logo 左對齊 */
    }

    .logo {
        margin-right: 0;
    }

    .header-right {
        position: static; /* 恢復正常位置 */
        top: auto;
        right: auto;
    }

    /* 確保 Logo 和導航在一行，如果導航被隱藏 */
    .main-header .container {
        flex-wrap: nowrap;
    }
}

@media (max-width: 600px) {
    .pagination {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .pagination > *,
    .pagination .pageinfo,
    .pagination .options {
        margin-left: 0;
        width: auto;
    }
    
    .pagination .pageinfo,
    .pagination .options {
        display: flex;
        justify-content: center;
        width: 100%;
        max-width: 300px;
    }

    .pagination .options select,
    .pagination .options input {
        flex-grow: 1;
    }
}

@media (max-width: 480px) {
    .hero-left h2 {
        font-size: 1.5em;
    }
    .article-grid {
        grid-template-columns: 1fr;
    }
    .main-header .container {
        flex-wrap: wrap;
    }
    .logo img {
        height: 35px;
    }
    .header-right {
        gap: 15px;
        font-size: 1.1em;
    }
}