/* 基礎樣式：深色主題 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000000; /* 深藍紫背景 */
    color: #FFFFFF; /* 淺灰文字 */
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: auto;
    background-color: #2c2c4a; /* 稍微亮一點的主體背景 */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

h1 {
    color: #00bcd4; /* 醒目藍色標題 */
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #00bcd4;
    padding-bottom: 10px;
}

/* 搜尋框樣式 */
#searchBar {
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 20px;
    border: 2px solid #5d5d81;
    border-radius: 8px;
    background-color: #1a1a2e;
    color: #e4e6eb;
    font-size: 16px;
    box-sizing: border-box; 
}

#searchBar::placeholder {
    color: #a0a0c0;
}

/* 表格樣式 */
.song-table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    color: #e4e6eb;
}

th {
    background-color: #5d5d81; /* 表頭背景 */
    color: white;
    padding: 12px 15px;
    text-align: left;
    cursor: pointer; /* 點擊排序 */
    user-select: none;
    position: sticky;
    top: 0;
}

th:hover {
    background-color: #7b7b9d;
}

td {
    padding: 10px 15px;
    border-bottom: 1px solid #4a4a75;
}

tr:nth-child(even) {
    background-color: #38385e; /* 斑馬紋 */
}

tr:hover {
    background-color: #4a4a75;
}

/* 備註樣式 */
.notes {
    font-style: italic;
    color: #a0a0c0;
}

/* 載入/錯誤訊息 */
#statusMessage {
    text-align: center;
    padding: 20px;
    color: #ffcc00;
}

/* 排序指示箭頭 */
.sort-indicator {
    margin-left: 5px;
    font-size: 0.8em;

}

/* ==================================== */
/* 新增：超連結顏色設定 */
/* ==================================== */

/* 1. 未訪問過的連結 (預設顏色) */
a:link {
    color: #00FF7F; /* 亮綠色/春綠色 (High Visibility) */
    text-decoration: none; /* 移除下劃線 */
}

/* 2. 已訪問過的連結 */
a:visited {
    color: #696969; /* 中灰色，保持低調 */
}

/* 3. 滑鼠懸停時的連結 (互動效果) */
a:hover {
    color: #FFFF00; /* 亮黃色，強調點擊狀態 */
    text-decoration: none; /* 懸停時顯示下劃線 */
}

/* 4. 點擊瞬間的連結 */
a:active {
    color: #FF4500; /* 橙紅色 */
}

