/* ==========================================================================
   【全域變數宣告】
   ========================================================================== */
/* ==========================================================================
   【主體版面排版】
   ========================================================================== */
.to-main {
  display: inline-flex;
  align-items: center;
  color: #475569;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 8px 14px;
  background: #f1f5f9;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.to-main a {
  display: inline-block;
  padding: 8px 12px;
  background-color: #f1f5f9;
  color: #475569;
  border-radius: 6px;
  transition: all 0.2s;
  text-decoration: none;
}
.to-main a:hover {
  background-color: #e2e8f0;
  color: #1e293b;
}
.invit-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 15px auto;
  padding: 0 15px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #334155;
}
.invit-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
  box-sizing: border-box;
}
.invit-card p.desc-text {
  font-size: 18px;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 16px 0;
}
.invit-title {
  font-size: 25px;
  font-weight: bold;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 12px;
  border-left: 5px solid var(--v-primary, #e11d48);
  padding-left: 12px;
}
/* 📊 數據統計欄 */
.entry-stats-bar {
  background: #f8fafc;
  padding: 5px;
  border-radius: 8px;
  text-align: center;
  color: #475569;
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 500;
  border: 1px solid #f1f5f9;
}
.entry-stats-bar .votes-highlight {
  color: var(--v-primary, #e11d48);
  font-weight: bold;
  font-size: 20px;
}
/* ✨ 作品主內文展現區 */
.rich-media-box {
  margin-top: 10px;
}
.entry-words {
  font-size: 18px;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 24px;
  word-break: break-all;
  white-space: pre-line;
  text-align: justify;
}
.m-media-item {
  max-width: 100%;
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.youtube-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: 10px;
}
.youtube-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* 🔗 外連影音卡片樣式 */
.v-social-link-card {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
  text-decoration: none;
  transition: all 0.2s;
  gap: 12px;
}
.v-social-link-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.v-social-link-card.fb-card {
  border-left: 4px solid #1877f2;
}
.v-social-link-card.tiktok-card {
  border-left: 4px solid #010101;
}
.v-social-icon {
  font-size: 24px;
}
.v-social-info {
  text-align: left;
}
.v-social-tag {
  display: block;
  font-weight: bold;
  font-size: 14px;
  color: #1e293b;
}
.v-social-action {
  font-size: 12px;
  color: #64748b;
}
/* 📋 投票規則說明盒 */
.v-vote-rules-box {
  background: #fff7ed;
  border: 1px solid #ffedd5;
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
}
.rules-header {
  font-weight: bold;
  color: #c2410c;
  margin-bottom: 10px;
  font-size: 22px;
}
.rules-list {
  padding-left: 0;
  margin: 0;
  list-style: none;
}
.rules-list li {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
  color: #4a4a4a;
}
.rules-list li::before {
  content: "●";
  color: #f97316;
  font-size: 12px;
  position: absolute;
  left: 4px;
  top: 0px;
}
.rules-list .highlight {
  color: var(--v-primary, #e11d48);
  font-weight: bold;
}
/* 網址與複製區塊 */
.url-block {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 12px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 13px;
  word-break: break-all;
  margin-bottom: 14px;
  color: #0f172a;
}
/* 🚀 按鈕核心群組 */
.btn-action {
  display: block;
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.2s;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}
.btn-action:hover {
  background: #1d4ed8;
}
.btn-vote-submit {
  display: block;
  background: var(--v-primary, #e11d48);
  color: #ffffff;
  border: none;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  transition: transform 0.1s, background 0.2s;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.35);
}
.btn-vote-submit:hover {
  background: #be123c;
}
.btn-vote-submit:active {
  transform: scale(0.98);
}
.btn-vote-submit:disabled {
  background: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-secondary {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: #f1f5f9;
  color: #1e293b;
}
/* 📱 模擬貼文排版 */
.post-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}
.post-tag {
  font-weight: bold;
  color: #b45309;
  font-size: 14px;
}
.post-content {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  padding: 12px;
  border-radius: 6px;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
  word-break: break-all;
}
/* 🏷️ 其他小元件 */
.vote-badge {
  display: inline-block;
  background: #fee2e2;
  color: #dc2626;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 8px;
}
/* ==========================================================================
   🚨 全局頂部警告提示元件 (方案 B 專用)
   ========================================================================== */
.custom-toast {
  position: fixed;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  /* 橫向完美居中 */
  background: rgba(225, 29, 72, 0.98);
  /* 鮮明且有質感的警告紅 */
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: bold;
  z-index: 10000;
  /* 層級開高，確保高於所有遮罩 */
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.3);
  border: 1px solid #fecdd3;
  letter-spacing: 0.5px;
  text-align: center;
  box-sizing: border-box;
  max-width: 90%;
  width: max-content;
  pointer-events: none;
  /* 穿透點擊，不影響下方操作 */
}
.toast-notice {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 14px;
  display: none;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.prize_list {
  background: linear-gradient(135deg, #fff5f5 0%, #fff0f2 100%);
  border: 1px solid #fecdd3;
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
  box-shadow: inset 0 1px 2px rgba(225, 29, 72, 0.05);
}
.prize_list .prize_title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
  color: #221801;
  font-size: 15px;
  margin: 10px;
}
.prize_list .prize {
  font-size: 14px;
  line-height: 1.6;
  color: #f29b04;
  font-weight: 500;
  background: #ffffff;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ffe4e6;
  margin-bottom: 30px;
}
@media (min-width: 751px) {
  .entry-stats-bar {
    font-size: 25px;
  }
  .entry-stats-bar .votes-highlight {
    font-size: 30px;
  }
}
