/* ===================================================================
   KeySearch Website CSS (Desktop-only cleaned)
   =================================================================== */

/* ========== Tokens ========== */
:root{
  --bg: #121212;
  --bg-elev: #1a1a1a;
  --fg: #e7ecf3;
  --fg-muted: #a9b2c3;
  --brand-gold: #d4af37;
  --brand-cyan: #6ee7ff;
  --border: rgba(255,255,255,.06);
  --radius: 14px;
}

/* ========== Reset & Base ========== */
*,
*::before,
*::after{ box-sizing: border-box; }
html,body{
  margin:0; padding:0; background:var(--bg); color:var(--fg);
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
  line-height:1.6;
}
a{ color:inherit; text-decoration:none; }

img{
  max-width:100%;
  height:auto;
  display:block;
  margin:0;
}

.container{ max-width:1080px; margin:0 auto; padding:0 20px; }

/* ========== Common Components ========== */
.btn{ display:inline-block; padding:12px 18px; border-radius:var(--radius); font-weight:600; text-decoration:none; cursor:pointer; transition:.2s ease; }
.btn.primary{ background:var(--brand-gold); color:#000; }
.btn.primary:hover{ background:#f5d676; }
.btn.secondary{ border:1px solid var(--brand-cyan); color:var(--brand-cyan); }
.btn.secondary:hover{ background:var(--brand-cyan); color:#000; }
.btn.ghost{ border:1px solid var(--border); color:var(--fg); background:transparent; }
.tiny{ font-size:.9rem; } 
.muted{ color:var(--fg-muted); }

/* Toast */
.toast{
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #0e0e0e; border:1px solid var(--border); color: var(--fg);
  padding: 10px 14px; border-radius: 10px; box-shadow: 0 10px 24px rgba(0,0,0,.4);
  z-index: 999; font-size: .95rem;
}

/* ========== Index Hero ========== */
.hero{
  display:grid;
  grid-template-columns: minmax(560px, 1fr) minmax(420px, 1fr);
  gap: 48px;
  align-items: start;
  padding-top: 140px; padding-bottom: 80px;
}
.hero > * { min-width: 0; }

.hero-text{ text-align:left; justify-self:start; width:100%; }
.hero-text h1{ margin:0 0 12px; font-size:clamp(2.5rem,5vw,3.5rem); }
.hero-text .sub{ font-size:1.2rem; color:var(--fg-muted); margin-bottom:24px; }
.hero-text .actions{ display:flex; gap:16px; margin-top:20px; justify-content:flex-start; }

.hero-title-wrap{ position: relative; min-height: 0; }
.hero-title-wrap > h1{
  position: static;
  margin: 0;
  font-size: clamp(2.5rem,5vw,3.5rem);
  white-space: nowrap;
  overflow: hidden;         /* 打字動畫關鍵 */
  border-right: none;
  z-index: 1;
}
.hero-text .caret{
  display:inline-block;
  width:2px; height:1em; margin-left:2px;
  background: var(--brand-gold);
  vertical-align:-0.15em;
  animation: caret-blink 1s step-end infinite;
}
@keyframes caret-blink { 50% { opacity:0; } }

/* Hero image */
.hero-img img{ border-radius:var(--radius); max-width:720px; margin:0 auto; }

/* ========== Feature Section ========== */
.feature{
  display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center;
  padding:80px 20px; border-bottom:1px solid var(--border);
}
.feature.reverse{ direction:rtl; text-align:right; }
.feature.reverse .feature-text{ direction:ltr; text-align:left; }
.feature-text h2{ font-size:2rem; margin-bottom:12px; }
.feature-text p{ color:var(--fg-muted); }
.feature-img{
  position: relative; flex:1; display:flex; align-items:center; justify-content:center;
  border-radius:14px; overflow:hidden; background:#0f0f0f;
  box-shadow:0 6px 20px rgba(0,0,0,.45);
  transition: transform .35s ease, box-shadow .35s ease;
}
.feature-img img{ display:block; width:100%; max-width:680px; border-radius:14px; filter: brightness(1.05) contrast(1.05); transition: transform .35s ease, filter .35s ease; }
.feature-img:hover{ transform: translateY(-6px) scale(1.02); box-shadow: 0 12px 28px rgba(0,0,0,.55); }
.feature-img:hover img{ transform: scale(1.03); filter: brightness(1.1) contrast(1.1); }

/* ========== Features Page Cards ========== */
.features-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:28px; padding:40px 0 70px;
}
.feature-card{
  background:var(--bg-elev); border:1px solid var(--border);
  border-radius:var(--radius); padding:24px; text-align:center;
  transition:transform .2s ease, border-color .2s ease;
}
.feature-card:hover{ transform:translateY(-6px); border-color:var(--brand-cyan); }
.feature-card img{ max-width:80px; margin-bottom:16px; }
.feature-card h2{ margin:0 0 6px; font-size:1.3rem; }
.feature-card p{ color:var(--fg-muted); font-size:.95rem; }

/* ========== Pricing ========== */
.pricing-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:28px; padding:40px 0 10px; text-align:center;
}
.price-card{
  position:relative; background:var(--bg-elev); border:1px solid var(--border);
  border-radius:var(--radius); padding:34px 22px;
  transition:transform .2s ease, border-color .2s ease;
}
.price-card:hover{ transform:translateY(-6px); border-color:var(--brand-cyan); }
.price-card.highlight{ border:2px solid var(--brand-gold); }
.price-card h2{ margin:0 0 6px; font-size:1.5rem; }
.price-card .price{ font-size:2rem; color:var(--brand-gold); margin:6px 0 14px; }
.price-card .price span{ font-size:1rem; color:var(--fg-muted); }
.price-card .features{ list-style:none; padding:0; margin:0 0 18px; }
.price-card .features li{ color:var(--fg-muted); margin:8px 0; }

/* ========== Support ========== */
.faq-item{
  background:var(--bg-elev); border:1px solid var(--border);
  border-radius:var(--radius); margin:10px 0; padding:0 14px;
}
.faq-item>summary{ list-style:none; cursor:pointer; padding:14px 0; font-weight:600; }
.faq-item[open]>summary{ color:var(--brand-gold); }
.faq-item .answer{ color:var(--fg-muted); padding:0 0 14px; }

/* ========== Download ========== */
.dl-grid{
  display:grid; gap:28px; grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  padding:40px 0;
}
.dl-card{
  background:var(--bg-elev); border:1px solid var(--border); border-radius:var(--radius);
  padding:24px; text-align:center; transition:transform .2s ease, border-color .2s ease;
}
.dl-card:hover{ transform:translateY(-6px); border-color:var(--brand-cyan); }

/* ========== Footer (Desktop Grid) ========== */
footer.site-footer.bm-footer .bm-footer-top{
  display: grid;
  grid-template-columns: minmax(220px,1fr) repeat(4, minmax(160px,1fr));
  gap: 28px 48px;
  align-items: start;
  padding: 48px 0;
}
footer.site-footer.bm-footer .bm-foot-links-grid{ display: contents; }
footer.site-footer.bm-footer .bm-foot-links-grid h4{ font-size:.95rem; margin:0 0 10px; color:#fff; }
footer.site-footer.bm-footer .bm-foot-links-grid a{
  display:block; margin:4px 0; color:#b8c0cf; text-decoration:none;
  transition: color .2s;
}
footer.site-footer.bm-footer .bm-foot-links-grid a:hover,
footer.site-footer.bm-footer .bm-footer-bottom .legal a:hover{
  color: var(--brand-gold);
}
.bm-footer .bm-foot-brand .brand.mini{ flex-direction: column; align-items: flex-start; }
.bm-footer .bm-foot-brand .brand.mini img{ height: 60px; margin-bottom: 8px; }
.bm-footer .bm-foot-brand .brand.mini span{ font-size: 2.6rem; line-height: 1.2; }

/* ========== Lang Portal ========== */
.site-header, .bm-header { overflow: visible; }
.nav-links.open { position: relative; z-index: 3000; }

.lang-portal{
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  min-width: 220px;
  max-width: 92vw;
  max-height: min(70vh, 420px);
  overflow: auto;
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
  padding: 8px;
  display: none;
}
.lang-portal.open{ display:block; }
.lang-portal button[role="menuitem"]{
  width: 100%; text-align: left;
  padding: 8px 10px; border: 0; background: transparent; color: #e7ecf3;
  border-radius: 8px; cursor: pointer; font-size: .95rem;
}
.lang-portal button[role="menuitem"]:hover{ background: rgba(255,255,255,.08); color: var(--brand-gold); }
.lang-portal [aria-current="true"]{ font-weight: 700; color: var(--brand-gold); }

/* ===== Features Grid (Desktop) ===== */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 28px;
  margin: 60px 0;
}

/* 卡片 */
.feat-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
   justify-content:center;
}
.feat-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-cyan);
  box-shadow: 0 14px 32px rgba(0,0,0,.45);
}

/* Icon */
.icon-wrap {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  margin-bottom: 14px;
  font-size: 22px;
  color: #ffd36b;
}

/* 標題與描述 */
.feat-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 600;
}
.feat-card p {
  margin: 0;
  color: var(--fg-muted);
  font-size: .95rem;
  line-height: 1.6;
}

/* ==== Feature Cards — desktop polish ==== */

/* 容器：4 欄、舒服的間距（你原本的 container 會限制寬度） */
.feat-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding: 24px 0 80px;
}

/* 卡片本體：立體層次 + 微微光暈 */
.feat-card{
  position:relative;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border: 1px solid var(--border);
  padding: 24px 20px 22px;
  text-align:center;
  overflow:hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
   max-width: 1080px;      /* 與全站 container 對齊 */
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
   justify-content: center;
}

/* 背景動態暈光（低調） */
.feat-card::before{
  content:"";
  position:absolute; inset:-28% -22%;
  background:
    radial-gradient(40% 50% at 30% 25%, rgba(212,175,55,.12), transparent 60%),
    radial-gradient(38% 48% at 70% 70%, rgba(64,206,255,.10), transparent 60%);
  filter: blur(28px);
  opacity:.55;
  transition: opacity .35s ease, filter .35s ease;
  z-index:0;
}

/* hover：上浮 + 強化邊與光暈 */
.feat-card:hover{
  transform: translateY(-6px);
  border-color: var(--brand-cyan);
  box-shadow: 0 14px 32px rgba(0,0,0,.55);
}
.feat-card:hover::before{ opacity:.9; filter: blur(36px); }

/* icon 圓形徽章 */
.icon-wrap{
  position:relative; z-index:1;
  width:56px; height:56px; margin:0 auto 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.12);
  display:grid; place-items:center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
}
.icon{ font-size:24px; line-height:1; }

/* 文字層級 */
.feat-card h3{
  margin:6px 0 8px;
  font-size:1.15rem;
  letter-spacing:.2px;
}
.feat-card p{
  margin:0;
  color: var(--fg-muted);
  font-size: .95rem;
}

/* optional：進場 reveal（你已有 .reveal-on-scroll 的 JS） */
.feat-card.reveal-on-scroll{ opacity:0; transform: translateY(10px); }
.feat-card.reveal-on-scroll.is-visible{ opacity:1; transform:none; transition:.4s ease; }

/* ===== About page – Cards Polishing (Desktop) ===== */

/* 區塊節奏 */
.page-hero { padding: 76px 0 26px; }
.about-block { max-width: 880px; margin: 0 auto; padding: 28px 0; }
.about-block .lead, .about-block p { color: var(--fg-muted); }

/* 卡片共用樣式（淡暈光、柔和陰影、上浮） */
.about-card,
.about-callout{
  position: relative;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border: 1px solid var(--border);
  padding: 26px 22px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease, background .35s ease;
}

/* 背景暈光 */
.about-card::before,
.about-callout::before{
  content: "";
  position: absolute;
  inset: -28% -22%;
  background:
    radial-gradient(42% 52% at 28% 24%, rgba(212,175,55,.12), transparent 60%),
    radial-gradient(40% 50% at 72% 70%, rgba(64,206,255,.10), transparent 60%);
  filter: blur(28px);
  opacity: .55;
  transition: opacity .35s ease, filter .35s ease;
  z-index: 0;
}

/* hover / focus 上浮 */
.about-card:hover,
.about-card:focus-within,
.about-callout:hover,
.about-callout:focus-within{
  transform: translateY(-6px);
  border-color: var(--brand-cyan);
  box-shadow: 0 14px 32px rgba(0,0,0,.55);
}
.about-card:hover::before,
.about-callout:hover::before{ opacity: .9; filter: blur(36px); }

/* 文字層保持在暈光上面 */
.about-card > * ,
.about-callout > * { position: relative; z-index: 1; }

/* 卡片內標題/文字 */
.about-card h3{ margin: 2px 0 8px; font-size: 1.12rem; }
.about-card p { margin: 0; color: var(--fg-muted); font-size: .95rem; }

/* Callout 版本：更醒目一點 */
.about-callout{
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
}
.about-callout h3{ margin: 0 0 8px; }
.about-callout p { margin: 0 0 14px; color: var(--fg-muted); }

/* 卡片網格：四格對齊、間距 */
.about-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding: 10px 0 6px;
}

/* 按鈕細節：跟卡片對齊 */
.about-callout .actions .btn{ border-radius: 12px; }
.about-callout .btn:hover{ transform: translateY(-1px); }

/* 小互動：鍵盤瀏覽外框 */
.about-card:focus-within,
.about-callout:focus-within{
  outline: 2px solid color-mix(in oklab, var(--brand-cyan) 60%, white 0%);
  outline-offset: 2px;
}

/* ===== About spacing tuning (Desktop) ===== */
.page-hero{ padding: 92px 0 34px !important; }
.about-block{ padding: 36px 0 !important; }
.about-grid{
  gap: 28px !important;
  padding: 18px 0 16px !important;
}

/* 卡片內距/圓角/陰影放鬆一點 */
.about-card,
.about-callout{
  border-radius: 20px !important;
  padding: 28px 24px !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.38) !important; /* 稍微更柔 */
}

/* 內文行距與字距 */
.about-card h3{ margin: 4px 0 10px !important; }
.about-card p,
.about-callout p{ line-height: 1.75 !important; letter-spacing: .1px; }

/* Callout 再寬鬆一點 */
.about-callout{ padding: 32px 26px !important; }
.about-callout .actions{ margin-top: 10px; gap: 14px; }

/* ===== Support Page Styling ===== */

/* Quick links (Download / Billing / FAQ / Contact) */
.support-quick{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin:24px 0 36px;
}
.support-quick .qk{
  flex:1 1 120px;
  text-align:center;
  padding:10px 14px;
  border-radius:10px;
  background:#151515;
  border:1px solid rgba(255,255,255,.08);
  color:#e7ecf3;
  text-decoration:none;
  transition:all .2s ease;
}
.support-quick .qk:hover{
  background:rgba(255,255,255,.06);
  color:var(--brand-gold);
}

/* FAQ 卡片化 */
.faq{ margin:40px 0; }
.faq-item{
  margin:0 0 14px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  overflow:hidden;
  background:#141414;
  box-shadow:0 4px 14px rgba(0,0,0,.3);
}
.faq-item summary{
  padding:14px 18px;
  cursor:pointer;
  list-style:none;
  font-weight:600;
  color:#fff;
}
.faq-item[open] summary{ background:rgba(255,255,255,.04); }
.faq-item .answer{
  padding:14px 18px;
  line-height:1.6;
  color:#cfd6e3;
  border-top:1px solid rgba(255,255,255,.08);
}

/* Feedback 表單 */
.feedback-form{
  margin:40px 0;
  padding:28px 24px;
  background:#141414;
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  box-shadow:0 6px 20px rgba(0,0,0,.35);
}
.feedback-form label{
  display:block;
  font-size:.95rem;
  color:#e7ecf3;
  margin-bottom:10px;
}
.feedback-form input,
.feedback-form select,
.feedback-form textarea{
  width:100%;
  padding:10px 12px;
  margin-top:4px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.15);
  background:#0f0f0f;
  color:#fff;
  font-size:.95rem;
}
.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus{
  border-color:var(--brand-gold);
  outline:none;
  box-shadow:0 0 0 2px rgba(212,175,55,.3);
}
.feedback-form .row2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.feedback-form .actions{
  margin-top:16px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

/* Donate 卡片 */
.donate-card{
  margin:40px 0;
  padding:28px 24px;
  background:linear-gradient(145deg,#111,#161616 60%,#101010);
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 8px 24px rgba(0,0,0,.4);
  text-align:center;
}
.donate-card h2{ margin-top:0; }
.donate-card .donate-actions{
  margin:18px 0;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px;
}
.donate-card .fine-print{
  font-size:.85rem;
  color:#aab3c5;
  margin-top:8px;
}

/* === Support: 水平置中與一致寬度 === */
/* 讓這幾個區塊與 page-hero 用同一個視覺寬度並置中 */
.page-hero.container,
.support-quick.container,
.faq.container,
.feedback.container,
.donate.container{
  max-width: 1080px;      /* 與全站 container 對齊 */
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Quick links 置中排列、每顆一致寬度 */
.support-quick{
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 14px;
  margin: 18px 0 26px;
}
.support-quick .qk{
  min-width: 220px;
  flex: 0 1 240px;       /* 自動換行但維持一致寬 */
  text-align: center;
  padding: 12px 14px;
  border-radius: 12px;
}

/* FAQ：整欄寬度對齊、卡片不縮邊 */
.faq .faq-item{
  width: 100%;
  border-radius: 12px;
}
.faq .faq-item > summary{ padding: 14px 16px; }
.faq .faq-item .answer{  padding: 14px 16px; }

/* Feedback 表單卡片置中（若你外層不是卡片，也可只留 max-width） */
.feedback .feedback-form{
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

/* Donate 卡片也對齊容器寬 */
.donate .donate-card{
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  min-height: 180px; /* 視覺統一 */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* === Features：卡片網格與樣式（只影響 .feat-grid / .feat-card） === */
.feat-grid{
  display:grid;
  gap:24px;
  margin-block:24px 40px;
}

.feat-card{
  background:var(--card, #171a21);
  border:1px solid var(--border, #262b36);
  border-radius:16px;
  padding:22px;
  text-align:center;
  min-height:180px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;

  /* 細節質感 */
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  position:relative;
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* 內建淡淡的光暈，視覺集中 */
.feat-card::after{
  content:"";
  position:absolute; inset:-20% -20% auto -20%; height:60%;
  background:radial-gradient(120% 70% at 50% 0%, rgba(255,255,255,.06), transparent 60%);
  pointer-events:none;
}

.feat-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.36);
  border-color: rgba(255,255,255,.14);
}

.icon-wrap{
  width:56px; height:56px; border-radius:50%;
  display:grid; place-items:center; margin-bottom:12px;
  background:radial-gradient(120% 120% at 30% 30%, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);
}
.icon{ font-size:26px; line-height:1; }

.feat-card h3{
  font-size:1.15rem;
  margin:8px 0 6px;
}
.feat-card p{
  color:var(--muted, #99a2b2);
  margin:0;
  line-height:1.55;
}

/* 動畫關懷 */
@media (prefers-reduced-motion: reduce){
  .feat-card{ transition:none; }
}

/* ===== News page polish ===== */

/* Hero */
.page-hero.container {
  padding-top: 48px;
  padding-bottom: 16px;
}
.page-hero .lead {
  color: var(--text-weak, #a5a5a5);
  margin-top: 8px;
}

/* Year chips */
.news-filter {
  margin-top: 8px;
  margin-bottom: 8px;
}
.chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  appearance: none;
  border: 1px solid var(--border, #2c2c2c);
  background: var(--surface-2, #121212);
  color: var(--text, #e9e9e9);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.chip:hover { transform: translateY(-1px); }
.chip.active,
.chip[aria-pressed="true"] {
  background: var(--brand-600, #e6c449);
  color: #111;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(230,196,73,.25);
}

/* Grid */
.news-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 880px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Card */
.news-card {
  position: relative;
  border: 1px solid var(--border, #2b2b2b);
  background: var(--surface-2, #131313);
  border-radius: 14px;
  padding: 18px 18px 16px;
  overflow: hidden;
  transform: translateY(0);
  transition: transform .18s ease, box-shadow .24s ease, border-color .24s ease, background .24s ease;
  will-change: transform;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  border-color: var(--border-strong, #3a3a3a);
}

/* Meta */
.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text-weak, #a3a3a3);
  font-size: 14px;
}
.news-meta .badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .3px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(230,196,73,.16);
  color: var(--brand-600, #e6c449);
  border: 1px solid rgba(230,196,73,.3);
}

/* Title & body */
.news-card h2 {
  font-size: 20px;
  line-height: 1.25;
  margin: 6px 0 8px;
}
.news-card p {
  color: var(--text-weak, #b3b3b3);
  margin: 0 0 8px;
}
.news-list {
  margin: 6px 0 0;
  padding-left: 18px;
}
.news-list li { margin: 4px 0; }

/* Filter animation */
.news-card[data-hide="true"] {
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}

/* CTA section */
section.cta.container {
  margin-top: 28px;
  border: 1px dashed var(--border, #2b2b2b);
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(0deg, rgba(230,196,73,.06), rgba(230,196,73,.06));
}
section.cta .sub {
  color: var(--text-weak, #a5a5a5);
  margin-top: 6px;
}
section.cta .actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Support page — Donate Capsule */
.donate-capsule { margin: 48px auto; }
.donate-capsule-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.donate-capsule-card h3{ margin: 0 0 8px; }
.donate-capsule-card p{ margin: 0 0 16px; }


.ks-foot-brand {
  margin-bottom: 24px;
}
.ks-foot-brand .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.ks-foot-brand .brand img {
  width: 32px;
  height: 32px;
}
.ks-foot-brand .tagline {
  margin-top: 6px;
  font-size: 0.9rem;
  opacity: 0.85;
  max-width: 30ch;
}

.ks-foot-brand {
  margin-bottom: 24px;
}
.ks-foot-brand .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.ks-foot-brand .brand img {
  width: 32px;
  height: 32px;
}
.ks-foot-brand .tagline {
  margin-top: 6px;
  font-size: 0.9rem;
  opacity: 0.85;
  max-width: 30ch;
}

/* ===== Footer padding 調整 ===== */
.ks-footer {
  padding-top: 48px;   /* 原本可能是 24px ~ 32px，現在加大 */
  padding-bottom: 48px;
}

.ks-footer-top {
  margin-bottom: 40px; /* Logo/連結區與底部語言+版權區的間距 */
}

.ks-footer .ks-footer-bottom {
  padding-top: 24px;
  padding-bottom: 16px;
}

/* === Features 頁：標題與卡片對齊、置中 === */
.feat-hero.container {
  max-width: 1100px;      /* 標題區與卡片同寬 */
  margin: 0 auto;         /* 置中 */
  text-align: center;
  padding: 64px 0 12px;
}

.feat-grid.container {
  /* 用固定最大寬度 + repeat 把卡片排成 4/3/2/1 欄；整體置中 */
  max-width: 1100px;
  margin: 12px auto 40px; /* 置中 */
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 22px;
  align-items: stretch;   /* 卡片等高 */
  justify-items: stretch; /* 卡片撐滿格線，避免看起來偏一側 */
}

/* 卡片本體撐滿高度，內容垂直分佈 */
.feat-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* icon 區置中對齊，避免視覺偏移 */
.feat-card .icon-wrap {
  display: grid;
  place-items: center;
  height: 64px;
  margin-bottom: 8px;
}

/* =======================================================
   KeySearch — Pricing page styles
   ======================================================= */

/* brand variables */
:root{
  --brand-gold: #f5d37a;
  --brand-bg:   #0b0b0d;
  --brand-line: rgba(255,255,255,.08);
}

/* ===== 1) Hero ===== */
.pricing-hero{
  position: relative; padding: 96px 0 56px;
  background: var(--brand-bg);
  overflow: hidden; border-bottom: 1px solid var(--brand-line);
}
.pricing-hero::before{
  content:""; position:absolute; inset:-40% -10% auto -10%; height: 120%;
  background: radial-gradient(60% 40% at 50% 0%, rgba(245,211,122,.18), rgba(245,211,122,0) 60%);
  pointer-events:none;
}
.pricing-hero h1{ font-size: 2.4rem; margin: 0 0 10px; }
.pricing-hero p.lead{ opacity:.9; margin: 0 0 22px; }
.pricing-hero .cta-row{ display:flex; gap:12px; flex-wrap:wrap; }

/* CTA states */
.btn-coming{
  background: #4a4a4a; color: #222; border:1px solid rgba(255,255,255,.15);
  cursor: not-allowed; opacity: .85;
}
.btn-coming[data-tooltip]{ position: relative; }
.btn-coming:hover::after{
  content: attr(data-tooltip);
  position:absolute; left:50%; transform:translateX(-50%);
  bottom: calc(100% + 8px);
  background:#111; color:var(--brand-gold); border:1px solid rgba(245,211,122,.3);
  padding:6px 8px; border-radius:8px; white-space:nowrap; font-size:.85rem;
}
.btn-ghost{
  background: transparent; color:var(--brand-gold); border:1px solid rgba(245,211,122,.4);
}

/* ===== 2) Billing toggle ===== */
.billing-toggle-wrap{ display:flex; justify-content:center; padding: 18px 0 10px; }
.seg{
  display:inline-flex; background:#0f0f12; border:1px solid rgba(255,255,255,.12);
  border-radius:999px; overflow:hidden;
}
.seg button{
  appearance:none; border:0; padding:8px 14px; color:#e7ecf3; cursor:pointer; font-weight:600;
  background:transparent;
}
.seg .on{
  background: linear-gradient(180deg,#1a1a1d,#0f0f12); color:var(--brand-gold);
  border-left:1px solid rgba(255,255,255,.08); position:relative;
}
.seg .badge{
  margin-left:6px; font-size:.75rem; padding:2px 6px;
  border:1px solid rgba(245,211,122,.5); border-radius:999px; color:var(--brand-gold);
}

/* ===== 3) Plans grid ===== */
.plans{ display:grid; gap:18px; grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 980px){ .plans{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px){ .plans{ grid-template-columns: 1fr; } }

.plan{
  background:#0e0e11; border:1px solid rgba(245,211,122,.25); border-radius:14px; padding:18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.40);
  transition: box-shadow .25s ease, transform .25s ease;
}
.plan:hover{ box-shadow:0 14px 34px rgba(0,0,0,.55); transform: translateY(-2px); }
.plan.free{ border-color: rgba(255,255,255,.15); opacity:.88; }
.plan.plus{ /* default black-gold */ }
.plan.pro{
  border-color: rgba(245,211,122,.55);
  box-shadow: 0 12px 36px rgba(245,211,122,.12);
  position:relative;
}
.plan.pro:hover{
  box-shadow: 0 16px 40px rgba(245,211,122,.18);
}
.most-pop{
  position:absolute; top:12px; right:12px; font-size:.8rem; color:#111;
  background:var(--brand-gold); padding:4px 8px; border-radius:999px; font-weight:700;
}

.plan h3{ margin: 6px 0 6px; font-size: 1.3rem; }
.plan .subtitle{
  margin: 0 0 8px;
  opacity: .85;
  font-size: .95rem;
}
.price{ font-size:2rem; font-weight:800; letter-spacing:.2px; }
.price small{ font-weight:500; font-size:.95rem; opacity:.85; }
.ul{ margin: 12px 0 14px; padding:0; list-style:none; }
.ul li{ margin: 8px 0; padding-left: 22px; position:relative; opacity:.95; }
.ul li::before{ content:'✓'; position:absolute; left:0; color:var(--brand-gold); opacity:.9; }

/* ===== 4) Comparison table ===== */
.table-wrap{
  margin-top: 30px; border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; overflow:auto;
}
.cmp{ width:100%; border-collapse: collapse; min-width:760px; }
.cmp th, .cmp td{ padding:12px 14px; border-bottom:1px solid rgba(255,255,255,.08); }
.cmp thead th{ position: sticky; top:0; background:var(--brand-bg); z-index:1; }
.cmp tbody tr:hover{ background: rgba(255,255,255,.03); }
.cmp .col-feature{ text-align:left; width: 40%; }
.cmp td, .cmp th{ text-align:center; }
.cmp .tick{ color:var(--brand-gold); font-weight:700; }

/* 可選：大螢幕時拉寬左欄 */
@media (min-width: 721px){
  .cmp .col-feature{ width: 46%; }
}

/* ===== 5) FAQ ===== */
.faq{ margin-top: 34px; }
.faq details{
  border:1px solid rgba(255,255,255,.12); border-radius: 10px;
  padding: 12px 14px; margin: 10px 0; background:#0e0e11;
}
.faq summary{ cursor:pointer; font-weight:700; }
.faq .fine{ opacity:.9; margin-top: 6px; }

/* ===== 6) Final CTA ===== */
.final-cta{
  margin: 36px 0 20px; padding: 26px 18px; border-radius: 14px;
  background: linear-gradient(180deg,#0b0b0d, #111119);
  position:relative; overflow:hidden; border:1px solid rgba(245,211,122,.25);
}
.final-cta::before{
  content:""; position:absolute; inset:-25% -10% auto -10%; height: 120%;
  background: radial-gradient(60% 40% at 50% 0%, rgba(245,211,122,.15), rgba(245,211,122,0) 60%);
  pointer-events:none;
}
.final-cta .cta-row{ display:flex; gap:12px; flex-wrap:wrap; margin-top:8px; }

/* ===== 上線後可用的主按鈕樣式 ===== */
.btn-primary{
  background: linear-gradient(180deg, #f7e3a3, #f5d37a);
  color: #111;
  border: 1px solid rgba(245,211,122,.6);
  font-weight: 700;
}
.btn-primary:hover{
  filter: brightness(1.02);
  box-shadow: 0 6px 18px rgba(245,211,122,.22);
}