/* =========================
 Components / 全站共用元件
 ========================= */

/* 共用卡片 */
.panel {
  background: #fff8ec;
  border: 2px solid rgba(92, 52, 28, 0.14);
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(92, 52, 28, 0.12);
  padding: 20px;
}

/* 共用小卡 */
.soft-card {
  background: linear-gradient(180deg, #f9efdc 0%, #f4e2bf 100%);
  border: 2px solid rgba(92, 52, 28, 0.12);
  border-radius: 20px;
  padding: 16px;
}

/* 共用按鈕列 */
.button-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 2026-10-14: low-emphasis text-only action (e.g. 登出) — never the
   heavy filled-pill .btn look, usable anywhere components.css is linked. */
.text-btn {
  background: none;
  border: none;
  padding: 4px 6px;
  color: #7a3f22;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  min-width: 0;
}

.text-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* 2026-10-14: admin.html top row (logged-in email + logout) */
.admin-topbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 8px;
}

.admin-topbar #adminLogoutBtn {
  margin-left: auto;
}

/* PROD-RELEASE-DAY3C: minimal admin backend list rows */
.admin-list {
  list-style: none;
  margin: 12px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: #fff8ec;
  border: 1px solid rgba(92, 52, 28, 0.14);
  border-radius: 12px;
  padding: 10px 14px;
}

/* 共用 badge */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #7a3f22;
  color: #f7e2b6;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(92, 52, 28, 0.14);
}

/* Hero 主視覺卡 */
.hero-card {
  background: linear-gradient(180deg, #efdcb6 0%, #e3c78f 100%);
  border: 2px solid rgba(92, 52, 28, 0.18);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(92, 52, 28, 0.14);
  padding: 28px 24px;
  text-align: center;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #7a3f22;
  color: #f7e2b6;
  border: 1px solid rgba(92, 52, 28, 0.14);
  font-size: 12px;
  font-weight: 700;
}

.hero-title {
  margin: 0 0 12px;
  color: #4a2416;
  font-size: 34px;
  line-height: 1.25;
}

.hero-desc {
  margin: 0 auto 18px;
  max-width: 720px;
  color: #5a3422;
  line-height: 1.8;
  font-size: 16px;
}

/* 入口卡 */
.entry-card {
  background: #fff8ec;
  border: 2px solid rgba(92, 52, 28, 0.14);
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(92, 52, 28, 0.12);
  padding: 20px;
}

.entry-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f2ddba 0%, #e7c98c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.entry-title {
  margin: 0 0 8px;
  color: #4a2416;
  font-size: 22px;
  text-align: center;
}

.entry-desc {
  margin: 0 0 14px;
  color: #5a3422;
  line-height: 1.7;
  text-align: center;
  min-height: 72px;
}

/* 功能亮點項目 */
.feature-item {
  background: linear-gradient(180deg, #fff8ec 0%, #f6e6c6 100%);
  border: 2px solid rgba(92, 52, 28, 0.12);
  border-radius: 20px;
  padding: 16px;
}

.feature-title {
  margin: 0 0 8px;
  color: #4a2416;
  font-size: 18px;
}

.feature-text {
  margin: 0;
  color: #5a3422;
  line-height: 1.7;
}

/* 更新紀錄列表 */
.update-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.update-item {
  background: linear-gradient(180deg, #fff8ec 0%, #f7e8c9 100%);
  border: 2px solid rgba(92, 52, 28, 0.12);
  border-radius: 18px;
  padding: 14px 16px;
}

.update-date {
  display: inline-block;
  margin-bottom: 6px;
  color: #8b5d2a;
  font-size: 13px;
  font-weight: 700;
}

.update-text {
  margin: 0;
  color: #5a3422;
  line-height: 1.7;
}

/* 導流小提醒 */
.notice-box {
  background: linear-gradient(180deg, #fff8ec 0%, #f5e5c5 100%);
  border: 2px dashed rgba(122, 63, 34, 0.35);
  border-radius: 20px;
  padding: 16px;
  color: #5a3422;
  line-height: 1.8;
  text-align: center;
}

/* 手機版 */
@media (max-width: 900px) {
  .panel,
  .soft-card,
  .entry-card,
  .feature-item,
  .update-item,
  .notice-box {
    padding: 14px;
  }

  .hero-card {
    padding: 22px 16px;
    border-radius: 22px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-desc {
    font-size: 14px;
    line-height: 1.7;
  }

  .entry-title {
font-size: 20px;
  }

  .entry-desc,
  .feature-text,
  .update-text,
  .notice-box {
    font-size: 14px;
  }

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