/* 
 * Apple Premium Design System
 * 真正的Apple高级感
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #007aff;
  --color-success: #34c759;
  --color-warning: #ff9500;
  --color-error: #ff3b30;

  --text-primary: #000000;
  --text-secondary: #86868b;
  --text-tertiary: #c7c7cc;

  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-tertiary: #fafafa;

  --blur-bg: rgba(255, 255, 255, 0.72);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  --spring: cubic-bezier(0.17, 0.67, 0.16, 0.99);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", system-ui, sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.47059;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.page-wrapper {
  min-height: 100vh;
  padding-top: 90px; /* 为导航栏留空间 */
  background: var(--bg-primary);
}

/* 双十一倒计时横幅 */
.countdown-banner {
  margin-bottom: 16px;
}

.countdown-content {
  padding: 12px 16px;
  text-align: center;
}

.countdown-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.fire-icon {
  font-size: 20px;
  animation: fireFlicker 1.5s ease-in-out infinite;
}

@keyframes fireFlicker {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.1) rotate(-5deg);
  }
  50% {
    transform: scale(1.2) rotate(5deg);
  }
  75% {
    transform: scale(1.1) rotate(-3deg);
  }
}

.title-text {
  color: #ff0000;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}

.time-block {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 6px 12px;
  min-width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: timeBlockPulse 2s ease-in-out infinite;
}

@keyframes timeBlockPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 8px 2px rgba(255, 0, 0, 0.2);
  }
}

.time-block:nth-child(1) {
  animation-delay: 0s;
}

.time-block:nth-child(3) {
  animation-delay: 0.2s;
}

.time-block:nth-child(5) {
  animation-delay: 0.4s;
}

.time-block:nth-child(7) {
  animation-delay: 0.6s;
}

.time-value {
  font-size: 24px;
  font-weight: 700;
  color: #ff0000;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.time-label {
  font-size: 11px;
  font-weight: 600;
  color: #666;
  margin-top: 3px;
}

.time-separator {
  color: #ff0000;
  font-size: 20px;
  font-weight: 700;
  animation: separatorBlink 1s ease-in-out infinite;
}

@keyframes separatorBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.countdown-subtitle {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* 顶部导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.navbar-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.brand-text {
  flex: 1;
}

.brand-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
  background: linear-gradient(135deg, #000 0%, #555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* 套餐区域 */
.packages-section {
  padding: 30px 20px 120px;
  background: var(--bg-primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* 双11活动海报 */
.activity-banner {
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s var(--spring);
  cursor: pointer;
}

.activity-banner:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 商品说明通知 - 蓝色系 */
.info-notice {
  background: linear-gradient(135deg, #007aff 0%, #5ac8fa 100%);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 122, 255, 0.25);
}

.info-notice .notice-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s var(--spring);
  user-select: none;
}

.info-notice .notice-content:hover {
  background: rgba(0, 0, 0, 0.05);
}

.info-notice .notice-content:active {
  transform: scale(0.99);
}

.info-notice .notice-label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.info-notice .notice-text {
  flex: 1;
  font-size: 14px;
  color: white;
  font-weight: 600;
}

.info-notice .notice-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.info-notice .notice-toggle svg {
  transition: transform 0.3s var(--spring);
}

.info-notice .notice-content.active .notice-toggle svg {
  transform: rotate(180deg);
}

.info-detail {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.95);
  max-height: 800px;
  opacity: 1;
  padding: 20px;
  overflow: hidden;
  transition: max-height 0.4s var(--spring), opacity 0.4s var(--spring),
    padding 0.4s var(--spring);
}

.info-detail.collapsed {
  max-height: 0;
  opacity: 0;
  padding: 0 20px;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-block {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.info-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.info-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-warning);
  margin: 8px 0;
}

.info-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
}

.info-list {
  margin: 8px 0 0 0;
  padding-left: 24px;
}

.info-list li {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 4px;
}

.download-link {
  display: inline-block;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  background: rgba(0, 122, 255, 0.08);
  border-radius: 6px;
  margin-top: 6px;
  transition: all 0.2s;
}

.download-link:hover {
  background: rgba(0, 122, 255, 0.15);
  transform: translateY(-1px);
}

.info-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
}

/* 双十一活动通知 - Apple风格 */
.activity-notice {
  background: linear-gradient(135deg, #ff3b30 0%, #ff6b6b 100%);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(255, 59, 48, 0.25);
}

.notice-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s var(--spring);
  user-select: none;
}

.notice-content:hover {
  background: rgba(0, 0, 0, 0.05);
}

.notice-content:active {
  transform: scale(0.99);
}

.notice-label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.notice-text {
  flex: 1;
  font-size: 14px;
  color: white;
  font-weight: 600;
}

.notice-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.notice-toggle svg {
  transition: transform 0.3s var(--spring);
}

.notice-content.active .notice-toggle svg {
  transform: rotate(180deg);
}

.activity-detail {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.95);
  max-height: 500px;
  opacity: 1;
  padding: 16px;
  overflow: hidden;
  transition: max-height 0.4s var(--spring), opacity 0.4s var(--spring),
    padding 0.4s var(--spring);
}

.activity-detail.collapsed {
  max-height: 0;
  opacity: 0;
  padding: 0 16px;
}

.detail-table {
  display: grid;
  gap: 1px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--bg-secondary);
  padding: 10px 16px;
  font-size: 14px;
}

.table-row.header {
  background: var(--bg-tertiary);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 13px;
}

.table-row:not(.header) {
  font-weight: 500;
  color: var(--text-primary);
}

.table-row span {
  text-align: center;
}

.table-row span:last-child {
  color: var(--color-primary);
  font-weight: 600;
}

/* 用户名区域 - 在套餐上面，左对齐 */
.username-section {
  margin-bottom: 0px;
}

.username-wrapper {
  max-width: 100%;
  text-align: left;
}

.username-input {
  width: 100%;
  padding: 14px 20px;
  font-size: 17px;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 2px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.3s var(--spring);
}

.username-input:focus {
  border-color: var(--color-primary);
  background: var(--bg-primary);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
  transform: translateY(-2px);
}

.username-input::placeholder {
  color: var(--text-tertiary);
}

.username-hint {
  margin-top: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--color-success);
  opacity: 0;
  transition: opacity 0.3s;
  text-align: left;
}

.username-hint.show {
  opacity: 1;
}

/* 套餐网格 - 固定一行三个 */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* 套餐卡片 - 缩小版 */
.package-card {
  position: relative;
  background: var(--bg-primary);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-xl);
  padding: 20px;
  cursor: pointer;
  transition: all 0.4s var(--spring);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* 优惠角标 */
.package-ribbon {
  position: absolute;
  top: 19px;
  right: -27px;
  background: linear-gradient(135deg, var(--color-warning) 0%, #ff6b00 100%);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 32px;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(255, 149, 0, 0.3);
  letter-spacing: 0.05em;
  z-index: 2;
}

.package-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 122, 255, 0.05) 0%,
    rgba(0, 122, 255, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.4s;
}

.package-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

.package-card:hover::before {
  opacity: 1;
}

.package-card:active {
  transform: translateY(-3px) scale(1);
}

.package-header {
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.package-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.package-points {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* 赠送积分徽章 */
.bonus-badge {
  display: inline-block;
  padding: 2px 8px;
  margin-left: 6px;
  /* 红色 */
  background: linear-gradient(135deg, #ff0000 0%, #ff0000 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.package-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 1;
}

.package-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.package-price small {
  font-size: 20px;
  font-weight: 600;
}

.package-action {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(0, 122, 255, 0.1);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.package-action:hover {
  background: rgba(0, 122, 255, 0.2);
  transform: scale(1.05);
}

/* 浮动按钮 */
.floating-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s var(--spring);
  z-index: 100;
}

.floating-button:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.floating-button:active {
  transform: scale(1.05);
}

/* 模态框背景 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 1;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-backdrop.hidden {
  display: none;
}

/* 支付模态框 */
.payment-modal {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.4s var(--spring);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: var(--bg-secondary);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--text-tertiary);
  transform: rotate(90deg);
}

.payment-content {
  text-align: center;
}

.payment-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.payment-details {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 15px;
}

.detail-row.primary {
  padding-top: 16px;
  margin-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.detail-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.detail-value {
  font-weight: 600;
  color: var(--text-primary);
}

.detail-value.highlight {
  color: var(--color-primary);
}

.detail-row.primary .detail-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
}

/* 二维码 */
.qrcode-container {
  margin-bottom: 24px;
}

.qrcode-wrapper {
  display: inline-block;
  padding: 16px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

#qrcode {
  display: block;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrcode-image {
  width: 200px;
  height: 200px;
  display: block;
}

.qrcode-error {
  text-align: center;
  padding: 20px;
}

.qrcode-error svg {
  margin-bottom: 10px;
}

.qrcode-error p {
  color: var(--color-error);
  font-size: 14px;
  margin-bottom: 15px;
}

.retry-btn {
  padding: 8px 20px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.retry-btn:hover {
  background: #0051d5;
}

.qrcode-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.wechat-icon {
  width: 20px;
  height: 20px;
}

/* 支付状态 */
.payment-status {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timer,
.status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
}

.timer {
  color: var(--color-warning);
}

.timer span {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.status-indicator {
  color: var(--text-secondary);
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--text-tertiary);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* 订单列表模态框 */
.orders-modal {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.4s var(--spring);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.modal-header h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.filter-pills {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pill {
  flex: 1;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}

.pill.active {
  color: white;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.pill:hover:not(.active) {
  background: var(--bg-secondary);
}

.orders-list {
  padding: 16px 24px;
  max-height: calc(80vh - 180px);
  overflow-y: auto;
}

.order-item {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 10px;
  transition: all 0.2s;
}

.order-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.order-no {
  font-size: 12px;
  font-weight: 700;
  font-family: "SF Mono", "Monaco", monospace;
  color: var(--text-secondary);
}

.order-badge {
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.order-badge.pending {
  color: var(--color-warning);
  background: rgba(255, 149, 0, 0.15);
}

.order-badge.success {
  color: var(--color-success);
  background: rgba(52, 199, 89, 0.15);
}

.order-badge.failed {
  color: var(--color-error);
  background: rgba(255, 59, 48, 0.15);
}

.order-details {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.order-detail {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.order-detail .label {
  color: var(--text-secondary);
}

.order-detail .value {
  font-weight: 600;
}

.order-detail.amount .value {
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 700;
}

.order-time {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

/* 订单支付按钮 */
.order-pay-btn {
  width: 100%;
  padding: 10px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--spring);
  margin-top: 8px;
}

.order-pay-btn:hover {
  background: #0051d5;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.order-pay-btn:active {
  transform: translateY(0);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  opacity: 0.3;
}

/* 成功模态框 */
.success-modal {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  width: 60%;
  animation: scaleIn 0.5s var(--spring);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-checkmark {
  margin-bottom: 20px;
  animation: checkPop 0.6s var(--spring);
}

@keyframes checkPop {
  0% {
    transform: scale(0) rotate(-45deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

.success-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.success-amount {
  font-size: 48px;
  font-weight: 800;
  color: var(--color-success);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.success-message {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.success-button {
  width: 100%;
  padding: 14px;
  font-size: 17px;
  font-weight: 600;
  color: white;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.success-button:hover {
  background: #0051d5;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.success-button:active {
  transform: translateY(0);
}

/* 确认弹窗 */
.confirm-modal {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 400px;
  padding: 32px;
  text-align: center;
  animation: scaleIn 0.4s var(--spring);
  box-shadow: var(--shadow-xl);
}

.confirm-icon {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  animation: iconPop 0.5s var(--spring);
}

@keyframes iconPop {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.1) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

.confirm-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.confirm-info {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.confirm-row:last-child {
  border-bottom: none;
}

.confirm-row.primary {
  padding-top: 14px;
  margin-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: none;
}

.confirm-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.confirm-value {
  font-weight: 600;
  color: var(--text-primary);
}

.confirm-value.highlight {
  color: var(--color-primary);
  font-weight: 700;
}

.confirm-row.primary .confirm-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
}

.confirm-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.confirm-btn {
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s var(--spring);
}

.confirm-btn.cancel {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.confirm-btn.cancel:hover {
  background: var(--text-tertiary);
}

.confirm-btn.cancel:active {
  transform: scale(0.98);
}

.confirm-btn.primary {
  background: var(--color-primary);
  color: white;
}

.confirm-btn.primary:hover {
  background: #0051d5;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.confirm-btn.primary:active {
  transform: translateY(0);
}

/* 响应式 */
@media (max-width: 1024px) {
  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .time-value {
    font-size: 22px;
  }

  .time-block {
    min-width: 55px;
    padding: 5px 10px;
  }
}

@media (max-width: 768px) {
  .page-wrapper {
    padding-top: 80px;
  }

  .countdown-content {
    padding: 10px 12px;
  }

  .confirm-modal {
    max-width: 90%;
    padding: 24px;
  }

  .confirm-title {
    font-size: 20px;
  }

  .confirm-row {
    font-size: 14px;
  }

  .confirm-row.primary .confirm-value {
    font-size: 20px;
  }

  .confirm-btn {
    font-size: 15px;
    padding: 11px 16px;
  }

  .payment-methods {
    margin: 18px 0;
  }

  .payment-method {
    padding: 18px 14px;
    min-height: 95px;
  }

  .payment-icon {
    width: 38px;
    height: 38px;
  }

  .title-text {
    font-size: 16px;
  }

  .fire-icon {
    font-size: 18px;
  }

  .time-value {
    font-size: 20px;
  }

  .time-block {
    min-width: 50px;
    padding: 5px 8px;
  }

  .time-label {
    font-size: 10px;
  }

  .time-separator {
    font-size: 18px;
  }

  .countdown-subtitle {
    font-size: 12px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-title {
    font-size: 22px;
  }

  .brand-subtitle {
    font-size: 13px;
  }

  .username-wrapper {
    max-width: 100%;
  }

  .packages-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .package-card {
    padding: 16px;
  }

  .payment-modal,
  .orders-modal {
    margin: 0 16px;
  }

  /* 活动海报响应式 */
  .activity-banner {
    margin-bottom: 16px;
    border-radius: var(--radius-md);
  }

  /* 商品说明响应式 */
  .info-notice .notice-content {
    padding: 10px 12px;
    gap: 8px;
  }

  .info-notice .notice-label {
    font-size: 11px;
    padding: 3px 8px;
  }

  .info-notice .notice-text {
    font-size: 13px;
  }

  .info-notice .notice-toggle {
    font-size: 12px;
  }

  .info-detail {
    padding: 14px;
  }

  .info-block {
    padding: 12px;
  }

  .info-title {
    font-size: 14px;
  }

  .info-text,
  .info-list li {
    font-size: 13px;
  }

  /* 活动通知响应式 */
  .activity-notice .notice-content {
    padding: 10px 12px;
    gap: 8px;
  }

  .activity-notice .notice-label {
    font-size: 11px;
    padding: 3px 8px;
  }

  .activity-notice .notice-text {
    font-size: 13px;
  }

  .activity-notice .notice-toggle {
    font-size: 12px;
  }

  .activity-detail {
    padding: 12px;
  }

  .table-row {
    padding: 8px 12px;
    font-size: 13px;
  }

  .table-row.header {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .countdown-content {
    padding: 10px;
  }

  .confirm-modal {
    max-width: 95%;
    padding: 20px;
  }

  .confirm-icon svg {
    width: 48px;
    height: 48px;
  }

  .confirm-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .confirm-info {
    padding: 12px;
  }

  .confirm-row {
    font-size: 13px;
    padding: 8px 0;
  }

  .confirm-row.primary .confirm-value {
    font-size: 18px;
  }

  .confirm-buttons {
    gap: 8px;
  }

  .confirm-btn {
    font-size: 14px;
    padding: 10px 14px;
  }

  .payment-methods {
    gap: 10px;
    margin: 16px 0;
  }

  .payment-method {
    padding: 16px 12px;
    min-height: 90px;
  }

  .payment-icon {
    width: 36px;
    height: 36px;
  }

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

  .payment-check {
    width: 22px;
    height: 22px;
    font-size: 16px;
  }

  .title-text {
    font-size: 15px;
  }

  .fire-icon {
    font-size: 16px;
  }

  .countdown-timer {
    gap: 4px;
  }

  .time-value {
    font-size: 18px;
  }

  .time-block {
    min-width: 45px;
    padding: 4px 6px;
    border-radius: 6px;
  }

  .time-label {
    font-size: 9px;
  }

  .time-separator {
    font-size: 16px;
  }

  .countdown-subtitle {
    font-size: 11px;
  }

  .navbar-content {
    padding: 12px 16px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand-title {
    font-size: 20px;
  }

  .floating-button {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
  }

  /* 活动海报小屏幕适配 */
  .activity-banner {
    margin-bottom: 12px;
    border-radius: var(--radius-sm);
  }

  /* 商品说明小屏幕适配 */
  .info-notice .notice-content {
    flex-wrap: wrap;
    padding: 10px;
  }

  .info-notice .notice-label {
    font-size: 11px;
  }

  .info-notice .notice-text {
    font-size: 12px;
    flex-basis: 100%;
    order: 3;
    margin-top: 6px;
  }

  .info-notice .notice-toggle {
    font-size: 11px;
    margin-left: auto;
  }

  .info-detail {
    padding: 12px;
  }

  .info-block {
    padding: 10px;
  }

  .info-title {
    font-size: 13px;
  }

  .info-text,
  .info-list li {
    font-size: 12px;
  }

  .download-link {
    font-size: 11px;
    padding: 5px 10px;
  }

  /* 活动通知小屏幕适配 */
  .activity-notice .notice-content {
    flex-wrap: wrap;
    padding: 10px;
  }

  .activity-notice .notice-label {
    font-size: 11px;
  }

  .activity-notice .notice-text {
    font-size: 12px;
    flex-basis: 100%;
    order: 3;
    margin-top: 6px;
  }

  .activity-notice .notice-toggle {
    font-size: 11px;
    margin-left: auto;
  }

  .table-row {
    padding: 8px 10px;
    font-size: 12px;
  }

  .table-row.header {
    font-size: 11px;
  }
}

/* 全屏Loading */
.fullscreen-loading {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s;
}

.loading-content {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: 40px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-xl);
  animation: scaleIn 0.3s var(--spring);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--bg-secondary);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

/* 隐藏类 */
.hidden {
  display: none !important;
}

/* 支付方式选择 */
.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.payment-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--spring);
  position: relative;
  min-height: 100px;
}

.payment-method:hover {
  background: var(--bg-tertiary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.payment-method.active {
  background: rgba(0, 122, 255, 0.06);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(0, 122, 255, 0.1);
}

.payment-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.payment-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.payment-check {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 18px;
  font-weight: bold;
  color: var(--color-primary);
  opacity: 0;
  transition: opacity 0.3s var(--spring);
  background: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
}

.payment-method.active .payment-check {
  opacity: 1;
}

/* 支付提示图标 */
.payment-tip-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
