/* =========================================================
   會員專區（登入、申請、會員頁）頁面樣式
   ========================================================= */
.member-page { padding-bottom: clamp(30px, 4vw, 80px); }

.member-title {
  position: relative; z-index: 2;
  margin: 0 auto;
  text-align: center;
  font-weight: 900; font-size: clamp(30px, 3.4vw, 64px); letter-spacing: .1em;
  color: var(--navy);
  text-shadow: 0 0 0 #fff, 3px 3px 0 #fff, -3px -3px 0 #fff, 3px -3px 0 #fff, -3px 3px 0 #fff, 0 8px 18px rgba(29, 58, 143, .25);
}
.member-title .c-orange { color: var(--orange); }
/* 會員專區頂部圖：與下方白色卡片同寬 */
.member-banner { width: min(92vw, 1100px); }
.member-lead {
  position: relative; z-index: 2;
  margin: clamp(8px, .8vw, 14px) auto 0; max-width: 34em; padding: 0 16px;
  text-align: center; font-weight: 700; font-size: clamp(15px, 1.05vw, 19px); color: #1d2433;
  text-shadow: 0 0 6px #fff, 0 0 14px rgba(255, 255, 255, .9);
}

/* ---------- 白色卡片 ---------- */
.member-card {
  position: relative; z-index: 2;
  width: min(92vw, 520px);
  margin: clamp(18px, 2.2vw, 40px) auto 0;
  padding: clamp(22px, 2.2vw, 40px) clamp(20px, 2.4vw, 44px) clamp(24px, 2.4vw, 44px);
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 14px 34px rgba(10, 50, 120, .22);
}
.member-card.wide { width: min(92vw, 1100px); }
.member-card h2 { margin: 0 0 14px; font-size: 22px; font-weight: 900; color: var(--navy); letter-spacing: .06em; }

/* ---------- 表單欄位 ---------- */
.m-field { display: grid; gap: 6px; margin-bottom: 16px; }
.m-field label { font-weight: 900; font-size: 16px; letter-spacing: .04em; color: #111; }
.m-field label .opt { font-weight: 500; font-size: 13px; color: #777; margin-left: .4em; }
.m-field input, .m-field select, .m-field textarea {
  width: 100%; box-sizing: border-box;
  padding: 12px 18px;
  border: 2px solid #e2e6f0; border-radius: 999px;
  background: #f7f8fc;
  font: 700 16px/1.4 var(--font); color: #111;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.m-field textarea { border-radius: 16px; min-height: 84px; resize: vertical; }
.m-field input:focus, .m-field select:focus, .m-field textarea:focus {
  outline: none; border-color: var(--yellow); background: #fff; box-shadow: 0 0 0 4px rgba(246, 197, 42, .35);
}
.m-field.has-error input, .m-field.has-error select { border-color: #e9591a; box-shadow: 0 0 0 4px rgba(233, 89, 26, .18); }
.m-field .hint { font-size: 13px; color: #6b7280; font-weight: 500; }
.m-field .err { font-size: 13px; color: #d9480f; font-weight: 700; }
.m-field .err:empty { display: none; }
.m-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* 防機器人隱藏欄位 */

.m-consent {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 4px 0 18px; padding: 12px 14px;
  background: #fff8e1; border-radius: 14px;
  font-size: 14px; line-height: 1.6; color: #3d3d3d;
}
.m-consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--orange); }
.m-consent details { margin-top: 4px; }
.m-consent summary { cursor: pointer; color: #2f6bf2; font-weight: 700; }

/* ---------- 按鈕（沿用網站黃色按鈕風格，無傾斜） ---------- */
.m-btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  width: 100%; padding: 14px 20px;
  border: 3px solid #fff; border-radius: 999px;
  background: #ffce00; color: #663418; cursor: pointer;
  font: 900 18px/1 var(--font); letter-spacing: .12em;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .16);
  transition: scale .35s var(--ease-spring), filter .3s;
}
.m-btn::before { content: ""; position: absolute; inset: 3px; z-index: -1; border: 1.5px dashed rgba(255, 255, 255, .95); border-radius: inherit; pointer-events: none; }
.m-btn:hover { scale: 1.03; }
.m-btn:disabled { filter: grayscale(.4) opacity(.7); cursor: wait; scale: 1; }
.m-btn.ghost { background: #eef2ff; color: var(--navy); border-color: #fff; box-shadow: none; }
.m-btn.small { width: auto; padding: 9px 16px; font-size: 14px; letter-spacing: .06em; }
.m-btn.small::before { inset: 2px; }

.m-status { margin: 12px 0 0; min-height: 1.4em; font-weight: 700; font-size: 15px; text-align: center; color: #1d7a3a; }
.m-status.is-error { color: #d9480f; }
.m-links { margin: 18px 0 0; display: grid; gap: 8px; text-align: center; font-size: 15px; font-weight: 700; color: #4b5563; }
.m-links a { color: #2f6bf2; text-decoration: underline; text-underline-offset: 3px; }

.m-done { text-align: center; }
.m-done .icon { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: #e7f8ec; color: #1d7a3a; font-size: 34px; font-weight: 900; }
.m-done p { font-weight: 700; color: #333; line-height: 1.7; }

/* ---------- 會員專區頁 ---------- */
.member-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
}
.member-bar .hello { margin: 0; font-weight: 900; font-size: 18px; color: var(--navy); }
.member-bar .hello small { display: block; font-weight: 500; font-size: 13px; color: #6b7280; margin-top: 2px; }
.member-bar .actions { display: flex; gap: 8px; }
.pw-panel { margin-top: 16px; padding-top: 16px; border-top: 1px dashed #dfe3ee; }
.pw-panel[hidden] { display: none; }
.pw-panel .m-btn { width: auto; padding: 12px 28px; }

.m-articles { display: grid; gap: clamp(16px, 2vw, 32px); }
.m-article { padding: 0 0 clamp(16px, 2vw, 28px); border-bottom: 1px solid #edf0f6; }
.m-article:last-child { border-bottom: 0; padding-bottom: 0; }
.m-article time { font-family: var(--font-latin); font-weight: 500; font-size: 14px; color: #6b7280; }
.m-article h3 { margin: 4px 0 10px; font-weight: 900; font-size: clamp(19px, 1.5vw, 26px); color: #ff4e00; letter-spacing: .03em; }
.m-article .body { font-size: 16px; line-height: 1.85; color: #1f2937; }
.m-article .body p { margin: 0 0 .8em; }
.m-article .body h3 { font-size: 18px; color: var(--navy); margin: 1.2em 0 .5em; }
.m-article figure { margin: 0 0 14px; }
.m-article figure img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 16px; }
.m-empty { margin: 0; padding: 30px 0; text-align: center; font-weight: 700; color: #36508a; }

@media (max-width: 560px) {
  .m-row { grid-template-columns: 1fr; }
  .member-card { border-radius: 20px; }
}

/* ---------- 用 LINE 登入 ---------- */
.m-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #9aa3b2; font-size: 13px; font-weight: 700; }
.m-or::before, .m-or::after { content: ""; flex: 1; height: 1px; background: #e5e8f0; }
.line-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px 20px; border-radius: 999px;
  background: #06c755; color: #fff; font: 900 17px/1 var(--font); letter-spacing: .08em;
  box-shadow: 0 6px 14px rgba(6, 199, 85, .28);
  transition: scale .35s var(--ease-spring), filter .3s;
}
.line-btn:hover { scale: 1.03; filter: brightness(.95); }
.line-btn svg { width: 22px; height: 22px; flex: none; }
.line-note { margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: #e9f9ef; color: #0a6b33; font-weight: 700; font-size: 14px; line-height: 1.6; }
.line-note[hidden], .line-block[hidden] { display: none; }
.m-field[hidden] { display: none; }
