 * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: "Noto Sans TC", sans-serif;
      background: #637281;
      color: white;
      overflow-x: hidden;
      position: relative;
    }

    /* 自定義照片背景 */
    .custom-photo-background {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -4;
      background-image: url('圖片/IMG_1606.webp'); /* 請將此處替換為您的照片路徑 */
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      opacity: 1; /* 調整透明度，0.1-0.5 之間效果較佳 */
    }

    /* 上帝視角海洋背景覆蓋層 */
    .ocean-background {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -3;
      background: linear-gradient(180deg, 
        rgba(0,17,34,0.7) 0%, 
        rgba(0,51,102,0.6) 20%, 
        rgba(0,102,170,0.5) 40%, 
        rgba(0,136,204,0.4) 60%, 
        rgba(0,170,238,0.3) 80%, 
        rgba(51,204,255,0.2) 100%
      );
    }

    /* 動態波浪層 */
    .wave-layer {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -2;
      opacity: 0.7;
    }

    .wave-layer::before,
    .wave-layer::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 200%;
      height: 100%;
      background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 2%, transparent 3%),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.08) 2%, transparent 3%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.06) 1%, transparent 2%);
      background-size: 200px 200px, 300px 300px, 150px 150px;
      animation: oceanFlow 25s linear infinite;
    }

    .wave-layer::after {
      background-image: 
        radial-gradient(circle at 60% 40%, rgba(99,230,190,0.1) 2%, transparent 3%),
        radial-gradient(circle at 30% 80%, rgba(18,184,134,0.08) 2%, transparent 3%);
      background-size: 250px 250px, 180px 180px;
      animation: oceanFlow 30s linear infinite reverse;
    }

    @keyframes oceanFlow {
      0% { transform: translateX(0) translateY(0); }
      33% { transform: translateX(-10%) translateY(5%); }
      66% { transform: translateX(-20%) translateY(-3%); }
      100% { transform: translateX(-30%) translateY(2%); }
    }

    /* 小琉球島嶼俯視圖 */
    .island-overlay {
      position: fixed;
      bottom: -10%;
      right: -5%;
      width: 400px;
      height: 300px;
      z-index: -1;
      opacity: 0.15;
      transform: rotate(-15deg);
      animation: islandFloat 20s ease-in-out infinite;
    }

    .island-overlay::before {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      background: radial-gradient(ellipse at center, 
        rgba(34,139,34,0.8) 0%, 
        rgba(34,139,34,0.6) 30%, 
        rgba(139,69,19,0.4) 50%, 
        rgba(255,218,185,0.3) 70%, 
        transparent 100%
      );
      border-radius: 60% 40% 70% 30%;
      filter: blur(2px);
    }

    @keyframes islandFloat {
      0%, 100% { 
        transform: rotate(-15deg) translateY(0); 
        opacity: 0.15; 
      }
      50% { 
        transform: rotate(-12deg) translateY(-20px); 
        opacity: 0.25; 
      }
    }

    /* 船隻軌跡動畫 */
    .boat-trail {
      position: fixed;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      z-index: -1;
      pointer-events: none;
    }

    .boat {
      position: absolute;
      width: 6px;
      height: 3px;
      background: rgba(255,255,255,0.6);
      border-radius: 50% 50% 0 0;
      animation: boatPath1 40s linear infinite;
    }

    .boat:nth-child(2) {
      animation: boatPath2 45s linear infinite;
      animation-delay: -15s;
      background: rgba(99,230,190,0.4);
    }

    .boat:nth-child(3) {
      animation: boatPath3 35s linear infinite;
      animation-delay: -25s;
      background: rgba(250,82,82,0.4);
    }

    /* 船隻尾跡 */
    .boat::after {
      content: '';
      position: absolute;
      top: 3px;
      left: 50%;
      transform: translateX(-50%);
      width: 2px;
      height: 20px;
      background: linear-gradient(to bottom, 
        rgba(255,255,255,0.3), 
        transparent
      );
      border-radius: 0 0 50% 50%;
    }

    @keyframes boatPath1 {
      0% { top: 80%; left: -5%; transform: rotate(45deg); }
      25% { top: 60%; left: 30%; transform: rotate(0deg); }
      50% { top: 40%; left: 70%; transform: rotate(-30deg); }
      75% { top: 60%; left: 90%; transform: rotate(-60deg); }
      100% { top: 80%; left: 105%; transform: rotate(-90deg); }
    }

    @keyframes boatPath2 {
      0% { top: 70%; left: 105%; transform: rotate(-135deg); }
      25% { top: 50%; left: 70%; transform: rotate(-180deg); }
      50% { top: 30%; left: 40%; transform: rotate(150deg); }
      75% { top: 50%; left: 10%; transform: rotate(90deg); }
      100% { top: 70%; left: -5%; transform: rotate(45deg); }
    }

    @keyframes boatPath3 {
      0% { top: 90%; left: 50%; transform: rotate(0deg); }
      30% { top: 20%; left: 80%; transform: rotate(-45deg); }
      60% { top: 30%; left: 20%; transform: rotate(180deg); }
      100% { top: 90%; left: 50%; transform: rotate(360deg); }
    }

    /* 海鷥鳥群動畫 */
    .seagulls {
      position: fixed;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      z-index: -1;
      pointer-events: none;
    }

    .seagull {
      position: absolute;
      color: rgba(255,255,255,0.4);
      font-size: 12px;
      animation: seagullFly 25s linear infinite;
    }

    .seagull:nth-child(1) { 
      top: 20%; 
      animation-delay: 0s; 
      font-size: 10px;
    }
    .seagull:nth-child(2) { 
      top: 25%; 
      animation-delay: -8s; 
      font-size: 14px;
    }
    .seagull:nth-child(3) { 
      top: 30%; 
      animation-delay: -15s; 
      font-size: 11px;
    }

    @keyframes seagullFly {
      0% { 
        left: -10%; 
        transform: translateY(0) scale(1); 
        opacity: 0; 
      }
      10% { 
        opacity: 0.4; 
      }
      50% { 
        transform: translateY(-20px) scale(1.2); 
        opacity: 0.6; 
      }
      90% { 
        opacity: 0.4; 
      }
      100% { 
        left: 110%; 
        transform: translateY(10px) scale(0.8); 
        opacity: 0; 
      }
    }

    /* 陽光反射效果 */
    .sunlight {
      position: fixed;
      top: 10%;
      right: 20%;
      width: 200px;
      height: 200px;
      background: radial-gradient(circle, 
        rgba(255,255,255,0.1) 0%, 
        rgba(255,255,0,0.05) 30%, 
        transparent 70%
      );
      border-radius: 50%;
      z-index: -2;
      animation: sunGlimmer 8s ease-in-out infinite;
    }

    @keyframes sunGlimmer {
      0%, 100% { 
        transform: scale(1); 
        opacity: 0.3; 
      }
      50% { 
        transform: scale(1.2); 
        opacity: 0.1; 
      }
    }

    /* 浮動粒子效果 */
    .particles {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
    }

    .particle {
      position: absolute;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 50%;
      animation: float 6s ease-in-out infinite;
    }

    .particle:nth-child(1) { width: 6px; height: 6px; left: 10%; animation-delay: 0s; }
    .particle:nth-child(2) { width: 8px; height: 8px; left: 20%; animation-delay: 1s; }
    .particle:nth-child(3) { width: 4px; height: 4px; left: 30%; animation-delay: 2s; }
    .particle:nth-child(4) { width: 10px; height: 10px; left: 40%; animation-delay: 0.5s; }
    .particle:nth-child(5) { width: 6px; height: 6px; left: 50%; animation-delay: 1.5s; }
    .particle:nth-child(6) { width: 8px; height: 8px; left: 60%; animation-delay: 2.5s; }
    .particle:nth-child(7) { width: 5px; height: 5px; left: 70%; animation-delay: 0.8s; }
    .particle:nth-child(8) { width: 7px; height: 7px; left: 80%; animation-delay: 1.8s; }
    .particle:nth-child(9) { width: 4px; height: 4px; left: 90%; animation-delay: 3s; }

    @keyframes float {
      0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
      10% { opacity: 1; }
      90% { opacity: 1; }
      100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
    }

    /* 導覽列 */
    nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(0, 0, 0, 0.1);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      padding: 1rem 2rem;
      position: fixed;
      top: 0;
      width: 100%;
      z-index: 1000;
      transition: all 0.3s ease;
    }

    nav.scrolled {
      background: linear-gradient(to right, rgba(0, 51, 102, 0.7), rgba(0, 136, 204, 0.7));
      backdrop-filter: blur(20px);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }


    nav .nav-left img {
      height: 55px;
      filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
      transition: transform 0.3s ease;
    }

    nav .nav-left img:hover {
      transform: scale(1.05);
    }

    nav .nav-right {
      display: flex;
      gap: 2rem;
    }

    nav .nav-right a {
      color: white;
      text-decoration: none;
      font-weight: 500;
      font-size: 1.1rem;
      padding: 0.5rem 1rem;
      border-radius: 25px;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    nav .nav-right a::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
      transition: left 0.5s ease;
    }

    nav .nav-right a:hover::before {
      left: 100%;
    }

    nav .nav-right a:hover {
      background: rgba(255, 255, 255, 0.1);
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }
/* === 修正：為固定導覽列預留空間（避免擋字） === */
:root { --nav-h: 72px; }                /* 手機預設導覽列高度 */
@media (min-width: 769px) { :root { --nav-h: 88px; } }  /* 平板/桌機 */

body { padding-top: var(--nav-h); }     /* 全站往下讓出導覽列高度 */

/* （可選）鎖定導覽列高度，避免字體或行高改變時高度飄動 */
nav {
  height: var(--nav-h);
  padding-top: 0; 
  padding-bottom: 0; 
  display: flex; align-items: center;   /* 垂直置中內容 */
}

/* （可選）錨點內鏈滾動時，避免被導覽列蓋住 */
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

    /* 主要內容 */
    .main-content {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 2rem;
      position: relative;
    }

    .hero-section {
      max-width: 800px;
      animation: fadeInUp 1s ease-out;
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(50px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    h1 {
      font-size: 3.5rem;
      font-weight: 900;
      margin-bottom: 2rem;
      background: linear-gradient(135deg, #fff 0%, #63e6be 50%, #12b886 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
      letter-spacing: 2px;
      position: relative;
      animation: glow 2s ease-in-out infinite alternate;
    }

    @keyframes glow {
      from {
        filter: drop-shadow(0 0 20px rgba(99, 230, 190, 0.3));
      }
      to {
        filter: drop-shadow(0 0 40px rgba(99, 230, 190, 0.6));
      }
    }

    .subtitle {
      font-size: 1.3rem;
      font-weight: 300;
      margin-bottom: 3rem;
      opacity: 0.9;
      line-height: 1.6;
      animation: fadeInUp 1s ease-out 0.3s both;
    }

    /* 按鈕群組 */
    .btn-group {
      display: flex;
      gap: 2rem;
      flex-wrap: wrap;
      justify-content: center;
      animation: fadeInUp 1s ease-out 0.6s both;
    }

    .btn {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1.2rem 2.5rem;
      border-radius: 50px;
      font-size: 1.2rem;
      font-weight: 600;
      text-decoration: none;
      color: white;
      position: relative;
      overflow: hidden;
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
      min-width: 220px;
    }

    .btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
      transition: left 0.6s ease;
    }

    .btn:hover::before {
      left: 100%;
    }

    .btn.primary {
      background: linear-gradient(135deg, #12b886 0%, #0ca678 100%);
      border: 2px solid transparent;
    }

    .btn.primary:hover {
      transform: translateY(-5px) scale(1.05);
      box-shadow: 0 15px 40px rgba(18, 184, 134, 0.4);
      background: linear-gradient(135deg, #0ca678 0%, #087f5b 100%);
    }

    .btn.secondary {
      background: linear-gradient(135deg, #0583cc 0%, #48bbfd 100%);
      border: 2px solid transparent;
    }

    .btn.secondary:hover {
      transform: translateY(-5px) scale(1.05);
      box-shadow: 0 25px 50px rgba(0, 217, 255, 0.4);
      background: linear-gradient(135deg, #03408f 0%, #04fff2 100%);
    }
    .btn.live {
      background: linear-gradient(135deg, #5c7cfa 0%, #4c6ef5 100%);
      border: 2px solid transparent;
    }
    .btn.qq {
      background: linear-gradient(135deg, #3f3f3f 0%, #363636 100%);
      border: 2px solid transparent;
    }
    .btn.live:hover {
      transform: translateY(-5px) scale(1.05);
      box-shadow: 0 15px 40px rgba(92, 124, 250, 0.4);
      background: linear-gradient(135deg, #4c6ef5 0%, #364fc7 100%);
    }
    .btn.liv {
      background: linear-gradient(135deg, #ddb634 0%, #f1a809 100%);
      border: 2px solid transparent;
    }
    .btn.qq {
      background: linear-gradient(135deg, #3f3f3f 0%, #363636 100%);
      border: 2px solid transparent;
    }
    .btn.liv:hover {
      transform: translateY(-5px) scale(1.05);
      box-shadow: 0 15px 40px rgba(245, 241, 2, 0.4);
      background: linear-gradient(135deg, #e9e506 0%, #f1a809 100%);
    }
    /* 圖標效果 */
    .btn-icon {
      margin-right: 0.8rem;
      font-size: 1.4rem;
      transition: transform 0.3s ease;
    }

    .btn:hover .btn-icon {
      transform: rotate(360deg);
    }

    /* 響應式設計 */
    @media (max-width: 768px) {
      nav {
        padding: 1rem;
      }

      nav .nav-right {
        gap: 1rem;
      }

      nav .nav-right a {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
      }

      h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
      }

      .subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
      }

      .btn-group {
        flex-direction: column;
        gap: 1.5rem;
      }

      .btn {
        min-width: 280px;
        padding: 1rem 2rem;
      }
    }

    @media (max-width: 480px) {
      .main-content {
        padding: 1rem;
      }

      h1 {
        font-size: 2rem;
      }

      .subtitle {
        font-size: 1rem;
      }

      .btn {
        min-width: 100%;
        font-size: 1.1rem;
      }
    }

    
    /** 小型作者卡片 */
.mini-author-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  max-width: 350px; /* 原本是 420px */
  margin: 2.5rem auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
}
.mini-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #63e6be;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1 / 1;
}


.mini-author-text h3 {
  font-size: 1.05rem; /* 原本是 1.2rem */
  margin: 0;
  color: #63e6be;
  font-weight: 700;
}

.mini-author-text p {
  font-size: 0.9rem; /* 原本是 0.95rem */
  margin: 0.2rem 0 0.5rem 0;
  color: #f0f0f0cc;
  line-height: 1.5;
}


/* RWD 響應式 */
@media (max-width: 480px) {
  .mini-author-card {
    flex-direction: column;
    text-align: center;
  }

  .mini-avatar {
    width: 72px;
    height: 72px;
  }
}

.ig-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #f8f9fa;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.ig-link:hover {
  background: #e1306c;
  color: #fff;
}

.ig-icon {
  width: 18px;
  height: 18px;
  margin-right: 0.4rem;
  border-radius: 4px;
  filter: brightness(1.2);
}

.social-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.ig-link,
.threads-link {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #f8f9fa;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: all 0.3s ease;
  min-width: 140px;
}

.ig-link i,
.threads-link i {
  font-size: 1.1rem;
}

.ig-link:hover {
  background: #e1306c;
  color: #fff;
}

.threads-link:hover {
  background: #000;
  color: #fff;
}

/* 手機版自動換行居中 */
@media (max-width: 480px) {
  .social-links {
    flex-direction: column;
    align-items: center;
  }

  .ig-link,
  .threads-link {
    width: 100%;
    justify-content: center;
  }
}

/* 垂直排列作者卡片 */
.mini-author-card.vertical {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.8rem;
  max-width: 360px;
}


/** 訪問人數顯示區塊 - 藥丸樣式 */
#visitor-count {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin: 2rem auto 2.5rem auto;
  text-align: center;
  animation: fadeIn 1s ease-out;
}

#visitor-count:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: scale(1.05);
  transition: all 0.3s ease;
}

/* === 小藥丸公告（改：左上角，不擋中間內容） === */
.marquee-pill{
  position: fixed;
  top: calc(var(--nav-h) + 10px);
  left: 16px;                 /* 改：靠左 */
  transform: none;            /* 取消水平置中位移 */
  z-index: 999;
  width: auto;                /* 改：不吃整列寬 */
  max-width: min(560px, 92vw);/* 左上角小膠囊寬度上限 */
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  pointer-events: auto;
}

/* 手機：留一點邊距、可稍微放窄 */
@media (max-width: 480px){
  .marquee-pill{
    top: calc(var(--nav-h) + 8px);
    left: 12px;
    max-width: 92vw;
    padding: 7px 12px;
  }
  .marquee-text{ font-size: 13px; }
}


