/* ============================================
   自动发卡平台 - 暗色科技风 + Border Glow 效果
   Design: Dark Futuristic with Glow Effects
   ============================================ */

:root {
  /* Colors - Dark Futuristic */
  --bg-primary: #0a0812;
  --bg-secondary: #120f1a;
  --bg-card: #1a1528;
  --bg-tertiary: #0f0c18;
  --text-primary: #f0e8ff;
  --text-secondary: #a89bc4;
  --text-tertiary: #6e5e8a;
  --accent-primary: #c084fc;
  --accent-secondary: #f472b6;
  --accent-tertiary: #38bdf8;
  --accent-green: #34d399;
  --accent-orange: #fbbf24;
  --accent-red: #f87171;
  --border-color: rgba(192, 132, 252, 0.15);
  --border-light: rgba(192, 132, 252, 0.1);
  --glow-color-1: #c084fc;
  --glow-color-2: #f472b6;
  --glow-color-3: #38bdf8;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(192, 132, 252, 0.2);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
  /* Typography */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Monaco, Consolas, monospace;
  /* Motion */
  --ease-default: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
  min-height: 100vh;
  position: relative;
}

/* Background ambient glow 背景氛围光晕 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(192, 132, 252, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(56, 189, 248, 0.08), transparent),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(244, 114, 182, 0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Noise texture 噪点纹理 */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ============ Header / Navigation ============ */
.header {
  background: rgba(10, 8, 18, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(192, 132, 252, 0.08);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #f0e8ff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s var(--ease-default);
  position: relative;
}

.nav a:hover {
  color: var(--text-primary);
}

.nav a.active {
  color: var(--accent-primary);
  font-weight: 600;
}

/* ============ Hero ============ */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #f0e8ff 0%, #c084fc 40%, #f472b6 70%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.6;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.feature {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 10px 20px;
  background: rgba(192, 132, 252, 0.08);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(192, 132, 252, 0.15);
  transition: all 0.25s var(--ease-default);
  font-weight: 500;
}

.feature:hover {
  background: rgba(192, 132, 252, 0.15);
  border-color: rgba(192, 132, 252, 0.3);
  transform: translateY(-2px);
}

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

/* ============ Notice Section ============ */
.notice-section {
  padding: 20px 0 0;
}

.notice-list {
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.08), rgba(168, 85, 247, 0.05));
  border: 1px solid rgba(192, 132, 252, 0.2);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(192, 132, 252, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notice-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(192, 132, 252, 0.15);
}

.notice-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.notice-item:first-child {
  padding-top: 0;
}

.notice-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notice-badge {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, #c084fc, #a855f7);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(192, 132, 252, 0.3);
}

.notice-title {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
  flex: 1;
}

.notice-content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ============ Main Content ============ */
.main-content {
  padding: 40px 0 100px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* ============ Product Grid - with Glow ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

/* Glow Card - 核心光晕效果 */
.product-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out);
}

/* 边框渐变层 */
.product-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-xl) + 1px);
  background: conic-gradient(
    from var(--glow-angle, 0deg),
    transparent 0deg,
    var(--glow-color-1) calc(var(--glow-spread, 80deg) / 2),
    var(--glow-color-2) var(--glow-spread, 80deg),
    var(--glow-color-3) calc(var(--glow-spread, 80deg) * 1.5),
    transparent var(--glow-spread, 80deg) 360deg
  );
  opacity: var(--glow-opacity, 0);
  transition: opacity 0.2s ease;
  filter: blur(1px);
  z-index: 0;
}

/* 外发光扩散层 */
.product-card::after {
  content: '';
  position: absolute;
  inset: -30px;
  border-radius: calc(var(--radius-xl) + 30px);
  background: conic-gradient(
    from var(--glow-angle, 0deg),
    transparent 0deg,
    var(--glow-color-1) calc(var(--glow-spread, 80deg) / 2),
    var(--glow-color-2) var(--glow-spread, 80deg),
    var(--glow-color-3) calc(var(--glow-spread, 80deg) * 1.5),
    transparent var(--glow-spread, 80deg) 360deg
  );
  opacity: var(--glow-outer-opacity, 0);
  filter: blur(30px);
  z-index: -1;
  transition: opacity 0.2s ease;
}

.product-card:hover {
  transform: translateY(-6px);
}

/* 内层内容 */
.product-card-inner {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border-radius: calc(var(--radius-xl) - 1px);
  margin: 1px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-image {
  width: 100%;
  height: 180px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  position: relative;
  overflow: hidden;
}

.product-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--bg-card), transparent);
  pointer-events: none;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-type-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(26, 21, 40, 0.8);
  backdrop-filter: blur(10px);
  color: var(--accent-primary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(192, 132, 252, 0.2);
  z-index: 2;
}

.product-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.01em;
}

.product-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.product-price {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #f0e8ff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.product-original-price {
  font-size: 14px;
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.product-stock {
  color: var(--accent-green);
  font-weight: 600;
}

.buy-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-default);
  font-family: var(--font-body);
  letter-spacing: -0.01em;
  box-shadow: 0 4px 16px rgba(192, 132, 252, 0.3);
  position: relative;
  overflow: hidden;
}

.buy-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192, 132, 252, 0.4);
}

.buy-btn:hover::before {
  left: 100%;
}

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

.buy-btn:disabled {
  background: var(--text-tertiary);
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.buy-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

.buy-btn:disabled:hover::before {
  left: -100%;
}

/* ============ Loading / No Data ============ */
.loading {
  text-align: center;
  padding: 80px;
  color: var(--text-tertiary);
  grid-column: 1 / -1;
  font-size: 15px;
}

.no-data {
  text-align: center;
  padding: 100px 20px;
  color: var(--text-tertiary);
  grid-column: 1 / -1;
  font-size: 15px;
}

/* ============ Modal ============ */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 8, 18, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFade 0.3s var(--ease-out);
}

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

.modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(192, 132, 252, 0.15);
  animation: modalSlide 0.4s var(--ease-out);
  border: 1px solid rgba(192, 132, 252, 0.1);
}

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

.modal-lg {
  max-width: 720px;
}

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

.modal-header h3 {
  font-size: 22px;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.close-btn {
  background: rgba(192, 132, 252, 0.1);
  border: 1px solid rgba(192, 132, 252, 0.15);
  font-size: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  transition: all 0.2s;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.close-btn:hover {
  color: var(--text-primary);
  background: rgba(192, 132, 252, 0.2);
  border-color: rgba(192, 132, 252, 0.3);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 20px 28px 24px;
  border-top: 1px solid rgba(192, 132, 252, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

/* ============ Form Elements ============ */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(192, 132, 252, 0.15);
  border-radius: var(--radius-md);
  font-size: 15px;
  transition: all 0.2s var(--ease-default);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-body);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.12);
  background: var(--bg-card);
}

/* 修复浏览器自动填充导致背景变黑的问题 */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px var(--bg-secondary) inset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  background-color: var(--bg-secondary) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* ============ Buttons ============ */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease-default);
  font-weight: 500;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  box-shadow: 0 4px 16px rgba(192, 132, 252, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 132, 252, 0.4);
}

.btn-secondary {
  background: rgba(192, 132, 252, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(192, 132, 252, 0.15);
}

.btn-secondary:hover {
  background: rgba(192, 132, 252, 0.15);
  border-color: rgba(192, 132, 252, 0.3);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: #fff;
  box-shadow: 0 4px 16px rgba(52, 211, 153, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 211, 153, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, var(--accent-red), #dc2626);
  color: #fff;
  box-shadow: 0 4px 16px rgba(248, 113, 113, 0.3);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(248, 113, 113, 0.4);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

/* ============ Quantity Selector ============ */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(192, 132, 252, 0.15);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.qty-btn:hover {
  background: rgba(192, 132, 252, 0.1);
  border-color: rgba(192, 132, 252, 0.3);
}

.qty-btn:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.qty-btn:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.quantity-selector input {
  width: 56px;
  height: 40px;
  border: 1px solid rgba(192, 132, 252, 0.15);
  border-left: none;
  border-right: none;
  text-align: center;
  font-size: 15px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-body);
}

/* ============ Product Info Modal ============ */
.product-info-modal {
  display: flex;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(192, 132, 252, 0.1);
  margin-bottom: 24px;
}

.product-info-modal .product-img {
  width: 90px;
  height: 90px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
  border: 1px solid rgba(192, 132, 252, 0.1);
}

.product-info-modal .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.product-info-modal .product-detail h4 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
}

.product-info-modal .product-detail .price {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-display);
  background: linear-gradient(135deg, #f0e8ff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.product-description-box {
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(192, 132, 252, 0.1);
}

.product-description-box h5 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.product-description-box p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}

.total-price {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(192, 132, 252, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  color: var(--text-secondary);
}

.total-price .price {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--font-display);
  background: linear-gradient(135deg, #f0e8ff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

/* ============ Footer ============ */
.footer {
  background: var(--bg-tertiary);
  padding: 36px 0;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
  border-top: 1px solid rgba(192, 132, 252, 0.08);
  position: relative;
  z-index: 1;
}

/* ============ Order Page ============ */
.order-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 60px 0 100px;
  position: relative;
  z-index: 1;
}

.search-box {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
}

.search-box input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid rgba(192, 132, 252, 0.15);
  border-radius: var(--radius-lg);
  font-size: 15px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: all 0.2s;
}

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

.search-box input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.12);
}

.search-box .btn {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: var(--radius-lg);
}

.order-detail {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 36px;
  border: 1px solid rgba(192, 132, 252, 0.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.order-status {
  text-align: center;
  padding: 36px;
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
}

.order-status.pending {
  background: rgba(251, 191, 36, 0.08);
  color: var(--accent-orange);
  border: 1px solid rgba(251, 191, 36, 0.15);
}

.order-status.paid {
  background: rgba(52, 211, 153, 0.08);
  color: var(--accent-green);
  border: 1px solid rgba(52, 211, 153, 0.15);
}

.order-status.cancelled {
  background: rgba(248, 113, 113, 0.08);
  color: var(--accent-red);
  border: 1px solid rgba(248, 113, 113, 0.15);
}

.order-status-icon {
  font-size: 56px;
  margin-bottom: 12px;
}

.order-status-text {
  font-size: 22px;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.order-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
  margin-bottom: 28px;
}

.order-info-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(192, 132, 252, 0.08);
  font-size: 14px;
}

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

.order-info-value {
  color: var(--text-primary);
  font-weight: 500;
}

.order-cards {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(192, 132, 252, 0.1);
}

.order-cards h3 {
  font-size: 18px;
  margin-bottom: 18px;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.card-item {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(192, 132, 252, 0.08);
}

.card-item .card-label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.card-item .card-content {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  word-break: break-all;
  background: var(--bg-card);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(192, 132, 252, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.card-item .card-content img {
  max-width: 180px;
  max-height: 180px;
  border-radius: var(--radius-md);
}

.copy-btn {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
  font-weight: 500;
  transition: all 0.15s;
  font-family: var(--font-body);
}

.copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(192, 132, 252, 0.3);
}

.order-actions {
  margin-top: 28px;
  text-align: center;
}

.order-actions .btn {
  padding: 14px 40px;
  font-size: 15px;
  border-radius: var(--radius-lg);
}

/* ============ Payment Modal ============ */
.order-summary {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(192, 132, 252, 0.08);
}

.order-summary p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.order-summary p:last-child {
  margin-bottom: 0;
}

.pay-amount {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  padding-top: 12px;
  border-top: 1px solid rgba(192, 132, 252, 0.1);
  margin-top: 12px !important;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-method {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid rgba(192, 132, 252, 0.15);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s var(--ease-default);
  background: var(--bg-secondary);
}

.payment-method:hover {
  border-color: var(--accent-primary);
  background: rgba(192, 132, 252, 0.08);
}

.payment-method.active {
  border-color: var(--accent-primary);
  background: rgba(192, 132, 252, 0.12);
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.1);
}

.payment-icon {
  font-size: 28px;
  margin-right: 14px;
}

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

.qr-section {
  text-align: center;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(192, 132, 252, 0.1);
}

.qr-section img {
  width: 180px;
  height: 180px;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(192, 132, 252, 0.1);
}

.qr-tip {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 14px;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 60px 0 48px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-features {
    gap: 10px;
  }

  .feature {
    padding: 8px 16px;
    font-size: 13px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
  }

  .product-image {
    height: 130px;
    font-size: 44px;
  }

  .product-name {
    font-size: 15px;
  }

  .product-price {
    font-size: 22px;
  }

  .product-info {
    padding: 14px;
  }

  .buy-btn {
    padding: 11px;
    font-size: 14px;
  }

  .order-info-grid {
    grid-template-columns: 1fr;
  }

  .nav a {
    margin-left: 20px;
    font-size: 13px;
  }

  .section-title {
    font-size: 26px;
  }

  .order-detail {
    padding: 24px;
  }

  .modal-content {
    max-width: 100%;
    border-radius: var(--radius-lg);
    max-height: 92vh;
  }

  .modal-body {
    padding: 16px 20px;
  }

  .modal-header {
    padding: 16px 20px 14px;
  }

  .modal-footer {
    padding: 14px 20px 18px;
  }

  .order-summary {
    padding: 14px;
    margin-bottom: 16px;
  }

  .order-summary p {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .pay-amount {
    font-size: 18px !important;
    padding-top: 10px;
    margin-top: 10px !important;
  }

  .payment-methods {
    gap: 8px;
  }

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

  .payment-icon {
    font-size: 24px;
    margin-right: 12px;
  }

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

/* ============ Scrollbar ============ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(192, 132, 252, 0.2);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(192, 132, 252, 0.35);
}

/* Selection */
::selection {
  background: rgba(192, 132, 252, 0.3);
  color: var(--text-primary);
}

/* ==================== 订单查询标签页 ==================== */
.order-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.order-tab {
  padding: 10px 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.order-tab:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}
.order-tab.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}
.history-order-list {
  margin-top: 12px;
}

/* ==================== 支付成功动画 ==================== */
.pay-success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow: hidden;
}
.pay-success-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 彩带容器 */
.ribbon-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

/* 彩带 */
.ribbon {
  position: absolute;
  top: -30px;
  border-radius: 1px;
  opacity: 0;
  animation: ribbonFall linear forwards;
}
@keyframes ribbonFall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
  100% {
    opacity: 0.6;
    transform: translateY(110vh) rotate(720deg);
  }
}

/* 弹窗卡片 */
.pay-success-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #1d1d1f;
  padding: 36px 40px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  min-width: 280px;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pay-success-overlay.active .pay-success-content {
  transform: scale(1);
}

/* SVG 绿色勾号 */
.success-checkmark {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: block;
}
.checkmark-circle {
  stroke: #34c759;
  stroke-width: 3;
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
}
.pay-success-overlay.active .checkmark-circle {
  animation: drawCircle 0.6s ease forwards;
}
.checkmark-path {
  stroke: #34c759;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
}
.pay-success-overlay.active .checkmark-path {
  animation: drawCheck 0.4s ease 0.5s forwards;
}
@keyframes drawCircle {
  to { stroke-dashoffset: 0; }
}
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

.success-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #1d1d1f;
}
.success-subtitle {
  font-size: 14px;
  color: #86868b;
  margin: 0 0 16px 0;
}
.success-amount {
  font-size: 28px;
  font-weight: 700;
  color: #34c759;
  margin: 0 0 16px 0;
}
.success-countdown {
  font-size: 13px;
  color: #86868b;
  margin: 0;
}

@media (max-width: 640px) {
  .success-title { font-size: 20px; }
  .success-amount { font-size: 24px; }
  .success-checkmark { width: 60px; height: 60px; }
}
