/* =========================================
   CSS 變數參數化設計
========================================= */
:root {
	--color-dark-teal:		#235347; /* 深青色 */
    --color-brown-light:    #6a3906; /* 淺咖啡色 */
    --color-gold:           #ffd700; /* 金色 */
    --color-white:          #ffffff; /* 純白色 */
    --color-black:          #000000; /* 純黑色 */
    --color-dark-blue:      #0f172a; /* 深藍色 */
    --color-cream:          #fffdf5; /* 奶油色/米白色 */
    --color-cream-dark:     #f2ebd9; /* 深奶油色/淺沙色 */
    --color-text-main:      #2c241b; /* 深棕灰色 */
    --color-text-sub:       #5d554a; /* 灰褐色 */

    --radius-sm:            0.5rem;
    --radius-md:            1rem;
    --radius-lg:            2rem;

    --ease-brand:           cubic-bezier(.25, .46, .45, .94); 
    --duration-fast:        0.2s;
    --duration-normal:      0.4s;
    --transition-base:      all var(--duration-normal) var(--ease-brand);

    --glass-shadow:         0 12px 40px rgba(0, 51, 102, 0.08);
	
	/* =========================================
		Schedule Variable
	========================================= */
    --deep-blue:    	#003366;   /* 深海藍 */
    --deep-blue-hover: 	#004a99; /* 懸停深藍 */
    --azan-gold-soft:   #c5a059;   /* 香檳金 */
    --open-emerald:     #1b5e20;   /* 質感綠 */
    --closed-muted:     #9e9e9e;   /* 中性灰 */
    --sunday-red:       #d32f2f;   /* 週日紅 */
    --bg-sidebar:       #fafafa;   /* 側欄灰：時間背景 */
    --bg-footer:        #fdf9f0;   /* 暖光黃：頁尾背景 */
    --border-soft:      #eee;      /* 表格線 */
    --border-status:    #f0f0f0;   /* 單元格底線 */
    --border-footer:    #f0e6d2;   /* 頁尾邊框 */
	
	/* =========================================
		Health Column Variable
	========================================= */
	--spacing-container:    3rem;
    --spacing-section:      2rem;
}

*, *::before, *::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

img, video, iframe, canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

/* =========================================
   圖片載入失敗佔位符 (Image Fallback / Placeholder)
========================================= */
img {
    position: relative;
    color: transparent; 
}

img::before {
    content: attr(alt);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-cream-dark); /* 預留區底色 */
    color: var(--color-text-sub);              /* 提示文字顏色 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: capitalize; /* 讓英文首字母自動大寫 */
    border: 2px dashed #d5c8a8; /* 用優雅的虛線框標示這是圖片預留區 */
    border-radius: inherit;     /* 圓角自動跟隨外框 (如 var(--radius-md)) */
    box-sizing: border-box;
    text-align: center;
    padding: 1rem;
    z-index: 2;
}

/* 確保預設的破圖圖示被徹底遮蓋 */
img::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-cream-dark);
    z-index: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

body {
    font-family: "Roboto", "Helvetica Neue", "Inter", "PingFang TC", "Microsoft JhengHei", sans-serif;
    color: var(--color-text-main);
    background: var(--color-cream);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
