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

body { 
    font-family: Arial, "Microsoft JhengHei", sans-serif;
    background-color: #f5f5f5;
    padding: 10px;
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #333;
    margin: 20px 0;
    font-size: 24px;
}

.date-group { 
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);

}

.date-header { 
    background-color: #4a90e2;
    padding: 12px 15px;
    color: white;
    cursor: pointer;
    user-select: none;
    border-radius: 8px;
    position: relative;
    padding-right: 40px;
}

.date-header h2 {
    font-size: 18px;
    margin: 0;
    padding-right: 20px;
    word-wrap: break-word;
}

.date-header .districts {
    font-size: 18px;
    margin-top: 5px;
    padding-right: 20px;
    word-wrap: break-word;
    font-weight: bold;
    opacity: 1;
}

.shop-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

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

.shop-name { 
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.shop-time { 
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.shop-address { 
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.shop-list {
    display: none; /* 預設隱藏商店列表 */
}

.date-header.active {
    background-color: #357abd; /* 點擊時的顏色 */
    border-radius:8px 8px 0px 0px;
}

/* 添加展開/收起指示器 */
.date-header::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

.date-header.active::after {
    transform: translateY(-50%) rotate(180deg);
}

/* 添加滾動框樣式 */
.container {
    max-height: 45vh; /* 視窗高度的70% */
    overflow-y: auto;
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
}

/* 自定義滾動條樣式 */
.container::-webkit-scrollbar {
    width: 8px;
}

.container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 添加黑色粗體樣式 */
.shop-address strong {
    color: #000;  /* 黑色 */
    font-weight: bold;
    font-size: 16px;
}

/* 如果原本的地址是其他顏色，可以保持原樣 */
.shop-address {
    color: #666;  /* 保持原有的灰色 */
    font-size: 14px;
    line-height: 1.4;
}

.remark {
    margin: 20px auto;
    padding: 0 20px;
    color: white;
    font-size: 12px;
    text-align: center;
}

.remark p {
    margin: 0;
}

.district-filter {
    margin: 20px 0;
    text-align: center;
}

.district-group {
    margin: 15px 0;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.region-title {
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.district-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.filter-btn {
    margin: 3px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9em;
}

.filter-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.filter-btn:hover {
    background-color: #f0f0f0;
}

.filter-btn.active:hover {
    background-color: #0056b3;
}