:root {
  --ink: #09263a;
  --muted: #557080;
  --brand: #0a9a9b;
  --brand-dark: #057577;
  --mint: #e7fbf9;
  --sky: #effcff;
  --line: #d9e9ed;
  --warm: #ffb728;
  --surface: #ffffff;
  font-family: Inter, "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--sky);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: linear-gradient(180deg, #f7ffff 0, #edfaff 55%, #fff 100%); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.member-shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.member-nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.member-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; }
.member-brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #14c7c1, #08799c); box-shadow: 0 8px 20px #0a9a9b36; }
.member-nav-links { display: flex; align-items: center; gap: 8px; }
.member-nav-links a { padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 650; }
.member-nav-links a:hover, .member-nav-links a[aria-current="page"] { color: var(--brand-dark); background: #dff8f6; }
.member-button { border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--brand), #1384b8); color: #fff; font-weight: 800; padding: 12px 18px; box-shadow: 0 10px 24px #078d9330; }
.member-button:hover { transform: translateY(-1px); filter: brightness(1.03); }
.member-button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.member-button.secondary { background: #fff; color: var(--brand-dark); border: 1px solid #bfe9e6; box-shadow: none; }
.member-eyebrow { color: var(--brand-dark); font-weight: 800; letter-spacing: .08em; font-size: .82rem; text-transform: uppercase; }
.member-hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 28px; padding: 52px 0 70px; }
.member-hero h1 { margin: 12px 0 16px; max-width: 650px; font-size: clamp(2.25rem, 5vw, 4.45rem); line-height: 1.08; letter-spacing: -.055em; }
.member-hero p { max-width: 590px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.75; }
.member-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.member-hero-art { width: 100%; border-radius: 28px; box-shadow: 0 25px 65px #06798f24; }
.workflow-section { display: grid; grid-template-columns: minmax(245px, .78fr) minmax(0, 1.22fr); gap: clamp(44px, 7vw, 104px); padding: 10px 0 78px; }
.workflow-intro { padding-top: 22px; }
.workflow-intro h2 { margin: 12px 0 16px; max-width: 350px; font-size: clamp(2rem, 3.1vw, 3.15rem); line-height: 1.13; letter-spacing: -.055em; }
.workflow-intro p { max-width: 340px; margin: 0; color: var(--muted); line-height: 1.75; }
.workflow-steps { position: relative; border-top: 1px solid var(--line); }
.workflow-rail { position: absolute; top: 9px; bottom: 9px; left: clamp(-62px, -4.3vw, -46px); width: 1px; background: #80d6d5; }
.workflow-rail i { position: absolute; left: 50%; width: 13px; height: 13px; border: 1.5px solid var(--brand); border-radius: 50%; background: var(--surface); transform: translate(-50%, -50%); }
.workflow-rail i:nth-child(1) { top: 0; }
.workflow-rail i:nth-child(2) { top: 33.333%; }
.workflow-rail i:nth-child(3) { top: 66.666%; }
.workflow-rail i:nth-child(4) { top: 100%; }
.workflow-step { display: grid; grid-template-columns: 42px minmax(0, 1fr) minmax(180px, 255px); align-items: center; gap: 20px; min-width: 0; padding: 21px 0; border-bottom: 1px solid var(--line); }
.workflow-index { align-self: start; padding-top: 3px; color: var(--brand-dark); font-size: .76rem; font-weight: 800; letter-spacing: .11em; }
.workflow-copy { min-width: 0; }
.workflow-copy strong { display: block; margin-bottom: 7px; font-size: 1.04rem; letter-spacing: -.01em; }
.workflow-copy p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.6; }
.workflow-step img { display: block; width: 100%; aspect-ratio: 2.45 / 1; object-fit: cover; border-radius: 2px; }
.member-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 30px #0e5f710a; }
.member-section { padding: 52px 0; }
.member-section h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -.04em; }
.member-section-lead { max-width: 600px; color: var(--muted); line-height: 1.7; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.plan-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; position: relative; }
.plan-card.featured { border-color: #65d6d0; box-shadow: 0 18px 40px #0a9a9b1a; }
.plan-name { margin: 0; font-size: 1.3rem; }
.plan-price { font-size: 2rem; font-weight: 850; letter-spacing: -.05em; }
.plan-meta, .member-muted { color: var(--muted); line-height: 1.6; }
.plan-card .member-button { margin-top: auto; width: 100%; }
.plan-badge { width: fit-content; border-radius: 99px; padding: 5px 9px; background: #e7fbf9; color: var(--brand-dark); font-size: .78rem; font-weight: 800; }
.notice { border-radius: 14px; padding: 13px 15px; color: #755014; background: #fff7dd; border: 1px solid #f7d985; line-height: 1.55; }
.page-head { padding: 42px 0 26px; }
.page-head h1 { margin: 8px 0; font-size: clamp(2rem, 5vw, 3.3rem); letter-spacing: -.05em; }
.page-head p { color: var(--muted); }
.loading, .empty-state { padding: 32px; text-align: center; color: var(--muted); }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 64px; }
.account-grid .member-card { padding: 24px; }
.account-grid .wide { grid-column: 1 / -1; }
.account-grid h2 { margin: 0 0 12px; font-size: 1.1rem; }
.metric { font-size: 1.8rem; font-weight: 850; letter-spacing: -.04em; }
.order-list { list-style: none; margin: 0; padding: 0; }
.order-list li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.auth-layout { max-width: 450px; margin: 20px auto 70px; padding: 24px; }
.auth-layout label { display: grid; gap: 7px; margin: 14px 0; font-weight: 700; }
.auth-layout input { padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.status-message { min-height: 22px; color: var(--muted); margin: 12px 0; }
.status-message.error { color: #ad3442; }
.text-button { border: 0; padding: 0; color: var(--brand-dark); background: transparent; font-weight: 800; text-decoration: underline; }
.member-footer { padding: 28px 0 42px; color: var(--muted); font-size: .9rem; }

@media (max-width: 720px) {
  .member-shell { width: min(100% - 24px, 560px); }
  .member-nav { min-height: 62px; }
  .member-nav-links { gap: 2px; }
  .member-nav-links a { padding: 8px; font-size: .88rem; }
  .member-nav-links a:first-child { display: none; }
  .member-hero { grid-template-columns: 1fr; padding: 30px 0 42px; }
  .member-hero-art { order: -1; border-radius: 20px; }
  .member-hero h1 { font-size: 2.45rem; }
  .plans-grid, .account-grid { grid-template-columns: 1fr; }
  .workflow-section { grid-template-columns: 1fr; gap: 32px; padding: 4px 0 50px; }
  .workflow-intro { padding-top: 0; }
  .workflow-intro h2 { max-width: 420px; }
  .workflow-rail { display: none; }
  .workflow-step { grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 20px 0; }
  .workflow-step img { grid-column: 2; width: min(100%, 340px); margin-top: 2px; }
  .account-grid .wide { grid-column: auto; }
  .member-section { padding: 38px 0; }
}

/* 首頁 hero：LINE 加入按鈕 */
.member-button.line-button{background:#06c755;color:#fff;box-shadow:0 10px 24px #06c75540}
.member-button.line-button:hover{filter:brightness(1.06)}
