/* ============================================
   AI行程方案详情页样式 v2
   参考：滇东南环线7日自驾行程方案
   ============================================ */

.plan-detail-page {
  min-height: 100vh;
  background: var(--bg);
  padding-top: 72px;
}

/* ---------- Loading & Error ---------- */
.plan-loading,
.plan-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 40px 20px;
}

.plan-loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--sky-tint);
  border-top-color: var(--sky-light);
  border-radius: 50%;
  animation: plan-spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes plan-spin {
  to { transform: rotate(360deg); }
}

.plan-error h2 {
  font-family: var(--font-serif-cn);
  font-size: 28px;
  color: var(--slate);
  margin-bottom: 12px;
}

.plan-error p {
  color: var(--slate-light);
  margin-bottom: 24px;
  max-width: 420px;
}

/* ---------- Hero ---------- */
.plan-hero {
  position: relative;
  padding: 72px 20px 110px;
  text-align: center;
  overflow: hidden;
  background: var(--grad-sky);
}

.plan-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  filter: blur(2px);
}

.plan-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,132,199,0.92) 0%, rgba(14,165,233,0.88) 55%, rgba(56,189,248,0.82) 100%);
}

.plan-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  color: var(--white);
}

.plan-hero-tags {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 18px;
}

.plan-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.plan-hero-tag.status {
  background: rgba(16,185,129,0.25);
  border-color: rgba(16,185,129,0.4);
}

.plan-hero-tag.plan-no {
  background: rgba(59,130,246,0.2);
  border-color: rgba(59,130,246,0.4);
  color: #bfdbfe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.plan-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  display: inline-block;
}

.plan-hero-title {
  font-family: var(--font-serif-cn);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.plan-hero-subtitle {
  font-size: 17px;
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.plan-hero-route {
  font-size: 16px;
  font-weight: 500;
  opacity: 0.92;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.plan-hero-route .route-city {
  padding: 5px 14px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  font-size: 14px;
}

.plan-hero-route .route-arrow {
  opacity: 0.85;
}

.plan-hero-desc {
  font-size: 15px;
  opacity: 0.88;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Summary ---------- */
.plan-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--max-width);
  margin: -55px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 3;
}

.plan-summary-card {
  background: var(--white);
  border-radius: 20px;
  padding: 26px 18px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transition: transform 0.3s, box-shadow 0.3s;
}

.plan-summary-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.plan-summary-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: var(--sky-mist);
  color: var(--sky-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan-summary-icon svg {
  width: 24px;
  height: 24px;
}

.plan-summary-value {
  font-family: var(--font-serif-en);
  font-size: 24px;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

.plan-summary-value strong {
  font-size: 28px;
  font-weight: 700;
}

.plan-summary-value span {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-light);
}

.plan-summary-label {
  font-size: 13px;
  color: var(--slate-light);
  font-weight: 500;
}

/* ---------- Section Header ---------- */
.plan-section-header {
  text-align: center;
  margin-bottom: 44px;
}

.plan-section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-light);
  margin-bottom: 10px;
}

.plan-section-title {
  font-family: var(--font-serif-cn);
  font-size: clamp(26px, 3.5vw, 36px);
  color: var(--slate);
  font-weight: 700;
}

/* ---------- Itinerary ---------- */
.plan-itinerary {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 70px 20px 40px;
}

.plan-days {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.plan-day {
  background: var(--white);
  border-radius: 24px;
  padding: 28px 32px 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.plan-day-header-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.plan-day-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.plan-day-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif-en);
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(13,148,136,0.22);
}

.plan-day-label {
  font-size: 11px;
  color: var(--slate-lighter);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plan-day-header-text {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.plan-day-route {
  font-family: var(--font-serif-cn);
  font-size: 22px;
  font-weight: 700;
  color: var(--slate);
  line-height: 1.35;
  margin: 0;
}

.plan-day-title {
  font-family: var(--font-serif-cn);
  font-size: 22px;
  font-weight: 700;
  color: var(--slate);
  line-height: 1.35;
  margin: 0;
}

.plan-day-subtitle {
  font-size: 14px;
  color: var(--slate-light);
  margin: 6px 0 0;
  line-height: 1.6;
}

/* ---------- Day Sections ---------- */
.plan-day-section {
  margin-bottom: 22px;
}

.plan-day-section:last-of-type {
  margin-bottom: 0;
}

.plan-day-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-soft);
  margin-bottom: 12px;
}

.section-dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--amber);
  flex-shrink: 0;
}

.plan-day-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-day-bullets li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  line-height: 1.7;
  color: var(--slate-mid);
  font-size: 15px;
}

.plan-day-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--slate-mist);
}

.plan-day-hotel-bullets li::before {
  background: var(--violet-light);
}

/* ---------- Food tags ---------- */
.plan-day-foods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.plan-day-food {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--bg-warm);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-mid);
  border: 1px solid var(--border);
}

/* ---------- Tip ---------- */
.plan-day-tip {
  margin-top: 4px;
  padding: 14px 16px;
  background: var(--amber-tint);
  border-left: 4px solid var(--amber);
  border-radius: 0 12px 12px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.plan-day-tip-icon {
  color: var(--amber-deep);
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-day-tip-icon svg {
  width: 18px;
  height: 18px;
}

.plan-day-tip-text {
  font-size: 14px;
  color: var(--slate-mid);
  line-height: 1.7;
}

.plan-day-tip-text strong {
  color: var(--amber-deep);
  font-weight: 600;
}

/* ---------- General Tips ---------- */
.plan-tips {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.plan-tips .plan-section-title {
  color: var(--emerald);
}

.plan-tips-card {
  background: var(--white);
  border-radius: 24px;
  padding: 32px 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.plan-tips-icon {
  display: none;
}

.plan-tips-content ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.plan-tips-content li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 14px;
  line-height: 1.7;
  color: var(--slate-mid);
  font-size: 15px;
}

.plan-tips-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-light);
}

/* ---------- Reviews ---------- */
.plan-reviews {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 48px;
}

.plan-reviews-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.plan-reviews-score {
  font-family: var(--font-serif-en);
  font-size: 3rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}

.plan-reviews-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-reviews-stars {
  display: flex;
  gap: 2px;
}

.plan-reviews-count {
  font-size: 13px;
  color: var(--slate-light);
}

.plan-reviews-loading,
.plan-reviews-empty {
  padding: 24px 0;
  color: var(--slate-500);
  font-size: 14px;
  text-align: center;
}

.plan-review-card {
  background: var(--white);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border-sky);
  box-shadow: var(--shadow-sm);
}

.plan-review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.plan-review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  flex-shrink: 0;
}

.plan-review-info {
  flex: 1;
}

.plan-review-name {
  font-weight: 600;
  color: var(--slate);
  font-size: 14px;
}

.plan-review-time {
  font-size: 12px;
  color: var(--slate-lighter);
  margin-top: 2px;
}

.plan-review-stars {
  display: flex;
  gap: 2px;
}

.plan-review-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate-mid);
  margin: 0;
}

@media (max-width: 768px) {
  .plan-reviews-summary { flex-direction: column; text-align: center; gap: 12px; }
}

/* ---------- CTA ---------- */
.plan-cta {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* 互动面板：移入正文容器后需自行约束宽度，与上方内容对齐 */
.plan-detail-page .interaction-panel {
  max-width: var(--max-width);
  margin: 40px auto 80px;
  padding-left: 32px;
  padding-right: 32px;
}

.plan-cta-card {
  background: linear-gradient(135deg, var(--sky-mist), var(--white));
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
  border: 1px solid var(--border-sky);
  box-shadow: var(--shadow-sky);
}

.plan-cta-card h3 {
  font-family: var(--font-serif-cn);
  font-size: 28px;
  color: var(--slate);
  margin-bottom: 12px;
}

.plan-cta-card p {
  color: var(--slate-light);
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.plan-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.plan-cta-actions .btn-primary,
.plan-cta-actions .btn-secondary {
  padding: 14px 32px;
  font-size: 15px;
  border-radius: 100px;
}

/* ---------- Reveal animation ---------- */
.plan-day.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.plan-day.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .plan-summary {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .plan-hero {
    padding: 56px 20px 90px;
  }

  .plan-hero-subtitle {
    font-size: 15px;
  }

  .plan-summary {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: -40px;
  }

  .plan-summary-card {
    padding: 20px 12px;
  }

  .plan-summary-icon {
    width: 42px;
    height: 42px;
  }

  .plan-summary-icon svg {
    width: 20px;
    height: 20px;
  }

  .plan-summary-value {
    font-size: 18px;
  }

  .plan-summary-value strong {
    font-size: 22px;
  }

  .plan-day {
    padding: 22px 20px 24px;
  }

  .plan-day-header-row {
    gap: 12px;
    margin-bottom: 20px;
  }

  .plan-day-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .plan-day-route {
    font-size: 18px;
  }

  .plan-day-title {
    font-size: 18px;
  }

  .plan-day-subtitle {
    font-size: 13px;
  }

  .plan-day-section {
    margin-bottom: 18px;
  }

  .plan-day-section-title {
    font-size: 14px;
  }

  .plan-day-bullets li {
    font-size: 14px;
  }

  .plan-tips-card {
    flex-direction: column;
  }

  .plan-cta-actions {
    flex-direction: column;
  }

  .plan-cta-actions .btn-primary,
  .plan-cta-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .plan-summary {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .plan-summary-value strong {
    font-size: 20px;
  }

  .plan-summary-value span {
    font-size: 12px;
  }
}

/* 英文版异步翻译中提示条 */
.plan-en-pending-banner {
  display: none;
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(13, 148, 136, 0.10);
  border: 1px solid rgba(13, 148, 136, 0.35);
  color: #0d9488;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
:root[data-theme="dark"] .plan-en-pending-banner {
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.40);
  color: #5eead4;
}
