/* 書法體「助」logo 用字(只載這一個字,極小);Ma Shan Zheng = 毛筆楷書風 */
@import url("https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&display=swap&text=%E5%8A%A9");

:root {
  --paper: #efe9db;
  --paper-deep: #e6ddcb;
  --ink: #050505;
  --muted: #625d52;
  --hair: #090d20;
  --cream: #fffdf4;
  --lavender: #b7bad6;
  --line: #06c755;
  --line-deep: #04a946;
  --stroke: 3px solid var(--ink);
  --shadow: 10px 10px 0 rgba(9, 13, 32, 0.12);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(5, 5, 5, 0.028) 0 1px, transparent 1px 18px),
    var(--paper);
  background-attachment: fixed;
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.26) 1px, transparent 1px);
  background-size: 52px 52px;
  mix-blend-mode: soft-light;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 16px max(24px, calc((100vw - var(--max)) / 2 + 24px));
  background: rgba(239, 233, 219, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid rgba(5, 5, 5, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.brand-avatar {
  position: relative;
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  width: 48px;
  height: 48px;
  background: var(--cream);
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 36%;
  transform: scale(1.58);
  transform-origin: 50% 10%;
}

/* header logo:外圍 3px 圓圈 + 毛筆字「助」(七龍珠衣字徽章感) */
.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  font-family: "Ma Shan Zheng", "Kaiti TC", "DFKai-SB", cursive;
  font-size: 43px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  padding-bottom: 3px; /* 視覺置中(書法字重心偏上) */
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #27231e;
  font-weight: 700;
  font-size: 15px;
}

.desktop-nav a,
.text-link {
  border-bottom: 2px solid transparent;
}

.desktop-nav a:hover,
.text-link:hover {
  border-color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: var(--stroke);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 rgba(5, 5, 5, 0.15);
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(5, 5, 5, 0.18);
}

.button-small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  box-shadow: 3px 3px 0 rgba(5, 5, 5, 0.14);
}

.button-line {
  background: var(--line);
  color: #031109;
}

.button-line:hover {
  background: #13d964;
}

.button-cream {
  background: var(--cream);
}

.button-dark {
  background: var(--hair);
  color: var(--cream);
}

.section-band,
.section-pad {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 24px;
}

/* 錨點落點往下留空,避免被 sticky header 蓋住標題 */
section[id] {
  scroll-margin-top: 84px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 48px;
  min-height: calc(100vh - 78px);
  align-items: center;
  padding-top: 58px;
  padding-bottom: 84px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--line-deep);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 8em;
  margin-bottom: 12px;
  font-size: clamp(42px, 7vw, 78px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4.5vw, 58px);
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.25;
}

.hero-subtitle {
  margin-bottom: 18px;
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 900;
  line-height: 1.25;
}

/* Hero 的「不用換工具,繼續用 LINE」那行調大 */
.hero .eyebrow {
  font-size: 18px;
}

.hero-text,
.section-heading p,
.day-copy p {
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 560px;
  margin: 0;
  border: var(--stroke);
  background: rgba(255, 253, 244, 0.72);
  box-shadow: var(--shadow);
}

.trust-strip div {
  padding: 14px 16px;
}

.trust-strip div + div {
  border-left: 2px solid var(--ink);
}

.trust-strip dt {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}

.trust-strip dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  display: block;
  align-self: center;
}

/* Hero 右側:LINE 對話示意(老闆指令 + 毛毛回應,展示能力) */
.line-chat {
  width: 100%;
  background: var(--cream);
  border: var(--stroke);
  border-radius: 16px;
  box-shadow: 14px 14px 0 rgba(9, 13, 32, 0.16);
  overflow: hidden;
}

.line-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  background: var(--hair);
  color: var(--cream);
}

.line-chat-head .head-ava {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--cream);
  border-radius: 50%;
  background: var(--cream);
  object-fit: cover;
  object-position: 50% 28%;
}

.line-chat-head strong {
  display: block;
  line-height: 1.15;
}

.line-chat-head small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #8fe6b3;
  font-size: 12px;
  font-weight: 700;
}

.line-thread {
  display: grid;
  align-content: start; /* 列固定從頂部排;高度鎖定後,泡泡縮放(打字中⇄內容)不會讓其他列被重新分配位置 */
  overflow-y: auto;     /* 內容剛好裝滿時不會出現捲軸;訊息若再變多才在框內捲。
                           ⚠️ 別加 overscroll-behavior: contain——它會吃掉滾輪事件,讓滑鼠在對話框上滾不動整頁 */
  gap: 11px;
  padding: 20px 18px;
  background:
    radial-gradient(circle at 18px 18px, rgba(9, 13, 32, 0.05) 1.4px, transparent 1.6px) 0 0 / 26px 26px,
    var(--paper-deep);
}

.line-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.line-row.boss {
  justify-content: flex-end;
}

.line-ava {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  object-fit: cover;
  object-position: 50% 28%;
}

.line-msg {
  max-width: 76%;
  padding: 11px 14px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: #fff;
  font-weight: 700;
  line-height: 1.55;
}

.line-row.boss .line-msg {
  border-bottom-right-radius: 5px;
}

.line-row.mao .line-msg {
  background: #eafce1;
  border-bottom-left-radius: 5px;
}

.line-msg small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

/* 對話動畫:訊息逐則跳出(老闆→毛毛打字中→毛毛回覆,JS 控制節奏) */
.line-thread.animated .line-row {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.line-thread.animated .line-row.show {
  opacity: 1;
  transform: translateY(0);
}

/* 毛毛打字中(⋯)指示泡泡 */
.line-row.typing .line-msg {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 13px 16px;
}

.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing-bounce 1s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* 偏好減少動態的使用者:直接全部顯示、不播動畫 */
@media (prefers-reduced-motion: reduce) {
  .line-thread.animated .line-row {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.section-pad {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-heading.compact {
  max-width: 680px;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.message-stack,
.summary-panel {
  min-height: 340px;
  padding: 26px;
  border: var(--stroke);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.messy {
  display: grid;
  align-content: center;
  gap: 13px;
  transform: rotate(-1deg);
}

.mini-message {
  width: fit-content;
  max-width: 88%;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
}

.mini-message:nth-child(even) {
  margin-left: auto;
  background: #e8ffd9;
}

.mini-message.faded {
  opacity: 0.46;
}

.summary-panel {
  display: grid;
  align-content: center;
  background: #f8f6ed;
}

.panel-label,
.form-badge {
  width: fit-content;
  margin-bottom: 20px;
  padding: 6px 10px;
  border: 2px solid var(--ink);
  border-radius: 99px;
  background: var(--lavender);
  font-size: 13px;
  font-weight: 900;
}

.check-list {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 900;
}

.check-list span {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--line);
}

/* 跨群來源標籤(毛毛跨群整理後,每項標出來自哪個群) */
.check-list li em {
  flex: 0 0 auto;
  padding: 3px 9px;
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  background: var(--lavender);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

/* 痛點區左側:太多 LINE 群組(每張卡 = 一個群) */
.group-stack {
  display: grid;
  align-content: center;
  gap: 13px;
  min-height: 340px;
  padding: 24px;
  border: var(--stroke);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.group-card {
  padding: 13px 15px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
}

.group-card:nth-child(even) {
  background: #f1f7ec;
}

.group-card.faded {
  opacity: 0.5;
}

.group-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border: 2px solid var(--ink);
  border-radius: 99px;
  background: var(--lavender);
  font-size: 12px;
  font-weight: 900;
}

.group-card p {
  margin: 4px 0 0;
  font-weight: 700;
}

.steps,
.feature-grid,
.audience-grid,
.conversion-grid {
  display: grid;
  gap: 20px;
}

.steps {
  grid-template-columns: repeat(3, 1fr);
}

.steps article,
.feature-card,
.audience-grid article,
.form-panel,
.not-card,
.faq details {
  border: var(--stroke);
  border-radius: 8px;
  background: rgba(255, 253, 244, 0.82);
  box-shadow: 7px 7px 0 rgba(5, 5, 5, 0.12);
}

.steps article {
  padding: 24px;
}

.step-num,
.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--line);
  font-weight: 900;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 24px;
}

.feature-card p,
.audience-grid p,
.steps p,
.timeline-item p,
.not-card li,
.faq p {
  color: var(--muted);
}

.quote-line {
  margin-top: auto;
  padding-top: 18px;
  border-top: 2px dashed rgba(5, 5, 5, 0.22);
  font-weight: 900;
}

.day-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 42px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 16px;
  border-left: var(--stroke);
  padding-left: 26px;
}

.timeline-item {
  position: relative;
  padding: 18px 20px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
}

.timeline-item::before {
  position: absolute;
  left: -41px;
  top: 22px;
  width: 22px;
  height: 22px;
  content: "";
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--line);
}

.timeline-item time {
  display: block;
  color: var(--line-deep);
  font-weight: 900;
}

.timeline-item strong {
  display: block;
  margin: 4px 0;
  font-size: 20px;
}

.dialogue-stack {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.dialogue-bubble {
  width: fit-content;
  max-width: 92%;
  margin: 0;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.55;
}

.dialogue-bubble.boss {
  justify-self: end;
  background: #fff;
}

.dialogue-bubble.maomao {
  justify-self: start;
  background: #eefbe9;
}

.audience-grid {
  grid-template-columns: repeat(3, 1fr);
}

.audience-grid article {
  padding: 24px;
}

.team-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.team-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  text-align: center;
  border: var(--stroke);
  border-radius: 8px;
  background: rgba(255, 253, 244, 0.82);
  box-shadow: 7px 7px 0 rgba(5, 5, 5, 0.12);
}

.team-avatar {
  width: 108px;
  height: 108px;
  margin: 0 auto 16px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  object-fit: cover;
}

.team-card h3 {
  margin: 0 0 4px;
  font-size: 24px;
}

.team-card .name-zh {
  font-size: 19px;
  font-weight: 800;
  color: var(--muted);
}

.team-tagline {
  margin: 0 0 12px;
  font-weight: 800;
  color: var(--line-deep);
}

.team-card p {
  color: var(--muted);
}

.team-fit {
  margin-top: auto;
  padding-top: 10px;
}

.team-fit strong {
  color: var(--ink);
}

.team-badge {
  display: inline-block;
  margin: 14px auto 0;
  padding: 4px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-deep);
  font-size: 14px;
  font-weight: 800;
}

.team-badge.open {
  background: var(--line);
}

.team-cta {
  margin-top: 12px;
}

.not-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
  padding: 34px;
  background: var(--hair);
  color: var(--cream);
}

.not-card .eyebrow {
  color: var(--line);
}

.not-card ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 22px;
  font-size: 19px;
  font-weight: 800;
}

.not-card li {
  color: #f2eddf;
}

/* 智慧提議:寬螢幕左右排(文案左、對話右,類似 hero);窄螢幕疊直 */
.suggest-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 48px;
  align-items: center;
}

.suggest-section .section-heading {
  margin-bottom: 0;
}

.suggest-chat {
  width: 100%;
  max-width: 640px;
  justify-self: end;
}

.output-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.output-grid article {
  min-height: 280px;
  padding: 24px;
  border: var(--stroke);
  border-radius: 8px;
  background: rgba(255, 253, 244, 0.82);
  box-shadow: 7px 7px 0 rgba(5, 5, 5, 0.12);
}

.output-label {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 10px;
  border: 2px solid var(--ink);
  border-radius: 99px;
  background: var(--line);
  font-size: 13px;
  font-weight: 900;
}

.output-grid p {
  color: var(--muted);
}

.conversion-grid {
  grid-template-columns: minmax(0, 820px);
  align-items: start;
}

.conversion .section-heading {
  max-width: 1120px;
}

.title-line {
  display: block;
}

.form-panel {
  padding: 26px;
  scroll-margin-top: 96px;
}

.form-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.form-heading h3 {
  margin-bottom: 0;
}

.form-heading p {
  color: var(--muted);
}

label,
fieldset {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus {
  outline: 3px solid rgba(6, 199, 85, 0.25);
}

fieldset {
  border: 2px dashed rgba(5, 5, 5, 0.36);
  border-radius: 8px;
  padding: 18px;
}

legend {
  padding: 0 8px;
}

.checkbox {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  color: var(--muted);
  font-weight: 700;
}

.checkbox input {
  width: 20px;
  min-height: 20px;
}

.conditional-input[hidden] {
  display: none;
}

.conditional-input:not(label) {
  margin-top: 8px;
}

.form-message {
  min-height: 28px;
  margin: 16px 0 0;
  font-weight: 900;
}

.form-message.success {
  color: #05652e;
}

.form-message.error {
  color: #a32515;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq details {
  padding: 0 22px;
}

.faq summary {
  cursor: pointer;
  padding: 20px 0;
  font-size: 19px;
  font-weight: 900;
}

.faq p {
  margin-bottom: 22px;
}

/* FAQ 內條列(資料安全等多點說明) */
.faq-points {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding-left: 20px;
  color: var(--muted);
}

.faq-points strong {
  color: var(--ink);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding: 36px 24px 48px;
  border-top: 2px solid rgba(5, 5, 5, 0.12);
}

.footer p {
  margin: 4px 0 0;
  color: var(--muted);
}

.invite-page {
  min-height: calc(100vh - 82px);
}

.invite-layout {
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.invite-note {
  padding: 28px;
  border: var(--stroke);
  border-radius: 8px;
  background: rgba(255, 253, 244, 0.82);
  box-shadow: var(--shadow);
}

.invite-note img {
  width: 104px;
  height: 104px;
  margin-bottom: 24px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 36%;
}

.invite-note h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.invite-note p {
  color: var(--muted);
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .hero,
  .compare-grid,
  .day-section,
  .not-card,
  .conversion-grid,
  .suggest-section,
  .invite-layout {
    grid-template-columns: 1fr;
  }

  .suggest-chat {
    justify-self: stretch;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .steps,
  .feature-grid,
  .audience-grid,
  .output-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .section-pad {
    padding-inline: 18px;
  }

  .section-pad {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  h1 {
    font-size: 52px;
  }

  .hero-actions,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .trust-strip,
  .steps,
  .feature-grid,
  .audience-grid,
  .output-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip div + div {
    border-top: 2px solid var(--ink);
    border-left: 0;
  }

  .line-msg {
    max-width: 82%;
  }

  .message-stack,
  .summary-panel {
    min-height: 280px;
    padding: 20px;
  }
}

/* footer 法務連結(隱私權/條款) */
.footer-links a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-links a:hover { color: var(--ink); }
