/* ============================================================
   InterContinental brand palette (from official brand guide)
   洲際黑 Pantone Black 7C  #3D3935
   燙金    Foilco 6381       gradient #A98842 → #EFDDA0
   白色    #FFFFFF
   粉色    Pantone 4745 U    #C9ACA0
   淺灰    Pantone Cool Grey 1 U  #E4E1DC
   深灰    Pantone 426 U     #5C5651
   ============================================================ */
:root {
  --ic-black: #3D3935;
  --ic-gold: #B99149;
  --ic-gold-light: #EFDDA0;
  --ic-gold-grad: linear-gradient(135deg, #A98842 0%, #D9BC72 40%, #EFDDA0 55%, #C7A85E 75%, #A98842 100%);
  --ic-white: #FFFFFF;
  --ic-pink: #C9ACA0;
  --ic-grey-light: #E4E1DC;
  --ic-grey-dark: #5C5651;
  --serif: "Cormorant Garamond", "Noto Serif TC", serif;
  --sans: "Noto Sans TC", -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sans); background: #F7F5F2; color: var(--ic-black); min-height: 100vh; }
.serif { font-family: var(--serif); letter-spacing: .18em; }
.hidden { display: none !important; }

/* ---------- header ---------- */
.topbar {
  background: var(--ic-black); color: var(--ic-white);
  padding: 22px 36px 18px; display: flex; justify-content: space-between; align-items: center;
}
.brand-line { width: 72px; height: 2px; background: var(--ic-gold-grad); margin-bottom: 10px; }
.topbar h1 { font-size: 22px; font-weight: 500; letter-spacing: .2em; }
.brand-sub { color: var(--ic-gold-light); font-family: var(--serif); letter-spacing: .3em; }
.brand-tag { color: var(--ic-grey-light); font-size: 12.5px; margin-top: 6px; font-weight: 300; letter-spacing: .12em; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.countdown { font-family: var(--serif); color: var(--ic-gold-light); font-size: 15px; letter-spacing: .08em; text-align: right; }
.lang-toggle {
  background: transparent; color: var(--ic-gold-light); border: 1px solid var(--ic-gold);
  padding: 7px 16px; cursor: pointer; font-size: 13px; letter-spacing: .1em; transition: .2s;
}
.lang-toggle:hover { background: var(--ic-gold); color: var(--ic-black); }

/* ---------- reminder banner ---------- */
.reminder-banner {
  background: var(--ic-gold-grad); color: var(--ic-black); font-weight: 500;
  padding: 12px 36px; font-size: 14.5px; display: flex; gap: 14px; align-items: center;
}

/* ---------- tabs ---------- */
.tabs { display: flex; background: var(--ic-white); border-bottom: 1px solid var(--ic-grey-light); padding: 0 24px; }
.tab {
  background: none; border: none; padding: 15px 22px; font-size: 14.5px; cursor: pointer;
  color: var(--ic-grey-dark); font-family: var(--sans); border-bottom: 2px solid transparent; transition: .2s;
}
.tab:hover { color: var(--ic-black); }
.tab.active { color: var(--ic-black); border-bottom-color: var(--ic-gold); font-weight: 500; }

/* ---------- layout ---------- */
main { max-width: 1180px; margin: 28px auto; padding: 0 24px; }
.grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--ic-white); border: 1px solid var(--ic-grey-light); padding: 28px; box-shadow: 0 1px 3px rgba(61,57,53,.05); }
.card.narrow { max-width: 560px; }
.card h2 { font-size: 17px; font-weight: 500; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.card h3 { font-size: 15px; font-weight: 500; margin: 22px 0 10px; }
.step-num {
  display: inline-flex; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ic-black); color: var(--ic-gold-light); font-family: var(--serif);
  align-items: center; justify-content: center; font-size: 14px; flex: none;
}
.hint { font-size: 13px; color: var(--ic-grey-dark); margin-bottom: 14px; line-height: 1.6; }
.empty { color: var(--ic-grey-dark); font-size: 14px; padding: 40px 10px; text-align: center; border: 1px dashed var(--ic-grey-light); }

/* ---------- inputs ---------- */
.row { display: flex; gap: 10px; }
input, select, textarea {
  font-family: var(--sans); font-size: 14px; color: var(--ic-black);
  border: 1px solid var(--ic-grey-light); background: #FCFBFA; padding: 10px 12px; width: 100%;
  outline: none; transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--ic-gold); }
#hotelCode { text-transform: lowercase; letter-spacing: .3em; font-family: var(--serif); font-size: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--ic-grey-dark); margin-bottom: 6px; letter-spacing: .04em; }
textarea { resize: vertical; line-height: 1.7; }

/* ---------- buttons ---------- */
.btn {
  border: none; cursor: pointer; font-family: var(--sans); font-size: 14px;
  padding: 11px 20px; letter-spacing: .06em; transition: .2s; white-space: nowrap;
}
.btn.gold { background: var(--ic-gold-grad); color: var(--ic-black); font-weight: 500; }
.btn.gold:hover { filter: brightness(1.06); box-shadow: 0 2px 10px rgba(185,145,73,.4); }
.btn.dark { background: var(--ic-black); color: var(--ic-gold-light); }
.btn.dark:hover { background: #2b2825; }
.btn.outline { background: transparent; border: 1px solid var(--ic-grey-dark); color: var(--ic-grey-dark); }
.btn.outline:hover { border-color: var(--ic-black); color: var(--ic-black); }
.btn.big { width: 100%; padding: 14px; font-size: 15px; margin-top: 8px; }
.btn:disabled { opacity: .5; cursor: wait; }
.mini-btn {
  background: var(--ic-grey-light); border: none; padding: 4px 12px; font-size: 12px;
  cursor: pointer; color: var(--ic-black); transition: .2s;
}
.mini-btn:hover { background: var(--ic-gold-light); }

/* ---------- hotel profile ---------- */
.hotel-profile {
  margin-top: 14px; padding: 16px; background: #FBF8F2; border-left: 3px solid var(--ic-gold);
  font-size: 13.5px; line-height: 1.7;
}
.hotel-profile .h-name { font-family: var(--serif); font-size: 17px; letter-spacing: .06em; }
.hotel-profile .h-city { color: var(--ic-grey-dark); font-size: 12.5px; margin-bottom: 8px; }
.hotel-profile ul { margin: 6px 0 0 18px; }
.warn { color: #A0522D; font-size: 12.5px; margin-top: 8px; }

/* ---------- post result ---------- */
.post-block { margin-bottom: 16px; }
.post-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.pill {
  background: var(--ic-black); color: var(--ic-gold-light); font-size: 11.5px;
  padding: 3px 12px; letter-spacing: .1em; border-radius: 2px;
}
.image-idea {
  background: #F3EEE6; padding: 12px 14px; font-size: 13px; color: var(--ic-grey-dark);
  border-left: 3px solid var(--ic-pink); margin-bottom: 16px; line-height: 1.6;
}
.review-bar { display: flex; gap: 10px; margin-bottom: 14px; }
.review-panel { background: #FBF8F2; border: 1px solid var(--ic-grey-light); padding: 16px; margin-bottom: 8px; }
.scores { display: flex; gap: 18px; margin-bottom: 12px; }
.score { text-align: center; flex: 1; }
.score .val { font-family: var(--serif); font-size: 30px; color: var(--ic-gold); }
.score .val.low { color: #A0522D; }
.score .lbl { font-size: 12px; color: var(--ic-grey-dark); }
.review-panel ul { margin-left: 18px; font-size: 13.5px; line-height: 1.8; }
.verdict { font-size: 13px; margin-bottom: 8px; font-weight: 500; }
.publish-row { display: flex; gap: 10px; flex-wrap: wrap; }
.sched-form { display: flex; gap: 10px; margin-top: 12px; }

/* ---------- schedule list ---------- */
.sched-item {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  border: 1px solid var(--ic-grey-light); padding: 14px 16px; margin-bottom: 10px; background: #FCFBFA;
}
.sched-item.due { border-left: 4px solid var(--ic-gold); background: #FBF6EA; }
.sched-item.posted { opacity: .55; }
.sched-meta { font-size: 13.5px; line-height: 1.6; min-width: 0; }
.sched-meta .when { font-family: var(--serif); font-size: 15px; letter-spacing: .04em; }
.sched-meta .preview { color: var(--ic-grey-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 520px; }
.sched-actions { display: flex; gap: 8px; flex: none; }

/* ---------- assets ---------- */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.asset-grid a { display: block; border: 1px solid var(--ic-grey-light); text-decoration: none; color: var(--ic-black); transition: .2s; }
.asset-grid a:hover { border-color: var(--ic-gold); box-shadow: 0 2px 10px rgba(61,57,53,.12); }
.asset-grid img, .asset-grid video { width: 100%; height: 120px; object-fit: cover; display: block; }
.asset-grid .a-name { font-size: 12px; padding: 8px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- chips ---------- */
.gap-top { margin-top: 24px; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--ic-grey-light); background: #FCFBFA; color: var(--ic-grey-dark);
  padding: 9px 16px; font-size: 13.5px; cursor: pointer; font-family: var(--sans);
  transition: .18s; letter-spacing: .03em;
}
.chip:hover { border-color: var(--ic-gold); color: var(--ic-black); }
.chip.active {
  background: var(--ic-black); color: var(--ic-gold-light); border-color: var(--ic-black);
  box-shadow: 0 2px 8px rgba(61,57,53,.25);
}
.chip-ico {
  font-family: var(--serif); font-weight: 600; font-size: 14px;
  display: inline-flex; width: 20px; height: 20px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: var(--ic-gold-grad); color: var(--ic-black); flex: none;
}

/* ---------- generated image ---------- */
.image-result { margin-top: 12px; }
.image-result img { width: 100%; max-height: 380px; object-fit: cover; border: 1px solid var(--ic-grey-light); display: block; }
.image-result .btn { text-decoration: none; display: inline-block; }

/* ---------- quick-start strip ---------- */
.quickstart {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  background: var(--ic-black); color: var(--ic-grey-light);
  padding: 14px 20px; margin-bottom: 14px; font-size: 13.5px; letter-spacing: .05em;
}
.qs-step { display: inline-flex; align-items: center; gap: 8px; }
.qs-num {
  display: inline-flex; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ic-gold-grad); color: var(--ic-black); font-family: var(--serif);
  align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex: none;
}
.qs-arrow { color: var(--ic-gold); font-size: 15px; }

/* ---------- incentive card (collapsible) ---------- */
.incentive {
  background: linear-gradient(135deg, #FBF6EA 0%, #FFFFFF 60%);
  border: 1px solid var(--ic-gold); border-left: 4px solid var(--ic-gold);
  margin-bottom: 22px; color: var(--ic-black);
  box-shadow: 0 1px 6px rgba(185,145,73,.15);
}
.incentive-head {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  background: none; border: none; cursor: pointer; font-family: var(--sans);
  padding: 13px 20px; font-size: 14px; font-weight: 500; color: var(--ic-black); letter-spacing: .03em;
}
.incentive-head:hover { background: rgba(185,145,73,.08); }
.incentive-body {
  padding: 4px 20px 16px; font-size: 13.5px; line-height: 1.9; white-space: pre-line;
  border-top: 1px dashed var(--ic-gold-light);
}

/* ---------- step feedback ---------- */
.step-num.done { background: var(--ic-gold-grad); color: var(--ic-black); font-weight: 700; }
.sel-count { font-size: 12px; color: var(--ic-gold); font-weight: 400; letter-spacing: .05em; }
.code-hint b { color: var(--ic-gold); font-weight: 600; }
.gen-hint { text-align: center; margin-top: 8px; }
.btn.gold:disabled { filter: grayscale(.55) opacity(.6); box-shadow: none; cursor: not-allowed; }

/* ---------- misc ---------- */
.saved-msg { color: #2E7D32; font-size: 13.5px; margin-top: 10px; }
footer {
  text-align: center; color: var(--ic-grey-dark); font-size: 11px; letter-spacing: .15em;
  padding: 30px 0 40px;
}
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--ic-black); color: var(--ic-gold-light); padding: 12px 26px;
  font-size: 14px; letter-spacing: .05em; box-shadow: 0 4px 18px rgba(0,0,0,.25); z-index: 99;
}
.spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
