:root {
  --primary: #00ce61; /* 調整為更亮、更飽和的翠綠 */
  --primary-glow: rgba(0, 206, 97, 0.35); 
  --primary-soft: #d2f7e5; 
  
  /* 💡 關鍵修改：調高這兩行的飽和度，讓底色呈現非常鮮明耀眼的翠綠色調 */
  --bg-gradient-start: #04f30895; /* 鮮艷的淺翠綠 */
  --bg-gradient-end: #86e7b1;   /* 飽和的亮綠 */
  
  /* 為了讓文字在鮮艷綠底上更好看，稍微加深文字顏色 */
  --text-main: #111827;
  --text-sub: #374151;
  --text-q-dark: #0a331a;      /* 高對比深綠文字，確保可讀性 */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: var(--text-main);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
}

.logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

main {
  flex: 1;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 4%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border-radius: 24px; /* 加上圓角讓整體看起來像高質感卡片 */
  color: #1e293b;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
}

.hero-copy-eyebrow {
  font-size: 26px;
  font-weight: 700;
  color: #06d86c; /* 使用明亮的品牌綠 */
  margin-bottom: 16px;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  color: #0f172a; /* 拿掉漸層字，改用扎實的深石墨色，質感極佳 */
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: #475569; /* 足夠清晰的灰色 */
  margin-bottom: 36px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 24px;
}

.store-badge img {
  display: block;
  height: 44px;
  width: auto;
}

.hero-note {
  font-size: 16px;
  color: #94a3b8; /* 柔和的淺灰 */
  margin-top: 24px;
}

.hero-device-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.hero-device {
  position: relative;
  z-index: 1;
  max-width: 260px;
  width: 100%;
}

.hero-device img {
  display: block;
  width: 100%;
  height: auto;
}

/* 🟢 改良：防犯セクション全体 */
.protection-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 20px 40px;
}

.protection-head {
  text-align: center;
  margin-bottom: 32px;
}

.protection-label {
  font-size: 36px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.protection-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

/* 胶囊控制区 */
.protection-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 850px;
  margin: 0 auto 32px;
}

.protection-tab {
  position: relative;
  padding: 16px 12px;
  border-radius: 999px;
  border: 2px solid rgba(8, 198, 99, 0.15);
  background: #ffffff;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(8, 198, 99, 0.04);
}

.protection-tab span {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.protection-tab.active {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  transform: translateY(-2px);
}

.tab-progress-wire {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: var(--primary);
  z-index: 1;
  transition: width linear;
}

.protection-tab.active .tab-progress-wire {
  width: 100%;
}

/* 🟢 改良：イメージ通りのスタイリッシュなグリーン防犯パネル */
.protection-block {
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  border-radius: 48px;
  padding: 56px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
  min-height: 460px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(8, 198, 99, 0.08);
  border: 1px solid rgba(8, 198, 99, 0.15);
}

/* 🟢 改良：イメージのような幾何学的な防犯シールド柄の背景パターン */
.protection-matrix-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(rgba(8, 198, 99, 0.1) 1.5px, transparent 1.5px),
    linear-gradient(rgba(8, 198, 99, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 198, 99, 0.03) 1px, transparent 1px);
  background-size: 32px 32px, 64px 64px, 64px 64px;
  opacity: 0.8;
  z-index: 0;
}

.protection-block-left {
  position: relative;
  z-index: 2;
  color: var(--text-q-dark);
}

.protection-block-content-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.protection-block-icon {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(8, 198, 99, 0.1);
}

.protection-block-icon i {
  font-size: 22px;
  color: var(--primary);
}

.protection-block-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-q-dark);
  margin: 0;
  letter-spacing: -0.02em;
}

.protection-block-desc {
  font-size: 15px;
  color: #2f5242;
  line-height: 1.7;
  margin: 0;
  max-width: 380px;
}

/* 右側ビジュアルエリア */
.protection-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 🟢 改良：中央の不要なラインを完全削除したため、ここをクリーンに保ちます */
.protection-visual-inner {
  position: relative;
  width: 100%;
  max-width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;

  /* 💡 核心修改：幫整個圖片容器加上完美的 Q 版大圓角 */
  border-radius: 40px; 
  /* 💡 核心修改：切除圖片超出圓角的方形尖角（防稜角外露） */
  overflow: hidden; 

  /* 額外加分：加上精緻の白巧克力果凍邊框與柔和陰影 */
  border: 8px solid #ffffff; 
  box-shadow: 0 20px 40px rgba(6, 40, 26, 0.12); 
}

/* モックアップ画像の最適化 */
.q-device-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 💡 確保截圖完美填滿圓角容器 */
  display: block;
  z-index: 2;
  position: relative;
}

.protection-visual-deco {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130%;
  height: 130%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
  z-index: 0;
}

/* トランジション */
.transition-container {
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: opacity, transform;
}

.transition-container.fade-out {
  opacity: 0;
  transform: translateY(6px);
}

/* その他のセクション群 */
.section {
  border-radius: 32px 32px 0 0;
  margin-top: 32px;
}
.section-alt-bg {
  /* 💡 終極加強版：縮小紫色比例，右下角直接注入飽和度爆表、極度鮮活的「極光翠綠」，色系感超級強烈！ */
  background: linear-gradient(135deg, #d3c4ff 0%, #3be895 70%, #00ce61 100%);
}

.section-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 60px;
}

.section-title {
  /* 💡 核心修改 1：把字體大小從 22px 放大到 28px，更有大區塊標題的氣勢 */
  font-size: 68px;
  /* 💡 核心修改 2：強制加粗字體（800是超粗體），讓字型非常顯眼 */
  font-weight: 500;
  /* 💡 核心修改 3：把文字顏色改成很高質感的極深防護綠（與最上方 :root 的深色文字呼應） */
  color: #06321f;
  /* 💡 核心修改 4：微調字距，讓日文字型看起來更乾淨、更像現代 App 介面 */
  letter-spacing: 0.04em;
  text-align: center;
  margin: 0 0 40px; /* 稍微增加下方與卡片的距離，視覺更有呼吸感 */
  /* 💡 核心修改 5：工程師的終極大絕！加上一層白色的文字陰影（微發光效果）
     這可以確保字體在後方紫色到綠色的漸層中，永遠邊界清晰、完全不吃字！ */
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.5);
}

.features-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px; /* 區塊之間的間距 */
    width: 100%;
}

.feature-item {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center; /* 確保所有內容居中 */
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 130px;         /* 恢復圓圈的足夠大寬度 */
    height: 130px;        /* 恢復圓圈的足夠大高度 */
    background-color: #cbeee0; /* 圖一那種粉嫩、高透明度的淡綠色底 */
    border-radius: 50%;   /* 確保是正圓形 */
    margin-bottom: 24px;  /* 與下方標題的間距 */
    flex-shrink: 0;       /* 防止圓圈被文字擠壓變形 */
}

.feature-icon i {
    color: #ffffff !important; /* 核心：必須是純白色，視覺比例才不會縮小 */
    font-size: 44px;           /* 圖標大小 */
}

.feature-title {
    font-size: 18px;
    font-weight: bold;
    color: #032b1d; /* 深綠色文字 */
    margin-bottom: 16px;
}

.feature-desc {
    font-size: 14px;
    color: #555555;
    line-height: 1.6;
    text-align: justify; /* 讓文字兩端對齊，排版更整齊穩定 */
    margin: 0;
}

/* 新聞卡片 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.news-card {
  border-radius: 18px;
  background: #fdfbff; /* 💡 配合紫色背景的極高質感微紫白 */
  padding-bottom: 18px;
  box-shadow: 0 10px 30px rgba(108, 92, 231, 0.05); /* 帶有微紫色的精緻陰影 */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

/* 當滑鼠指到卡片時的 Hover 特效（同步微調為紫光懸浮） */
.news-card:hover {
  transform: translateY(-8px); 
  
  /* 💡 核心修改：滑鼠移过去時，底部散發出淡淡的迷幻紫防護光暈 */
  box-shadow: 0 20px 32px rgba(108, 92, 231, 0.18); 
}

/* 💡 新增：當滑鼠指到卡片時的動態效果 (Hover) */
.news-card:hover {
  transform: translateY(-8px); /* 💡 效果 1：卡片優雅地往上浮起 8 像素 */
  box-shadow: 0 20px 32px rgba(8, 198, 99, 0.15); /* 💡 效果 2：陰影變深，製造立體懸浮感 */
}

.news-banner {
  height: 80px;
  /* 💡 核心修改：配合前面調整的鮮豔綠色變數（--primary）做動態漸層 */
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  
  /* 加入 Banner 的漸變過渡 */
  transition: filter 0.3s ease;
  cursor: pointer;
}

/* 💡 新增：滑鼠指到卡片時，頂部綠色 Banner 微微發光的視覺感 */
.news-card:hover .news-banner {
  filter: brightness(1.08); /* 💡 效果 3：頂部綠色區塊亮度微調，看起來像在發光 */
  background: #0b0f19;
  color: #ffffff;
}

.news-body {
  padding: 16px 18px;
  flex: 1;
  background-color: #ffffff; /* 預設白底 */
  color: #1a1a1a;            /* 預設黑字（內文） */
  
  /* 💡 動畫過渡：讓背景與文字顏色變換時平滑順暢 */
  transition: all 0.3s ease; 
}

.news-title {
  font-size: 16px;
  font-weight: 700;       /* 💡 核心修改：加粗字體，防止被強烈的鮮綠背景壓過去 */
  color: #111827;         /* 極致深色，確保最高閱讀對比 */
  margin: 0 0 8px;
}

.news-desc {
  font-size: 13.5px;
  color: #232d29;         /* 💡 核心修改：稍微加深描述文字，帶有一點點深夜綠的黑 */
  line-height: 1.6;
}

.news-date {
  font-size: 12px;
  color: #55605a;         /* 💡 核心修改：讓日期文字呈現高質感的深翡翠灰，與背景完美呼應 */
  font-weight: 600;
  padding: 0 18px;
}

/* 圖文拆分 */
.split-section {
  max-width: 1120px;
  margin: 80px auto 0;
  padding: 0 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split-block.reverse {
  direction: rtl;
}

.split-block.reverse > * {
  direction: ltr;
}

.split-text-eyebrow {
  font-size: 36px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
}

.split-text-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
}

.split-text-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

.split-text-list {
  padding-left: 1.2em;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

.split-text-note {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 8px;
}

.split-visual {
  background: #f6f5f5;
  border-radius: 24px;
  overflow: hidden;
}

.split-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* 使用者評價 */
.testimonial-section {
  background: #28c750;
  border-radius: 32px 32px 0 0;
  margin-top: 48px;
  padding: 60px 20px;
}

.testimonial-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.testimonial-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 6px;
}

.testimonial-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin: 0 0 40px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
}

.testimonial-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #6b7280;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.testimonial-country {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.testimonial-quote {
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

.testimonial-stats-heading {
  font-size: 16px;
  color: #ffffff;
  text-align: center;
  margin-bottom: 16px;
}

.testimonial-stats-row {
  display: flex;
  justify-content: center;
  gap: 64px;
}

.testimonial-stat-num {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.testimonial-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin: 4px 0 0;
}

/* /* ==========================================================================
   仿 Whoscall 風格頁尾 (Footer) 樣式
   ========================================================================== */
footer {
    background-color: #06321f; /* 網頁原本的深綠底色 */
    color: #ffffff;
    padding: 60px 24px 40px; /* 增加上下留白，視覺更舒暢 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; /* 改用更現代的系統字體 */
    letter-spacing: 0.5px; /* 稍微增加字距提升質感 */
}

footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* 主要內容區（左右分欄） */
footer .footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    padding-bottom: 40px; /* 留白加寬 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 左側區塊 */
footer .footer-left {
    margin-bottom: 30px;
    flex: 1;
    min-width: 250px;
}

footer .footer-brand {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 24px; /* 增加間距 */
}

/* 語系選擇框造型 */
footer .lang-select {
    background: rgba(255, 255, 255, 0.12); /* 稍微調亮一點點 */
    padding: 10px 20px; /* 調整內襯，更像膠囊型 */
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px; /* 增加間距 */
    cursor: pointer;
    transition: background 0.2s ease;
}

footer .lang-select:hover {
    background: rgba(255, 255, 255, 0.2);
}

footer .lang-select .arrow {
    margin-left: 10px;
    font-size: 10px;
    opacity: 0.7;
}

/* Powered by */
footer .powered-by {
    font-size: 13px; /* 字體稍微縮小 */
    color: rgba(255, 255, 255, 0.5); /* 顏色改淡，讓主體更明確 */
}

footer .powered-by span {
    font-weight: bold;
    color: #ffffff;
    margin-left: 4px;
}

/* 右側連結清單區 */
footer .footer-right {
    display: flex;
    gap: 60px;
    flex: 2;
    justify-content: space-between; /* 讓欄位均勻分開 */
    min-width: 500px;
}

/* 標題調整：Whoscall 的大標其實是「純白且粗體」，內文才是淡色 */
footer .link-group .group-title {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 20px;
    color: #ffffff; /* 改為純白，建立階層感 */
}

footer .link-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .link-group ul li {
    margin-bottom: 12px; /* 改用 margin 控制行距，排版更精準 */
}

footer .link-group ul li a {
    color: rgba(255, 255, 255, 0.65); /* 預設改為淡色，視覺才不會全部擠在一起 */
    text-decoration: none;
    font-size: 14px; /* 稍微縮小字體更精緻 */
    transition: color 0.2s ease;
}

footer .link-group ul li a:hover {
    color: #ffffff; /* 移上去時亮起 */
}

/* 【全新加入】FB、IG 圓圈圖標樣式 */
footer .sns-group .sns-icons {
    display: flex;
    gap: 12px;
}

footer .sns-group .sns-icons li {
    margin-bottom: 0; /* 清除上面的 li 底部間距 */
}

footer .sns-group .sns-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.3); /* 輕微的白邊圓圈 */
    border-radius: 50%;
    color: #ffffff !important; /* 強制圖標維持白色 */
    font-size: 16px;
    transition: border-color 0.2s, opacity 0.2s;
}

footer .sns-group .sns-icons a:hover {
    border-color: #ffffff;
    opacity: 0.8;
}

/* 最底部版權宣告與條款 */
footer .footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px; /* 字體稍微縮小 */
}

footer .footer-bottom .copyright {
    color: rgba(255, 255, 255, 0.4); /* 顏色改淡 */
}

footer .footer-legal {
    display: flex;
    gap: 24px;
}

footer .footer-legal a {
    color: rgba(255, 255, 255, 0.4); /* 顏色改淡 */
    text-decoration: none;
    transition: color 0.2s ease;
}

footer .footer-legal a:hover {
    color: #ffffff;
}

/* 響應式微調 */
@media (max-width: 768px) {
    footer {
        padding: 40px 20px;
    }
    footer .footer-main {
        flex-direction: column;
        gap: 40px;
    }
    footer .footer-right {
        width: 100%;
        min-width: 100%;
        gap: 32px;
        flex-wrap: wrap;
    }
    footer .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    footer .footer-legal {
        gap: 16px;
    }
}
/* 響應式 */
@media (max-width: 960px) {
  .hero, .protection-block, .split-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .protection-block { padding: 40px 32px; }
  .hero-device-wrap { order: -1; }
  .news-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .protection-tabs { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .news-grid, .features-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .protection-block { padding: 36px 20px; }
}