/* Reset & 基础 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f4f6f8;
  color: #333;
}
a {
  text-decoration: none;
}

/* 容器 */
#page-wrapper {
  width: 60%;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Navbar */
.navbar {
  background: #ffffff !important;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.navbar .d-flex > * {
  margin: 0 1.5rem;
  font-weight: 500;
  color: #555;
  transition: color .3s;
}
.navbar .d-flex > *:hover {
  color: #007bff;
}
/* 1. 讓整個 d-flex 容器垂直置中所有子項目 */
.navbar .d-flex {
  align-items: center;
}

/* 2. 清除 nav-link 預設上下 padding，並把行高設為 1，強制垂直置中 */
.navbar .nav-link {
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1; /* 或者設成跟 nav 高度一致，例如 3rem/字體大小 */
}

/* 3. （可選）調整字體上下外距，確保完全置中 */
.navbar .nav-link {
  margin: 0; 
}

/* 4. 針對品牌名稱往左推 */
.navbar .navbar-brand {
  margin: 0 15rem 0 0;
}

/* 卡片通用 */
.card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.card-header {
  font-weight: 600;
  background: transparent;
  border-bottom: none;
}

/* 验证表单 */
#verify-form .form-control {
  border-radius: 0.5rem;
}
#verify-form .btn {
  border-radius: 0.5rem;
  padding: 0.5rem 1.5rem;
}

/* 主要内容区块 */
.section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
}
.section-important {
  background: linear-gradient(90deg, #fff176aa, #fff17633);
}
.section-history {
  background: linear-gradient(90deg, #ff8a65cc, #ff8a6533);
}
.section-strategy {
  background: linear-gradient(90deg, #80deeaaa, #80deea33);
}
.section h4 {
  margin-bottom: 1rem;
  color: #444;
}

/* 列表样式 */
ul.custom-list {
  list-style: none;
}
ul.custom-list li::before {
  content: "•";
  color: #007bff;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* 按钮 */
.btn-primary {
  background: #007bff;
  border: none;
  transition: background .3s;
}
.btn-primary:hover {
  background: #0056b3;
}
.btn-info {
  background: #17a2b8;
  border: none;
}
.btn-info:hover {
  background: #117a8b;
}

/* Footer */
.site-footer {
  background: #ffffff;
  padding: 1rem 0;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05);
  bottom: 0;
  left: 0;
  width: 100%;
  font-size: 0.875rem;
  color: #777;
}
.site-footer .container {
  max-width: 60%;
  margin: 0 auto;
}

/* 横幅图片 */
#guild-banner {
  width: 100%;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}


/* 兌換碼區塊美化 */
.section-strategy {
  background: linear-gradient(90deg, #80deeaaa, #80deea33);
  padding: 2rem 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(128, 222, 234, 0.2);
  max-width: 480px;
  margin: 0 auto 3rem auto;
}

/* 標題加粗且字體增大 */
.section-strategy > h4 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #007bff;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* 兌換碼列表美化（改名 redemption-list） */
ul.redemption-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.redemption-list li {
  background-color: #ffffff;
  padding: 0.8rem 1.2rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgb(0 123 255 / 0.15);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  display: flex;
  justify-content: space-between;
  font-family: 'Consolas', 'Courier New', monospace;
  font-weight: 600;
  color: #0056b3;
  cursor: default;
}

ul.redemption-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 123, 255, 0.3);
}

ul.redemption-list li span.expiry {
  font-size: 0.875rem;
  color: #666;
  font-weight: 400;
  font-family: Arial, sans-serif;
  align-self: center;
}

.section-strategy > h4 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #007bff;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-strategy {
  background: linear-gradient(90deg, #80deeaaa, #80deea33);
  padding: 2rem 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(128, 222, 234, 0.2);
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.section-strategy > p {
  text-align: center;
  color: #888;
  font-style: italic;
  font-size: 1.1rem;
}

/* Experience Calculator 美化 */
.exp-calculator {
  background: #ffffff;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  max-width: 480px;
  margin: 1.5rem auto;
  font-family: Arial, sans-serif;
}
.exp-calculator h3 {
  text-align: center;
  color: #007bff;
  margin-bottom: 1.5rem;
}
.exp-calculator .form-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.exp-calculator .form-row .form-group {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
}
.exp-calculator .form-group label {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: #555;
}
.exp-calculator .form-group input,
.exp-calculator .form-group select {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.375rem;
  font-size: 1rem;
}
.exp-calculator .btn-primary {
  width: 100%;
  padding: 0.75rem;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background .3s;
}
.exp-calculator .btn-primary:hover {
  background: #0056b3;
}
.exp-calculator #expResult {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
  min-height: 4rem;
  font-size: 1rem;
  color: #333;
}

/* 回到最頂按鈕樣式 */
.back-to-top {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  border-radius: 0.5rem;
  transition: background-color .3s, transform .2s;
}
.back-to-top:hover {
  background-color: #e2e6ea;
  transform: translateY(-2px);
}

/* Home_Guide */
.navigation-buttons .btn {
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navigation-buttons .btn-primary:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.guide-section {
  scroll-margin-top: 20px;
}

.guide-section h5 {
  color: #343a40;
  font-weight: 600;
  margin-bottom: 15px;
}

.content-box {
  background-color: #f8f9fa;
  border-color: #dee2e6 !important;
  min-height: 100px;
}

.content-box p {
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.trolley-guide-table {
  margin-top: 1rem;
}

.trolley-guide-table .table {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.trolley-guide-table th {
  background-color: #e3f2fd;
  color: #1565c0;
  font-weight: 600;
  border-color: #bbdefb;
}

.trolley-guide-table td {
  vertical-align: middle;
  border-color: #e0e0e0;
}

.trolley-guide-table .badge {
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
}
