/** @file redirect.css
 * @description Styles for the redirect page (Magic Tower Style)
 * @updated 2025-12-30
 */
:root {
  --bg: #0b0b0d;
  --card: #141419;
  --line: #2a2a30;
  --text: #eaeaf0;
  --sub: #b8bac7;
  
  /* 魔塔風格主色調：亮藍漸層 */
  --btn-from: #2b7fff;
  --btn-to: #0056d6;
  --btn-glow: rgba(43, 127, 255, 0.6);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "Microsoft JhengHei", Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  align-items: center; /* 垂直置中 */
  justify-content: center; /* 水平置中 */
  min-height: 100vh;
  padding: 16px; /* 避免手機版貼邊 */
}

.wrap {
  width: 100%;
  max-width: 800px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === 卡片區域 (本身就是一個超連結) === */
.card {
  display: block; /* 讓 a 標籤像 div 一樣運作 */
  text-decoration: none; /* 移除預設底線 */
  color: var(--text); /* 繼承文字顏色 */
  
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 48px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  cursor: pointer;
}

/* 卡片 Hover 效果：整體微微上浮 */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  border-color: #3f3f4a;
}

/* 頂部光暈裝飾 */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #5f8cff, transparent);
  opacity: 0.8;
}

h1 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.3;
  margin: 0 0 12px;
}

h1 .server-name {
  display: inline-block;  /* 修改點 1：改成並排顯示 */
  margin-left: 10px;      /* 修改點 2：改成左側間距，讓字分開一點 */
  margin-top: 0;          /* 取消上方間距 (視情況可省略) */
  
  /* 以下保持原本特效 */
  background: linear-gradient(180deg, #ffffff, #a3c2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(95, 140, 255, 0.4);
}

.meta {
  color: var(--sub);
  margin: 8px 0 24px;
  font-size: 15px;
  line-height: 1.6;
}

.thumb {
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
  margin: 20px auto 28px;
  background: #1a1a21;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s;
}

/* 卡片 hover 時圖片微動 */
.card:hover .thumb {
  transform: scale(1.01);
}

.desc {
  max-width: 680px;
  margin: 0 auto 32px;
  text-align: left;
  font-size: 16px;
  line-height: 1.8;
  color: #d1d1d6;
}

/* CTA 區塊 */
.cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* === 魔塔風格大按鈕 (Visual Only, since card is link) === */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px; /* 按鈕最大寬度 */
  padding: 22px 32px; /* 加大內距 */
  
  /* 遊戲風格漸層 */
  background: linear-gradient(180deg, var(--btn-from) 0%, var(--btn-to) 100%);
  
  /* 立體邊框 */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  
  /* 文字設定 */
  color: #fff;
  font-size: 24px; /* 特大字體 */
  font-weight: 800;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  
  /* 發光與陰影 */
  box-shadow: 
    0 4px 0 #003a94, /* 立體厚度 */
    0 10px 20px rgba(0, 0, 0, 0.4),
    0 0 25px var(--btn-glow); /* 藍色外發光 */
    
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

/* 按鈕上的掃光特效 */
.btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to bottom right, rgba(255,255,255,0) 40%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 60%);
  transform: rotate(30deg) translate(-100%, -100%);
  transition: transform 0.6s;
}

/* 當滑鼠移過「整個卡片」時，按鈕也會產生反應 */
.card:hover .btn {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 
    0 6px 0 #003a94,
    0 15px 30px rgba(0, 0, 0, 0.5),
    0 0 40px var(--btn-glow);
}

.card:hover .btn::after {
  transform: rotate(30deg) translate(100%, 100%);
}

.card:active .btn {
  transform: translateY(2px);
  box-shadow: 
    0 2px 0 #003a94,
    0 5px 10px rgba(0, 0, 0, 0.4);
}

/* === 底部操作區 (卡片外部) === */
.bottom-actions {
  margin-top: 24px;
  text-align: center;
}

/* === 返回按鈕 (低調樣式) === */
.btn-back {
  display: inline-block;
  color: #7a7a85;
  text-decoration: none;
  font-size: 15px;
  padding: 10px 24px;
  border-radius: 8px;
  transition: all 0.2s;
  background: transparent;
  border: 1px solid transparent;
}

.btn-back:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

footer {
  opacity: 0.5;
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  color: #666;
}

/* 手機版適配 */
@media (max-width: 600px) {
  .card {
    padding: 32px 20px;
  }
  .btn {
    font-size: 20px;
    padding: 18px 24px;
    width: 100%;
  }
  .thumb {
    margin: 16px auto 20px;
  }
}