/* =========================================================
   market-about.css · 創作者專區頁面樣式
   ========================================================= */

.mab {
  --mab-section-gap: 80px;
  --mab-card-radius: 12px;
  --mab-border: var(--lohas-bd, #e4e0d6);
  overflow-x: hidden;
}

.mab-hero .hero-title { letter-spacing: 0.08em; }

/* ===== Layout ===== */
.mab-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
}

/* ===== Sticky nav ===== */
.mab-nav { position: sticky; top: 96px; align-self: start; }
.mab-nav ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--mab-border); }
.mab-nav li + li { margin-top: 4px; }
.mab-nav a {
  display: block; padding: 10px 16px;
  color: #888; text-decoration: none;
  font-size: 14px; letter-spacing: 0.05em;
  border-left: 2px solid transparent; margin-left: -2px;
  transition: color .2s, border-color .2s;
}
.mab-nav a:hover { color: var(--lohas-brand, #50422D); }
.mab-nav a.active {
  color: var(--lohas-brand, #50422D);
  border-left-color: var(--lohas-brand, #50422D);
  font-weight: 700;
}

/* ===== Section ===== */
.mab-content { min-width: 0; }
.mab-section { margin-bottom: var(--mab-section-gap); scroll-margin-top: 96px; }

/* ===== 區塊標題 (左標題 + 右英文 + 下底線) ===== */
.mab .section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--mab-border);
}
.mab .section-title {
  font-size: 22px;
  font-weight: 600;
  color: #222;
  letter-spacing: 0.8px;
  margin: 0;
  line-height: 1.3;
}
.mab .section-meta {
  font-size: 12px;
  color: #999;
  letter-spacing: 1.5px;
  font-weight: 500;
}
.mab-intro { font-size: 15px; line-height: 1.85; color: #555; margin: 0 0 32px; }
.mab-sub { font-size: 14px; color: #888; margin: 0 0 24px; }
.mab-h3 {
  font-size: 18px; font-weight: 700; color: #222;
  display: flex; align-items: center; gap: 10px;
  margin: 32px 0 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--mab-border);
}
.mab-h3 i { color: var(--lohas-brand, #50422D); font-size: 16px; }
.mt-32 { margin-top: 32px; }

/* ===== 三大誘因 ===== */
.perks-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 16px;
}
.perk-card {
  background: #fff; border: 1px solid var(--mab-border);
  border-radius: var(--mab-card-radius);
  padding: 28px 24px; text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.perk-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.perk-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(200, 159, 92, 0.1); color: var(--lohas-brand, #50422D);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.perk-title { font-size: 16px; font-weight: 700; color: #222; margin: 0 0 10px; }
.perk-desc { font-size: 13px; line-height: 1.8; color: #666; margin: 0; }

/* ===== 三步驟流程 ===== */
.steps-flow { display: flex; align-items: stretch; gap: 12px; margin-top: 16px; }
.step-item {
  flex: 1; background: #fff;
  border: 1px solid var(--mab-border); border-radius: var(--mab-card-radius);
  padding: 24px; display: flex; gap: 16px; align-items: flex-start;
}
.step-num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--lohas-brand, #50422D); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.step-content h4 { font-size: 15px; font-weight: 700; color: #222; margin: 4px 0 6px; }
.step-content p { font-size: 13px; line-height: 1.7; color: #666; margin: 0; }
.step-arrow { display: flex; align-items: center; color: #ccc; font-size: 14px; }

/* ===== 創作者牆 · 橫排 ✱ 分隔 ===== */
.creators-marquee {
  background: linear-gradient(135deg, #faf6ea, #f5ebd2);
  border-radius: var(--mab-card-radius);
  padding: 32px 28px;
  margin-top: 8px;
  text-align: center;
}
.creators-loading {
  padding: 20px;
  color: #888;
  font-size: 14px;
}
.creators-line {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 8px 12px;
  line-height: 2.2;
}
.creator-name-chip {
  display: inline-block;
  font-size: 15px;
  color: #443;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.creators-sep {
  color: var(--lohas-brand, #50422D);
  font-size: 12px;
  opacity: 0.6;
  user-select: none;
}
.creators-count {
  margin-top: 20px;
  font-size: 13px;
  color: #888;
  letter-spacing: 0.05em;
}

/* ===== CTA ===== */
.mab-cta {
  background: linear-gradient(135deg, #faf6ea, #f5ebd2);
  border-radius: var(--mab-card-radius);
  padding: 40px 32px; text-align: center; margin-top: 40px;
}
.mab-cta h3 { font-size: 22px; font-weight: 700; color: #222; margin: 0 0 12px; }
.mab-cta p { font-size: 14px; color: #555; margin: 0 0 24px; }


/* ===========================================================
   製作指南
   =========================================================== */

/* 規格表 */
.guide-specs {
  background: #fff;
  border: 1px solid var(--mab-border);
  border-radius: var(--mab-card-radius);
  overflow: hidden;
  margin-top: 8px;
}
.spec-row {
  display: flex;
  border-bottom: 1px solid var(--mab-border);
  font-size: 14px;
}
.spec-row:last-child { border-bottom: none; }
.spec-label {
  width: 160px;
  flex-shrink: 0;
  background: #fafaf7;
  padding: 14px 20px;
  font-weight: 600;
  color: #333;
}
.spec-value {
  flex: 1;
  padding: 14px 20px;
  color: #555;
  line-height: 1.6;
}

/* 雷雕限制 list */
.guide-list {
  background: #fafaf7;
  border-left: 3px solid var(--lohas-brand, #50422D);
  padding: 20px 24px 20px 40px;
  margin: 8px 0 0;
  border-radius: 0 6px 6px 0;
}
.guide-list li {
  font-size: 14px;
  color: #444;
  line-height: 2;
}
.guide-list li b { color: #222; }

/* 設計建議卡片 */
.guide-tips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.tip-card {
  background: #fff;
  border: 1px solid var(--mab-border);
  border-radius: var(--mab-card-radius);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.tip-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.tip-icon.ok { background: rgba(76, 175, 80, 0.12); color: #2e7d32; }
.tip-icon.ng { background: rgba(231, 76, 60, 0.12); color: #c62828; }
.tip-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin: 4px 0 6px;
}
.tip-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* 客服聯繫 */
.guide-contact {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-outline-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--lohas-brand, #50422D);
  color: var(--lohas-brand, #50422D);
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
}
.btn-outline-brand:hover {
  background: var(--lohas-brand, #50422D);
  color: #fff;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--mab-border);
  color: #666;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: all .2s;
}
.btn-ghost:hover {
  border-color: var(--lohas-brand, #50422D);
  color: var(--lohas-brand, #50422D);
}


/* ===========================================================
   FAQ
   =========================================================== */
.faq-group { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--mab-border); border-radius: 8px;
  background: #fff; overflow: hidden; transition: box-shadow .2s;
}
.faq-item[open] { box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.faq-item summary {
  cursor: pointer; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
  list-style: none; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-size: 15px; font-weight: 600; color: #222; flex: 1; padding-right: 16px; }
.faq-icon { font-size: 12px; color: #999; transition: transform .2s; }
.faq-item[open] .faq-icon { transform: rotate(180deg); }
.faq-a {
  padding: 0 20px 20px;
  font-size: 14px; line-height: 1.85; color: #555;
  border-top: 1px solid #f3efe5;
  padding-top: 16px; margin-top: 4px;
}
.faq-a a { color: var(--lohas-brand, #50422D); text-decoration: underline; }


/* ===========================================================
   RWD
   =========================================================== */
@media (max-width: 900px) {
  .mab-body {
    grid-template-columns: 1fr; gap: 24px; padding: 32px 16px 60px;
  }
  .mab-nav {
    position: sticky; top: 60px; z-index: 10;
    background: #fff;
    margin: 0; padding: 6px 0;
    border-bottom: none;
    min-width: 0; max-width: 100%;
  }
  .mab-nav ul {
    display: flex; border-left: none; overflow-x: auto;
    padding: 0; gap: 4px; max-width: 100%;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .mab-nav ul::-webkit-scrollbar { display: none; }
  .mab-nav li + li { margin-top: 0; margin-left: 0; }
  .mab-nav a {
    border-left: none; border-bottom: 2px solid transparent;
    margin-left: 0; padding: 9px 14px;
    white-space: nowrap; font-size: 13.5px;
  }
  .mab-nav a.active {
    border-left: none; border-bottom-color: var(--lohas-brand, #50422D);
  }
  .perks-grid { grid-template-columns: 1fr; }
  .steps-flow { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); justify-content: center; padding: 4px 0; }
  .guide-tips { grid-template-columns: 1fr; }
  .spec-row { flex-direction: column; }
  .spec-label { width: 100%; padding: 10px 16px; }
  .spec-value { padding: 10px 16px; }
  .mab-section { margin-bottom: 56px; scroll-margin-top: 120px; }
}

@media (max-width: 480px) {
  .mab-cta { padding: 32px 20px; }
  .mab-cta h3 { font-size: 18px; }
  .creators-marquee { padding: 24px 16px; }
  .creator-name-chip { font-size: 14px; }
}

/* =========================================================
   創作者頁改版新增元件 (全用 lohas-tokens 變數,深咖啡調)
   ========================================================= */

/* 投稿流程 4 步 */
.steps-flow-4 .step-item { padding: 20px 16px; }
.steps-flow-4 .step-content h4 { font-size: 14px; }
.steps-flow-4 .step-content p { font-size: 12.5px; }

/* 推薦投稿風格 4 卡 */
.style-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin-top: 16px;
}
.style-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--lohas-bd, #E8DED1);
  border-radius: var(--mab-card-radius, 12px); padding: 20px 22px;
  transition: transform .2s, box-shadow .2s;
}
.style-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(80,66,45,.08); }
.style-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 10px;
  background: var(--bg-soft, #F4F1EC); color: var(--lohas-brand, #50422D);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.style-card h4 { font-size: 16px; font-weight: 700; color: var(--text-main, #2F2A24); margin: 0 0 5px; }
.style-card p { font-size: 13px; line-height: 1.7; color: var(--text-sub, #6F665D); margin: 0; }

/* 適合 / 不適合 對照 */
.compare-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px; margin-top: 16px;
}
.compare-col {
  border-radius: var(--mab-card-radius, 12px); padding: 22px 24px;
  border: 1px solid var(--lohas-bd, #E8DED1);
}
.compare-col.ok { background: rgba(90,138,90,0.06); border-color: rgba(90,138,90,0.3); }
.compare-col.ng { background: rgba(176,80,80,0.05); border-color: rgba(176,80,80,0.28); }
.compare-h { font-size: 16px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.compare-col.ok .compare-h { color: #5A8A5A; }
.compare-col.ng .compare-h { color: #B05050; }
.compare-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.compare-list li { font-size: 13.5px; display: flex; gap: 9px; align-items: flex-start; color: var(--text-main, #2F2A24); line-height: 1.6; }
.compare-list li i { margin-top: 4px; font-size: 12px; flex-shrink: 0; }
.compare-col.ok li i { color: #5A8A5A; }
.compare-col.ng li i { color: #B05050; }
.compare-list small { display: block; color: var(--text-muted, #9B9186); font-size: 11.5px; margin-top: 2px; }

/* 物理限制 5 警示卡 */
.warn-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 12px; margin-top: 16px;
}
.warn-card {
  background: #fff; border: 1px solid var(--lohas-bd, #E8DED1);
  border-top: 3px solid var(--lohas-light, #CDBEA2); border-radius: 10px;
  padding: 18px 14px; text-align: center;
}
.warn-card i { font-size: 20px; color: var(--lohas-brand, #50422D); margin-bottom: 10px; }
.warn-card h4 { font-size: 13.5px; font-weight: 700; color: var(--text-main, #2F2A24); margin: 0 0 6px; }
.warn-card p { font-size: 11.5px; line-height: 1.6; color: var(--text-sub, #6F665D); margin: 0; }

/* FAQ 雙 tab */
.faq-tabs { display: flex; gap: 10px; margin: 16px 0 20px; flex-wrap: wrap; }
.faq-tab {
  padding: 9px 20px; border-radius: 999px;
  border: 1px solid var(--lohas-bd, #E8DED1); background: #fff;
  cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--text-sub, #6F665D); display: inline-flex; align-items: center; gap: 7px; transition: all .15s;
}
.faq-tab:hover { color: var(--lohas-brand, #50422D); border-color: var(--lohas-light, #CDBEA2); }
.faq-tab.active { background: var(--lohas-brand, #50422D); color: #fff; border-color: var(--lohas-brand, #50422D); }
.faq-panel[hidden] { display: none; }

@media (max-width: 720px) {
  .style-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .warn-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-flow-4 { flex-direction: column; }
  .steps-flow-4 .step-arrow { transform: rotate(90deg); }
  .faq-tabs { flex-direction: column; }
  .faq-tab { width: 100%; justify-content: center; }
}

/* =========================================================
   微調:hero 間距 / 第一區去線 / 物理限制 grid
   ========================================================= */

/* Hero 與 header 拉開 */
.mab-hero-cta { margin-top: 24px; }

/* 「成為創作者」標題與上方 tab 之間不要線(手機 tab 緊接標題會雙線) */
#creator .section-head {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 20px;
}

@media (max-width: 720px) {
  .mab-hero-cta { margin-top: 70px; }
}

/* === 圖示範區 (原始→正確 + 4錯誤) === */
.guide-examples { margin-top: 20px; }
.ge-row { display: flex; gap: 14px; align-items: center; }
.ge-convert { justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.ge-convert .ge-fig { max-width: 320px; }
.ge-fig { margin: 0; flex: 1; max-width: 220px; text-align: center; }
.ge-fig img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--lohas-bd, #E8DED1); display: block;
}
.ge-fig figcaption { margin-top: 8px; font-size: 12.5px; color: var(--text-sub, #6F665D); }
.ge-arrow { color: var(--lohas-brand, #50422D); font-size: 22px; flex-shrink: 0; }
.ge-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.ge-tag.origin { background: var(--bg-soft, #F4F1EC); color: var(--text-sub, #6F665D); }
.ge-tag.ok { background: rgba(90,138,90,0.12); color: #5A8A5A; }
.ge-bad-label {
  font-size: 14px; font-weight: 700; color: #B05050;
  display: flex; align-items: center; gap: 7px; margin-bottom: 14px;
}
.ge-bad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ge-bad .ge-fig { max-width: none; }
.ge-bad .ge-fig img { border-color: rgba(176,80,80,0.3); }
.ge-bad .ge-fig figcaption { color: #B05050; font-weight: 600; }

@media (max-width: 720px) {
  .ge-bad { grid-template-columns: repeat(2, 1fr); }
  .ge-convert { gap: 8px; }
  .ge-convert .ge-fig { max-width: 140px; }
  .ge-arrow { font-size: 16px; }
}

/* === 作品規範 accordion === */
.rules-acc { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.rules-item {
  border: 1px solid var(--lohas-bd, #E8DED1); border-radius: 12px;
  background: #fff; overflow: hidden;
}
.rules-item summary {
  list-style: none; cursor: pointer; padding: 15px 18px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14.5px; font-weight: 700; color: var(--text-main, #2F2A24);
}
.rules-item summary::-webkit-details-marker { display: none; }
.rules-item summary span { display: flex; align-items: center; gap: 9px; }
.rules-item summary span i { color: var(--lohas-brand, #50422D); font-size: 14px; }
.rules-chev { transition: transform .2s; color: var(--text-muted, #9B9186); font-size: 13px; }
.rules-item[open] .rules-chev { transform: rotate(180deg); }
.rules-body {
  padding: 4px 18px 18px; font-size: 13.5px; line-height: 1.8;
  color: var(--text-sub, #6F665D); border-top: 1px solid var(--bg-soft, #F4F1EC);
}
.rules-body p { margin: 10px 0 0; }
.rules-body p:first-child { margin-top: 12px; }
.rules-body ul { margin: 8px 0 0; padding-left: 20px; }
.rules-body li { margin-bottom: 6px; }
.rules-body b { color: var(--text-main, #2F2A24); font-weight: 700; }
