*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Microsoft YaHei', system-ui, sans-serif;
  background: white;
  min-height: 100vh;
  color: #1f2d36;
}

/* ===== 个人中心风格顶部栏 ===== */
.profile-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:62px;
  padding:0 24px;
  background: #ffffff;
  color:#111;
  position:sticky;
  top:0;
  z-index:120;
  border-bottom:1px solid rgba(15,23,42,0.06);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
  border-radius: 0;
}
.profile-topbar .topbar-left{display:flex;align-items:center;gap:12px}
.profile-topbar .topbar-logo{display:flex;align-items:center;gap:12px;text-decoration:none;color:#111}
.profile-topbar .topbar-logo img{height:34px;width:34px;border-radius:8px;object-fit:cover}
.profile-topbar .topbar-logo span{font-weight:900;font-size:20px;letter-spacing:0.2px;margin:0 10px 0 5px;color:#111}
.profile-topbar .topbar-nav{
  display:flex;
  gap: 15px;
  margin-left: 0px;
}
.profile-topbar .topbar-nav a{
  color:rgba(17,17,17,0.75);
  text-decoration:none;
  font-weight:600;
  padding:8px 12px;
  border-radius:8px;
  transition:background .18s;
  font-size:14px;
}
.profile-topbar .topbar-nav a:hover{
  background: #E9EAEC;
}
.profile-topbar .topbar-divider{
  width:1.5px;
  height:28px;
  margin: 0 14px;
  background:rgba(0, 0, 0, 0.1);
  border-radius:2px;
}

/* ===== 页面主体 ===== */
.page-wrap {
  max-width: 1100px;
  margin: 40px auto 60px;
  padding: 0 20px;
}

/* ===== 页面标题区 ===== */
.hero-header {
  text-align: center;
  margin-bottom: 40px;
}
.crown-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(245,158,11,0.35);
}
.hero-header h1 {
  font-size: 34px;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.hero-header p {
  font-size: 15px;
  color: #64748b;
}

/* ===== 主内容布局 ===== */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

/* ===== 左侧套餐选择 ===== */
.section-title {
  font-size: 17px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: "";
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, #2563eb, #0ea5e9);
  border-radius: 2px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.plan-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s;
  position: relative;
  user-select: none;
}
.plan-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(37,99,235,0.10);
  transform: translateY(-2px);
}
.plan-card.selected {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
  box-shadow: 0 8px 28px rgba(245,158,11,0.18);
  transform: translateY(-2px);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}
.plan-days {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 10px;
  font-weight: 600;
}
.plan-price {
  font-size: 36px;
  font-weight: 900;
  color: #f59e0b;
  line-height: 1;
}
.plan-price span {
  font-size: 18px;
  font-weight: 700;
}
.plan-per-day {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 6px;
}
.plan-card.selected .plan-days { color: #92400e; }
.plan-card.selected .plan-per-day { color: #b45309; }

/* ===== 权益对比表 ===== */
.benefits-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(15,23,42,0.06);
  overflow: hidden;
  margin-bottom: 28px;
}
.benefits-table {
  width: 100%;
  border-collapse: collapse;
}
.benefits-table thead tr {
  background: linear-gradient(135deg, rgba(28,87,71,0.08), rgba(11,121,208,0.08));
}
.benefits-table th {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 800;
  color: #334155;
  text-align: center;
}
.benefits-table th:first-child { text-align: left; }
.benefits-table td {
  padding: 13px 16px;
  font-size: 14px;
  color: #475569;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}
.benefits-table td:first-child { text-align: left; font-weight: 600; color: #1e293b; }
.benefits-table tr:hover td { background: #f8fafc; }
.check-icon { color: #16a34a; font-size: 18px; font-weight: 900; }
.cross-icon { color: #cbd5e1; font-size: 18px; }
.benefit-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.benefit-icon .ico-wrap {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.plus-col { color: #f59e0b; font-weight: 800; }
.basic-col { color: #94a3b8; }

/* ===== 右侧订单详情 ===== */
.order-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 32px rgba(15,23,42,0.08);
  padding: 28px 24px;
  position: sticky;
  top: 82px;
}
.order-title {
  font-size: 17px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 14px;
}
.order-row .label { color: #64748b; }
.order-row .value { color: #1e293b; font-weight: 600; }
.order-row .value.highlight {
  color: #f59e0b;
  font-size: 22px;
  font-weight: 900;
}
.order-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 16px 0;
}

/* 支付方式 */
.pay-list {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.pay-btn {
  flex: 1;
  padding: 10px 0;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  transition: all 0.18s;
  user-select: none;
}
.pay-btn:hover { border-color: #93c5fd; background: #f0f7ff; }
.pay-btn.selected { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; }
.pay-btn .pay-logo { font-size: 18px; }
.pay-btn.alipay.selected { border-color: #1677ff; background: #e8f4ff; color: #1677ff; }
.pay-btn.wechat.selected { border-color: #07c160; background: #e8f8ee; color: #07c160; }

/* 协议勾选 */
.agree-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 18px;
}
.agree-row input[type="checkbox"] { accent-color: #2563eb; width: 15px; height: 15px; cursor: pointer; }
.agree-row a { color: #2563eb; text-decoration: none; }
.agree-row a:hover { text-decoration: underline; }

/* 开通按钮 */
.pay-submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(245,158,11,0.35);
  letter-spacing: 1px;
}
.pay-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 10px 28px rgba(245,158,11,0.45);
  transform: translateY(-1px);
}
.pay-submit-btn:active:not(:disabled) { transform: scale(0.98); }
.pay-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* 安全提示 */
.security-tips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  color: #94a3b8;
}
.security-tips .lock { font-size: 13px; }

/* ===== 底部保障条 ===== */
.guarantee-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 36px;
  padding: 20px;
  background: rgba(255,255,255,0.7);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  backdrop-filter: blur(6px);
}
.guarantee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}
.guarantee-item .g-icon { font-size: 24px; }

/* ===== Toast ===== */
#toast {
  position: fixed;
  left: 50%;
  top: 36px;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.82);
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(6px); }

/* ✅ 成功提示样式 - 绿色背景 + 对勾 */
#toast.toast-success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.92), rgba(22, 163, 74, 0.92));
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.25);
}

#toast.toast-success .toast-icon {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
}

/* ❌ 失败提示样式 - 红色背景 + × */
#toast.toast-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.92), rgba(220, 38, 38, 0.92));
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.25);
}

#toast.toast-error .toast-icon {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
}

/* 信息提示样式 - 保持原样 */
#toast.toast-info {
  background: rgba(0,0,0,0.82);
}

.toast-text {
  flex: 1;
  text-align: center;
}

/* ===== 支付模态框 ===== */
.pay-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 5000;
  align-items: center;
  justify-content: center;
}
.pay-modal.show {
  display: flex;
}
.pay-modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
}
.pay-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  background: #f1f5f9;
  border-radius: 8px;
  border: none;
  transition: background 0.2s;
}
.pay-modal-close:hover {
  background: #e2e8f0;
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}
.modal-header h2 {
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 4px;
}
.modal-header p {
  font-size: 13px;
  color: #94a3b8;
}

.qrcode-container {
  text-align: center;
  margin-bottom: 20px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 16px;
}
#qrcode {
  display: inline-block;
}
.qrcode-tip {
  font-size: 13px;
  color: #64748b;
  margin-top: 12px;
  line-height: 1.6;
}

.pay-status {
  text-align: center;
  padding: 20px;
  background: #f0fdf4;
  border-radius: 12px;
  margin-bottom: 16px;
  display: none;
}
.pay-status.show {
  display: block;
}
.pay-status.success {
  background: #f0fdf4;
  color: #16a34a;
}
.pay-status.error {
  background: #fef2f2;
  color: #dc2626;
}
.pay-status-icon {
  font-size: 28px;
  margin-bottom: 6px;
}
.pay-status-text {
  font-size: 14px;
  font-weight: 600;
}

.modal-actions {
  display: flex;
  gap: 12px;
}
.modal-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 4px 12px rgba(245,158,11,0.25);
}
.modal-btn-primary:hover {
  box-shadow: 0 6px 16px rgba(245,158,11,0.35);
  transform: translateY(-1px);
}
.modal-btn-secondary {
  background: #f1f5f9;
  color: #334155;
}
.modal-btn-secondary:hover {
  background: #e2e8f0;
}

/* ===== 响应式 ===== */
@media (max-width: 820px) {
  .main-layout { grid-template-columns: 1fr; }
  .order-card { position: static; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .guarantee-bar { flex-wrap: wrap; gap: 20px; }
  .profile-topbar .topbar-left{flex:1}
  .profile-topbar .topbar-nav{flex:1;min-width:0}
  .profile-topbar .topbar-nav a{padding:4px 8px;font-size:13px;white-space:nowrap;flex-shrink:0}
}
@media (max-width: 520px) {
  .plan-grid { grid-template-columns: 1fr; }
  .hero-header h1 { font-size: 26px; }
  .pay-modal-content { padding: 24px; }
  .profile-topbar{padding:0 8px}
  .profile-topbar .topbar-left{gap:4px}
  .profile-topbar .topbar-logo img{height:30px;width:30px}
  .profile-topbar .topbar-logo span{font-size:15px;margin:0 4px;white-space:nowrap}
  .profile-topbar .topbar-divider{margin:0 6px;height:20px}
  .profile-topbar .topbar-nav a{font-size:12px;padding:3px 6px}
  .nav-home{display:none}
}
