/* ============================================================
   55 Up — 設計給 50 歲以上的使用者：字大、按鈕大、對比高
   ============================================================ */
:root {
  --bg:        #faf8f4;
  --surface:   #ffffff;
  --surface-2: #f2eee6;
  --surface-3: #e9e3d8;
  --line:      #e4ddd0;
  --line-soft: #efe9de;
  --text:      #1f1d19;
  --text-2:    #56514a;
  --text-3:    #857e73;

  --brand:      #10695c;
  --brand-2:    #1d9c86;
  --brand-dark: #0a4d43;
  --brand-soft: #e3f0ec;
  --accent:      #c2611f;
  --accent-2:    #e79154;
  --accent-soft: #fbeee0;
  --danger:      #b3261e;
  --line-green:  #06C755;

  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(31,29,25,.05), 0 2px 6px rgba(31,29,25,.04);
  --sh-2: 0 2px 6px rgba(31,29,25,.06), 0 12px 28px rgba(31,29,25,.07);
  --sh-3: 0 8px 20px rgba(31,29,25,.10), 0 30px 60px rgba(31,29,25,.10);

  --wide: 1120px; --feed: 620px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC",
          "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:#141513; --surface:#1e201d; --surface-2:#282a26; --surface-3:#33352f;
    --line:#383b34; --line-soft:#2e312b;
    --text:#efece5; --text-2:#b6b1a6; --text-3:#8b8579;
    --brand:#4dc0aa; --brand-2:#69d8c0; --brand-dark:#7fe3cc; --brand-soft:#193831;
    --accent:#e79154; --accent-2:#f0a870; --accent-soft:#38281a;
    --sh-1:0 1px 2px rgba(0,0,0,.3); --sh-2:0 2px 6px rgba(0,0,0,.35),0 12px 28px rgba(0,0,0,.3);
    --sh-3:0 8px 20px rgba(0,0,0,.45),0 30px 60px rgba(0,0,0,.4);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1,h2,h3 { line-height: 1.3; letter-spacing: -.02em; }
p { margin: 0 0 12px; }

.wrap       { max-width: var(--feed); margin: 0 auto; padding: 0 16px; }
.wrap-wide  { max-width: var(--wide); margin: 0 auto; padding: 0 20px; }
.wrap-wide.narrow { max-width: 780px; }
.row  { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.muted  { color: var(--text-2); }
.muted-3{ color: var(--text-3); font-size: 14.5px; }
.ellip  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 12px 22px; border: 1.5px solid transparent; border-radius: var(--r);
  background: var(--brand); color: #fff; font-weight: 700; font-size: 17px;
  text-decoration: none; cursor: pointer; transition: filter .15s, transform .08s, background .15s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn.lg { min-height: 58px; padding: 14px 30px; font-size: 18.5px; border-radius: var(--r-lg); }
.btn.small { min-height: 42px; padding: 8px 16px; font-size: 15.5px; border-radius: var(--r-sm); }
.btn.block { display: flex; width: 100%; }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); filter: none; }
.btn.soft  { background: var(--brand-soft); color: var(--brand-dark); }
.btn.quiet { background: transparent; color: var(--text-2); border-color: transparent; }
.btn.quiet:hover { background: var(--surface-2); filter: none; }
.btn.danger{ background: transparent; color: var(--danger); border-color: var(--line); }
.btn.btn-line { background: var(--line-green); color: #fff; }
.btn.btn-fb   { background: #1877f2; color: #fff; }
.btn[disabled]{ opacity: .5; pointer-events: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   公開首頁
   ============================================================ */
.logo {
  font-weight: 800; font-size: 24px; letter-spacing: -.04em; color: var(--brand);
  text-decoration: none; display: inline-block;
}
.logo span { color: var(--accent); margin-left: 2px; }

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-head .row { height: 68px; }
.site-nav { display: none; gap: 24px; margin-left: 28px; }
.site-nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 16px; }
.site-nav a:hover { color: var(--text); }
@media (min-width: 800px) { .site-nav { display: flex; } }

.eyebrow {
  font-size: 14px; font-weight: 800; letter-spacing: .12em; color: var(--accent);
  text-transform: none; margin: 0 0 10px;
}
.display {
  font-size: clamp(33px, 6.4vw, 55px); font-weight: 800; letter-spacing: -.035em;
  line-height: 1.22; margin: 0 0 18px;
}
.display.sm { font-size: clamp(27px, 4.6vw, 40px); }
.lede { font-size: clamp(17px, 2vw, 19.5px); color: var(--text-2); line-height: 1.75; max-width: 46ch; }

.hero { position: relative; overflow: hidden; padding: 44px 0 8px; }
.hero-glow {
  position: absolute; inset: -40% -20% auto -20%; height: 620px; pointer-events: none;
  background:
    radial-gradient(48% 55% at 22% 42%, color-mix(in srgb, var(--brand) 17%, transparent), transparent 70%),
    radial-gradient(42% 52% at 82% 28%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 70%);
}
.hero-inner { position: relative; display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 76px 0 40px; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 48px; }
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.hero-note { font-size: 15px; color: var(--text-3); margin: 0; }
.hero-art { display: none; }
@media (min-width: 900px) { .hero-art { display: block; } }

.stats-strip { padding: 26px 0 8px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 18px; box-shadow: var(--sh-1); max-width: calc(var(--wide) - 40px);
}
@media (min-width: 700px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stats-grid > div { text-align: center; }
.stats-grid b {
  display: block; font-size: clamp(26px, 4vw, 34px); font-weight: 800;
  color: var(--brand); letter-spacing: -.03em; line-height: 1.2;
}
.stats-grid span { font-size: 14.5px; color: var(--text-2); }

.section { padding: 60px 0; }
.section.alt { background: var(--surface-2); }
@media (min-width: 800px) { .section { padding: 88px 0; } }
.section-title { font-size: clamp(25px, 3.6vw, 36px); font-weight: 800; margin: 0 0 12px; }
.section-title.center + .feature-grid,
.section-title.center + .steps { margin-top: 40px; }

.feature-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .feature-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px; box-shadow: var(--sh-1);
}
.feature h3 { font-size: 20px; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--text-2); font-size: 16.5px; }
.feature-ico {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  font-size: 26px; margin-bottom: 14px;
  background: color-mix(in srgb, var(--c) 13%, transparent);
}

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.steps li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; display: flex; gap: 16px; align-items: flex-start; box-shadow: var(--sh-1);
}
.steps b {
  width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-size: 18px; font-weight: 800;
}
.steps h3 { font-size: 18.5px; margin: 4px 0 6px; }
.steps p { margin: 0; color: var(--text-2); font-size: 16px; }

.qa {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 4px 20px; margin-bottom: 12px; box-shadow: var(--sh-1);
}
.qa summary {
  cursor: pointer; font-weight: 700; font-size: 17.5px; padding: 16px 0; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; font-size: 24px; font-weight: 400; color: var(--brand); flex: none; line-height: 1;
}
.qa[open] summary::after { content: "−"; }
.qa p { color: var(--text-2); margin: 0 0 18px; font-size: 16.5px; }

.cta-band {
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; padding: 68px 0;
}
.cta-band .display, .cta-band .lede { color: #fff; }
.cta-band .lede { opacity: .88; }
.cta-band .btn-line { box-shadow: var(--sh-2); }

.site-foot { background: var(--surface); border-top: 1px solid var(--line); padding: 44px 0 32px; }
.foot-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot-grid nav { display: flex; flex-direction: column; gap: 10px; }
.foot-grid nav a { color: var(--text-2); text-decoration: none; font-size: 16px; }
.foot-grid nav a:hover { color: var(--text); text-decoration: underline; }
.foot-legal { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line-soft);
              color: var(--text-3); font-size: 14.5px; }

.demo-drawer {
  max-width: 420px; margin: 0 auto 40px; padding: 0 20px;
}
.demo-drawer summary { cursor: pointer; color: var(--text-3); font-size: 14.5px; text-align: center; }
.demo-body { margin-top: 16px; }

/* ============================================================
   應用程式（登入後）
   ============================================================ */
.app-head {
  position: sticky; top: 0; z-index: 40; background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.app-head .inner { display: flex; align-items: center; gap: 14px; height: 62px;
                   max-width: var(--wide); margin: 0 auto; padding: 0 16px; }
.app-head .logo { font-size: 22px; }
.head-link {
  display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text);
  font-size: 15.5px; font-weight: 600; padding: 6px 10px; border-radius: 999px;
}
.head-link:hover { background: var(--surface-2); }

.layout { max-width: var(--wide); margin: 0 auto; padding: 0 16px 100px;
          display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 1000px) {
  .layout { grid-template-columns: 200px minmax(0, var(--feed)) 1fr; gap: 32px;
            padding-top: 24px; padding-bottom: 60px; align-items: start; }
}

/* 側邊選單（桌機） */
.side-nav { display: none; }
@media (min-width: 1000px) {
  .side-nav { display: block; position: sticky; top: 86px; }
  .side-nav a {
    display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: var(--r);
    color: var(--text-2); text-decoration: none; font-weight: 700; font-size: 16.5px; margin-bottom: 4px;
  }
  .side-nav a:hover { background: var(--surface-2); color: var(--text); }
  .side-nav a.on { background: var(--brand-soft); color: var(--brand-dark); }
  .side-nav svg { width: 23px; height: 23px; flex: none; }
}

/* 右欄 */
.rail { display: none; }
@media (min-width: 1000px) { .rail { display: block; position: sticky; top: 86px; } }
.rail-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; margin-bottom: 16px; box-shadow: var(--sh-1);
}
.rail-card h4 { margin: 0 0 12px; font-size: 15px; color: var(--text-3); letter-spacing: .04em; font-weight: 800; }

/* 底部頁籤（手機） */
nav.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 1000px) { nav.tabs { display: none; } }
nav.tabs ul { display: flex; margin: 0 auto; padding: 0; list-style: none; max-width: 560px; }
nav.tabs li { flex: 1; display: flex; }
nav.tabs a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 8px 2px; text-decoration: none; color: var(--text-3);
  font-size: 12px; font-weight: 700; min-height: 58px;
}
nav.tabs a.on { color: var(--brand); }
nav.tabs svg { width: 24px; height: 24px; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; margin-bottom: 16px; box-shadow: var(--sh-1);
}
.card.flush { padding: 0; overflow: hidden; }
.card.link { display: block; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .08s; }
.card.link:hover { box-shadow: var(--sh-2); }
.card.link:active { transform: translateY(1px); }

.page-title { font-size: clamp(24px, 4vw, 30px); font-weight: 800; margin: 22px 0 4px; }
.page-sub { color: var(--text-2); margin: 0 0 20px; font-size: 16px; }
h2.block-title { font-size: 20px; margin: 30px 0 12px; }

.avatar {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none;
  background: linear-gradient(140deg, var(--brand-soft), var(--surface-3));
  color: var(--brand-dark); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; overflow: hidden; text-decoration: none;
}
.avatar.xs { width: 30px; height: 30px; font-size: 13px; }
.avatar.sm { width: 38px; height: 38px; font-size: 15px; }
.avatar.lg { width: 76px; height: 76px; font-size: 30px; }
.avatar.xl { width: 104px; height: 104px; font-size: 40px; }

.pill {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13.5px;
  font-weight: 700; background: var(--surface-2); color: var(--text-2); white-space: nowrap;
}
.pill.go     { background: var(--brand-soft); color: var(--brand-dark); }
.pill.maybe  { background: var(--accent-soft); color: var(--accent); }
.pill.admin  { background: var(--accent-soft); color: var(--accent); }
.pill.ghost  { background: transparent; border: 1px solid var(--line); }

/* ---------- 發文框 ---------- */
.composer { display: flex; gap: 12px; align-items: flex-start; }
.composer .fake-input {
  flex: 1; text-align: left; background: var(--surface-2); border: 0; border-radius: 999px;
  padding: 13px 20px; color: var(--text-3); font-size: 16.5px; cursor: pointer; min-height: 48px;
}
.composer .fake-input:hover { background: var(--surface-3); }
.composer-open textarea {
  width: 100%; min-height: 110px; border: 0; background: transparent; resize: vertical;
  font-size: 17.5px; line-height: 1.7; outline: none; padding: 4px 0;
}
.composer-open textarea::placeholder { color: var(--text-3); }
.composer-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
                  border-top: 1px solid var(--line-soft); padding-top: 14px; margin-top: 10px; }
.thumb-strip { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; }
.thumb-strip .thumb { position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; }
.thumb-strip .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-strip .thumb button {
  position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; cursor: pointer; line-height: 1;
}
.thumb-strip .thumb.busy { display: grid; place-items: center; background: var(--surface-2); font-size: 12px; color: var(--text-3); }

/* ---------- 貼文 ---------- */
.post { margin-bottom: 16px; }
.post-head { display: flex; gap: 12px; align-items: center; padding: 16px 18px 12px; }
.post-head .who { font-weight: 700; font-size: 16.5px; text-decoration: none; color: inherit; }
.post-head .who:hover { text-decoration: underline; }
.post-body { padding: 0 18px 14px; font-size: 17.5px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.post-ev {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 18px 14px;
  background: var(--brand-soft); color: var(--brand-dark); border-radius: 999px;
  padding: 5px 14px; font-size: 14.5px; font-weight: 700; text-decoration: none;
}
.post-meta { display: flex; gap: 14px; padding: 10px 18px; color: var(--text-3); font-size: 14.5px;
             border-top: 1px solid var(--line-soft); }
.post-acts { display: flex; border-top: 1px solid var(--line-soft); }
.post-acts button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; border: 0; background: transparent; cursor: pointer;
  font-weight: 700; font-size: 16px; color: var(--text-2);
}
.post-acts button:hover { background: var(--surface-2); }
.post-acts button.on { color: var(--brand); }
.post-acts svg { width: 21px; height: 21px; }

/* 照片拼貼 */
.album { display: grid; gap: 3px; background: var(--line-soft); }
.album button { padding: 0; border: 0; background: var(--surface-2); cursor: pointer; position: relative; overflow: hidden; }
.album img { width: 100%; height: 100%; object-fit: cover; }
.album.n1 { grid-template-columns: 1fr; }
.album.n1 img { max-height: 560px; height: auto; object-fit: contain; background: var(--surface-2); }
.album.n2 { grid-template-columns: 1fr 1fr; }
.album.n2 button { aspect-ratio: 1; }
.album.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.album.n3 button:first-child { grid-row: span 2; }
.album.n3 button { aspect-ratio: auto; min-height: 130px; }
.album.n4 { grid-template-columns: 1fr 1fr; }
.album.n4 button { aspect-ratio: 1; }
.album.more { grid-template-columns: 1fr 1fr; }
.album.more button { aspect-ratio: 1; }
.album .rest {
  position: absolute; inset: 0; background: rgba(0,0,0,.55); color: #fff;
  display: grid; place-items: center; font-size: 26px; font-weight: 800;
}

/* 一般照片格 */
.grid-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 620px) { .grid-photos { grid-template-columns: repeat(4, 1fr); gap: 8px; } }
.grid-photos button { padding: 0; border: 0; background: var(--surface-2); cursor: pointer;
                      border-radius: 10px; overflow: hidden; aspect-ratio: 1; }
.grid-photos img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 活動 ---------- */
.datebox {
  width: 60px; height: 66px; border-radius: var(--r); flex: none;
  background: var(--brand-soft); color: var(--brand-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.datebox.past { background: var(--surface-2); color: var(--text-3); }
.datebox .m { font-size: 12.5px; font-weight: 700; }
.datebox .d { font-size: 25px; font-weight: 800; line-height: 1.05; }

.remind { border-left: 4px solid var(--accent); }
.remind .when { color: var(--accent); font-weight: 800; font-size: 14.5px; }
.notice { background: var(--accent-soft); border-radius: var(--r); padding: 12px 15px;
          margin: 12px 0 0; font-size: 16px; color: var(--text); }

.rsvp-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rsvp-row .btn { padding: 12px 4px; width: 100%; }

.people { display: flex; flex-wrap: wrap; gap: 16px 12px; }
.person { width: 68px; text-align: center; text-decoration: none; color: inherit; font-size: 13.5px; }
.person .avatar { margin: 0 auto 6px; }

/* ---------- 會員 ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filters select, .filters input {
  min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); font-size: 16px;
}
.filters input { flex: 1; min-width: 140px; }

.grid-members { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .grid-members { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid-members { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.member-card { text-align: center; padding: 22px 12px 18px; margin: 0; }
.member-card .avatar { margin: 0 auto 12px; }
.member-card .nm { font-weight: 700; font-size: 16.5px; }
.member-card .tl { color: var(--text-2); font-size: 14.5px; margin-top: 2px;
                   display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.profile-cover { height: 96px; background: linear-gradient(130deg, var(--brand), var(--brand-2)); }
.profile-main { padding: 0 20px 20px; margin-top: -52px; text-align: center; }
.profile-main .avatar { margin: 0 auto 12px; border: 4px solid var(--surface); }
.info-row { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); text-align: left; }
.info-row .k { width: 92px; flex: none; color: var(--text-3); font-size: 15px; }
.stat-row { display: flex; justify-content: center; gap: 28px; margin: 14px 0 4px; }
.stat-row div { text-align: center; }
.stat-row b { display: block; font-size: 21px; font-weight: 800; }
.stat-row span { font-size: 13.5px; color: var(--text-3); }

/* ---------- 表單 ---------- */
label.field { display: block; margin-bottom: 16px; }
label.field > span { display: block; font-weight: 700; font-size: 15.5px; margin-bottom: 7px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time],
input[type=password], input[type=search], textarea, select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); font-size: 17px; outline-color: var(--brand);
}
textarea { min-height: 100px; resize: vertical; line-height: 1.7; }
.switch { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line-soft); }
.switch input { width: 24px; height: 24px; flex: none; accent-color: var(--brand); }
.seg { display: flex; gap: 6px; background: var(--surface-2); padding: 5px; border-radius: var(--r); margin: 0 0 18px; }
.seg button { flex: 1; min-height: 44px; border: 0; border-radius: var(--r-sm); background: transparent;
              font-weight: 700; font-size: 16px; color: var(--text-2); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--sh-1); }

/* ---------- 留言 ---------- */
.comment { display: flex; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line-soft); }
.comment:first-child { border-top: 0; }
.comment .bubble { background: var(--surface-2); border-radius: 16px; padding: 10px 15px; flex: 1; min-width: 0; }
.comment .who { font-weight: 700; font-size: 15px; text-decoration: none; color: inherit; }
.comment .txt { white-space: pre-wrap; word-break: break-word; font-size: 16.5px; }
.comment time { color: var(--text-3); font-size: 13px; margin-left: 8px; }
.comment-form { display: flex; gap: 8px; margin-top: 14px; align-items: flex-start; }
.comment-form textarea { min-height: 48px; border-radius: 24px; padding: 12px 18px; }

/* ---------- 燈箱 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(12,11,9,.94); overflow-y: auto; }
.lb-bar { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center;
          padding: 10px 12px; z-index: 2; }
.lb-round { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16);
            color: #fff; font-size: 22px; cursor: pointer; display: grid; place-items: center; }
.lb-count { color: rgba(255,255,255,.8); font-size: 15px; font-weight: 600; }
.lightbox img.full { width: 100%; max-height: 74vh; object-fit: contain; }
.lb-panel { max-width: var(--feed); margin: 0 auto; padding: 16px 16px 60px; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 50px; height: 50px;
          border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff;
          font-size: 24px; cursor: pointer; z-index: 3; display: grid; place-items: center; }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }

/* ---------- 其他 ---------- */
.empty { text-align: center; padding: 52px 20px; color: var(--text-2); }
.empty .big { font-size: 44px; margin-bottom: 10px; }
.empty h3 { font-size: 19px; margin: 0 0 6px; }
.loading { text-align: center; padding: 60px 20px; color: var(--text-3); }
.spinner {
  width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--brand);
  border-radius: 50%; margin: 0 auto 14px; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  background: #26241f; color: #fff; padding: 13px 22px; border-radius: 999px;
  font-size: 15.5px; z-index: 100; box-shadow: var(--sh-3); max-width: 90%; text-align: center;
}
@media (min-width: 1000px) { .toast { bottom: 32px; } }
.skel { background: var(--surface-2); border-radius: var(--r); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .55 } }

/* ---------- 首頁 banner 與剪影 ---------- */
.banner { margin: 0 0 30px; border-radius: var(--r-xl); overflow: hidden;
          box-shadow: var(--sh-2); border: 1px solid var(--line); }
.banner img { width: 100%; height: auto; }
@media (min-width: 900px) { .banner { max-width: 880px; margin: 0 auto 36px; } }

.hero-text.center { max-width: 780px; margin: 0 auto; text-align: center; }
.center-lede { margin-left: auto; margin-right: auto; max-width: 34em; }
.center-cta { justify-content: center; }
.br-m { display: none; }
@media (max-width: 560px) { .br-m { display: inline; } }

.badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 18px; }
.badge {
  display: inline-block; padding: 6px 15px; border-radius: 999px; font-size: 14.5px; font-weight: 700;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
}
.badge.secret { background: var(--accent-soft); border-color: transparent; color: var(--accent); }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 36px; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.gallery figure {
  margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2);
  aspect-ratio: 4/3; box-shadow: var(--sh-1); position: relative;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px;
  color: #fff; font-size: 14px; font-weight: 700; text-align: left;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent);
}
@media (max-width: 560px) { .gallery figcaption { font-size: 12.5px; padding: 18px 10px 8px; } }

/* ---------- 網站定位聲明 ---------- */
.note-band { padding: 8px 0 44px; }
.note-card {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: var(--r-lg); padding: 24px 26px; box-shadow: var(--sh-1);
}
.note-label { font-size: 13.5px; font-weight: 800; letter-spacing: .1em; color: var(--brand);
              margin: 0 0 10px; }
.note-text { font-size: 17px; line-height: 1.8; margin: 0 0 10px; }
.note-text:last-child { margin-bottom: 0; }

/* ---------- 相簿在登入後 ---------- */
.locked-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 40px 30px; text-align: center; box-shadow: var(--sh-1);
}
.locked-ico {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 22px;
  display: grid; place-items: center; font-size: 30px; background: var(--brand-soft);
}
.locked-list { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.locked-list span {
  padding: 8px 17px; border-radius: 999px; font-size: 15.5px; font-weight: 700;
  background: var(--surface-2); color: var(--text-2);
}
