/* 琉急式網站完整樣式 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700;900&display=swap');

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --blue: #006a94;
    --blue-dark: #004e6e;
    --blue-mid: #0080b3;
    --blue-light: #e6f4fa;
    --white: #ffffff;
    --text: #1a1a1a;
    --text-muted: #5e7480;
    --bg: #f4f8fb;
    --radius: 16px;
    --radius-sm: 10px;
  }

  html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans TC', sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.7;
    padding-top: 0; /* 修改這裡，改成 0 */
}
  nav {
    position: fixed;
    top: 12px; /* 初始位置稍微低一點，轉場感更強 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 106, 148, 0.1);
    padding: 0 1.5rem;
    height: 64px;
    width: 90%; /* 使用百分比，RWD 更順 */
    max-width: 1100px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    
    /* 🚀 關鍵：統一所有屬性的轉場時間與曲線 */
    /* 使用 ease-out 類型曲線，讓收縮動作一開始快，最後輕輕停住 */
    transition: 
        width 0.5s cubic-bezier(0.19, 1, 0.22, 1),
        top 0.5s cubic-bezier(0.19, 1, 0.22, 1),
        background-color 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}
nav.scrolled {
    top: 10px;
    width: 820px; /* 收縮寬度 */
    background: #006a94; /* 你的品牌藍 */
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 78, 110, 0.3);
}
.nav-brand-text, 
.nav-brand-sub, 
.nav-link:not(.cta) {
    transition: color 0.4s ease;
}
nav.scrolled .nav-brand-text { color: #ffffff; }
nav.scrolled .nav-brand-sub { color: rgba(255, 255, 255, 0.7); }
nav.scrolled .nav-link:not(.cta) { color: #ffffff; }
/* 導覽列內的 Logo 框轉場 */
.nav-brand-box {
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), background-color 0.4s ease;
}
nav.scrolled .nav-brand-box {
    transform: scale(0.9); /* 滾動後縮小一點點點，增加動態感 */
    background: rgba(255,255,255,0.1);
}

/* 立即前往按鈕優化 */
.nav-link.cta {
    transition: all 0.4s ease;
}
nav.scrolled .nav-link.cta {
    background: #ffffff;
    color: #006a94;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.nav-brand-box img {
    width: 100%;
    height: 100%;
        filter: brightness(0) invert(1);
    object-fit: contain; /* 確保圖片比例正確且完整顯示 */
    display: block;
}


  nav.scrolled .nav-link { color: #ffffff; }
  nav.scrolled .nav-link:hover { background: rgba(255, 255, 255, 0.1); }
  nav.scrolled .nav-link.cta { background: #ffffff; color: #004e6e; border-color: #ffffff; }
  body { padding-top: 76px; }
  .nav-brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
  }
  .nav-brand-box {
    width: 38px; height: 38px;
    background: var(--blue);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 900; color: white;
    letter-spacing: -1px;
  }
  .nav-brand-text {
    font-size: 17px; font-weight: 700; color: var(--blue);
  }
  .nav-brand-sub {
    font-size: 11px; color: var(--text-muted); margin-top: -2px;
  }
  .nav-links { display: flex; gap: 4px; align-items: center; }
  .nav-link {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px; font-weight: 500;
    text-decoration: none; color: var(--blue);
    border: 1.5px solid transparent;
    transition: background 0.15s;
  }
  .nav-link:hover { background: var(--blue-light); }
  .nav-link.cta {
    background: var(--blue); color: white;
    border-color: var(--blue);
  }
  .nav-link.cta:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

  /* ── HERO ── */
  .hero {
    background: #006a94;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
  }
    .hero-inner {
        display: grid;
        grid-template-columns: 1fr 1.2fr; /* 讓右邊放圖片的格子稍微寬一點 */
        align-items: center;
        gap: 3rem;
        max-width: 1100px; /* 從 820px 改成 1100px */
        width: 100%;
    }
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(0,160,210,0.3), transparent 65%);
    pointer-events: none;
  }
  .hero-left { position: relative; z-index: 2; }
  .hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    font-size: 12px; letter-spacing: 0.1em;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 1.5rem;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 900;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.25rem;
  }
  .hero h1 em {
    font-style: normal;
    color: #7fd6f5;
  }
  .hero-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.78);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 360px;
  }
  .hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
  .hero-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px;
    border-radius: 999px;
    font-size: 15px; font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
  }
  .hero-btn:hover { transform: translateY(-2px); }
  .hero-btn.white { background: white; color: var(--blue); box-shadow: 0 4px 24px rgba(0,0,0,0.15); }
  .hero-btn.ghost { background: rgba(255,255,255,0.12); color: white; border: 1.5px solid rgba(255,255,255,0.4); }
  .hero-btn.ghost:hover { background: rgba(255,255,255,0.2); }

  .hero-right {
    position: relative; z-index: 2;
    display: flex; justify-content: center; align-items: flex-end;
  }
  .phone-mockup {
    width: 120%; max-width: 1200px;
    filter: drop-shadow(0 32px 60px rgba(0,0,0,0.35));
    border-radius: 20px;
    margin-right: -2rem;
  }

  /* ── STATS ── */
  .stats {
    background: var(--white);
    border-bottom: 1px solid rgba(0,106,148,0.08);
    padding: 2rem 2rem;
    display: flex; gap: 0;
    justify-content: center;
  }
  .stats-inner {
    display: flex; gap: 0;
    max-width: 820px; width: 100%;
  }
  .stat {
    flex: 1; text-align: center;
    padding: 0 1rem;
    border-right: 1px solid rgba(0,106,148,0.1);
  }
  .stat:last-child { border-right: none; }
  .stat-num { font-size: 24px; font-weight: 900; color: var(--blue); }
  .stat-label { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

  /* ── SECTION 容器調整 ── */
.section {
    padding: 5rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}
  .section-eyebrow {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--blue); margin-bottom: 0.5rem;
  }
  .section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900; color: var(--text);
    margin-bottom: 0.6rem;
  }
  .section-sub {
    font-size: 15px; color: var(--text-muted);
    margin-bottom: 2.5rem; max-width: 520px;
  }

/* 修正 5 張卡片的網格排版 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 核心功能預設 4 欄 */
    gap: 16px;
}

/* ── 合作計畫專用佈局 ── */
.partner-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; /* 電腦版：左大右小比例 */
    gap: 16px;
}

/* 讓超低價卡片在電腦版佔據左側一整塊 (跨 2 列) */
.price-highlight {
    grid-row: span 2; 
    background: #fffaf0 !important;
    border: 2px solid #ff922b !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partner-card {
    background: var(--white);
    border: 1px solid rgba(0,106,148,0.1);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: 0.3s;
}

.partner-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }

.partner-icon i { font-size: 28px; color: var(--blue); margin-bottom: 12px; display: block; }
.price-highlight .partner-icon i { font-size: 40px; color: #ff922b; }
/* 1. 確保卡片是相對定位，標籤才能定格在右上角 */
.feature-card {
  position: relative; /* 加入這一行 */
  background: var(--bg);
  border: 1px solid rgba(0,106,148,0.08);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  transition: box-shadow 0.18s, transform 0.18s;
}
/* 讓連結卡片裡的圖片填滿並保持比例 */
.link-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 確保圖片不變形且完整顯示 */
  padding: 8px;       /* 增加一點內邊距，讓圖片不要貼齊邊緣 */
  filter: brightness(0) invert(1); /* 如果你的圖片是黑色的，這行會把它變白色（配合藍色背景） */
}

/* 如果你希望這個盒子沒有背景色，只顯示圖片，可以針對性修改 */
.link-card-icon {
  width: 56px; 
  height: 56px; 
  flex-shrink: 0;
  background: var(--blue);
  border-radius: 14px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  overflow: hidden; /* 確保圖片圓角 */
}
/* 2. 新增獨家標籤樣式 */
.exclusive-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #e6f4fa; /* 淺藍色背景，與你的主題色系一致 */
  color: #006a94;      /* 深藍色文字 */
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0,106,148,0.2);
  pointer-events: none; /* 防止標籤干擾滑鼠點擊 */
}
  .feature-card:hover {
    box-shadow: 0 8px 28px rgba(0,106,148,0.12);
    transform: translateY(-3px);
  }
  .feature-icon-box {
    width: 42px; height: 42px;
    background: var(--blue);
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.85rem;
  }
  .feature-icon-box svg { width: 22px; height: 22px; fill: none; stroke: white; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .feature-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
  .feature-desc { font-size: 12px; color: var(--text-muted); line-height: 1.55; }

  /* ── LINKS ── */
  .links-section { background: var(--bg); padding: 5rem 2rem; }
  .links-inner { max-width: 820px; margin: 0 auto; }
  .links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 2.5rem;
  }
  .link-card {
    background: var(--white);
    border: 1px solid rgba(0,106,148,0.1);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    text-decoration: none;
    display: flex; align-items: center; gap: 18px;
    transition: box-shadow 0.18s, transform 0.18s;
    color: var(--text);
  }
  .link-card:hover {
    box-shadow: 0 8px 28px rgba(0,106,148,0.13);
    transform: translateY(-3px);
  }
  .link-card-icon {
    width: 56px; height: 56px; flex-shrink: 0;
    background: var(--blue);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 900; color: white; letter-spacing: -0.5px;
  }
  .link-card-body { flex: 1; }
  .link-card-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
  .link-card-url { font-size: 12px; color: var(--text-muted); }
  .link-card-note { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
  .link-card-arrow { font-size: 18px; color: var(--blue); opacity: 0.45; flex-shrink: 0; }

  /* ── FOOTER ── */
  footer {
    background: #003d56;
    padding: 2.5rem 2rem;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
  }
  footer .ft-left { color: rgba(255,255,255,0.9); }
  footer .ft-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
  footer .ft-sub { font-size: 12px; color: rgba(255,255,255,0.55); }
  footer .ft-right { display: flex; gap: 16px; }
  footer a { color: rgba(255,255,255,0.7); font-size: 13px; text-decoration: none; }
  footer a:hover { color: white; }
  
/* ── 製作中卡片樣式 ── */
.link-card.is-developing {
  cursor: not-allowed; /* 滑鼠變成禁止符號 */
  opacity: 0.7;       /* 降低透明度看起來像停用 */
  background: #f8fafc; /* 背景改淺灰 */
  pointer-events: none; /* 徹底禁止所有點擊事件 */
  filter: grayscale(0.5); /* 稍微去色 */
  border-style: dashed; /* 邊框改為虛線增加「未完成」感 */
}

.developing-tag {
  background: #e2e8f0;
  color: #64748b;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 500;
}

/* 移除滑鼠懸停時的升起效果（因為是停用的） */
.link-card.is-developing:hover {
  transform: none;
  box-shadow: none;
}
/* 📱 手機與平板版 RWD 最佳化 */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding: 4rem 2rem; min-height: auto; }
    .stats { padding: 1.5rem 1rem; }
    .stats-inner { display: grid; grid-template-columns: 1fr 1fr; }
    .stat { border: none; border-bottom: 1px solid #eee; padding: 1rem 0; }
    .stat:last-child { grid-column: span 2; border-bottom: none; }
    
    .section { padding: 3rem 1.2rem; }
    nav { width: 92%; }
    .nav-link:not(.cta) { display: none; }

    /* 1. 核心功能：維持一行兩個 (文字短，OK) */
    .feature-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 12px !important; 
    }

    /* 2. 合作計畫：改為一行一個 (文字長，這樣才好讀) */
    .partner-grid {
        grid-template-columns: 1fr !important; /* ⭐ 關鍵修改：改為 1 欄 */
        gap: 16px !important;
    }
    
    /* 3. 重設卡片佔用寬度 */
    .price-highlight {
        grid-column: span 1 !important; /* 在 1 欄佈局中只需佔 1 欄 */
        padding: 2rem 1.5rem !important;
    }

    .partner-card {
        padding: 1.5rem !important; /* 稍微縮小內邊距，增加文字空間 */
    }

    /* 4. 關於作者 */
    .author-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
        gap: 24px;
    }
    .author-image-box {
        width: 180px;
        height: 180px;
    }
}


/* 📱 手機版 RWD 優化 CSS - 導覽列修正版 */
@media (max-width: 768px) {
  body { padding-top: 80px; } /* 增加頂部間距防止被導覽列遮擋 */
  
 /* 🚀 重點二：圖片超大外展效果 */
  .hero-right {
    display: flex !important;
    justify-content: center;
    width: 100%;
    overflow: visible;
  }

  .phone-mockup {
    width: 110% !important;         /* 寬度設為 150% 達成外展感 */
    max-width: none !important;     /* 解除寬度限制 */
    margin-left: 0!important;   /* 位移補償達成置中 */
    margin-right: 0 !important;
    margin-top: 1rem;
    transform: translateY(15px);    /* 向下位移增加層次 */
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.4)) !important;
  }

  /* 3. 數據欄位優化 */
  .stats-inner { 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .stat { border: none; border-bottom: 1px solid #eee; padding: 1.2rem 0; }
  .stat:nth-child(even) { border-right: none; }
  .stat:last-child { grid-column: span 2; border-bottom: none; } /* 信任橫跨兩欄 */
  
    /* 🚀 手機版按鈕一行三個設定 */
  .hero-btns {
    display: flex !important;      /* 確保是 flex 佈局 */
    justify-content: center !important; /* ⭐ 加入這一行，讓按鈕水平置中 */
    flex-wrap: nowrap !important;   /* 強制不換行 */
    gap: 8px !important;            /* 按鈕間距 */
    width: 100%;
    padding: 0 5px;
    margin-top: 1.5rem;             /* 增加一點跟上方文字的間距 */
  }
  .hero-btn {
    flex: 1;                        /* 三個按鈕等寬平分 */
    justify-content: center;        /* 讓按鈕內的文字也置中 */
    font-size: 13px !important;     /* 稍微縮小字體以適應寬度 */
    padding: 12px 5px !important;   /* 調整內邊距 */
    white-space: nowrap;            /* 防止文字斷行 */
  }
  /* 導覽列容器修正 */
  nav { 
    width: 92%; /* 讓寬度稍微寬一點 */
    height: 64px; /* 增加高度，讓元素有空間 */
    top: 10px;
    padding: 0 12px; /* 縮小左右內邊距 */
  }

  /* 滾動後的導覽列高度保持一致 */
  nav.scrolled {
    width: 95%;
    top: 5px;
    height: 60px;
  }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr); /* 手機版強制一行兩個 */
        gap: 10px; /* 縮小間距，讓手機畫面不擁擠 */
    }

  /* 隱藏手機版不需要的文字連結 */
  .nav-link:not(.cta) { 
    display: none; 
  }

  /* 品牌區域 (Logo + 文字) */
  .nav-brand {
    gap: 6px; /* 縮小間距 */
  }

  .nav-brand-box {
    width: 34px; /* 稍微縮小 Logo 框 */
    height: 34px;
    flex-shrink: 0;
  }

  .nav-brand-text {
    font-size: 16px; /* 縮小字體防止換行 */
    line-height: 1.2;
  }

  .nav-brand-sub {
    font-size: 10px;
    display: block; /* 確保副標題顯示，但可以考慮隱藏以求極簡 */
  }

  /* 按鈕調整 */
  .nav-link.cta {
    padding: 6px 14px; /* 縮小按鈕內邊距 */
    font-size: 13px;
    white-space: nowrap; /* 確保文字不換行 */
  }

  /* 主視覺修正 */
  .hero { padding-top: 2rem; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .phone-mockup { width: 95%; max-width: 320px; transform: none; margin-top: 1.5rem; }

  /* 數據欄位改為 2x2 */
  .stats-inner { 
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 10px;
  }
  .stat { border: none; border-bottom: 1px solid #eee; padding: 1rem 0; }
  .stat:nth-child(even) { border-right: none; }

    /* 修正 Logo 顏色 */
    .nav-brand-box img {
        filter: brightness(0) invert(1) !important;
    }
}

/* ── 關於作者優化 ── */
.author-wrapper {
    display: flex;
    align-items: flex-start; /* 改成對齊頂部 */
    gap: 50px;
    padding: 40px;
    background: var(--bg);
    border-radius: 30px;
}

.author-image-box {
  flex-shrink: 0;
  width: 260px;
  height: 260px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border: 4px solid white;
}

.author-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 確保大頭貼不變形 */
}

.author-info {
  flex: 1;
}

.author-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.author-name {
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 12px;
}

.author-bio {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.author-social {
  display: flex;
  gap: 12px;
}
/* ── 合作計畫區塊樣式 ── */
.partner-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--blue-light) 100%);
  padding: 5rem 2rem;
  border-radius: 40px 40px 0 0;
}

.partner-card {
  background: var(--white);
  border: 1px solid rgba(0,106,148,0.1);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: left;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,106,148,0.12);
  border-color: var(--blue);
}

.partner-icon {
  font-size: 32px;      /* 調整為合適大小 */
  color: var(--blue);   /* 使用主題藍色 */
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* 如果覺得太重，可以稍微降低透明度 */
  opacity: 0.9;
}

/* 如果圖示沒出來，可以嘗試把 class 改成 fa-regular 或 fa-light */

.partner-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
}

.partner-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.partner-cta-box {
  margin-top: 3rem;
  text-align: center;
}
/* 📱 關於作者手機版 RWD */
@media (max-width: 768px) {
  .author-wrapper {
    flex-direction: column; /* 手機版變成上下排 */
    padding: 30px 20px;
    text-align: center;
    gap: 24px;
  }
  
  .author-image-box {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }
  
  .author-social {
    justify-content: center;
  }
}
/* 讓核心功能卡片裡的 Font Awesome 圖示變白色 */
.feature-icon-box i {
    color: white !important; /* 強制變白色 */
    font-size: 20px;         /* 調整圖示大小，讓它在盒子裡看起來更平衡 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── 微互動與動態效果 ── */
@keyframes heroDrift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-0.4deg); }
  50% { transform: translate3d(0, -14px, 0) rotate(0.7deg); }
}

@keyframes seaGlow {
  0%, 100% { transform: translate3d(-8%, 5%, 0) scale(1); opacity: .45; }
  50% { transform: translate3d(8%, -4%, 0) scale(1.12); opacity: .72; }
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(127, 214, 245, 0); }
  50% { box-shadow: 0 0 0 8px rgba(127, 214, 245, .08); }
}

@keyframes iconBob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-5px) rotate(-4deg); }
}

.hero::before {
  content: '';
  position: absolute;
  width: min(52vw, 720px);
  aspect-ratio: 1;
  right: -12%;
  top: -24%;
  border-radius: 42% 58% 62% 38% / 46% 42% 58% 54%;
  background: radial-gradient(circle at 35% 35%, rgba(127,214,245,.28), rgba(0,128,179,.08) 54%, transparent 72%);
  filter: blur(2px);
  animation: seaGlow 9s ease-in-out infinite;
  pointer-events: none;
}

.hero-left { animation: revealHero .8s cubic-bezier(.2,.8,.2,1) both; }
@keyframes revealHero {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  animation: badgePulse 3.2s ease-in-out infinite;
  backdrop-filter: blur(8px);
}

.phone-mockup {
  transform-origin: 55% 58%;
  animation: heroDrift 6s ease-in-out infinite;
  will-change: transform;
}

.hero-btn, .nav-link.cta, .author-social a {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-btn::after, .nav-link.cta::after, .author-social a::after {
  content: '';
  position: absolute;
  inset: -60% auto -60% -45%;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  transform: skewX(-18deg);
  transition: left .65s ease;
  z-index: -1;
}

.hero-btn:hover::after, .nav-link.cta:hover::after, .author-social a:hover::after { left: 120%; }

.feature-card, .link-card:not(.is-developing), .partner-card, .author-wrapper {
  overflow: hidden;
}

.feature-card::after, .partner-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 28%, rgba(255,255,255,.75) 48%, transparent 68%);
  transform: translateX(-125%);
  transition: transform .75s ease;
  pointer-events: none;
}

.feature-card:hover::after, .partner-card:hover::after { transform: translateX(125%); }
.feature-card:hover .feature-icon-box { transform: translateY(-3px) rotate(-5deg) scale(1.06); }
.feature-icon-box { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
.feature-card:hover .feature-icon-box { box-shadow: 0 10px 20px rgba(0,106,148,.22); }
.partner-card { position: relative; }
.partner-card:hover .partner-icon { animation: iconBob .65s ease both; }
.link-card-arrow { transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s ease; }
.link-card:hover .link-card-arrow { transform: translateX(7px); opacity: 1; }
.link-card-icon { transition: transform .35s cubic-bezier(.2,.8,.2,1), border-radius .35s ease; }
.link-card:hover .link-card-icon { transform: rotate(-5deg) scale(1.06); border-radius: 18px 10px 18px 10px; }
.stat-num { transition: transform .3s ease, color .3s ease; }
.stat:hover .stat-num { transform: translateY(-3px) scale(1.06); color: var(--blue-mid); }
.author-image-box { transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease; }
.author-wrapper:hover .author-image-box { transform: rotate(-1.5deg) scale(1.025); box-shadow: 0 28px 52px rgba(0,78,110,.16); }

html.motion-ready .motion-reveal {
  opacity: 0;
  transform: translateY(30px) scale(.985);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--motion-delay, 0ms);
}

html.motion-ready .motion-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 768px) {
  .phone-mockup { animation-duration: 7s; }
  .hero::before { width: 110vw; right: -45%; top: 20%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html.motion-ready .motion-reveal { opacity: 1; transform: none; }
}

/* 使用者回饋元件
   主要網站樣式仍在 index.html；此檔專門管理新增區塊，避免互相覆蓋。 */

.testimonials-section {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 1.5rem;
  background:
    radial-gradient(circle at 8% 20%, rgba(127, 214, 245, 0.22), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #eef8fc 100%);
}

.testimonials-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonials-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
}

.testimonials-note {
  max-width: 340px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.65;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 2.5rem;
}

.testimonial-card {
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 106, 148, 0.1);
  border-radius: 22px;
  box-shadow: 0 12px 36px rgba(0, 78, 110, 0.07);
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: -22px;
  right: 18px;
  color: rgba(0, 106, 148, 0.07);
  font-family: Georgia, serif;
  font-size: 150px;
  line-height: 1;
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-8px) rotate(-0.35deg);
  border-color: rgba(0, 106, 148, 0.3);
  box-shadow: 0 22px 48px rgba(0, 78, 110, 0.14);
}

.testimonial-card.featured {
  color: white;
  background: var(--blue);
}

.testimonial-card.featured::before {
  color: rgba(255, 255, 255, 0.1);
}

.testimonial-stars {
  margin-bottom: 1.4rem;
  color: #ffb22c;
  font-size: 12px;
  letter-spacing: 0.18em;
}

.testimonial-quote {
  position: relative;
  z-index: 1;
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.7rem;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: white;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-dark));
  border-radius: 50%;
  box-shadow: 0 7px 16px rgba(0, 78, 110, 0.18);
  font-size: 13px;
  font-weight: 900;
}

.featured .testimonial-avatar {
  color: var(--blue);
  background: white;
}

.testimonial-name {
  font-size: 13px;
  font-weight: 700;
}

.testimonial-role {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
}

.featured .testimonial-role {
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 4rem 0;
  }

  .testimonials-head {
    display: block;
    padding: 0 1.2rem;
  }

  .testimonials-note {
    margin-top: 1rem;
  }

  .testimonials-grid {
    display: flex;
    gap: 14px;
    padding: 0 1.2rem 1.2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .testimonials-grid::-webkit-scrollbar {
    display: none;
  }

  .testimonial-card {
    min-width: 82vw;
    scroll-snap-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-card {
    transition: none;
  }
}

/* 從 HTML 行內樣式移出的元件修飾 */
.testimonials-sub { margin-bottom: 0; }
.developing-icon { background: #94a3b8; }
.price-highlight-title {
  margin-bottom: 12px;
  color: #e67e22;
  font-size: 22px;
  font-weight: 900;
}
.partner-card-desc-compact { font-size: 13px; }
.partner-cta-note {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 14px;
}
.partner-cta-button {
  color: white;
  background: var(--blue);
  border: none;
  box-shadow: 0 10px 20px rgba(0, 106, 148, 0.2);
}
.author-social-button {
  padding: 8px 20px;
  font-size: 13px;
}

/* ── 品牌理念與島嶼視差 ── */
.philosophy {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: white;
  background: linear-gradient(180deg, #053f5a 0%, #006f99 45%, #65c5d5 100%);
}

.philosophy::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 42, 62, 0.86) 0%, rgba(0, 62, 86, 0.55) 46%, rgba(0, 92, 119, 0.05) 78%);
}

.philosophy-sky,
.parallax-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.parallax-layer {
  transform: translate3d(0, var(--parallax-y, 0), 0);
  will-change: transform;
}

.sun {
  width: 320px;
  height: 320px;
  inset: 13% 10% auto auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 191, 0.68) 0 12%, rgba(255, 222, 123, 0.2) 42%, transparent 70%);
  filter: blur(1px);
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(1px);
}

.cloud-one::before { width: 250px; height: 42px; top: 20%; right: 14%; }
.cloud-one::after { width: 110px; height: 70px; top: 16%; right: 20%; }
.cloud-two::before { width: 190px; height: 32px; top: 37%; right: 2%; opacity: 0.7; }
.cloud-two::after { width: 90px; height: 52px; top: 33%; right: 7%; opacity: 0.7; }

.island {
  inset: auto -4% 12% auto;
  width: 60%;
  height: 34%;
  transform: translate3d(0, var(--parallax-y, 0), 0) rotate(-2deg);
  border-radius: 66% 34% 45% 55% / 72% 58% 42% 28%;
}

.island-back {
  right: -10%;
  bottom: 20%;
  width: 64%;
  background: #246d65;
  opacity: 0.7;
  filter: blur(2px);
}

.island-front {
  background:
    radial-gradient(ellipse at 35% 10%, #8ac36f 0 8%, transparent 9%),
    radial-gradient(ellipse at 62% 22%, #69a85e 0 9%, transparent 10%),
    linear-gradient(165deg, #3f8866 0 45%, #1c5d58 46% 100%);
  box-shadow: inset 0 -35px 0 rgba(17, 65, 63, 0.34), 0 24px 50px rgba(0, 35, 48, 0.24);
}

.sea {
  inset: auto -10% -10% -10%;
  height: 40%;
  border-radius: 48% 52% 0 0 / 12% 15% 0 0;
}

.sea-back {
  bottom: -5%;
  background: rgba(47, 177, 202, 0.78);
  transform: translate3d(0, var(--parallax-y, 0), 0) rotate(1deg);
}

.sea-front {
  background:
    repeating-radial-gradient(ellipse at 50% 0%, transparent 0 50px, rgba(255,255,255,.13) 52px 54px, transparent 56px 90px),
    linear-gradient(180deg, rgba(83, 199, 215, 0.82), #007b9f 70%);
  transform: translate3d(0, var(--parallax-y, 0), 0) rotate(-1deg);
}

.philosophy-content {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding: 8rem 0 11rem;
  position: relative;
  z-index: 2;
}

.philosophy-copy { max-width: 720px; }
.philosophy-eyebrow {
  margin-bottom: 1.6rem;
  color: #9de8f5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.philosophy h2 {
  margin: 0;
  font-size: clamp(3.6rem, 7vw, 6.9rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.98;
  text-wrap: balance;
}

.philosophy h2 span { color: #8de8f5; }
.philosophy-copy > p {
  max-width: 600px;
  margin-top: 2.3rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.9;
}

.philosophy-values {
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 3.5rem;
}

.value-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(255,255,255,.09);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.value-chip span { grid-row: span 2; color: #8de8f5; font-size: 11px; font-weight: 700; }
.value-chip strong { font-size: 14px; }
.value-chip small { color: rgba(255,255,255,.62); font-size: 11px; }

/* ── Footer 社群入口 ── */
.ft-right { align-items: center; }
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}
.footer-social i { font-size: 16px; }
.footer-social:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); }

/* ── 手機版整體重整 ── */
@media (max-width: 768px) {
  body { padding-top: 72px; }

  nav,
  nav.scrolled {
    top: 8px;
    width: calc(100% - 24px);
    height: 56px;
    padding: 0 10px;
  }

  .nav-brand { min-width: 0; }
  .nav-brand-box { width: 32px; height: 32px; border-radius: 9px; }
  .nav-brand-text { max-width: 155px; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
  .nav-brand-sub { display: none; }
  .nav-link.cta { padding: 7px 12px; font-size: 12px; }

  .hero { min-height: auto; padding: 3.6rem 1rem 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .hero h1 { font-size: clamp(2.6rem, 13vw, 4rem); line-height: 1.05; }
  .hero-desc { max-width: 34rem; margin-inline: auto; font-size: 14px; }
  .hero-badge { margin-bottom: 1rem; }
  .hero-btns { gap: 7px !important; padding: 0 !important; }
  .hero-btn { min-height: 44px; padding: 10px 6px !important; font-size: 12px !important; }
  .hero-right { min-height: 300px; align-items: end; }
  .phone-mockup { width: min(132vw, 560px) !important; margin: 0 -16vw -4px !important; }

  .stats { padding: .8rem 1rem; }
  .stats-inner { gap: 0; }
  .stat { padding: .85rem .35rem; }
  .stat-num { font-size: 19px; }
  .stat-label { font-size: 10px; }

  .philosophy { min-height: 720px; }
  .philosophy::after { background: linear-gradient(180deg, rgba(0,42,62,.84), rgba(0,72,94,.5) 68%, rgba(0,92,119,.1)); }
  .philosophy-content { width: calc(100% - 36px); padding: 6rem 0 12rem; }
  .philosophy h2 { font-size: clamp(2.55rem, 12vw, 3.3rem); line-height: 1.04; }
  .philosophy h2 span { white-space: nowrap; }
  .philosophy-copy > p { margin-top: 1.7rem; font-size: 14px; line-height: 1.8; }
  .philosophy-values { grid-template-columns: 1fr; gap: 8px; margin-top: 2rem; }
  .value-chip { padding: .9rem 1rem; }
  .island { width: 110%; height: 25%; right: -32%; bottom: 15%; }
  .island-back { width: 120%; right: -40%; bottom: 20%; }
  .sea { height: 28%; }
  .sun { width: 240px; height: 240px; right: -16%; top: 9%; }

  .section { padding: 4rem 1rem; }
  .section-title { font-size: 1.75rem; line-height: 1.3; }
  .section-sub { margin-bottom: 1.8rem; font-size: 13px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .feature-card { min-height: 158px; padding: 1.15rem .9rem; }
  .feature-name { font-size: 14px; }
  .feature-desc { font-size: 11px; }
  .exclusive-badge { top: 9px; right: 9px; font-size: 8px; }

  .links-section,
  .partner-section { padding: 4rem 1rem; }
  .links-grid { grid-template-columns: 1fr; gap: 12px; }
  .link-card { padding: 1.25rem 1rem; }
  .partner-grid { grid-template-columns: 1fr !important; }
  .price-highlight { min-height: 310px; }

  .author-wrapper { padding: 1.4rem; border-radius: 22px; }
  .author-image-box { width: min(70vw, 230px); height: min(70vw, 230px); }
  .author-name { font-size: 21px; }
  .author-bio { font-size: 14px; text-align: left; }

  footer { padding: 2rem 1.2rem; align-items: flex-start; }
  footer .ft-right { width: 100%; flex-wrap: wrap; gap: 8px; }
  .footer-site { width: 100%; margin-bottom: 4px; }
  .footer-social { padding: 8px 12px; }
}

@media (max-width: 420px) {
  .nav-brand-text { max-width: 128px; }
  .feature-grid { grid-template-columns: 1fr !important; }
  .feature-card { min-height: auto; }
  .testimonial-card { min-width: 88vw; }
}

@media (prefers-reduced-motion: reduce) {
  .parallax-layer { transform: none !important; }
}
