/* style.css — 個人介紹頁面 (真正 iOS 26 液態玻璃按鈕) */
:root {
  --bg-start: #0f172a;
  --bg-end: #1e293b;
  --accent: #0ea5e9;
  --text-light: #cbd5e1;
  --text-muted: #94a3b8;
}

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

body {
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 50px 20px 30px;
  user-select: none;
  position: relative;
}

header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeIn 1.5s ease forwards;
}

header h1 {
  font-size: 3rem;
  color: var(--accent);
}

.profile-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 20px auto;
}

.profile-pic {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--accent);
  object-fit: cover;
  animation: popIn 1s ease forwards;
  pointer-events: none;
  display: block;
}

.hat {
  position: absolute;
  width: 250px;
  height: 250px;
  top: -20px;
  left: 49%;
  transform: translateX(-50%);
  pointer-events: none;
}

main {
  max-width: 800px;
  text-align: center;
  animation: fadeIn 2s ease forwards;
  width: 100%;
}

main p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin: 20px 0;
  color: var(--text-muted);
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 24px;
  border-radius: 16px;        /* 更圓潤的玻璃邊角 */
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  display: inline-block;
  border: none;
  font-size: 1rem;
  position: relative;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  
  /* 基礎玻璃層 (最底層) - 極高透明度 */
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  
  /* 玻璃邊框 - 模擬真實玻璃邊緣 */
  border: 1px solid rgba(255, 255, 255, 0.3);
  
  /* 多重陰影營造立體感 */
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.2),           /* 外陰影 - 漂浮感 */
    inset 0 0 0 1px rgba(255, 255, 255, 0.2), /* 內發光 - 邊緣高光 */
    inset 0 2px 4px rgba(255, 255, 255, 0.1);  /* 頂部內陰影 - 玻璃厚度 */
}

/* 第一層玻璃折射 (偽元素) - 增加層次感 */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  pointer-events: none;
  
  /* 模擬玻璃內部的折射層 */
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  z-index: 1;
}

/* 第二層高光 (偽元素) - 邊緣強烈反光 */
.btn::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 18px;
  pointer-events: none;
  
  /* 邊緣高光，模仿玻璃切面的強烈反光 [citation:1][citation:4] */
  background: radial-gradient(
    circle at 20% 30%,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
  -webkit-mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 2;
}

/* 懸浮效果 - 動態光影變化 */
.btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-4px) scale(1.05);
  
  /* 懸浮時陰影加深，更強的漂浮感 */
  box-shadow: 
    0 16px 32px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    inset 0 2px 6px rgba(255, 255, 255, 0.2);
}

/* 懸浮時的高光增強 */
.btn:hover::after {
  background: radial-gradient(
    circle at 25% 25%,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0) 70%
  );
}

/* 點擊效果 - 模擬玻璃受壓 */
.btn:active {
  transform: scale(0.97) translateY(-2px);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  
  /* 受壓時內陰影增強，外陰影減弱 */
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    inset 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.1s;
}

/* 廣告區塊 — 固定底部中央 */
.ads-container {
  position: fixed;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 998;
}

.ads-container a {
  pointer-events: auto;
  display: inline-block;
  max-width: min(90vw, 600px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  transition: box-shadow 0.3s ease;
}

.ads-container a:hover {
  box-shadow: 0 15px 30px rgba(0, 164, 255, 0.4);
}

.ads-container img {
  display: block;
  width: 100%;
  height: auto;
  border: none;
}

/* 頁尾固定右下角 */
footer {
  position: fixed;
  right: 20px;
  bottom: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.7;
  user-select: none;
  z-index: 999;
}

/* 星星背景 */
.star {
  position: fixed;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  opacity: 0.7;
  animation: floatStars linear infinite;
  z-index: -1;
  will-change: transform;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes floatStars {
  0% { transform: translateY(0) translateX(0); opacity: 0.3; }
  50% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(20vw); opacity: 0; }
}

@media (max-width: 720px) {
  header h1 { font-size: 2.2rem; }
  .profile-wrapper { width: 160px; height: 160px; }
  .hat { width: 72px; height: 72px; top: -15px; }
  .btn { padding: 10px 20px; font-size: 0.95rem; }
  .buttons { gap: 12px; }
}
@media (max-width: 768px) {
  footer {
    display: none !important;
      }
}