/**
 * spot-interact.css —— 景点详情页「互动操作栏」+「游客留言」模块样式
 * ---------------------------------------------------------------------------
 * 视觉沿用站点既有变量（--primary #193B38 / --earth / --radius-*），
 * 浅色国风卡片风格，与基础信息、贴士板块一致；不改变原有区块布局。
 */

/* ============================== 互动操作栏 ============================== */
.spot-act {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--gray-200, #E5E7EB);
}
.act-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 9999px; cursor: pointer;
  font-family: inherit; font-size: 14.5px; font-weight: 500;
  color: var(--primary, #193B38);
  background: #fff; border: 1.5px solid rgba(181, 43, 67, .38);
  transition: transform .3s var(--ease-smooth, ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.act-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.act-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(181, 43, 67, .16); background: #FFF8F9; }
.act-btn:disabled { opacity: .65; cursor: default; transform: none; box-shadow: none; }
/* 已收藏：实心红心 */
.act-btn.is-on { background: linear-gradient(135deg, var(--primary, #193B38), var(--primary-dark, #122A28)); color: #fff; border-color: transparent; }
.act-btn.is-on svg { fill: #fff; stroke: #fff; }
/* 已打卡：绿色对勾 */
.act-btn.is-checked { color: #1F8A4C; border-color: rgba(31, 138, 76, .42); background: #F2FBF5; }
.act-btn.is-checked svg { stroke: #1F8A4C; }
.act-tip { font-size: 13px; color: var(--gray-500, #6B7280); }
.act-tip a { color: var(--primary, #193B38); text-decoration: underline; }

/* 按钮内的小转圈 */
.act-btn .act-spin {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: actSpin .7s linear infinite;
}
@keyframes actSpin { to { transform: rotate(360deg); } }

/* ============================== 游客留言 ============================== */
.spot-msg__count { font-size: 13px; color: var(--gray-500, #6B7280); margin-left: 10px; }
.msg-list { display: grid; gap: 14px; margin-bottom: 26px; }
.msg-item {
  display: flex; gap: 14px; padding: 18px 20px;
  background: #fff; border: 1px solid var(--gray-200, #E5E7EB);
  border-radius: var(--radius-card, .75rem); box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease-smooth, ease), box-shadow .3s;
}
.msg-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.msg-item__av {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px;
  background: linear-gradient(135deg, var(--accent, #D8B474), var(--primary, #193B38));
}
.msg-item__body { min-width: 0; flex: 1; }
.msg-item__hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.msg-item__name { font-weight: 600; color: var(--dark, #1F2937); font-size: 15px; }
.msg-item__time { font-size: 12.5px; color: var(--gray-400, #9CA3AF); }
.msg-item__txt { margin: 8px 0 0; font-size: 15px; line-height: 1.75; color: var(--gray-600, #4B5563); white-space: pre-wrap; word-break: break-word; }
.msg-empty {
  padding: 42px 20px; text-align: center; color: var(--gray-500, #6B7280);
  background: #fff; border: 1px dashed var(--gray-300, #D1D5DB); border-radius: var(--radius-card, .75rem);
  font-size: 15px;
}
.msg-empty span { display: block; margin-top: 8px; font-size: 13px; color: var(--gray-400, #9CA3AF); }
.msg-form { background: #fff; border: 1px solid var(--gray-200, #E5E7EB); border-radius: var(--radius-card, .75rem); padding: 18px 20px; box-shadow: var(--shadow-card); }
.msg-form textarea {
  width: 100%; min-height: 104px; resize: vertical; padding: 14px 16px;
  border: 1.5px solid var(--gray-200, #E5E7EB); border-radius: .625rem; background: #FCFCFD;
  font-family: inherit; font-size: 15px; line-height: 1.7; color: var(--dark, #1F2937); outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.msg-form textarea:focus { border-color: var(--primary, #193B38); background: #fff; box-shadow: 0 0 0 4px rgba(181, 43, 67, .1); }
.msg-form__ft { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 13px; flex-wrap: wrap; }
.msg-form__hint { font-size: 12.5px; color: var(--gray-500, #6B7280); }
.msg-send {
  padding: 11px 30px; border: 0; border-radius: 9999px; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600; color: #fff; letter-spacing: 1px;
  background: linear-gradient(135deg, var(--primary, #193B38), var(--primary-dark, #122A28));
  box-shadow: var(--shadow-btn, 0 4px 14px rgba(181, 43, 67, .3));
  transition: transform .28s var(--ease-smooth, ease), box-shadow .28s;
}
.msg-send:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(181, 43, 67, .34); }
.msg-send:disabled { opacity: .7; cursor: default; transform: none; }
/* 待审核标记 */
.msg-item.is-pending { background: #FFFCF5; border-style: dashed; border-color: rgba(139, 90, 43, .3); }
.msg-tag {
  display: inline-block; padding: 1px 9px; border-radius: 9999px; font-size: 11.5px;
  color: var(--earth, #8B5A2B); background: rgba(139, 90, 43, .1); border: 1px solid rgba(139, 90, 43, .24);
}
.msg-tag--no { color: #B91C1C; background: #FEF2F2; border-color: #FECACA; }

@media (max-width: 560px) {
  .spot-act { gap: 10px; }
  .act-btn { padding: 9px 16px; font-size: 14px; }
  .msg-item { padding: 15px 16px; gap: 11px; }
  .msg-item__av { width: 36px; height: 36px; font-size: 13px; }
  .msg-send { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .act-btn, .msg-item, .msg-send { transition: none; }
  .act-btn .act-spin { animation: none; }
}

/* 游客留言：默认折叠 —— 明显的展开按钮 */
.gb-fold {
    margin: .2rem 0 0; border: 1px solid rgba(31, 61, 54, .16);
    border-radius: 14px; background: #FFFCF6; overflow: hidden;
    transition: border-color .3s, box-shadow .3s;
}
.gb-fold:hover { border-color: rgba(31, 61, 54, .3); box-shadow: 0 6px 20px -14px rgba(31, 61, 54, .5); }
.gb-fold summary {
    display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
    cursor: pointer; list-style: none; padding: 1.05rem 1.25rem;
    background: linear-gradient(90deg, rgba(216, 180, 116, .14), rgba(255, 252, 246, 0) 62%);
}
.gb-fold summary::-webkit-details-marker { display: none; }
.gb-fold__t {
    font-family: "Noto Serif SC", "Songti SC", STSong, serif;
    font-size: clamp(1.1rem, 1.9vw, 1.35rem); letter-spacing: .1em; color: #1f3d36;
    display: inline-flex; align-items: baseline; gap: .35rem;
}
.gb-fold__hint { font-size: .8rem; color: #6b7770; }
.gb-fold__cta {
    margin-left: auto; display: inline-flex; align-items: center; gap: .5rem;
    background: #1f3d36; color: #F6F1E7;
    font-size: .84rem; letter-spacing: .08em;
    padding: .55rem 1.05rem; border-radius: 999px;
    transition: background .25s, transform .25s, box-shadow .25s;
    box-shadow: 0 8px 18px -12px rgba(31, 61, 54, .8);
}
.gb-fold:hover .gb-fold__cta { background: #274d44; transform: translateY(-1px); }
.gb-fold__caret {
    width: .5rem; height: .5rem; border-right: 1.5px solid #D8B474; border-bottom: 1.5px solid #D8B474;
    transform: rotate(45deg) translateY(-1px); transition: transform .3s;
}
.gb-fold .t-close { display: none; }
.gb-fold[open] .t-open { display: none; }
.gb-fold[open] .t-close { display: inline; }
.gb-fold[open] .gb-fold__caret { transform: rotate(-135deg) translateY(-1px); }
.gb-fold[open] summary {
    border-bottom: 1px solid rgba(31, 61, 54, .1);
    background: linear-gradient(90deg, rgba(216, 180, 116, .16), rgba(255, 252, 246, 0) 60%);
}
.gb-fold[open] .gb-fold__cta { background: #6b7770; box-shadow: none; }
.gb-fold .msg-list, .gb-fold .gb-body { padding: 0 1.25rem 1rem; }
.gb-fold .msg-list { margin-top: .6rem; }
@media (max-width: 560px) {
    .gb-fold summary { padding: .9rem 1rem; gap: .45rem; }
    .gb-fold__hint { order: 3; width: 100%; font-size: .74rem; }
    .gb-fold__cta { font-size: .78rem; padding: .48rem .85rem; }
}
