/* ===== 攻略详情页 ===== */
.guide-header {
  background: var(--gradient);
  color: var(--white); padding: 24px 16px; margin: 0 -16px;
  border-radius: 0 0 24px 24px;
}
.guide-header h1 { font-size: 20px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.3px; }
.guide-header .meta { font-size: 12px; opacity: .8; display: flex; gap: 12px; align-items: center; }
.guide-header .cover { width: 100%; height: 200px; object-fit: cover; border-radius: 16px; margin-top: 12px; }

/* Tab 切换 */
.guide-tabs {
  display: flex; background: var(--white); position: sticky; top: 52px; z-index: 50;
  border-bottom: 1px solid #f0f0f0; gap: 0;
}
.guide-tabs .tab {
  flex: 1; padding: 14px 8px; text-align: center; font-size: 14px;
  color: var(--text-hint); cursor: pointer; font-weight: 500;
  border-bottom: 2px solid transparent; transition: color .2s, border-bottom-color .2s;
}
.guide-tabs .tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.tab-content { display: none; padding: 16px 0; }
.tab-content.active { display: block; }

/* 评论区 */
.comment-list { padding: 0; }
.comment-item { display: flex; gap: 10px; padding: 14px 0; border-bottom: 1px solid #f5f5f5; }
.comment-item .content { flex: 1; }
.comment-item .content .name { font-size: 13px; font-weight: 600; color: var(--text); }
.comment-item .content .text { font-size: 13px; color: var(--text-sub); margin-top: 3px; line-height: 1.5; }
.comment-item .content .time { font-size: 11px; color: var(--text-hint); margin-top: 4px; }

/* 编辑页 */
.edit-section {
  background: var(--white); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.edit-section h3 { font-size: 15px; margin-bottom: 12px; font-weight: 700; }

.node-form { background: #f9f9fb; border-radius: var(--radius-sm); padding: 12px; margin-bottom: 12px; }
.node-form .row { display: flex; gap: 8px; margin-bottom: 8px; }
.node-form .row > * { flex: 1; }

/* 分享落地页 */
.share-cover { width: 100%; height: 240px; object-fit: cover; }
.share-info { padding: 20px 16px; }
.share-info h1 { font-size: 22px; margin-bottom: 8px; }
.share-cta { padding: 16px; }

/* ===== 投票组件 ===== */
.vote-options { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; }
.vote-option {
  display: flex; align-items: center; gap: 12px;
  background: #f8f9fa; border: 2px solid #f0f0f0; border-radius: 12px;
  padding: 12px 16px; cursor: pointer; transition: border-color .2s, background .2s;
}
.vote-option:hover { border-color: var(--primary); background: var(--primary-light); }
.vote-option.voted { border-color: var(--primary); background: var(--primary-light); }
.vote-option .vote-icon { font-size: 20px; }
.vote-option .vote-text { flex: 1; }
.vote-option .vote-text .label { font-size: 14px; font-weight: 600; }
.vote-option .vote-text .count { font-size: 12px; color: var(--text-hint); margin-top: 2px; }
.vote-bar-wrap { flex: 1; height: 6px; background: #f0f0f0; border-radius: 3px; overflow: hidden; }
.vote-bar {
  height: 100%; border-radius: 3px; transition: width .5s ease;
  background: linear-gradient(90deg, var(--primary), #a78bfa);
}
.vote-label { font-size: 13px; color: var(--text-sub); min-width: 40px; text-align: right; }

/* ===== 节点卡片 ===== */
.node-card {
  background: var(--white);
  border-radius: 14px;
  padding: 13px;
  margin-bottom: 10px;
  border: 1px solid rgba(14, 124, 134, .09);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.node-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
}
.node-card .node-type {
  display: inline-block; font-size: 11px; padding: 3px 8px; border-radius: 999px;
  color: #fff; font-weight: 900; margin-bottom: 7px;
}
.node-card .node-type.food { background: #E11D48; }
.node-card .node-type.hotel { background: #D97706; }
.node-card .node-type.transport { background: #2563EB; }
.node-card .node-type.attraction { background: var(--primary); }
.node-card .node-type.activity { background: #7C3AED; }
.node-card .node-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.node-card .node-time {
  font-size: 12px; color: var(--primary-dark); margin-left: 8px; font-weight: 900;
  background: var(--primary-light); padding: 3px 7px; border-radius: 999px;
}
.node-card .node-head .node-time { margin-left: 0; }
.node-image-wrap {
  position: relative;
  margin: -13px -13px 12px;
  height: 150px;
  overflow: hidden;
  background: #DDEAE6;
}
.node-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.node-image-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}
.node-seq {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  min-width: 42px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(23, 33, 31, .72);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}
.node-card .node-title { font-size: 15px; font-weight: 900; color: var(--text); line-height: 1.4; }
.node-card .node-desc { font-size: 13px; color: var(--text-sub); margin-top: 5px; line-height: 1.55; }
.node-card .node-location {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 12px; color: var(--text-sub); margin-top: 6px;
  background: #F4F8F6; border-radius: 8px; padding: 6px 8px;
}
.node-card .node-location a {
  color: var(--primary);
  font-weight: 900;
}
.node-distance {
  color: var(--accent);
  font-weight: 900;
}
.node-card .node-cost { font-size: 14px; color: var(--accent); font-weight: 900; margin: 6px 0; }
.node-card .node-extra { margin-top: 8px; font-size: 13px; color: var(--text-sub); line-height: 1.8; }
.node-card .node-must { color: var(--success); }
.node-card .node-avoid { color: var(--accent); }
.node-card .node-prices { font-weight: 600; color: var(--text); }
.node-card .node-tips {
  margin-top: 8px; padding: 9px 10px; background: #ECFDF5;
  border-radius: 10px; font-size: 12px; color: #166534; line-height: 1.6;
  border: 1px solid rgba(22, 163, 74, .14);
}
.node-card .node-warns {
  margin-top: 6px; padding: 9px 10px; background: var(--accent-light);
  border-radius: 10px; font-size: 12px; color: #9A3412; line-height: 1.6;
  border: 1px solid rgba(249, 115, 22, .16);
}
.node-card .node-discount { margin-top: 4px; font-size: 12px; color: #e67e22; }
.node-card .node-backup { margin-top: 4px; font-size: 12px; color: #3498db; }
.transport-opt { padding: 4px 0; font-size: 13px; }
.transport-opt.recommended { color: var(--success); font-weight: 600; }

/* ===== 群聊 ===== */
.chat-container { padding: 0; }
.chat-messages {
  height: 300px; overflow-y: auto; padding: 12px;
  background: #f7f8fa; border-radius: var(--radius-sm);
}
.chat-msg { margin-bottom: 12px; display: flex; gap: 8px; }
.chat-msg .bubble {
  background: var(--white); padding: 8px 12px; border-radius: 12px;
  font-size: 13px; max-width: 70%; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.chat-msg .bubble .name { font-size: 11px; color: var(--primary); font-weight: 600; margin-bottom: 2px; }
.chat-form { display: flex; gap: 8px; margin-top: 8px; }
.chat-form input { flex: 1; }
