﻿@charset "utf-8";
/* CSS Document */
img{border-radius: 10px;}
.color {color:#229178;}
.color2{color:#c0504d;}
.color3{color:#FFF;}
.bgcolor{ background-color:#229178;color:#FFF;}
.bgcolor2{ background-color:#defff8;}
.ns-layout {
    --ns-primary: #2c3e50;
    --ns-secondary: #229178;
    --ns-accent: #e74c3c;
    --ns-light: #f5f7fa;
    --ns-dark: #1a2530;
    --ns-text: #34495e;
    --ns-border: #e0e0e0;
    --ns-success: #2ecc71;
    
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft JhengHei", "微軟正黑體", sans-serif;
}

.ns-body {
    color: var(--ns-text);
    line-height: 1.6;
}

.ns-container {
    max-width: 1280px;
    margin: 10px auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
	padding-bottom:180px;
}

/* 菜單容器 */
#ns-menu-container {
    flex: 0 0 250px;
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    height: fit-content;
}

/* 菜單樣式 */
.ns-menu-title {
    font-size: 1.5rem;
    color: var(--ns-primary);
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--ns-secondary);
    text-align: center;
    font-weight: bold; /* 標題加粗 */
}

.ns-menu-items {
    list-style: none;
}

.ns-menu-items li {
    padding: 12px 0;
    border-bottom: 1px dashed var(--ns-border);
    transition: all 0.3s ease;
}

.ns-menu-items li:last-child {
    border-bottom: none;
}

.ns-menu-items li:hover {
    transform: translateX(5px);
}

.ns-menu-items a {
    text-decoration: none;
    color: var(--ns-text);
    font-size: 1.3rem;
    display: block;
    padding: 5px 15px;
    border-radius: 6px;
    transition: all 0.2s;
    font-weight: bold; /* 菜單文字加粗 */
}

/* 滑鼠懸停(hover)狀態樣式 */
.ns-menu-items a:hover {
    color: white;
    background: #1d7a68;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 被選中(active)狀態樣式 - 保持與hover相同 */
.ns-menu-items a.active,
.ns-menu-items li:has(a.active) a {
    color: white !important;
    background: #1d7a68 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

/* 內容區域 */
.ns-content {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.ns-content h2 {
    color: var(--ns-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--ns-success);
    font-weight: bold; /* 內容標題加粗 */
}

.ns-content p {
    color: var(--ns-text);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.grid-image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 49%)); 
  gap: 5px;              /* 間距 5px */
  margin: 5px;           /* 外邊距 5px */
  margin-bottom: 20px;
}

.grid-image-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* 控制內容區塊顯示 */
.ns-content > section {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.ns-content > section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.rewards-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  font-family: "Microsoft JhengHei", "微軟正黑體", sans-serif;
  margin-bottom:20px;
}

.rewards-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
}

.rewards-table a {
  color: #666;
  text-decoration: underline;
}

        /* 桌面版表格樣式 - 只在 #events 內生效 */
        #events .rewards-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
            background-color: #fff;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        #events .rewards-table td, 
        #events .rewards-table th {
            border: 1px solid #ddd;
            padding: 10px;
            text-align: center;
            vertical-align: middle;
        }
        
        #events .rewards-table .bgcolor {
            font-weight: bold;
        }
        
        #events .rewards-table a {
            text-decoration: none;
            font-weight: bold;
        }
        
        #events .rewards-table a:hover {
            text-decoration: underline;
        }
        
        /* 手機版專用樣式 - 只在 #events 內生效 */
        #events .mobile-events {
            display: none;
            flex-direction: column;
            gap: 15px;
        }
        
        #events .mobile-day {
            background-color: #fff;
            border-radius: 5px;
            padding: 15px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        #events .mobile-day h3 {
            color: #229178;
            margin-top: 0;
            border-bottom: 1px solid #eee;
            padding-bottom: 8px;
        }
        
        #events .mobile-special {
            background-color: #fff;
            border-radius: 5px;
            padding: 15px;
            margin-top: 10px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        /* 響應式設計 - 只在 #events 內生效 */
        @media screen and (max-width: 768px) {
            #events .rewards-table {
                display: none;
            }
            
            #events .mobile-events {
                display: flex;
            }
            
            #events .mobile-day, 
            #events .mobile-special {
                font-size: 14px;
            }
        }
        
        @media screen and (min-width: 769px) {
            #events .mobile-events {
                display: none;
            }
        }

/* 響應式設計 */
@media (max-width: 1024px) {
	.ns-container {
		padding-bottom:10px;
	}
}
@media (max-width: 768px) {
    .ns-container {
        flex-direction: column;
        padding: 15px;
    }
    
    #ns-menu-container {
        flex: 0 0 auto;
        width: 100%;
    }
}
