/* 全局樣式 */
:root {
    --primary-color: #e74c3c;
    --secondary-color: #3498db;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --gray-color: #95a5a6;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --font-main: 'Noto Sans TC', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f8f9fa;
}

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

a {
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 10px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.view-all {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.view-all i {
    margin-left: 5px;
    transition: var(--transition);
}

.view-all:hover {
    color: var(--dark-color);
}

.view-all:hover i {
    transform: translateX(5px);
}

/* 按鈕樣式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

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

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

/* 頂部導航欄 */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--dark-color);
    transition: var(--transition);
    order: 2;
}

.mobile-menu-btn:hover {
    color: var(--primary-color);
}

.logo {
    order: 1;
    display: flex;
    justify-content: flex-start;
    flex-grow: 1;
}

.logo a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
    transition: var(--transition);
    text-align: left;
}

.logo h1:hover {
    color: var(--primary-color);
}

.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav li {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

/* 桌機版隱藏手機版頁尾導航 */
.mobile-footer-nav {
    display: none;
}

.login-menu-item {
    display: none;
}

.main-nav a {
    font-weight: 600;
    padding: 8px 24px 8px 20px;
    position: relative;
    display: block;
    color: var(--dark-color);
    transition: var(--transition);
}

.main-nav a:hover {
    color: white;
    background-color: var(--primary-color);
}

.main-nav a.active {
    color: white;
    background-color: var(--primary-color);
}

/* 行動版選單按鈕 */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--dark-color);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--primary-color);
}

.search-login {
    display: flex;
    align-items: center;
}

.search {
    margin-right: 20px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search:hover {
    color: var(--primary-color);
}

.login-btn a {
    font-weight: 600;
    padding: 8px 16px;
    display: inline-block;
    transition: var(--transition);
}

.login-btn a:hover {
    color: var(--primary-color);
}

/* 搜尋表單 */
.search-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1100;
}

.search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.search-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.search-container form {
    display: flex;
    gap: 10px;
}

.search-container input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--gray-color);
    border-radius: 4px;
    font-size: 16px;
}

.search-container button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.search-container button:hover {
    background-color: var(--dark-color);
}

.close-search {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--dark-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 主視覺橫幅 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://via.placeholder.com/1920x600?text=ACT+Taiwan') no-repeat center center/cover;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 最新活動區塊 */
.latest-events {
    padding: 60px 0;
    background-color: white;
}

.events-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
}

/* 輪播導航 */
.slider-nav {
    display: none;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.prev-slide, .next-slide {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--dark-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.prev-slide:hover, .next-slide:hover {
    background-color: var(--primary-color);
    color: white;
}

.slide-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--gray-color);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .slider-nav {
        display: flex;
    }
}

.event-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    line-height: 1.2;
}

.event-date .day {
    font-size: 24px;
    font-weight: 700;
    display: block;
}

.event-date .month {
    font-size: 14px;
    text-transform: uppercase;
}

.event-content {
    padding: 20px;
}

.event-type {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--dark-color);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.event-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--gray-color);
}

.event-meta span {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.event-meta i {
    margin-right: 5px;
}

.event-card p {
    margin-bottom: 20px;
    font-size: 14px;
}

/* 專家推薦區塊 */
.featured-experts {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.expert-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.expert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.expert-image {
    text-align: center;
    padding: 20px 0;
}

.expert-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--light-color);
}

.expert-content {
    padding: 0 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.expert-card h3 {
    font-size: 18px;
    text-align: center;
    margin-bottom: 5px;
}

.expert-title {
    font-size: 14px;
    color: var(--gray-color);
    text-align: center;
    margin-bottom: 15px;
}

.expert-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 15px;
}

.expert-tags span {
    background-color: var(--light-color);
    color: var(--dark-color);
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    margin: 0 5px 5px 0;
}

.expert-card p {
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.expert-card .btn {
    margin-top: auto;
    align-self: center;
}

/* 最新文章區塊 */
.latest-articles {
    padding: 60px 0;
    background-color: white;
}

.articles-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
}

.article-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.article-card.featured {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.article-image {
    height: 200px;
    overflow: hidden;
}

.article-card.featured .article-image {
    height: 300px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-content {
    padding: 20px;
}

.article-category {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.article-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.article-card.featured h3 {
    font-size: 24px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--gray-color);
}

.article-card p {
    margin-bottom: 20px;
    font-size: 14px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.read-more i {
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--dark-color);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* 活動日曆區塊 */
.events-calendar {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.calendar-preview {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

@media (max-width: 992px) {
    .calendar-preview {
        grid-template-columns: 1fr;
    }
    
    .upcoming-events {
        order: -1; /* 在手機版上將即將舉行的活動列表放在日曆上方 */
        margin-bottom: 20px;
        padding-left: 0;
        border-left: none;
        border-bottom: 1px solid var(--light-color);
        padding-bottom: 20px;
    }
}

.calendar-container {
    width: 100%;
}

.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.month-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
}

.month-nav a {
    font-size: 18px;
    color: var(--gray-color);
    margin-left: 10px;
    transition: var(--transition);
}

.month-nav a:hover {
    color: var(--primary-color);
}

.calendar-grid {
    width: 100%;
    border: 1px solid var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    background-color: var(--light-color);
    padding: 10px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-gap: 1px;
    background-color: var(--light-color);
    padding: 1px;
}

.calendar-days div {
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: white;
    transition: var(--transition);
    cursor: pointer;
}

@media (max-width: 576px) {
    .calendar-weekdays {
        font-size: 14px;
    }
    
    .calendar-days div {
        height: 35px;
        font-size: 13px;
    }
    
    .event-indicator {
        width: 4px;
        height: 4px;
        bottom: 3px;
    }
}

.calendar-days div:hover {
    background-color: #f8f9fa;
}

.calendar-days .prev-month-day,
.calendar-days .next-month-day {
    color: var(--gray-color);
    opacity: 0.5;
}

.calendar-days .has-event {
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(231, 76, 60, 0.1);
}

.calendar-days .has-event:hover {
    background-color: rgba(231, 76, 60, 0.2);
}

.event-indicator {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.upcoming-events {
    padding-left: 20px;
    border-left: 1px solid var(--light-color);
}

.upcoming-events h4 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--dark-color);
}

.upcoming-events ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.upcoming-events li {
    display: flex;
    gap: 15px;
    padding: 10px;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.upcoming-events li:hover {
    background-color: #f8f9fa;
}

.event-date {
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    min-width: 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.event-info h5 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.event-location {
    font-size: 14px;
    color: var(--gray-color);
    display: flex;
    align-items: center;
}

.event-location:before {
    content: '\f3c5'; /* Font Awesome map marker icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 5px;
    font-size: 12px;
    color: var(--gray-color);
}

/* 合作夥伴區塊 */
.partners {
    padding: 60px 0;
    background-color: white;
}

.partners-slider {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.partner-logo {
    flex: 0 0 calc(16.666% - 25px);
    text-align: center;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* 加入會員區塊 */
.join-membership {
    padding: 60px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://via.placeholder.com/1920x600?text=Join+Us') no-repeat center center/cover;
    color: white;
}

.membership-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.membership-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.membership-content p {
    font-size: 18px;
    margin-bottom: 40px;
}

.membership-types {
    display: flex;
    justify-content: center;
    gap: 30px;
}

@media (max-width: 768px) {
    .membership-types {
        flex-direction: column;
        align-items: center;
    }
    
    .membership-type {
        width: 100%;
        max-width: 400px;
        margin-bottom: 20px;
    }
    
    .membership-content h2 {
        font-size: 28px;
    }
    
    .membership-content p {
        font-size: 16px;
        margin-bottom: 30px;
    }
}

.membership-type {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
    flex: 1;
    max-width: 350px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.membership-type:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
}

.membership-type h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.membership-type ul {
    margin-bottom: 30px;
    text-align: left;
}

.membership-type li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.membership-type li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--success-color);
}

/* 返回頂部按鈕 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--dark-color);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 15px;
        right: 15px;
    }
}

/* 頁尾區域 */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 3fr 1.5fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* 手機版頁尾 */
.mobile-footer {
    display: none;
}

.footer-logo h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.footer-links-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: white;
    font-weight: 600;
}

.footer-links-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

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

.footer-links-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    transition: var(--transition);
    display: block;
    padding: 2px 0;
}

.footer-links-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.footer-contact h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-contact h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    font-size: 15px;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0 15px;
    transition: var(--transition);
    padding: 4px 8px;
    border-radius: 4px;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.05);
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .experts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .articles-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .article-card.featured {
        grid-column: 1 / span 3;
        grid-row: 1;
    }
}

@media (max-width: 992px) {
    .events-slider {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .experts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .articles-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .article-card.featured {
        grid-column: 1 / span 2;
    }
    
    .calendar-preview {
        grid-template-columns: 1fr;
    }
    
    .upcoming-events {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--light-color);
        padding-top: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* 行動版導航選單 */
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: white;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
        padding: 60px 20px 20px;
        z-index: 999;
        overflow-y: auto;
        transition: left 0.3s ease;
    }
    
    .main-nav.show {
        left: 0;
        display: block;
    }
    
    .main-nav li {
        margin-bottom: 15px;
        width: 100%;
    }
    
    .main-nav a {
        display: block;
        padding: 12px 20px 12px 24px;
        font-size: 18px;
        border-radius: 4px;
    }
    
    /* 登入選項在手機版顯示 */
    .login-menu-item {
        display: block;
        margin-bottom: 15px;
    }
    
    .login-menu-item a {
        color: var(--primary-color);
        font-weight: bold;
    }
    
    /* 手機版頁尾導航 */
    .mobile-footer-nav {
        display: block;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .mobile-footer-links h3,
    .mobile-footer-contact h3 {
        font-size: 18px;
        margin-bottom: 15px;
        color: var(--dark-color);
        padding-left: 15px;
    }
    
    .mobile-footer-links ul {
        padding-left: 15px;
    }
    
    .mobile-footer-links ul li {
        margin-bottom: 10px;
    }
    
    .mobile-footer-links ul li a {
        font-size: 16px;
        padding: 8px 15px;
    }
    
    .mobile-footer-contact {
        padding: 0 15px;
    }
    
    .mobile-footer-contact p {
        margin-bottom: 10px;
        font-size: 15px;
        display: flex;
        align-items: center;
    }
    
    .mobile-footer-contact p i {
        margin-right: 10px;
        color: var(--primary-color);
    }
    
    .mobile-footer-contact .social-links {
        display: flex;
        gap: 10px;
        margin-top: 15px;
    }
    
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
    
    .mobile-menu-overlay.show {
        display: block;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1000;
        order: 1;
    }
    
    /* 調整標誌位置 */
    .logo {
        flex-grow: 1;
        text-align: center;
        order: 2;
    }
    
    header .container {
        display: flex;
        align-items: center;
    }
    
    /* 內容區塊調整 */
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    /* 網格系統調整 */
    .events-slider {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .experts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-card.featured {
        grid-column: 1;
    }
    
    /* 會員類型區塊 */
    .membership-types {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .membership-card {
        width: 100%;
        max-width: 350px;
    }
    
    /* 頁尾調整 */
    .desktop-footer {
        display: none;
    }
    
    .mobile-footer {
        display: block;
        text-align: center;
    }
    
    .mobile-footer .footer-logo {
        width: 100%;
        margin: 0 auto;
    }
    
    .mobile-footer .social-links {
        justify-content: center;
        margin: 20px auto;
    }
    
    .mobile-footer-address {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
        margin-top: 15px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 15px 0;
    }
    
    .footer-bottom-links {
        margin-top: 15px;
    }
    
    .footer-bottom-links a {
        margin: 0 10px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    /* 主視覺區域 */
    .hero {
        padding: 60px 0;
        min-height: auto;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero h2 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    
    /* 區塊標題 */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
    }
    
    .section-header h2 {
        font-size: 24px;
        margin-bottom: 5px;
    }
    
    .view-all {
        margin-top: 10px;
    }
    
    /* 卡片元素調整 */
    .event-card {
        flex-direction: column;
    }
    
    .event-image {
        height: 200px;
    }
    
    .expert-card {
        flex-direction: column;
    }
    
    .expert-image {
        width: 100%;
        height: 200px;
    }
    
    .expert-content {
        padding: 20px;
    }
    
    .article-card {
        flex-direction: column;
    }
    
    .article-image {
        width: 100%;
        height: 200px;
    }
    
    /* 按鈕調整 */
    .btn {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    /* 頁尾調整 */
    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-logo h2 {
        font-size: 20px;
    }
    
    .footer-contact {
        margin-bottom: 20px;
    }
}
