/* ===== my-plan.html 专属样式 ===== */

/* 辅助类 */
.text-gray {
  color: #8B8B8B;
}

.text-sm {
  font-size: 14px;
}

.mt-24 {
  margin-top: 24px;
}

/* ===== 方案页面整体 ===== */
.plan-container {
  min-height: 100vh;
  padding: 84px 20px 60px;
  background: linear-gradient(180deg, #FAF7F2 0%, #F0EDE6 100%);
}

.plan-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

/* ===== 加载状态 ===== */
.loading {
  text-align: center;
  padding: 80px 20px;
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid #E8E4DC;
  border-top-color: #4A7C59;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

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

/* ===== 查询表单 ===== */
.query-box {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.query-box h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #2C3E2D;
}

.query-box p {
  font-size: 14px;
  color: #8B8B8B;
  margin-bottom: 32px;
  line-height: 1.8;
}

.query-input-group {
  display: flex;
  gap: 10px;
}

.query-input-group input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid #D5CFC4;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
  background: #fff;
}

.query-input-group input:focus {
  border-color: #4A7C59;
}

.query-input-group button {
  padding: 14px 28px;
  background: #4A7C59;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s;
}

.query-input-group button:hover {
  background: #2D5A3D;
}

/* ===== 未找到 ===== */
.not-found {
  text-align: center;
  padding: 60px 20px;
}

.not-found .icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.not-found h3 {
  font-size: 20px;
  color: #2C3E2D;
  margin-bottom: 12px;
}

.not-found p {
  font-size: 14px;
  color: #8B8B8B;
  line-height: 1.8;
}

/* ===== 方案头部 — 个人专属 ===== */
.plan-header {
  text-align: center !important;
  margin-bottom: 36px;
  display: block !important;
}

.plan-header .greeting {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 28px;
  color: #2C3E2D;
  margin-bottom: 12px;
  letter-spacing: 2px;
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

.plan-header .subtitle {
  font-size: 14px;
  color: #8B8B8B;
  letter-spacing: 1px;
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.plan-header .divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4A7C59, transparent);
  margin: 20px auto;
}

/* ===== 每日必做 ===== */
.daily-todo-card {
  background: linear-gradient(135deg, #F0F7F2 0%, #E4F0E8 100%);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1.5px solid rgba(74,124,89,0.15);
}

.daily-todo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.daily-todo-title {
  font-size: 18px;
  font-weight: 700;
  color: #2D5A3D;
}

.daily-todo-progress {
  font-size: 13px;
  color: #4A7C59;
  font-weight: 600;
}

.daily-todo-bar {
  height: 4px;
  background: #D6EBE4;
  border-radius: 2px;
  margin-bottom: 16px;
  overflow: hidden;
}

.daily-todo-bar-fill {
  height: 100%;
  background: #4A7C59;
  border-radius: 2px;
  transition: width 0.3s;
}

.daily-todo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.daily-todo-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.daily-todo-item:hover {
  background: rgba(255,255,255,0.95);
}

.daily-todo-item.checked {
  opacity: 0.5;
}

.daily-todo-item.checked .todo-text {
  text-decoration: line-through;
}

.daily-todo-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #B8C9BC;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s;
}

.daily-todo-item.checked .daily-todo-check {
  background: #4A7C59;
  border-color: #4A7C59;
}

.daily-todo-check::after {
  content: '';
  display: none;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.daily-todo-item.checked .daily-todo-check::after {
  display: block;
}

.todo-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.todo-text {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

/* ===== 气候特点卡片 ===== */
.climate-card {
  background: linear-gradient(135deg, #E8F4F0 0%, #D6EBE4 100%);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid rgba(74, 124, 89, 0.15);
  position: relative;
  overflow: hidden;
}

.climate-card::before {
  content: '🗺️';
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 48px;
  opacity: 0.15;
}

.climate-card .card-label {
  font-size: 11px;
  letter-spacing: 4px;
  color: #4A7C59;
  font-weight: 600;
  margin-bottom: 20px;
}

.climate-card .climate-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.climate-card .climate-icon {
  font-size: 40px;
  width: 64px;
  height: 64px;
  background: rgba(74, 124, 89, 0.12);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.climate-card .climate-city {
  font-size: 22px;
  font-weight: 700;
  color: #2C3E2D;
  line-height: 1.3;
}

.climate-card .climate-type {
  font-size: 13px;
  color: #6B9B7A;
  margin-top: 4px;
}

.climate-card .climate-content {
  background: rgba(255,255,255,0.7);
  border-radius: 16px;
  padding: 20px 24px;
  font-size: 15px;
  line-height: 2;
  color: #444;
}

.climate-card .climate-section {
  margin-bottom: 14px;
}

.climate-card .climate-section:last-child {
  margin-bottom: 0;
}

.climate-card .climate-section-title {
  font-size: 12px;
  font-weight: 600;
  color: #4A7C59;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

/* ===== 方案视频播放器 ===== */
.plan-video-wrapper {
  margin-bottom: 28px;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 32px rgba(74, 124, 89, 0.15);
  position: relative;
}

.plan-video-wrapper video {
  width: 100%;
  display: block;
  max-height: 360px;
  object-fit: contain;
  background: #000;
}

.plan-video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a2a1a 0%, #2C3E2D 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  gap: 12px;
}

.plan-video-placeholder .play-btn {
  width: 72px;
  height: 72px;
  background: rgba(74, 124, 89, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.plan-video-placeholder .play-btn:hover {
  background: #4A7C59;
  transform: scale(1.08);
}

.plan-video-placeholder .video-label {
  font-size: 14px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
}

/* ===== 服务期条 ===== */
.service-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(74, 124, 89, 0.06);
  border-radius: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.service-bar .label {
  font-size: 13px;
  color: #6B6B6B;
}

.service-bar .value {
  font-size: 14px;
  font-weight: 600;
  color: #4A7C59;
}

.service-bar .dot {
  width: 4px;
  height: 4px;
  background: #D5CFC4;
  border-radius: 50%;
}

.service-bar .status-badge {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-active {
  background: rgba(74, 124, 89, 0.12);
  color: #4A7C59;
}

.status-expired {
  background: rgba(200, 80, 80, 0.1);
  color: #C85050;
}

/* ===== 调理原则卡片 ===== */
.principle-card {
  background: linear-gradient(135deg, #4A7C59 0%, #2D5A3D 100%);
  color: #fff;
  border-radius: 24px;
  padding: 36px 32px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.principle-card::before {
  content: '☯';
  position: absolute;
  right: -20px;
  top: -20px;
  font-size: 120px;
  opacity: 0.08;
}

.principle-card .card-label {
  font-size: 12px;
  letter-spacing: 3px;
  opacity: 0.7;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.principle-card .card-content {
  font-size: 17px;
  line-height: 2;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.principle-card .tizhi-tags {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.principle-card .tizhi-tag {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  background: rgba(255,255,255,0.15);
  letter-spacing: 1px;
}

/* ===== 节气方案卡片 ===== */
.jieqi-card {
  background: #fff;
  border-radius: 24px;
  padding: 36px 32px;
  margin-bottom: 24px;
  border: 1px solid rgba(74, 124, 89, 0.08);
  box-shadow: 0 2px 16px rgba(0,0,0,0.03);
  position: relative;
}

.jieqi-card .jieqi-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #F0EDE6;
}

.jieqi-card .jieqi-emoji {
  font-size: 36px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 124, 89, 0.06);
  border-radius: 16px;
  flex-shrink: 0;
}

.jieqi-card .jieqi-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: #2C3E2D;
  margin-bottom: 4px;
}

.jieqi-card .jieqi-info .jieqi-period {
  font-size: 13px;
  color: #8B8B8B;
}

/* 方案内容渲染 */
.jieqi-card .plan-content {
  font-size: 15px;
  line-height: 2;
  color: #444;
}

.jieqi-card .plan-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: #2C3E2D;
  margin-top: 20px;
  margin-bottom: 10px;
  padding-left: 12px;
  border-left: 3px solid #4A7C59;
}

.jieqi-card .plan-content h4:first-child {
  margin-top: 0;
}

.jieqi-card .plan-content p {
  margin-bottom: 10px;
}

.jieqi-card .plan-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.jieqi-card .plan-content li {
  margin-bottom: 6px;
}

/* ===== 分析师寄语 ===== */
.analyst-note {
  background: rgba(74, 124, 89, 0.04);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  border-left: 4px solid #4A7C59;
}

.analyst-note .note-label {
  font-size: 12px;
  letter-spacing: 3px;
  color: #4A7C59;
  margin-bottom: 12px;
}

.analyst-note .note-content {
  font-size: 15px;
  line-height: 2;
  color: #555;
  font-style: normal;
}

.analyst-note .note-author {
  margin-top: 16px;
  font-size: 14px;
  color: #4A7C59;
  font-weight: 600;
  font-style: normal;
}

/* ===== 续费提示 ===== */
.renew-notice {
  text-align: center;
  padding: 28px;
  background: rgba(200, 160, 60, 0.06);
  border-radius: 20px;
  margin-bottom: 24px;
}

.renew-notice p {
  font-size: 14px;
  color: #8B7040;
  line-height: 1.8;
  margin-bottom: 16px;
}

.renew-notice .btn {
  font-size: 14px;
  padding: 12px 32px;
}

/* ===== 历史方案切换 ===== */
/* Tab导航容器 */
.plan-tabs-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  width: 100%;
  height: 44px;
}

/* 左右箭头按钮 */
.tab-arrow {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #4A7C59;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  font-size: 20px;
  color: #4A7C59;
  transition: all 0.3s;
  opacity: 1;
  pointer-events: auto;
  flex-shrink: 0;
  top: 50%;
  transform: translateY(-50%);
}

.tab-arrow:hover {
  background: #4A7C59;
  color: #fff;
  border-color: #4A7C59;
}

.tab-arrow.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.tab-arrow.left {
  left: 0;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

.tab-arrow.right {
  right: 0;
  box-shadow: -2px 2px 8px rgba(0,0,0,0.1);
}

.plan-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 0 44px;
  width: 100%;
  white-space: nowrap;
  height: 100%;
  align-items: center;
}

/* 隐藏滚动条 */
.plan-tabs::-webkit-scrollbar {
  display: none;
}

.plan-tabs {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.plan-tab, .jieqi-tab {
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 13px;
  border: 1px solid #D5CFC4;
  background: #fff;
  color: #6B6B6B;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
  font-family: inherit;
}

.plan-tab:hover {
  border-color: #4A7C59;
  color: #4A7C59;
}

.plan-tab.active, .jieqi-tab.active {
  background: #4A7C59;
  color: #fff;
  border-color: #4A7C59;
}

/* ===== 响应式 ===== */
@media (max-width: 500px) {
  .plan-header .greeting { font-size: 22px; }
  .principle-card { padding: 28px 24px; }
  .jieqi-card { padding: 28px 24px; }
  .query-input-group { flex-direction: column; }
}
