/**
 * @name: home.css
 * @description: 首頁專用樣式 - 水中月民宿
 * @version: 3.0.0
 */

/* ================================
   Section 通用樣式
   ================================ */
.home-section {
    position: relative;
}

.section-title {
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0.5rem auto 0;
}

.section-title.text-center::after {
    margin: 0.5rem auto 0;
}

.section-title:not(.text-center)::after {
    margin: 0.5rem 0 0;
}

.section-subtitle {
    color: var(--text-tertiary);
    font-size: 1rem;
    margin-top: 0.75rem;
}

/* 滾動進場動畫 */
.section-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   大幻燈片 (Hero Swiper)
   ================================ */
.hero-section {
    margin-bottom: 0;
}

.hero-swiper {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 700px;
}

.hero-swiper .swiper-slide {
    height: 60vh;
    min-height: 400px;
    max-height: 700px;
}

.hero-swiper .carousel-slide-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-swiper .carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-swiper .carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-swiper .carousel-custom-html {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: auto;
}

.hero-swiper .carousel-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    padding: 2rem;
    z-index: 10;
}

.hero-swiper .carousel-content.align-left {
    text-align: left;
    padding-left: 10%;
}

.hero-swiper .carousel-content.align-center {
    text-align: center;
}

.hero-swiper .carousel-content.align-right {
    text-align: right;
    padding-right: 10%;
}

.hero-swiper .carousel-title {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    color: inherit;
}

.hero-swiper .carousel-subtitle {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    color: inherit;
}

.hero-swiper .carousel-btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all var(--transition-speed, 0.3s) ease;
}

.hero-swiper .carousel-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Swiper 導航按鈕 */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-speed, 0.3s) ease;
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
    color: #fff;
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
    font-size: 1.5rem;
}

/* Swiper 分頁指示器 */
.hero-swiper .swiper-pagination {
    bottom: 1.5rem;
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all var(--transition-speed, 0.3s) ease;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: #fff;
    transform: scale(1.2);
}

/* 輪播載入狀態 */
.carousel-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh;
    min-height: 400px;
    background: var(--bg-secondary);
}

/* 空輪播佔位 */
.carousel-placeholder {
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    color: var(--text-secondary);
}

/* ================================
   民宿簡介區塊
   ================================ */
.about-section {
    background-color: var(--bg-primary);
}

.about-image-container {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.about-image-placeholder {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    color: var(--text-tertiary);
    font-size: 4rem;
}

.about-content {
    padding: 1rem 0;
}

.about-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
}

.about-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin-top: 0.75rem;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ================================
   為什麼選擇我們
   ================================ */
.why-choose-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.why-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-primary);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed, 0.3s) ease;
    height: 100%;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.why-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 50%;
    font-size: 1.75rem;
    color: #fff;
}

.why-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.why-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ================================
   精選推薦（主打商品）
   ================================ */
.featured-section {
    background-color: var(--bg-primary);
}

/* 單一精選大圖 */
.featured-hero-card {
    background: var(--bg-secondary);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-speed, 0.3s) ease;
}

.featured-hero-card:hover {
    box-shadow: var(--shadow-lg);
}

.featured-hero-image {
    position: relative;
    height: 100%;
    min-height: 350px;
}

.featured-hero-image img {
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: #fff;
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.featured-hero-body {
    padding: 2.5rem;
}

.featured-hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.featured-hero-summary {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.featured-hero-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* 多個精選卡片 */
.featured-card {
    display: block;
    background: var(--bg-secondary);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: all var(--transition-speed, 0.3s) ease;
    height: 100%;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.featured-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-tertiary);
}

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

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

.featured-card-body {
    padding: 1.25rem;
}

.featured-card-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.featured-card-summary {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ================================
   熱門房型
   ================================ */
.hot-products-section {
    background-color: var(--bg-secondary);
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: all var(--transition-speed, 0.3s) ease;
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.product-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.product-card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.product-card-summary {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-card-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.product-card-unit {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-tertiary);
}

.product-card-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    padding: 2rem 1rem 1rem;
    text-align: center;
    opacity: 0;
    transition: opacity var(--transition-speed, 0.3s) ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.product-card:hover .product-card-hover {
    opacity: 1;
}

/* ================================
   促銷橫幅 CTA
   ================================ */
.cta-section {
    position: relative;
    background: linear-gradient(135deg, #1a1714 0%, #2e2a24 50%, #3d3632 100%);
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/about-home.jpg') center/cover no-repeat;
    opacity: 0.15;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 0;
}

.btn-cta-primary {
    background: var(--primary-color);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    transition: all var(--transition-speed, 0.3s) ease;
    display: inline-flex;
    align-items: center;
}

.btn-cta-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(195, 13, 35, 0.4);
}

.btn-cta-secondary {
    background: transparent;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all var(--transition-speed, 0.3s) ease;
    display: inline-flex;
    align-items: center;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

/* ================================
   佈告欄（輕巧風格）
   ================================ */
.bulletin-section {
    background-color: var(--bg-secondary);
}

/* 輕巧佈告欄列表 */
.bulletin-list-compact {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bulletin-item-compact {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px dashed var(--border-color);
    text-decoration: none;
    transition: all var(--transition-speed, 0.3s) ease;
}

.bulletin-item-compact:last-child {
    border-bottom: none;
}

.bulletin-item-compact:hover {
    text-decoration: none;
}

.bulletin-item-compact:hover .bulletin-compact-title {
    color: var(--primary-color);
}

/* 日期 */
.bulletin-item-compact .bulletin-compact-date {
    flex-shrink: 0;
    width: 100px;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 400;
}

/* 標籤 */
.bulletin-item-compact .bulletin-compact-tag {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 0.35rem 0.875rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
    margin-right: 1.5rem;
    text-align: center;
}

/* 置頂圖標 */
.bulletin-item-compact .bulletin-compact-pinned {
    color: var(--primary-color);
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* 標題 */
.bulletin-item-compact .bulletin-compact-title {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--transition-speed, 0.3s) ease;
}

/* 公告區空狀態 */
.bulletin-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border-radius: 0.5rem;
}

/* ================================
   合作夥伴
   ================================ */
.partners-section {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-light);
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    border: 1px solid var(--border-light);
    transition: all var(--transition-speed, 0.3s) ease;
    text-decoration: none;
    min-width: 120px;
    min-height: 60px;
}

.partner-logo:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
    text-decoration: none;
}

.partner-logo img {
    max-height: 40px;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition-speed, 0.3s) ease;
}

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

.partner-text {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

/* ================================
   南投本月活動月曆
   ================================ */
.events-calendar-section {
    background: linear-gradient(175deg, #f5f3ef 0%, #eae6df 40%, #e8e4dc 100%);
    position: relative;
    overflow: hidden;
}

.events-calendar-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(195, 167, 125, 0.10) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.events-calendar-section::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(120, 150, 100, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* 月曆捲動容器 */
.cal-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 2.5rem;
    border-radius: 1rem;
    background: var(--bg-primary, #fff);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
    padding: 1.25rem;
}

.cal-scroll-wrapper:focus {
    outline: 2px solid var(--primary-color, #8b6f47);
    outline-offset: 2px;
}

/* 月曆表格 */
.events-calendar {
    width: 100%;
    min-width: 480px;
    border-collapse: separate;
    border-spacing: 6px;
    table-layout: fixed;
}

.events-calendar thead th {
    text-align: center;
    padding: 0.5rem 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary, #6b6b6b);
    letter-spacing: 0.05em;
}

.events-calendar tbody td {
    text-align: left;
    vertical-align: top;
    height: 88px;
    border-radius: 0.5rem;
    position: relative;
    background: var(--bg-secondary, #f8f6f3);
    transition: background 0.2s ease;
}

.events-calendar tbody td.cal-empty {
    background: transparent;
}

/* 日期數字 */
.cal-day {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary, #333);
    text-decoration: none;
    border-radius: 0.5rem;
    position: relative;
    padding: 0.42rem 0.5rem;
    overflow: hidden;
}

/* 有活動的日期 */
a.cal-has-event {
    background-color: #d9f2df;
    color: #111;
    font-weight: 700;
    cursor: pointer;
    background-image: linear-gradient(rgba(217, 242, 223, 0.48), rgba(217, 242, 223, 0.72)),
        url('/img/calendar/nantou-events-2026-08-sprite.webp');
    background-repeat: no-repeat;
    background-size: 200% 200%;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95);
    transition: filter 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.cal-event-stars   { background-position: left top; }
a.cal-event-trail   { background-position: right top; }
a.cal-event-walk    { background-position: left bottom; }
a.cal-event-theater { background-position: right bottom; }

/* 當日以清楚的藍色邊框標示，內縮框線不影響表格尺寸。 */
a.cal-today {
    box-shadow: inset 0 0 0 3px #1677d2, 0 0 0 1px rgba(255, 255, 255, 0.9);
}

a.cal-has-event:hover,
a.cal-has-event:focus {
    filter: saturate(1.08) brightness(0.98);
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(120, 150, 100, 0.25);
    text-decoration: none;
    outline: none;
}

a.cal-today:hover,
a.cal-today:focus {
    box-shadow: inset 0 0 0 3px #1677d2, 0 2px 8px rgba(22, 119, 210, 0.28);
}

a.cal-has-event:focus-visible {
    outline: 2px solid var(--primary-color, #8b6f47);
    outline-offset: 2px;
}

/* 週末配色：週六深綠、週日紅
   —— 顏色寫在 .cal-sun / .cal-sat（td）上而非欄位序，日後若改成動態產生月曆
   只要在對應儲存格帶上這兩個 class 即可，不受欄位順序影響。 */
.events-calendar thead th.cal-sat,
.events-calendar tbody td.cal-sat .cal-day {
    color: #2f6b3a;
}

.events-calendar thead th.cal-sun,
.events-calendar tbody td.cal-sun .cal-day {
    color: #c62828;
}

/* 無活動的週末格底色：週六淺綠、週日淺紅。
   只選 span.cal-day —— 有活動的日子是 a.cal-has-event，保留原本的活動底圖。 */
.events-calendar tbody td.cal-sat span.cal-day {
    background-color: #eaf5e6;
}

.events-calendar tbody td.cal-sun span.cal-day {
    background-color: #fdecea;
}

/* 活動指示小點 */
.cal-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7b9a5e;
    margin: 4px 1.5px 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
}

a.cal-has-event .cal-dot:nth-child(2) {
    background: #c3a77d;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    a.cal-has-event:hover,
    a.cal-has-event:focus {
        transform: none;
    }
    .event-card {
        transition: none;
    }
}

/* 活動卡片列表 */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.event-card {
    display: flex;
    align-items: stretch;
    background: var(--bg-primary, #fff);
    border-radius: 0.875rem;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    scroll-margin-top: 100px;
}

.event-card:hover {
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.12));
    transform: translateY(-2px);
}

/* 日期區塊 */
.event-card-date {
    flex-shrink: 0;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    background: linear-gradient(160deg, #7b9a5e 0%, #5c7a45 100%);
    color: #fff;
    text-align: center;
    gap: 0.1rem;
}

/* 日期卡片在綠色、棕色底上皆強制使用白字，避免主題變數覆寫。 */
.event-card-date .event-date-month,
.event-card-date .event-date-day,
.event-card-date .event-date-weekday {
    color: #fff;
}

.event-card-date-range {
    background: linear-gradient(160deg, #8b7355 0%, #6e5a40 100%);
    gap: 0;
}

.event-date-month {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 0.05em;
}

.event-date-day {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
}

.event-card-date-range .event-date-day {
    font-size: 1rem;
    line-height: 1.4;
}

.event-date-weekday {
    font-size: 0.7rem;
    opacity: 0.85;
}

/* 卡片內容 */
.event-card-body {
    flex: 1;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary, #333);
    margin: 0.35rem 0 0.5rem;
    line-height: 1.5;
}

/* 分類標籤 */
.event-tag {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 2rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #fff;
    align-self: flex-start;
}

.event-tag-festival { background: linear-gradient(135deg, #d4956a, #c07b4f); }
.event-tag-culture  { background: linear-gradient(135deg, #7b6fa0, #635590); }
.event-tag-walk     { background: linear-gradient(135deg, #7b9a5e, #5f7d47); }
.event-tag-exhibit  { background: linear-gradient(135deg, #c3a77d, #a88c5c); }
.event-tag-theater  { background: linear-gradient(135deg, #c17878, #a85e5e); }

/* 活動 meta */
.event-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary, #666);
}

.event-meta li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.event-meta li i {
    font-size: 0.8rem;
    color: var(--text-tertiary, #999);
}

.event-meta-note {
    font-style: italic;
    color: var(--text-tertiary, #999) !important;
}

/* 官方連結 */
.event-official-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--primary-color, #8b6f47);
    text-decoration: none;
    align-self: flex-start;
    padding: 0.2rem 0;
    border-bottom: 1px dashed transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.event-official-link:hover,
.event-official-link:focus {
    color: var(--primary-hover, #6e5736);
    border-bottom-color: var(--primary-hover, #6e5736);
    text-decoration: none;
}

.event-official-link:focus-visible {
    outline: 2px solid var(--primary-color, #8b6f47);
    outline-offset: 2px;
}

/* 頁尾備註 */
.events-footer {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.events-update-date {
    font-size: 0.8rem;
    color: var(--text-tertiary, #999);
    margin-bottom: 0.25rem;
}

.events-disclaimer {
    font-size: 0.78rem;
    color: var(--text-tertiary, #999);
    margin-bottom: 0;
}

/* ================================
   載入狀態
   ================================ */
.section-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* ================================
   響應式設計
   ================================ */
@media (max-width: 992px) {
    .hero-swiper,
    .hero-swiper .swiper-slide,
    .carousel-loading,
    .carousel-placeholder {
        height: 50vh;
        min-height: 350px;
    }

    .hero-swiper .carousel-title {
        font-size: 2rem;
    }

    .hero-swiper .carousel-subtitle {
        font-size: 1.1rem;
    }

    .about-image {
        height: 300px;
    }

    .about-image-placeholder {
        height: 300px;
    }

    .about-title {
        font-size: 1.75rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .featured-hero-body {
        padding: 2rem;
    }

    .featured-hero-image {
        min-height: 280px;
    }

    .featured-hero-image img {
        min-height: 280px;
    }

    /* 月曆 992px */
    .events-calendar tbody td {
        height: 76px;
    }
}

@media (max-width: 768px) {
    .hero-swiper,
    .hero-swiper .swiper-slide,
    .carousel-loading,
    .carousel-placeholder {
        height: 40vh;
        min-height: 280px;
    }

    .hero-swiper .carousel-title {
        font-size: 1.5rem;
    }

    .hero-swiper .carousel-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero-swiper .carousel-btn {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }

    .hero-swiper .carousel-content {
        padding: 1rem;
    }

    .hero-swiper .carousel-content.align-left,
    .hero-swiper .carousel-content.align-right {
        padding-left: 5%;
        padding-right: 5%;
    }

    .hero-swiper .swiper-button-prev,
    .hero-swiper .swiper-button-next {
        display: none;
    }

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

    .about-image {
        height: 250px;
    }

    .about-image-placeholder {
        height: 250px;
        font-size: 3rem;
    }

    .about-title {
        font-size: 1.5rem;
        margin-top: 1rem;
    }

    .about-description {
        font-size: 1rem;
    }

    /* CTA 響應式 */
    .cta-title {
        font-size: 1.5rem;
    }

    .cta-subtitle {
        font-size: 0.95rem;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
        margin-bottom: 0.75rem;
    }

    .btn-cta-primary {
        margin-right: 0 !important;
    }

    /* 熱門房型響應式 */
    .product-card-image {
        height: 180px;
    }

    .product-card-hover {
        display: none;
    }

    /* 精選響應式 */
    .featured-hero-image {
        min-height: 220px;
    }

    .featured-hero-image img {
        min-height: 220px;
    }

    .featured-hero-body {
        padding: 1.5rem;
    }

    .featured-hero-title {
        font-size: 1.4rem;
    }

    /* 為什麼選擇我們 響應式 */
    .why-card {
        padding: 1.5rem 1rem;
    }

    .why-icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }

    /* 月曆 768px：手機版活動卡片單欄 */
    .event-card {
        flex-direction: column;
    }

    .event-card-date {
        width: 100%;
        flex-direction: row;
        padding: 0.6rem 1rem;
        gap: 0.5rem;
    }

    .event-card-date-range {
        gap: 0.25rem;
    }

    .event-date-day {
        font-size: 1.25rem;
    }

    .event-card-date-range .event-date-day {
        font-size: 0.9rem;
    }

    .event-date-month {
        font-size: 0.75rem;
    }

    .event-card-body {
        padding: 0.875rem 1rem;
    }

    .event-card-title {
        font-size: 0.95rem;
    }

    .event-meta {
        flex-direction: column;
        gap: 0.2rem;
    }

    /* 輕巧佈告欄響應式 */
    .bulletin-item-compact {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .bulletin-item-compact .bulletin-compact-date {
        width: auto;
        order: 1;
    }

    .bulletin-item-compact .bulletin-compact-tag {
        min-width: auto;
        margin-right: 0;
        order: 2;
    }

    .bulletin-item-compact .bulletin-compact-title {
        width: 100%;
        order: 3;
        margin-top: 0.25rem;
    }

    .bulletin-item-compact .bulletin-compact-pinned {
        order: 0;
    }

    /* 合作夥伴響應式 */
    .partners-logos {
        gap: 1rem;
    }

    .partner-logo {
        padding: 0.75rem 1rem;
        min-width: 100px;
    }
}

@media (max-width: 576px) {
    .hero-swiper,
    .hero-swiper .swiper-slide,
    .carousel-loading,
    .carousel-placeholder {
        height: 35vh;
        min-height: 250px;
    }

    .hero-swiper .carousel-title {
        font-size: 1.25rem;
    }

    .hero-swiper .carousel-subtitle {
        font-size: 0.9rem;
    }

    .about-image {
        height: 200px;
    }

    .about-image-placeholder {
        height: 200px;
    }

    .bulletin-item-compact .bulletin-compact-tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .bulletin-item-compact .bulletin-compact-date {
        font-size: 0.8rem;
    }

    /* 月曆 576px */
    .cal-scroll-wrapper {
        padding: 0.75rem;
    }

    .events-calendar {
        border-spacing: 4px;
    }

    .events-calendar tbody td {
        height: 68px;
    }

    .events-calendar thead th {
        font-size: 0.75rem;
    }

    .cal-day {
        font-size: 0.85rem;
    }

    .event-card-title {
        font-size: 0.9rem;
    }

    .event-meta {
        font-size: 0.8rem;
    }

    .product-card-image {
        height: 160px;
    }

    .featured-card-image {
        height: 180px;
    }

    .category-card {
        padding: 1.5rem 1rem;
    }

    .category-card-icon {
        width: 64px;
        height: 64px;
    }
}
