/* ----------------------------------------------------
   别出心裁 - 3D全息水晶玻璃 (Cyber-Glass UI) 充值商城样式
   ---------------------------------------------------- */

:root {
  --neon-pink: #ff2a5f;
  --neon-purple: #8a2be2;
  --neon-cyan: #00f2fe;
  --neon-gold: #ffaa00;
  
  --header-gradient: linear-gradient(135deg, #ff2a5f 0%, #8a2be2 100%);
  --btn-gradient: linear-gradient(135deg, #ff2a5f 0%, #ff6b4a 100%);
  --gold-badge-grad: linear-gradient(135deg, #ffe58f 0%, #faad14 50%, #d48806 100%);
  
  --bg-dark: #070a12;
  --bg-frame: #0d1322;
  --bg-glass: rgba(21, 29, 46, 0.75);
  --bg-glass-hover: rgba(30, 42, 68, 0.9);
  --bg-sidebar: rgba(13, 19, 34, 0.85);
  
  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --text-muted: #64748b;
  
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-neon: rgba(255, 42, 95, 0.4);
  
  --shadow-neon: 0 0 20px rgba(255, 42, 95, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow: hidden;
}

/* Background animated cyber particles & orbs */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: 
    radial-gradient(circle at 15% 15%, rgba(255, 42, 95, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(138, 43, 226, 0.22) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Outer Unified Cyber-Glass Frame Container */
.app-frame {
  width: 100%;
  max-width: 520px;
  height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg-frame);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

@media (min-width: 768px) {
  .app-frame {
    max-width: 768px;
    border-left: 1px solid var(--border-glass);
    border-right: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    height: 96vh;
    margin: 2vh auto;
  }
}

/* Real-Time Live Order Ticker Bar */
.order-ticker-bar {
  background: rgba(255, 42, 95, 0.12);
  border-bottom: 1px solid rgba(255, 42, 95, 0.25);
  color: #ff7a9e;
  padding: 6px 14px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.ticker-icon {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--neon-pink);
  flex-shrink: 0;
}

.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-pink);
  box-shadow: 0 0 8px var(--neon-pink);
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.ticker-content {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.ticker-text {
  display: inline-block;
  white-space: nowrap;
  animation: tickerSlide 14s linear infinite;
  font-weight: 500;
}

@keyframes tickerSlide {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* App Header Bar */
.store-header {
  height: 54px;
  background: var(--header-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  box-shadow: var(--shadow-neon);
}

.header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-btn:hover, .header-btn:active {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0.95);
}

.header-btn svg {
  width: 15px;
  height: 15px;
}

.header-title-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(180deg, #ffffff 0%, #ffd6e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-sub-tag {
  font-size: 10px;
  color: #ffffff;
  opacity: 0.95;
  background: rgba(0, 0, 0, 0.25);
  padding: 1px 8px;
  border-radius: 10px;
  margin-top: 2px;
  letter-spacing: 0.3px;
}

/* Quick Search Input Box */
.search-container {
  padding: 8px 12px;
  background: rgba(13, 19, 34, 0.95);
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--neon-pink);
  box-shadow: 0 0 12px rgba(255, 42, 95, 0.25);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-sub);
  width: 14px;
  height: 14px;
  pointer-events: none;
}

/* Main Two-Column Layout Container */
.store-container {
  display: flex;
  flex: 1;
  width: 100%;
  background: var(--bg-frame);
  position: relative;
  overflow: hidden;
}

/* Left Sidebar Categories */
.category-sidebar {
  width: 122px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-glass);
  height: 100%;
  overflow-y: auto;
  padding: 8px 6px;
  -webkit-overflow-scrolling: touch;
}

.category-sidebar::-webkit-scrollbar {
  width: 0;
}

.category-item {
  height: 44px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--text-sub);
  cursor: pointer;
  position: relative;
  border-radius: var(--radius-md);
  margin-bottom: 5px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  font-weight: 500;
  border: 1px solid transparent;
}

.category-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.category-item.active {
  background: linear-gradient(135deg, rgba(255, 42, 95, 0.2) 0%, rgba(138, 43, 226, 0.2) 100%);
  color: #ffffff;
  font-weight: 700;
  border: 1px solid rgba(255, 42, 95, 0.4);
  box-shadow: 0 4px 12px rgba(255, 42, 95, 0.15);
}

.category-item.active::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  width: 3.5px;
  height: 20px;
  background: var(--neon-pink);
  box-shadow: 0 0 8px var(--neon-pink);
  border-radius: 4px;
}

/* Right Content Area */
.product-content {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  padding: 12px;
  background-color: rgba(7, 10, 18, 0.6);
  -webkit-overflow-scrolling: touch;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
}

/* 3D Glassmorphism Product Card */
.product-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

.product-card:hover::before {
  left: 100%;
}

.product-card:hover, .product-card:active {
  border-color: var(--border-neon);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 25px rgba(255, 42, 95, 0.25);
  background: var(--bg-glass-hover);
}

/* Product Icon Container */
.product-icon-box {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.product-icon-box svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

/* 3D Holographic Foil Card Badge */
.card-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--gold-badge-grad);
  border-bottom-right-radius: 8px;
  color: #000000;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(250, 173, 20, 0.5);
  letter-spacing: 0.5px;
}

/* Product Info Container */
.product-info {
  flex: 1;
  margin: 0 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 4px;
}

.discount-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  color: #00f2fe;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 4px;
  padding: 1px 6px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-current {
  font-size: 18px;
  font-weight: 800;
  color: var(--neon-pink);
  text-shadow: 0 0 10px rgba(255, 42, 95, 0.4);
  letter-spacing: -0.5px;
}

.price-current small {
  font-size: 12px;
  font-weight: 700;
  margin-right: 1px;
}

.price-original {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Buy Button */
.btn-buy {
  background: var(--btn-gradient);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(255, 42, 95, 0.4);
}

.btn-buy:hover, .btn-buy:active {
  transform: scale(0.95);
  box-shadow: 0 0 20px rgba(255, 42, 95, 0.7);
}

/* ----------------------------------------------------
   充值商城专属业务底部 Footer Design
   ---------------------------------------------------- */
.store-footer {
  background: rgba(13, 19, 34, 0.95);
  border-top: 1px solid var(--border-glass);
  padding: 12px 14px 10px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 10;
}

.footer-guarantee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.guarantee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.guarantee-icon {
  font-size: 14px;
}

.guarantee-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
}

.guarantee-desc {
  font-size: 9px;
  color: var(--text-muted);
}

.footer-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-disclaimer {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.4;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.footer-link {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 11px;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--neon-pink);
}

.footer-copyright {
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.8;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(7, 10, 18, 0.8);
  backdrop-filter: blur(10px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-frame);
  border: 1px solid var(--border-glass);
  width: 90%;
  max-width: 360px;
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  transform: scale(0.9);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.modal-content {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-btn-close {
  background: var(--btn-gradient);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 9px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-neon);
}
