:root{
  --orange-600:#ea580c;
  --orange-500:#f97316;
  --slate-900:#0f172a;
  --slate-700:#334155;
  --slate-600:#475569;
  --slate-500:#64748b;
  --bg:#f6f7fb;
  --card:#ffffff;
  --border: rgba(148,163,184,.35);
  --shadow: 0 12px 30px rgba(15,23,42,.10);
  --shadow2: 0 6px 20px rgba(15,23,42,.08);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:"Noto Sans TC", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  background:var(--bg);
  color:#111827;
  -webkit-tap-highlight-color:transparent;
  overscroll-behavior-y:none;
  padding-bottom:88px;
}
a{ text-decoration:none; color:inherit; }
.at-wrap{ width:min(1040px, calc(100% - 32px)); margin:0 auto; }

/* Topbar */
.at-topbar{
  position:sticky; top:0; z-index:60;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding-top: max(10px, env(safe-area-inset-top));
  padding-bottom: 10px;
}
.at-topbar__inner{
  width:min(1040px, calc(100% - 24px));
  margin:0 auto;
  display:flex; align-items:center; gap:10px;
}
.at-iconbtn{
  width:42px; height:42px;
  border-radius:14px;
  border:1px solid rgba(226,232,240,.9);
  background: rgba(255,255,255,.95);
  box-shadow: var(--shadow2);
  display:grid; place-items:center;
  color:#111827;
}
.at-iconbtn:active{ transform: scale(.98); }

.at-brand{ display:flex; align-items:center; gap:10px; flex:1; min-width:0; }
.at-brand__mark{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  font-weight:800; letter-spacing:.04em;
  color:#fff;
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
  box-shadow: var(--shadow2);
  flex-shrink:0;
}
.at-brand__text{ min-width:0; }
.at-brand__name{
  font-weight:900; color: var(--orange-600);
  line-height:1.1;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.at-brand__sub{ font-size:12px; color: var(--slate-500); margin-top:2px; }

.at-cta{
  display:inline-flex; align-items:center; gap:8px;
  padding: 10px 12px;
  border-radius:14px;
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
  color:#fff; font-weight:900;
  box-shadow: var(--shadow2);
  white-space:nowrap;
}
.at-cta:active{ transform: scale(.98); }

/* Animations */
@keyframes fadeUp{
  from{ opacity:0; transform: translateY(10px); }
  to{ opacity:1; transform: translateY(0); }
}
.at-anim-fadeup{ opacity:0; animation: fadeUp .55s ease forwards; }
.at-anim-delay-1{ animation-delay: .06s; }
.at-anim-delay-2{ animation-delay: .12s; }
.at-anim-delay-3{ animation-delay: .18s; }

@media (prefers-reduced-motion: reduce){
  .at-anim-fadeup{ opacity:1; animation:none !important; }
}

/* Hero (置中) */
.at-hero{ position:relative; overflow:hidden; padding: 28px 0 14px; }
.at-hero__bg{
  position:absolute; inset:-50px -30px auto -30px;
  height: 380px;
  background:
    radial-gradient(closest-side, rgba(249,115,22,.22), transparent 70%),
    radial-gradient(closest-side, rgba(56,189,248,.14), transparent 68%),
    linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,0));
  pointer-events:none;
}
.at-hero__inner{ position:relative; padding: 18px 0 8px; text-align:center; }
.at-hero__badge{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(255,237,213,.9);
  box-shadow: var(--shadow2);
  color: var(--slate-700);
  font-weight:900;
}
.at-hero__badge i{ color: var(--orange-600); }

.at-hero__title{
  margin: 16px auto 10px;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height:1.12;
  font-weight: 950;
  color: var(--slate-900);
  letter-spacing: .01em;
  max-width: 18ch;
}
.at-hero__desc{
  margin: 0 auto 16px;
  color: var(--slate-600);
  font-size: 15px;
  line-height: 1.75;
  max-width: 66ch;
}
.at-hero__actions{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
  margin-bottom: 14px;
}
.at-hero__hint{
  display:flex; justify-content:center; align-items:center; gap:10px;
  color: var(--slate-500);
  font-weight:900;
  font-size:13px;
  opacity:.9;
}

/* Buttons */
.at-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(226,232,240,.95);
  background: rgba(255,255,255,.92);
  color: var(--slate-900);
  font-weight: 900;
  box-shadow: var(--shadow2);
}
.at-btn:active{ transform: scale(.98); }
.at-btn--primary{
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
  border-color: rgba(255,237,213,.95);
  color:#fff;
}
.at-btn--ghost{ background: rgba(255,255,255,.92); }

/* Main */
.at-main{ padding: 18px 0 120px; }

/* Panel */
.at-panel{
  background: var(--card);
  border: 1px solid rgba(226,232,240,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.at-panel__title{ display:flex; align-items:flex-start; gap:12px; margin-bottom:14px; }
.at-panel__icon{
  width:40px; height:40px; border-radius:14px;
  display:grid; place-items:center;
  background: rgba(255,237,213,.85);
  color: var(--orange-600);
  flex-shrink:0;
}
.at-panel__h{ font-weight: 950; color: var(--slate-900); }
.at-panel__p{ font-size: 13px; color: var(--slate-600); margin-top:4px; line-height:1.6; }

.at-search{
  position:relative;
  background: rgba(15,23,42,.04);
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 18px;
  padding: 12px 44px 12px 42px;
}
.at-search__icon{ position:absolute; left:14px; top:50%; transform: translateY(-50%); color: rgba(100,116,139,.85); }
.at-search__input{ width:100%; border:0; outline:none; background:transparent; font-size:14px; color: var(--slate-900); }
.at-search__clear{
  position:absolute; right:10px; top:50%; transform: translateY(-50%);
  width:34px; height:34px; border-radius:12px;
  border: 1px solid rgba(226,232,240,.95);
  background: rgba(255,255,255,.95);
  color: rgba(71,85,105,.9);
  display:grid; place-items:center;
}

.at-search__meta{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  margin-top:10px; flex-wrap:wrap;
}
.at-meta{ font-size:13px; color: var(--slate-600); font-weight: 900; }
.at-search__right{ display:flex; gap:12px; align-items:center; }
.at-linkbtn{
  background:transparent; border:0; padding:0;
  color: var(--orange-600);
  font-weight: 950;
  font-size: 13px;
  cursor:pointer;
}
.at-linkbtn:hover{ text-decoration: underline; }

/* Skeleton */
.at-skeleton{ margin-top:14px; display:grid; gap:12px; }
.at-skeleton__row{
  height:74px; border-radius:18px;
  border: 1px solid rgba(226,232,240,.9);
  background: linear-gradient(90deg, rgba(255,255,255,.8), rgba(245,247,255,.9), rgba(255,255,255,.8));
  background-size: 220% 100%;
  animation: shimmer 1.1s ease-in-out infinite;
}
@keyframes shimmer{
  0%{ background-position: 0% 0; }
  100%{ background-position: -120% 0; }
}
@media (prefers-reduced-motion: reduce){
  .at-skeleton__row{ animation:none !important; }
}

/* Cards */
.at-cards{ margin-top:14px; }
.at-cardlist{ display:grid; gap:12px; }

/* Card */
.at-card{
  background: var(--card);
  border: 1px solid rgba(226,232,240,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  contain: content;
}
.at-card__head{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding: 16px;
  cursor:pointer;
}
.at-badge{
  display:inline-flex; align-items:center; gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size:11px;
  font-weight: 950;
  background: rgba(255,237,213,.85);
  color: var(--orange-600);
  margin-bottom:8px;
}
.at-card__q{ font-weight: 950; font-size: 17px; line-height: 1.35; color: var(--slate-900); }
.at-card__chev{
  width:38px; height:38px; border-radius:14px;
  display:grid; place-items:center;
  background: rgba(15,23,42,.04);
  border: 1px solid rgba(226,232,240,.9);
  color: rgba(71,85,105,.9);
  flex-shrink:0;
  transition: transform .22s ease;
}
.at-card__body{
  display:none;
  border-top: 1px solid rgba(226,232,240,.9);
  padding:16px;
  background:#fff;
}
.at-card.is-open .at-card__body{ display:block; }
.at-card.is-open .at-card__chev{ transform: rotate(180deg); }

.at-row{ display:flex; gap:12px; }
.at-avatar{
  width:38px; height:38px; border-radius:14px;
  display:grid; place-items:center;
  flex-shrink:0;
}
.at-avatar--child{ background: rgba(59,130,246,.12); color:#2563eb; }
.at-avatar--bad{ background: rgba(239,68,68,.12); color:#dc2626; }
.at-bubble{
  border-radius: 16px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--slate-700);
  background: rgba(15,23,42,.04);
}
.at-bubble--bad{ background: rgba(239,68,68,.10); color:#991b1b; }

.at-suggest{
  margin-top:12px;
  border-radius: 18px;
  border: 1px solid rgba(255,237,213,.95);
  background: rgba(255,247,237,.75);
  padding: 14px;
}
.at-suggest__h{ display:flex; align-items:center; gap:10px; font-weight: 950; color: var(--orange-600); margin-bottom:10px; }
.at-suggest__dir{ font-weight: 900; color: var(--slate-700); margin: 6px 0 10px; }
.at-good{
  border-radius: 16px;
  border: 1px solid rgba(16,185,129,.18);
  background: rgba(236,253,245,.75);
  padding: 12px;
  display:flex; gap:10px;
}
.at-good i{ color:#059669; margin-top:2px; }

.at-card__foot{
  padding: 10px 14px;
  background: rgba(15,23,42,.03);
  border-top: 1px solid rgba(226,232,240,.9);
  font-size: 11px;
  color: var(--slate-500);
  text-align:center;
  font-weight:900;
}

/* Empty */
.at-empty{
  margin-top:14px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(226,232,240,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  padding: 18px;
  text-align:center;
}
.at-empty__icon{
  width:54px; height:54px; border-radius:18px;
  background: rgba(15,23,42,.04);
  display:grid; place-items:center;
  margin:0 auto 10px;
  color: rgba(71,85,105,.9);
}
.at-empty__title{ font-weight: 950; color: var(--slate-900); }
.at-empty__desc{ font-size: 13px; color: var(--slate-600); margin-top: 6px; line-height: 1.6; }
.at-empty__actions{ margin-top:12px; display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }

/* More */
.at-more{ margin: 14px 0 6px; display:flex; justify-content:center; }

/* Footer */
.at-footer{
  margin: 18px 0 10px;
  padding: 16px 2px 8px;
  display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap;
  color: var(--slate-600);
}
.at-footer__brand{ font-weight: 950; color: var(--slate-900); }
.at-footer__sub{ font-size: 12px; margin-top: 4px; }
.at-footer__copy{ font-weight: 900; font-size: 12px; color: var(--slate-500); }
.at-footer__link{ font-weight: 950; color: var(--orange-600); font-size: 12px; }
.at-footer__link:hover{ text-decoration: underline; }

/* Bottom bar */
.at-bottombar{
  position: fixed; left:0; right:0;
  bottom: max(0px, env(safe-area-inset-bottom));
  z-index: 70;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(226,232,240,.95);
  padding: 10px 12px;
  display:grid;
  grid-template-columns: 1fr 1.4fr; /* 只剩兩顆 */
  gap:10px;
}

.at-bottombar__btn{
  border-radius: 16px;
  border: 1px solid rgba(226,232,240,.95);
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow2);
  padding: 10px 10px;
  display:flex; justify-content:center; align-items:center; gap:8px;
  font-weight: 950;
  color: var(--slate-700);
}
.at-bottombar__btn i{ color: rgba(71,85,105,.95); }
.at-bottombar__btn--primary{
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
  border-color: rgba(255,237,213,.95);
  color:#fff;
}
.at-bottombar__btn--primary i{ color:#fff; }

/* Drawer */
.at-drawer{ position:fixed; inset:0; z-index:80; }
.at-drawer__overlay{
  position:absolute; inset:0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
}
.at-drawer__panel{
  position:absolute; top:0; right:0; bottom:0;
  width: min(420px, 92vw);
  background:#fff;
  border-left: 1px solid rgba(226,232,240,.95);
  box-shadow: var(--shadow);
  display:flex; flex-direction:column;
  transform: translateX(100%);
  transition: transform .26s ease;
}
.at-drawer.is-open .at-drawer__panel{ transform: translateX(0); }
.at-drawer__head{
  padding-top: max(14px, env(safe-area-inset-top));
  padding-bottom: 14px;
  padding-left: 14px;
  padding-right: 14px;
  display:flex; align-items:center; justify-content:space-between;
  border-bottom: 1px solid rgba(226,232,240,.95);
}
.at-drawer__title{ font-weight: 950; color: var(--slate-900); }
.at-drawer__list{ padding:14px; display:grid; gap:10px; overflow:auto; }
.at-drawer__item{
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(226,232,240,.95);
  background: rgba(15,23,42,.02);
  display:flex; justify-content:space-between; align-items:center; gap:10px;
  font-weight: 950; color: var(--slate-700);
}
.at-drawer__item i{ color: var(--orange-600); }
.at-drawer__foot{ padding:14px; border-top: 1px solid rgba(226,232,240,.95); }

/* Utilities */
.hidden{ display:none !important; }

/* Responsive */
@media (max-width: 860px){
  .at-brand__name{ font-size: 13px; }
  .at-hero__title{ max-width: 16ch; }
}
