* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  height: 100%;
  overflow-x: hidden; /* 禁止左右滾動 */
  font-family: Arial, sans-serif;
  background-color: #ffdf5f; /* 柔和的背景色 */
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  max-width: 500px; /* 限制最大寬度 */
  margin: 0 auto; /* 保證居中 */
  background-color: #ffdf5f; /* 背景色為白色 */
  border-radius: 10px; /* 圓角 */
}

.logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 10px;
  border-style:solid; /* 黑框 */
}

h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  color: #333333; /* 字體顏色 */
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  margin: 10px 0;
  width: 100%;
  cursor: pointer;
  border-style:solid; /* 黑框 */
  transition: transform 0.2s, box-shadow 0.9s;
}

.link-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.link-card img {
  width: 50px; /* 圖片大小 */
  height: 50px;
  border-radius: 50%;
  margin-right: 10px;
}

.link-card span {
  font-size: 1rem;
  color: #555555; /* 字體顏色 */
}

.feedback-form {
  width: 100%;
}

.feedback-form h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  text-align: center;
  color: #333333; /* 字體顏色 */
}

.feedback-form form {
  display: flex;
  flex-direction: column;
  background-color: #f9f9f9; /* 背景色 */
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 陰影效果 */
  border-style:solid; /* 黑框 */
}

.feedback-form label {
  font-size: 1rem;
  margin-bottom: 5px;
  color: #555555; /* 字體顏色 */
}

.feedback-form textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: none;
  margin-bottom: 10px;
  background-color: #ffffff; /* 背景色 */
}

.feedback-form button {
  padding: 10px;
  font-size: 1rem;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.feedback-form button:hover {
  background-color: #545454;
}

footer {
  text-align: center;
  padding: 10px;
  background-color: #ffffff;
  width: 100%;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1); /* 陰影效果 */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  color: #555555; /* 字體顏色 */
}

.counter-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.counter-text {
  font-size: 1rem;
  color: #555555; /* 字體顏色 */
  margin-right: 5px;
}

.counter {
  width: 100px; /* 調整計數器圖片的大小 */
  height: auto;
}

.weather-card {
  background: linear-gradient(to bottom right, #257ee3, #46b8ff);
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
  color: rgb(255, 255, 255);
  padding: 20px;
  margin: 20px 0;
  max-width: 500px;
  width: 100%;
  border: solid #000;
}

.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.weather-header h2 {
  font-size: 2.0em;
  margin: 0;
}

#weather-icon {
  width: 50px;
  height: 50px;
}

.weather-body {
  text-align: center;
}

.temperature {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 5px;
}

.description {
  font-size: 1.3em;
  margin-bottom: 10px;
}

.details {
  display: flex;
  justify-content: space-around;
  font-size: 1.3em;
}

.weather-footer {
  margin-top: 10px;
  font-size: 0.8em;
  text-align: right;
}

.weather-footer a {
  color: #f0f0f0;
  text-decoration: none;
}

.weather-footer a:hover {
  text-decoration: underline;
}

#emergency-notice {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.notice-content {
  display: flex;
  padding: 15px;
  align-items: flex-start;
}

.notice-icon {
  font-size: 30px;
  margin-right: 15px;
  background-color: #dbdbdb;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notice-text {
  flex: 1;
}

.notice-text h4 {
  margin: 0 0 5px;
  color: #000;
  font-size: 18px;
}

.notice-text p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

details {
  margin-top: 10px;
}

summary {
  color: #007aff;
  cursor: pointer;
  font-size: 14px;
}

details p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #333;
}

#close-notice {
  position: absolute;
  top: 5px;
  right: 5px;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
}

#close-notice:hover {
  color: #666;
}

@keyframes slideIn {
  from { transform: translateX(-50%) translateY(-125%); }
  to { transform: translateX(-50%) translateY(0); }
}

#emergency-notice {
  animation: slideIn 1.1s ease-out;
}

/*颱風*/
.windy-container {
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
  border-radius: 20px;
  overflow: hidden;
  border: solid;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  aspect-ratio: 4 / 3; /* 保持 16:9 的宽高比 */
  position: relative;
}

.windy-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

#typhoon-closure-table {
  font-family: Arial, sans-serif;
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
  background-color: white;
  padding: 20px;
  border-radius: 20px;
  border: solid;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
#typhoon-closure-table h2 {
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}
#typhoon-closure-table table {
  width: 100%;
  border-collapse: collapse;
}
#typhoon-closure-table th, #typhoon-closure-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
#typhoon-closure-table th {
  background-color: #f2f2f2;
  font-weight: bold;
}
#typhoon-closure-table tr:nth-child(even) {
  background-color: #f9f9f9;
}
#typhoon-closure-table .update-time, #typhoon-closure-table .data-source {
  text-align: right;
  color: #666;
  font-size: 0.8em;
  margin-top: 10px;
}
#typhoon-closure-table .closed {
  color: red;
}
#typhoon-closure-table .spe {
  color: blue;
}

.traffic-container {
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
  background-color: white;
  padding: 20px;
  border-radius: 20px;
  border: solid;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  background: linear-gradient(to bottom right, #f8f8f8, #ffffff);
  padding: 25px;
  border-radius: 25px;
  border: 2px solid #333;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.traffic-container h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #333;
  font-size: 1.8rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  position: relative;
  padding-bottom: 10px;
}

.traffic-container h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #ff6b6b;
}

.video-card {
  margin: 25px 0;
  background: white;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
}

.video-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #444;
  padding-left: 10px;
  border-left: 4px solid #4CAF50;
}

.video-card iframe {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  background: #000;
}

/* 會員頭像下拉選單與 Modal 樣式 */
#avatar-bar {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 999;
}
#avatar-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ee4d2d;
    background: #fff;
}
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    border-radius: 14px;
    padding: 8px 0;
    z-index: 1000;
    margin-top: 8px;
    font-size: 16px;
}
.dropdown-content button, .dropdown-content span {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 14px 24px;
    font-size: 16px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.18s;
}
.dropdown-content button:hover, .dropdown-content span:hover {
    background: #ffe0b2;
    color: #ee4d2d;
}
#user-info {
    font-weight: bold;
    color: #ee4d2d;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 4px;
    padding-bottom: 4px;
}
.modal-bg {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.35);
    align-items: center;
    justify-content: center;
}
.modal-bg.show {
    display: flex;
}
.modal-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    padding: 32px 24px 24px 24px;
    min-width: 320px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 22px;
    color: #888;
    cursor: pointer;
    border: none;
    background: none;
}
.modal-content h3 {
    margin-top: 0;
    margin-bottom: 18px;
    color: #ee4d2d;
}
.post-record {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: #fafafa;
}
.post-record b {
    color: #333;
}

/* 版權所有 靈魂鯊 */
