/* 基礎現代禪意風格設定 */
:root {
    --primary-color: #1a3c1a;
    --secondary-color: #bfa15f;
    --light-bg: #f9f8f3;
    --dark-text: #2c2c2c;
    --white: #ffffff;
    --accent-color: #e74c3c;
    --footer-bg: #112811;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
}

body {
	font-family: "Microsoft JhengHei", "微軟正黑體", sans-serif;
    color: var(--dark-text);
    line-height: 1.5;
    background: url(../images/bg.png) repeat;
    position: relative;
    overflow-x: hidden;
}

/* 蓮花浮水印 */
body::after {
    content: "";
    position: fixed;
    top: 50%;
    right: 0;
    width: 500px;
    height: 500px;
    background: url(../images/holdingLotus.png) no-repeat center center / contain;
    transform: translate(30%, 0%);
    z-index: -1;
    pointer-events: none;
    opacity: 0.2;
    filter: grayscale(20%) brightness(1.０) contrast(120%) blur(0.5px);
}

/* ─── 頁首 ─── */
header {
    background: linear-gradient(rgba(26, 60, 26, 0.65), rgba(26, 60, 26, 0.95)), url('../images/banner.png') no-repeat center/cover;
    color: var(--white);
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 15px;

}

.logo-area  {
    display: flex;
    align-items: center;
	text-decoration: none;
	color: inherit;

}

.logo-area:hover {
    opacity: 0.8;             /* 滑鼠移過去時稍微變透明一點點 */
}

.logo-icon {
    font-size: 4.1rem;
    font-weight: 1000;
    color: #ffd700;
    text-shadow:
        1px 1px 0px #ccac00,
        -1px -1px 0px #ffe866,
        0 0 12px rgba(255, 215, 0, 0.6);
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
    
    /* ─── 保持你原本調好的上下位置 ─── */
    transform: translateY(-8px); 

    /* ─── 關鍵修改：用負的 margin-right 讓卍字單獨左移，且右側元素自動貼近 ─── */
    margin-right: 15px;  /* 數字越負，卍字就越往左邊挪動（原本是 0） */
}

.logo-text {
    /* ─── 新增：讓整個文字區塊往左邊靠近卍字 ─── */
    margin-left: -5px; 
}

.logo-text h1 {
    font-size: 1.5rem;
    letter-spacing: 0px;
    display: block;
    line-height: 1.2;
}

.logo-img {
    width: 50%;
    display: inline-block;
    margin-bottom: -5px;
    vertical-align: bottom;
    margin-right: 6px;
}

.logo-text p {
    font-size: 0.9rem;
    color: #dcdcdc;
    /* ─── 修改：減少字距，並可單獨微調英文字左移 ─── */
    letter-spacing: 2px; /* 原為 4px，縮減字距也會讓視覺上往左收 */
    margin-left: -2px;   /* 強制英文字再往左邊移動 */
}



.slogan {
    font-size: 1.5rem;
    border-left: 2px solid var(--secondary-color);
    padding-left: 15px;
    color: var(--secondary-color);
    letter-spacing: 3px;
}

/* ─── 主要內容佈局 ─── */
main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.content-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0;
}

.video-section, .program-section {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* ─── 通用標題列 ─── */
.section-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.live-title-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 4px 12px;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 4px;
    margin-left: auto;
    transition: all 0.3s ease;
}

.live-title-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* ─── 站點切換 ─── */
.source-switcher {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.switch-btn {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--secondary-color);
    padding: 6px 16px;
    font-size: 0.95rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.switch-btn:hover {
    background-color: #f5f0e1;
}

.switch-btn.active {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

/* ─── 每日一句 ─── */
.daily-quote-container {
    background-color: #fcfbfa;
    border: 1px solid rgba(191, 161, 95, 0.4);
    border-left: 5px solid var(--secondary-color);
    border-radius: 6px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: inset 0 0 10px rgba(191, 161, 95, 0.05);
}

.daily-quote-title {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: bold;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.daily-quote-content {
    font-size: 1.15rem;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.6;
}

/* ─── 播放器 ─── */
.live-player-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.live-player-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ───  郵局轉帳捐款單 按鈕樣式 ─── */
.postal-form-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 24px;
    background-color: var(--secondary-color); /* 使用金褐色 */
    color: var(--white) !important;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.postal-form-btn:hover {
    background-color: #a88b4a; /* 懸停時顏色稍深 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}


/*
.live-badge {
    position: absolute;
    top: 35px;
    left: 15px;
    background-color: transparent;
    color: #fdfd4a;
    padding: 0;
    font-size: 0.2rem;
    font-weight: bold;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}
*/

.live-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    background-color: #ff3b30;
    border-radius: 50%;
    display: inline-block;
    animation: live-blink 1.5s infinite ease-in-out;
}

@keyframes live-blink {
    0%   { opacity: 1; transform: scale(1); }
    50%  { opacity: 0.2; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* ─── 節目表 ─── */
.live-list-container {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #fbfbfa;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #eee;
    max-height: 420px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

#live-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: var(--white);
    border-radius: 4px;
    border-bottom: 1px solid #f1f1f1;
    font-size: 0.95rem;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item.is-now {
    background-color: #fffdf6;
    border-left: 4px solid var(--secondary-color);
    font-weight: bold;
}

.item-time {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #666;
    width: 110px;
    flex-shrink: 0;
}

.is-now .item-time {
    color: var(--primary-color);
}

.playing-text {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.item-link {
    color: var(--dark-text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.is-now .item-link {
    color: #000;
}

/* ─── 動態播映狀態列 ─── */
.current-program-bar {
    background-color: #fff9e6;
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: bold;
}

/* ─── 右側邊欄 ─── */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* ─── 快速導覽網格卡片 ─── */
.grid-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* ─── 右側邊欄：淺翡翠白玉浮雕（嫩綠微光漸層版） ─── */
.grid-menu .menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 12px 24px 12px;
    text-decoration: none;
    
    /* ─── 核心修改：參考 image_3c7cf9.png 調配的極淡翡翠綠到暖白漸層 ─── */
    /* 左上角帶有一抹淡淡的清透嫩綠（#e6f4de），右下角收在溫潤的白玉色（#fafaf7） */
    background: linear-gradient(135deg, #e6f4de 0%, #fafaf7 100%);
    
    /* 雙層玉石立體內陰影：上方白光反光，下方微弱墨綠內縮，製造玉石微凹凸的厚度感 */
    box-shadow: 
        0 6px 20px rgba(26, 60, 26, 0.03),
        inset 0 3px 5px rgba(255, 255, 255, 0.85),
        inset 0 -3px 6px rgba(26, 60, 26, 0.02);
        
    /* 讓卡片邊框更溫和，帶有一點點微弱的黃綠色調 */
    border: 1px solid rgba(191, 161, 95, 0.12);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.grid-menu .menu-card .menu-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2b4235; /* 沉穩的墨綠竹葉色，壓住淺綠色底，保持文字清晰好讀 */
    letter-spacing: 3px;
    text-align: center;
    margin-top: 8px;
    transition: color 0.3s ease;
}

.grid-menu .menu-card .menu-icon {
    width: 140px;
    height: 70px;
    background-image: url(../images/lotus.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 65px;
    
    /* 保持蓮花粉紅原色，淡金佛光與粉紅聖光重疊，在淺綠卡片上更顯神聖 */
    filter: saturate(100%) brightness(1.02)
            drop-shadow(0 0 6px rgba(212, 175, 55, 0.35))
            drop-shadow(0 0 12px rgba(255, 182, 193, 0.2));
            
    transform: scale(1);
    transition: all 0.3s ease;
}

/* ─── 懸停（Hover）狀態 ─── */
.grid-menu .menu-card:hover {
    /* Hover時，漸層微微流動，嫩綠感稍微明顯一點點，像玉石照到光一樣通透 */
    background: linear-gradient(135deg, #def0d4 0%, #ffffff 100%);
    
    /* 邊框浮現溫潤的琥珀金（--secondary-color） */
    border-color: rgba(191, 161, 95, 0.5);
    
    /* 影子變虛、變深，讓卡片有優雅浮起的視覺效果 */
    box-shadow: 
        0 12px 28px rgba(26, 60, 26, 0.06),
        inset 0 2px 4px rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.grid-menu .menu-card:hover .menu-text {
    color: var(--secondary-color); /* 文字變為典雅的暖金黃色 */
}

/* Hover 時蓮花聖光加強 */
.grid-menu .menu-card:hover .menu-icon {
    transform: scale(1.08);
    filter: saturate(115%) brightness(1.05)
            drop-shadow(0 0 8px rgba(212, 175, 55, 0.55))
            drop-shadow(0 0 18px rgba(255, 105, 180, 0.35));
}

/* ─── 橫向資訊卡片（QR Code、YouTube、OTT）─── */
.list-card {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    flex-wrap: wrap;
    text-decoration: none;
    background: #ffffff;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 16px;
    transition: background 0.3s ease;
}

a.list-card:hover {
    background: #fbf9f5;
}

.list-card .list-card-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin: 0 auto;
    border-radius: 8px;
}

.list-card .list-card-icon.is-qrcode {
    background: #5c4015;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
}

.list-card .list-card-icon.is-youtube {
    background: #e74c3c;
}

.list-card .list-card-icon.is-ott {
    background: #00a0e9;
}

.list-card .list-card-info {
    flex: 1;
    min-width: 160px;
    text-align: center;
    margin-top: 5px;
}

.list-card .list-card-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.list-card .list-card-info p {
    margin: 4px 0 0 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* ─── 頁尾 ─── */
.main-footer {
    background-color: var(--footer-bg);
    color: #d1dfd1;
    padding: 50px 20px 20px 20px;
    margin-top: 60px;
    border-top: 4px solid var(--secondary-color);
    font-size: 0.95rem;
}

.main-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.footer-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-block-title {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-contact-list {
    list-style: none;
    margin-bottom: 20px;
}

.footer-contact-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.donation-card-postal {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(191, 161, 95, 0.3);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.donation-type-label {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.donation-account-number {
    font-size: 1.6rem;
    color: #ff6b6b;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.donation-account-name {
    font-size: 0.85rem;
    color: #bbb;
}

.footer-bank-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.donation-card-bank {
    background-color: rgba(255,255,255,0.03);
    border-left: 3px solid var(--secondary-color);
    padding: 12px 18px;
    border-radius: 0 8px 8px 0;
}

.donation-card-bank.is-intl {
    border-left-color: #5fa1bf;
}

.bank-region-badge {
    display: inline-block;
    font-size: 1.1rem;
    /*background-color: var(--secondary-color);*/
    color: #f7aa00; /*var(--secondary-color)*/
    padding: 1px 8px;
    border-radius: 3px;
    font-weight: bold;
    margin-bottom: 8px;
}

.bank-region-badge.is-intl {
    /*background-color: #5fa1bf;*/
    color: #00d9d9;/*var(--secondary-color);*/
}

.bank-meta-table {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
}

.meta-row {
    display: flex;
    word-break: break-all;
	
}

.meta-label {
    color: #99b399;
    width: 70px;
    flex-shrink: 0;
	white-space: nowrap;
}

.meta-val {
    color: #eee;
}

.highlight-num {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #fff;
    font-size: 1.05rem;
}

.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #839b83;
    flex-wrap: wrap;
    gap: 10px;
}

.security-protocol-badge {
    background-color: rgba(0,0,0,0.2);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #bfa15f;
    display: inline-flex;
    align-items: center;
}

/* ─── RWD 手機版 ─── */
@media (max-width: 768px) {
    header {
        position: static;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }


    /* 1. 確保所有項目都存在，不要隱藏（這樣才能滑動） */
	#live-list .list-item {
		display: flex !important;
	}

	/* 2. 限制容器高度剛好為 3 個項目的高度，並開啟滾動 */
	.live-list-container {
		max-height: 146px !important;                 /* 鎖定 3 個節目的視覺高度 */
		overflow-y: auto !important;                  /* 內容超出 3 個時允許滾動 */
		-webkit-overflow-scrolling: touch !important; /* 優化 iOS 手機滑動流暢度 */
	}


    main {
        grid-template-columns: 1fr;
        margin: 20px auto;
    }

    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .slogan {
        border-left: none;
        border-top: 2px solid var(--secondary-color);
        padding-left: 0;
        padding-top: 5px;
    }

    .video-section, .program-section {
        padding: 15px;
    }

    .list-item {
        flex-wrap: wrap;
        padding: 12px 10px;
    }

    .item-link {
        white-space: normal;
        width: 100%;
        margin-top: 2px;
    }

    .footer-layout-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}