/**
 * 价格计算器样式 - 现代化设计
 * 设计理念: 磨砂玻璃 + 通透感 + 微交互
 * Design System: Linear.app / Stripe 风格
 */

/* ========== 全局动画定义 ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3), 0 0 40px rgba(236, 72, 153, 0.2);
  }

  50% {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5), 0 0 60px rgba(236, 72, 153, 0.3);
  }
}

/* ========== 价格计算器模态框 ========== */
.price-calculator-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-calculator-overlay.active {
  display: flex;
  opacity: 1;
}

/* 主容器 - Apple 风格超强磨砂玻璃 */
.price-calculator-container {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(80px) saturate(180%);
  -webkit-backdrop-filter: blur(80px) saturate(180%);
  border-radius: 24px;
  border: 0.5px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.12),
    0 0 0 0.5px rgba(0, 0, 0, 0.05) inset;
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.96) translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.price-calculator-overlay.active .price-calculator-container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* 自定义滚动条 */
.price-calculator-container::-webkit-scrollbar {
  width: 8px;
}

.price-calculator-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 32px;
}

.price-calculator-container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 32px;
}

.price-calculator-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.15);
}

/* ========== 头部 - Apple 风格极简设计 ========== */
.price-calculator-header {
  background: linear-gradient(135deg,
      rgba(74, 144, 226, 0.08) 0%,
      rgba(53, 122, 189, 0.05) 100%) !important;
  padding: 32px 36px 24px;
  position: relative;
  border-bottom: 1px solid rgba(74, 144, 226, 0.1);
}

.price-calculator-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  text-align: center;
  color: #0f172a !important;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.price-calculator-subtitle {
  font-size: 13px;
  opacity: 0.65;
  text-align: center;
  margin: 6px 0 0;
  color: #475569;
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* 关闭按钮 - iOS 风格（加强对比度） */
.price-calculator-close {
  position: absolute;
  top: 28px;
  right: 28px;
  background: rgba(15, 23, 42, 0.08);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: #475569;
}

.price-calculator-close:hover {
  background: rgba(15, 23, 42, 0.14);
  transform: scale(1.05);
  color: #0f172a;
}

.price-calculator-close:active {
  transform: scale(0.95);
}

.price-calculator-close svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

/* ========== 主体内容 ========== */
.price-calculator-body {
  padding: 0 36px 32px;
}

/* 版本选择 */
.version-selection {
  margin-bottom: 0;
  padding: 20px 0 0px;
}



/* Tab 选项卡（移动端）- iOS 风格 */
.version-tabs {
  display: none;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  padding: 3px;
}

.version-tab {
  flex: 1;
  padding: 9px 10px;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 8px;
}

.version-tab.active {
  background: #ffffff;
  color: #1e293b;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.06);
}

.version-tab:hover:not(.active) {
  color: #1e293b;
}

/* 版本详情（移动端） */
.version-details {
  display: none;
}

.version-detail {
  display: none;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.version-detail.active {
  display: block;
}

.version-detail-price {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: -0.02em;
}

.version-detail-price .unit {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

.version-detail-description {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

/* ========== 卡片选择 - Apple 风格统一设计 ========== */
.version-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.version-option {
  position: relative;
  cursor: pointer;
}

.version-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* 统一白色背景卡片 */
.version-card {
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 20px 18px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: visible;
  min-height: 140px;
  height: 140px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* 移除装饰线 */
.version-card::before {
  display: none;
}

/* L5 选中状态 - 蓝色光晕 */
.version-card > .btn-shift {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.version-option input:checked+.version-card {
  border-color: #3b82f6;
  box-shadow:
    0 0 0 2px rgba(59, 130, 246, 0.2),
    0 4px 16px rgba(59, 130, 246, 0.12),
    0 8px 32px rgba(59, 130, 246, 0.08);
}

.version-option input:checked+.version-card > .btn-shift {
  transform: translateY(-1px);
}

/* 悬停效果 - 极简 */
.version-card:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 4px 16px rgba(0, 0, 0, 0.04);
}

.version-card:hover > .btn-shift {
  transform: translateY(-2px);
}

.version-name {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.version-price {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: -0.025em;
}

.version-price .unit {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

.version-description {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
  margin-top: auto;
}

/* ========== L7 集团版 - 白底金边50+风格 ========== */
.version-card.l7-group {
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  position: relative;
}

/* 50+ 标签 - 右上角 */
.version-card.l7-group::after {
  content: '50+';
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.version-card.l7-group .version-name {
  color: #92400e;
  font-weight: 700;
}

.version-card.l7-group .version-price {
  color: #b45309;
  font-size: 22px;
  font-weight: 700;
}

.version-card.l7-group .version-description {
  color: #a16207;
}

/* L7 选中状态 - 金色光晕 */
.version-option input:checked+.version-card.l7-group {
  border-color: #f59e0b;
  box-shadow:
    0 0 0 2px rgba(245, 158, 11, 0.2),
    0 4px 16px rgba(245, 158, 11, 0.15),
    0 8px 32px rgba(245, 158, 11, 0.1);
}

.version-option input:checked+.version-card.l7-group > .btn-shift {
  transform: translateY(-1px);
}

.version-card.l7-group:hover {
  box-shadow:
    0 2px 8px rgba(245, 158, 11, 0.12),
    0 4px 16px rgba(245, 158, 11, 0.08);
}

.version-card.l7-group:hover > .btn-shift {
  transform: translateY(-2px);
}

/* ========== 配置区域 - 去除容器背景 ========== */
.config-section {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 28px 0 0;
  border: none;
}

.config-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 0;
}

/* iOS 风格步进器行 */
.config-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}

.config-item label {
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
  margin: 0;
  text-transform: none;
  letter-spacing: -0.01em;
}

/* 隐藏原输入框 */
.config-item input[type="number"] {
  display: none;
}

/* ========== L7 联系信息 - 白底金边设计 ========== */
.l7-contact-info {
  display: none;
  background: #ffffff;
  border: 1.5px solid #f59e0b;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  position: relative;
  margin-top: 28px;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.08);
}

.l7-contact-info.visible {
  display: block;
}

.l7-contact-title {
  font-size: 18px;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.l7-contact-subtitle {
  font-size: 13px;
  color: #a16207;
  margin-bottom: 24px;
}

.l7-contact-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.l7-contact-left,
.l7-contact-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.l7-contact-left {
  align-items: center;
}

.l7-contact-label {
  font-size: 14px;
  font-weight: 600;
  color: #78716c;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.l7-qq-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(251, 191, 36, 0.08);
  color: #92400e;
  width: 60%;
}

.l7-qq-number {
  flex: 1;
  text-align: left;
}

.l7-qq-button:hover {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.l7-qq-button > .btn-shift {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.l7-qq-button:hover > .btn-shift {
  transform: translateY(-1px);
}

.l7-copy-text {
  font-size: 10px;
  opacity: 0.6;
  padding: 2px 6px;
  background: rgba(251, 191, 36, 0.15);
  border-radius: 4px;
  flex-shrink: 0;
}

.l7-qrcode-group {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.l7-qrcode {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.l7-qrcode:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

/* ========== 拼手气按钮 - 紫红流光渐变 ========== */
.lottery-section {
  display: none;
  margin: 24px 0 0;
  padding: 24px 0;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.lottery-section.visible {
  display: block;
}

.lottery-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #ef4444 100%);
  background-size: 200% 200%;
  color: white;
  border: none;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

/* 流光效果 */
.lottery-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.25) 50%,
      transparent 100%);
  transition: left 0.6s ease;
}

.lottery-button:hover::before {
  left: 100%;
}

.lottery-button:hover {
  background-position: 100% 50%;
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.42);
}

.lottery-button > .btn-shift {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lottery-button:hover > .btn-shift {
  transform: translateY(-1px) scale(1.02);
}

.lottery-button:active > .btn-shift {
  transform: scale(0.98);
}

/* ========== 抽奖结果 - Apple 风格 ========== */
.lottery-result {
  display: none;
  margin: 20px 0 0;
  padding: 20px 24px;
  border-radius: 14px;
  text-align: center;
  backdrop-filter: none;
  border: 1px solid transparent;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lottery-result.visible {
  display: block;
}

.lottery-result.win {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.15);
}

.lottery-result.lose {
  background: rgba(251, 146, 60, 0.06);
  border-color: rgba(251, 146, 60, 0.15);
}

.lottery-result-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}

.lottery-result.win .lottery-result-title {
  color: #059669;
}

.lottery-result.lose .lottery-result-title {
  color: #ea580c;
}

.lottery-result-text {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 14px;
  line-height: 1.5;
}

.lottery-retry-button {
  padding: 8px 20px;
  background: #f97316;
  color: white;
  border: none;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
}

.lottery-retry-button:hover {
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.lottery-retry-button > .btn-shift {
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lottery-retry-button:hover > .btn-shift {
  transform: translateY(-1px);
}

/* ========== 价格汇总 - 去除容器 ========== */
.price-summary {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 28px 0 0;
  backdrop-filter: none;
  box-shadow: none;
}

.price-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 15px;
}

.price-summary-row:last-child {
  margin-bottom: 0;
}

.price-summary-total-row {
  padding-top: 0;
  border-top: none;
  margin-top: 0;
  margin-bottom: 0;
}

.price-summary-label {
  color: #64748b;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.price-summary-value {
  font-weight: 600;
  font-size: 15px;
  color: #1e293b;
}

/* 总计金额 - 宝蓝色巨大字体 */
.price-summary-total {
  font-size: 42px !important;
  font-weight: 800;
  color: #2563eb !important;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-summary-discount {
  color: #10b981 !important;
  font-weight: 600;
}

/* iOS 风格步进器 */
.price-summary-input-row {
  align-items: center;
}

.price-summary-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

/* 圆形步进按钮 */
.price-input-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: #1e293b;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.price-input-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

.price-input-btn > .btn-shift {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.price-input-btn:hover > .btn-shift {
  transform: scale(1.08);
}

.price-input-btn:active > .btn-shift {
  transform: scale(0.92);
}

/* 数字显示 */
.price-summary-input {
  width: 48px;
  height: 32px;
  border: none;
  background: transparent;
  color: #1e293b;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  border-radius: 0;
  outline: none;
  pointer-events: none;
}

.price-summary-input:focus {
  background: transparent;
  box-shadow: none;
}

/* 移除数字输入框的上下箭头 */
.price-summary-input::-webkit-outer-spin-button,
.price-summary-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.price-summary-input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* ========== 底部按钮区 - 左右布局 ========== */
.price-calculator-footer {
  padding: 28px 36px 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.price-calculator-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.price-calculator-actions button {
  padding: 18px 28px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: -0.01em;
}

/* 取消按钮 - 极简灰色 */
.price-cancel-btn {
  background: transparent;
  color: #64748b;
  border: none;
  padding: 18px 20px;
}

.price-cancel-btn:hover {
  color: #1e293b;
  background: rgba(0, 0, 0, 0.03);
}

/* 立即下单按钮 - 宝蓝色渐变 */
.price-order-btn {
  background: linear-gradient(to right, #2563eb 0%, #3b82f6 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  border: none;
  min-width: 140px;
}

.price-order-btn:hover {
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.48);
}

.price-order-btn > .btn-shift {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.price-order-btn:hover > .btn-shift {
  transform: translateY(-2px);
}

.price-order-btn:active > .btn-shift {
  transform: translateY(0);
}

.price-order-btn:disabled {
  background: linear-gradient(to right, #cbd5e1 0%, #94a3b8 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.5;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
  .price-calculator-container {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 18px;
  }

  .price-calculator-header {
    padding: 24px 22px 18px;
  }

  .price-calculator-title {
    font-size: 24px;
  }

  .price-calculator-subtitle {
    font-size: 12px;
  }

  .price-calculator-close {
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: rgba(15, 23, 42, 0.1);
  }

  .price-calculator-close svg {
    width: 16px;
    height: 16px;
  }

  .price-calculator-close:hover {
    background: rgba(15, 23, 42, 0.16);
  }

  .price-calculator-body {
    padding: 0 22px 20px;
  }

  .price-calculator-footer {
    padding: 18px 22px 22px;
    margin-top: 18px;
  }

  /* 移动端：隐藏卡片选择，显示 Tab */
  .version-tabs {
    display: flex !important;
  }

  .version-tab {
    font-size: 13px;
    padding: 10px 12px;
  }

  .version-options {
    display: none !important;
  }

  .version-details {
    display: block !important;
  }

  .version-selection {
    padding: 16px 0 20px;
  }

  .config-section {
    margin: 18px 0 0;
  }

  .config-row {
    gap: 14px;
  }

  .price-calculator-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .price-calculator-actions button {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
  }

  /* 移动端 L7 标签调整 */
  .version-card.l7-group::after {
    top: 8px;
    right: 8px;
    font-size: 9px;
    padding: 2px 6px;
  }

  /* 移动端 L7 联系信息压缩 */
  .l7-contact-info {
    padding: 16px;
    margin-top: 18px;
  }

  .l7-contact-title {
    font-size: 16px;
    margin-bottom: 5px;
  }

  .l7-contact-subtitle {
    font-size: 12px;
    margin-bottom: 14px;
  }

  .l7-contact-methods {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .l7-contact-left {
    align-items: stretch;
  }

  .l7-qq-button {
    padding: 8px 10px;
    font-size: 11px;
    justify-content: space-between;
    flex-direction: row;
    width: 100%;
  }

  .l7-qq-number {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .l7-qrcode-group {
    flex-direction: row;
    gap: 8px;
    justify-content: center;
  }

  .l7-qrcode {
    width: 75px;
    height: 75px;
  }

  .price-summary {
    margin: 18px 0 0;
  }

  .price-summary-row {
    margin-bottom: 12px;
    font-size: 14px;
  }

  .price-summary-label {
    font-size: 13px;
  }

  .price-summary-value {
    font-size: 14px;
  }

  .price-summary-input-wrapper {
    gap: 8px;
  }

  .price-input-btn {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .price-summary-input {
    width: 44px;
    height: 30px;
    font-size: 15px;
  }

  .price-summary-total {
    font-size: 36px !important;
  }

  .lottery-section {
    margin: 16px 0 0;
    padding: 14px 0;
  }

  .lottery-button {
    font-size: 14px;
    padding: 10px 22px;
  }

  .config-item label {
    font-size: 14px;
  }

  .lottery-result {
    margin: 16px 0 0;
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  .price-calculator-overlay {
    padding: 8px;
  }

  .price-calculator-container {
    border-radius: 16px;
    max-height: 94vh;
  }

  .price-calculator-header {
    padding: 20px 18px 16px;
  }

  .price-calculator-title {
    font-size: 22px;
  }

  .price-calculator-subtitle {
    font-size: 12px;
  }

  .price-calculator-body {
    padding: 0 18px 18px;
  }

  .price-calculator-footer {
    padding: 16px 18px 20px;
    margin-top: 16px;
  }

  .version-selection {
    padding: 15px 0 18px;
  }

  .version-tab {
    font-size: 14px;
    padding: 9px 10px;
  }

  .version-options {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .version-card {
    height: auto;
    min-height: 110px;
    padding: 14px 12px;
  }

  .version-name {
    font-size: 14px;
  }

  .version-price {
    font-size: 20px;
  }

  .version-description {
    font-size: 11px;
  }

  /* 小屏幕 L7 标签调整 */
  .version-card.l7-group::after {
    top: 8px;
    right: 8px;
    font-size: 9px;
    padding: 2px 6px;
  }

  /* 极度压缩 L7 联系信息 */
  .l7-contact-info {
    padding: 16px;
    margin-top: 16px;
  }

  .l7-contact-title {
    font-size: 15px;
  }

  .l7-contact-subtitle {
    font-size: 11px;
    margin-bottom: 12px;
  }

  .l7-contact-methods {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .l7-contact-left {
    align-items: stretch;
  }

  .l7-qq-button {
    padding: 6px 8px;
    font-size: 10px;
    gap: 4px;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }

  .l7-qq-number {
    font-size: 10px;
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .l7-copy-text {
    font-size: 9px;
    flex-shrink: 0;
  }

  .l7-qrcode-group {
    flex-direction: row;
    gap: 6px;
    justify-content: center;
  }

  .l7-qrcode {
    width: 70px;
    height: 70px;
  }

  .price-summary-total {
    font-size: 32px !important;
  }

  .price-summary-row {
    font-size: 13px;
  }

  .price-summary-label {
    font-size: 12px;
  }

  .price-summary-value {
    font-size: 13px;
  }

  .price-input-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .price-summary-input {
    width: 42px;
    height: 28px;
    font-size: 14px;
  }

  .config-item label {
    font-size: 14px;
  }

  .price-calculator-actions button {
    padding: 14px 18px;
    font-size: 16px;
  }
}

/* ========== 打印时隐藏 ========== */
@media print {
  .price-calculator-overlay {
    display: none !important;
  }
}