/* ---- 基本色系（三色原則）-------------------------------- */
/* 背景：偏暖白／文字：深灰／重點：淺木質色 */
:root {
  --color-bg: #f7f4ee;
  --color-text: #222222;
  --color-accent: #c3a27a;
}

/* ---- 全局排版 ------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, blinkmacsystemfont, 'Segoe UI', ui-sans-serif,
    system-ui, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column; /* 讓 STEP 1 與 STEP 2 垂直排列 */
  align-items: center;
  padding: 4rem 1.5rem;
}

.stage-block-1 {
  width: 100%;
  max-width: 960px;
}

.stage2-band {
  width: 100%;
  background-color: #ffffff; /* STEP 2 整段底色改成白色 */
  margin-top: 3rem;
  padding: 3rem 0;
}

.stage-block-2 {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.stage-block-3 {
  width: 100%;
  max-width: 960px;
  margin: 3rem auto 4rem;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(34, 34, 34, 0.08);
  margin-bottom: 1.75rem;
}

.nav-logo {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(34, 34, 34, 0.8);
}

.nav-steps {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.nav-step {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: rgba(34, 34, 34, 0.6);
}

.nav-step-label {
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-step-text {
  letter-spacing: 0.04em;
}

.nav-step-active {
  border-color: var(--color-accent);
  background-color: rgba(195, 162, 122, 0.14);
  color: rgba(34, 34, 34, 0.9);
}

/* ---- 漢堡選單按鈕（簡約版） ---------------------------- */

.nav-hamburger {
  display: none;
  width: 1.5rem;
  height: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
  position: relative;
  color: var(--color-text);
  font-size: 1.2rem;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.nav-hamburger:hover {
  opacity: 1;
}

.nav-hamburger::before {
  content: '☰';
  display: block;
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger[aria-expanded='true']::before {
  content: '✕';
  font-size: 1.2rem;
  transform: rotate(90deg);
}

.stage-header {
  margin-bottom: 2.5rem;
}

.stage-title {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.stage-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(34, 34, 34, 0.7);
}

/* ---- 區塊卡片 ------------------------------------------ */
.content-placeholder {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.panel-row {
  display: flex;
  gap: 1.75rem;
}

.panel-half {
  flex: 1 1 0;
}

/* ---- STEP 2：文章寫作（白底紙紋理區） --------------------- */

.stage2-inner {
  background-color: #ffffff; /* 第二個區塊主底色：白色 */
  border-radius: 1rem;
  padding: 1.75rem 1.5rem 1.8rem;
  border: 1px solid rgba(34, 34, 34, 0.06);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.03);
  /* 簡單紙紋理感：非常淡的條紋 */
  background-image: linear-gradient(
    rgba(0, 0, 0, 0.015) 1px,
    transparent 1px
  );
  background-size: 100% 28px;
}

.stage2-header {
  margin-bottom: 1.5rem;
}

.stage2-title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.stage2-note {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(34, 34, 34, 0.65);
}

.stage2-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 1.5rem;
  align-items: flex-start;
}

.day-nav {
  padding-right: 0.5rem;
}

.day-grid {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem 0.65rem;
}

.day-cell {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  font-size: 0.72rem;
  color: rgba(34, 34, 34, 0.7);
}

.day-number {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 34, 34, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.9);
}

.day-cell-active .day-number {
  border-color: var(--color-accent);
  background-color: rgba(195, 162, 122, 0.15);
}

.day-dots {
  display: flex;
  gap: 0.18rem;
  align-items: center;
  justify-content: center;
}

.dot {
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 34, 34, 0.18);
  background-color: transparent;
}

.dot-rose.is-active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.dot-jane.is-active {
  background-color: rgba(34, 34, 34, 0.8);
  border-color: rgba(34, 34, 34, 0.8);
}

.day-editor {
  padding-left: 0.5rem;
}

.day-editor-header {
  margin-bottom: 1rem;
}

.day-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day-subtitle {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(34, 34, 34, 0.6);
}

.day-editor-fields {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.day-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.day-editor-fields-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.1rem 1.5rem;
  align-items: flex-start;
}

.day-field-full {
  grid-column: 1 / -1;
}

.threads-preview {
  margin-top: 0.1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(34, 34, 34, 0.12);
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  font-size: 0.9rem;
  line-height: 1.7;
  white-space: pre-wrap;
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.btn-preview {
  padding: 0.32rem 0.9rem;
  border-radius: 999px;
  border: none;
  background-color: rgba(34, 34, 34, 0.08); /* 淺灰色色塊 */
  color: var(--color-text);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-preview:hover {
  background-color: rgba(34, 34, 34, 0.14);
}

.day-actions {
  margin-top: 1.1rem;
}

/* ---- STEP 3：庫存、發布與提問 ---------------------------- */

.stage3-header {
  margin-bottom: 1.5rem;
}

.stage3-title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.stage3-note {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(34, 34, 34, 0.65);
}

.panel-stage3 {
  margin-top: 1.25rem;
}

.stage3-inventory {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.inventory-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.inventory-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.inventory-note {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(34, 34, 34, 0.65);
}

.inventory-list {
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 3rem;
  transition: background-color 0.2s ease;
}

.inventory-list.drag-over {
  background-color: rgba(195, 162, 122, 0.08);
  border-radius: 0.5rem;
  border: 2px dashed var(--color-accent);
  padding: 0.5rem;
}

.item-card {
  padding: 0.7rem 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(34, 34, 34, 0.08);
  background-color: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.83rem;
  cursor: grab;
  transition: all 0.2s ease;
}

.item-card:active {
  cursor: grabbing;
}

.item-card[draggable='true']:hover {
  border-color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.item-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.item-title {
  font-weight: 600;
}

.item-snippet {
  color: rgba(34, 34, 34, 0.7);
}

.item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(34, 34, 34, 0.6);
}

.item-delete {
  border: none;
  background: transparent;
  color: rgba(160, 80, 80, 0.9);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 34, 34, 0.15);
  font-size: 0.7rem;
}

.badge-answered {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.stage3-inspiration {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr);
  gap: 1.5rem;
}

.inspiration-left {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.inspiration-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.inspiration-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.inspiration-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.inspiration-card {
  border: none;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 0.45rem;
  padding: 0.55rem 0.7rem;
  text-align: left;
  cursor: pointer;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  border: 1px solid rgba(34, 34, 34, 0.08);
}

.inspiration-card-title {
  font-weight: 600;
}

.inspiration-card-snippet {
  font-size: 0.78rem;
  color: rgba(34, 34, 34, 0.7);
}

.inspiration-card-status {
  font-size: 0.74rem;
  color: rgba(34, 34, 34, 0.55);
}

.inspiration-card.is-active {
  border-color: var(--color-accent);
  background-color: rgba(195, 162, 122, 0.12);
}

.inspiration-detail {
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.inspiration-detail-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.inspiration-detail-body {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(34, 34, 34, 0.8);
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.stage3-question {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr);
  gap: 1.5rem;
}

.question-left,
.question-right {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.question-preview {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.preview-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.35rem;
  border: 1px solid rgba(34, 34, 34, 0.15);
}

.question-preview-detail {
  margin-bottom: 0.4rem;
}

.panel {
  padding: 1.5rem 1.25rem;
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(34, 34, 34, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
}

.panel-header {
  margin-bottom: 1rem;
}

.panel-title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.panel-note {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(34, 34, 34, 0.6);
}

.panel-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel-body-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.25rem;
}

.panel-body-narrow {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.panel-left,
.panel-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ---- 表單與文字區 -------------------------------------- */
.field-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(34, 34, 34, 0.6);
}

.field-textarea,
.field-input {
  width: 100%;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--color-text);
  background-color: transparent;
  border-radius: 0;
  border: none;
  outline: none;
  padding: 0.4rem 0;
}

.field-textarea {
  min-height: 7rem;
  resize: vertical;
  line-height: 1.6;
}

.field-hint {
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
  color: rgba(34, 34, 34, 0.55);
}

.field-textarea-underline,
.field-input {
  border-bottom: 1px solid rgba(34, 34, 34, 0.15);
}

.field-textarea-underline:focus,
.field-input:focus {
  border-bottom-color: var(--color-accent);
}

.field-textarea::placeholder,
.field-input::placeholder {
  color: rgba(34, 34, 34, 0.3);
}

/* ---- 按鈕與狀態文字 ------------------------------------ */
.panel-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  background-color: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, transform 0.08s ease;
}

.btn-primary {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #b79263;
  border-color: #b79263;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: rgba(34, 34, 34, 0.2);
  background-color: transparent;
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}

.btn-primary:active,
.btn-ghost:active {
  transform: translateY(0);
}

.status-text {
  font-size: 0.75rem;
  color: rgba(34, 34, 34, 0.6);
  min-height: 1em;
}

/* ---- 預覽區塊 ------------------------------------------ */
.preview-box {
  width: 100%;
  min-height: 7rem;
  padding: 0.75rem 0.8rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(34, 34, 34, 0.08);
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.preview-inline {
  min-height: 1.6rem;
  padding: 0.1rem 0;
  font-size: 0.9rem;
  color: rgba(34, 34, 34, 0.9);
  word-break: break-word;
}

/* ---- 響應式調整 ---------------------------------------- */
@media (max-width: 768px) {
  .page {
    padding: 2rem 1rem;
  }

  .panel {
    padding: 1.1rem 0.9rem;
  }

  .top-nav {
    position: relative;
    flex-direction: row;
    align-items: center;
    padding: 1rem 0.5rem;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-steps {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 4rem 1.5rem 2rem;
    gap: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 99;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .nav-steps.is-open {
    transform: translateX(0);
  }

  .nav-step {
    padding: 1rem 1.2rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    border: 1px solid rgba(34, 34, 34, 0.1);
    background-color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    width: 100%;
    justify-content: flex-start;
  }

  .nav-step:active {
    background-color: rgba(195, 162, 122, 0.2);
  }

  .panel-row {
    flex-direction: column;
  }

  .stage2-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .day-nav {
    padding-right: 0;
  }

  .day-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem 0.4rem;
  }

  .day-number {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 0.7rem;
  }

  .day-cell {
    font-size: 0.68rem;
  }

  .day-editor {
    padding-left: 0;
  }

  .day-editor-fields-grid,
  .stage3-inventory,
  .stage3-inspiration,
  .stage3-question {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
  }

  .panel-body-split,
  .panel-body-narrow {
    display: flex;
    flex-direction: column;
  }

  .preview-box {
    min-height: 5rem;
  }

  .btn-primary,
  .btn-ghost {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    min-height: 2.5rem;
  }

  .btn-preview {
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
  }

  .field-label {
    font-size: 0.85rem;
  }

  .field-textarea {
    font-size: 0.9rem;
    padding: 0.7rem 0.85rem;
    min-height: 4rem;
  }

  .item-card {
    padding: 0.6rem 0.7rem;
    font-size: 0.8rem;
  }

  .item-title {
    font-size: 0.85rem;
  }

  .item-snippet {
    font-size: 0.78rem;
  }

  .inspiration-card {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
  }

  .inspiration-detail-title {
    font-size: 0.85rem;
  }

  .inspiration-detail-body {
    font-size: 0.8rem;
    line-height: 1.6;
    max-width: 100%;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .question-detail {
    margin-top: 0.4rem;
  }

  .question-preview-detail {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .question-preview-detail img {
    max-width: 100%;
    height: auto;
  }

  .panel-actions {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .status-text {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 1.5rem 0.75rem;
  }

  .panel {
    padding: 1rem 0.75rem;
  }

  .day-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.4rem 0.35rem;
  }

  .day-number {
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.65rem;
  }

  .day-cell {
    font-size: 0.65rem;
  }

  .day-editor-fields-grid {
    gap: 1rem;
  }

  .stage3-inventory {
    gap: 1rem;
  }

  .stage3-inspiration {
    gap: 1rem;
  }

  .btn-primary,
  .btn-ghost {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    min-height: 2.4rem;
  }

  .field-label-row {
    flex-wrap: wrap;
  }

  .modal-content {
    margin: 0.5rem;
    border-radius: 0.8rem;
  }

  .modal-header {
    padding: 0.9rem 1rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .threads-preview-card {
    padding: 1rem;
  }
}

/* ---- 定稿預覽模態視窗 ------------------------------------ */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal[aria-hidden='false'] {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1001;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(34, 34, 34, 0.1);
}

.modal-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.modal-close {
  padding: 0.3rem 0.6rem;
  border: none;
  background: transparent;
  color: var(--color-text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 0.3rem;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background-color: rgba(34, 34, 34, 0.08);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.threads-preview-card {
  background-color: #ffffff;
  border: 1px solid rgba(34, 34, 34, 0.1);
  border-radius: 0.8rem;
  padding: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.threads-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.threads-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c3a27a 0%, #a0855e 100%);
  flex-shrink: 0;
}

.threads-user-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.threads-username {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.threads-time {
  font-size: 0.75rem;
  color: rgba(34, 34, 34, 0.5);
}

.threads-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
  white-space: pre-wrap;
  word-wrap: break-word;
}

.threads-content:empty::before {
  content: '尚未輸入定稿內容';
  color: rgba(34, 34, 34, 0.4);
  font-style: italic;
}

/* ---- 放大編輯器模態視窗 ------------------------------------ */

.modal-content-editor {
  max-width: 800px;
  height: 85vh;
  display: flex;
  flex-direction: column;
}

.modal-body-editor {
  flex: 1;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.editor-textarea {
  width: 100%;
  height: 100%;
  padding: 1.2rem 1.5rem;
  border: none;
  background: transparent;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  resize: none;
  font-family: inherit;
  outline: none;
}

.editor-textarea::placeholder {
  color: rgba(34, 34, 34, 0.4);
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(34, 34, 34, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.field-textarea {
  cursor: pointer;
  transition: all 0.2s ease;
}

.field-textarea:hover {
  border-color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 640px) {
  .modal-content {
    max-width: 100%;
    max-height: 95vh;
  }

  .modal-header {
    padding: 1rem 1.2rem;
  }

  .modal-body {
    padding: 1.2rem;
  }

  .modal-content-editor {
    height: 90vh;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .editor-textarea {
    font-size: 1rem;
    padding: 1rem 1.2rem;
  }

  .modal-footer {
    padding: 0.9rem 1.2rem;
  }
}

