/*
 * buddy-plans.css — 套餐区样式（四卡，红丝带+截图+灰底立即购买）
 * 保留原 plan_box 结构；禁止换成深色卡片
 */

/* ── 套餐容器 ─────────────────────────────────────── */
.plan_area {
  padding: 60px 0 70px;
  background: #f5f5f5;
}

.plan_area .section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--bud-primary, #c0392b);
  margin: 0 0 6px;
}

.plan_area .section-sub {
  text-align: center;
  color: #666;
  margin: 0 0 40px;
  font-size: 0.95rem;
}

/* ── 四卡布局 ─────────────────────────────────────── */
.plan_row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;   /* 顶对齐，防止空行撑高 */
}

/* ── 单卡 ─────────────────────────────────────────── */
.plan_box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 248px;
  flex: 0 0 248px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.plan_box:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  transform: translateY(-3px);
}

/* ── 红丝带 ─────────────────────────────────────────── */
.plan_ribbon {
  position: absolute;
  top: 16px;
  right: -28px;
  background: var(--bud-ribbon, #c0392b);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 32px;
  transform: rotate(45deg);
  transform-origin: center;
  white-space: nowrap;
  z-index: 5;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ── 套餐截图区域 ─────────────────────────────────── */
.plan_screenshot {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #eee;
  flex: 0 0 auto;
}

.plan_screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── 套餐头部 ─────────────────────────────────────── */
.plan_head {
  padding: 16px 16px 10px;
  border-bottom: 1px solid #eee;
  flex: 0 0 auto;
}

.plan_name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 4px;
}

.plan_price {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--bud-primary, #c0392b);
  line-height: 1.1;
}

.plan_price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: #888;
  margin-left: 2px;
}

.plan_desc {
  font-size: 0.78rem;
  color: #888;
  margin: 4px 0 0;
  line-height: 1.4;
  min-height: 0;  /* 禁止空 p 撑高 */
}

.plan_desc:empty { display: none; }

/* ── 套餐功能列表 ─────────────────────────────────── */
.plan_body {
  padding: 14px 16px;
  flex: 1;  /* 撑满剩余高度 */
}

.plan_ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plan_ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: #444;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.4;
}

.plan_ul li:last-child {
  border-bottom: none;
}

.plan_ul li::before {
  content: "✓";
  color: var(--bud-primary, #c0392b);
  font-weight: 700;
  flex: 0 0 14px;
  margin-top: 1px;
}

.plan_ul li.cross::before {
  content: "✗";
  color: #bbb;
}

/* ── 立即购买按钮（灰底） ─────────────────────────── */
.plan_foot {
  padding: 12px 16px 16px;
  background: #f2f2f2;
  border-top: 1px solid #e0e0e0;
  flex: 0 0 auto;
}

.plan_btn {
  display: block;
  width: 100%;
  padding: 10px 0;
  background: var(--bud-btn, #c0392b);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  letter-spacing: 0.5px;
}

.plan_btn:hover {
  opacity: 0.88;
  color: #fff;
  text-decoration: none;
}

.plan_btn.disabled,
.plan_btn[disabled] {
  background: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ── 合伙人卡特殊处理 ─────────────────────────────── */
.plan_box.partner .plan_price {
  font-size: 1.1rem;
}

.plan_box.partner .plan_screenshot {
  background: linear-gradient(135deg, #f0e8d8, #e8d4b8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan_box.partner .plan_screenshot .partner-icon {
  font-size: 3.5rem;
  opacity: 0.6;
}

/* ── 响应式 ─────────────────────────────────────────── */
@media (max-width: 1080px) {
  .plan_row {
    gap: 16px;
  }
  .plan_box {
    width: 220px;
    flex: 0 0 220px;
  }
}

@media (max-width: 768px) {
  .plan_row {
    flex-direction: column;
    align-items: center;
  }
  .plan_box {
    width: 100%;
    max-width: 360px;
    flex: none;
  }
}

/* ── 蓝站皮肤覆盖 ─────────────────────────────────── */
[data-theme="blue"] .plan_ribbon {
  background: var(--bud-primary, #3d7ec8);
}

[data-theme="blue"] .plan_price {
  color: var(--bud-primary, #3d7ec8);
}

[data-theme="blue"] .plan_ul li::before {
  color: var(--bud-primary, #3d7ec8);
}

[data-theme="blue"] .plan_btn {
  background: var(--bud-primary, #3d7ec8);
}

[data-theme="blue"] .plan_box {
  border-color: rgba(61,126,200,0.25);
}

/* ── 橙站皮肤覆盖 ─────────────────────────────────── */
[data-theme="orange"] .plan_ribbon {
  background: var(--bud-primary, #b87333);
}

[data-theme="orange"] .plan_price {
  color: var(--bud-primary, #b87333);
}

[data-theme="orange"] .plan_ul li::before {
  color: var(--bud-primary, #b87333);
}

[data-theme="orange"] .plan_btn {
  background: var(--bud-primary, #b87333);
}
