*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
body{font-family:-apple-system,'PingFang SC','Microsoft YaHei',sans-serif;background:#f5f0fa;color:#2d1b3d;min-height:100vh}
a{color:#7c3a9e;text-decoration:none}

/* Header */
.header{border-bottom:1px solid rgba(124,58,158,0.1)}
.header-inner{max-width:900px;margin:0 auto;padding:16px 16px 10px;text-align:center}
.header h1{font-size:22px;letter-spacing:3px;color:#fff}
.header h1 span{color:#f0e0ff}
.subtitle{font-size:12px;color:rgba(255,255,255,0.7);margin-top:3px}
.nav{display:flex;justify-content:center;gap:4px;margin-top:10px;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px}
.nav::-webkit-scrollbar{height:0}
.nav-link{flex-shrink:0;padding:6px 16px;border-radius:6px;font-size:13px;font-weight:500;color:rgba(255,255,255,0.85);transition:all .2s;white-space:nowrap}
.nav-link.active,.nav-link:hover{color:#fff;background:rgba(255,255,255,0.15);font-weight:600}

/* Container */
.container{max-width:900px;margin:0 auto;padding:12px 16px 40px}

/* Hero */
.hero{text-align:center;padding:40px 16px 36px}
.hero h2{font-size:28px;font-weight:600;background:linear-gradient(135deg,#7c3a9e,#b482dc);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.hero p{font-size:14px;color:#8a7a9a;margin:8px 0 20px}
.btn-primary{display:inline-block;padding:12px 32px;background:linear-gradient(135deg,#9b59b6,#7c3a9e);color:#fff;font-weight:600;border-radius:8px;font-size:15px;transition:transform .15s}
.btn-primary:active{transform:scale(.95)}

/* Section */
.section{margin-top:28px}
.section-title{font-size:16px;font-weight:600;margin-bottom:12px;padding-left:6px;border-left:3px solid #9b59b6;padding-left:10px;color:#4a2066}

/* Features */
.features{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.feature-card{background:#fff;border:1px solid #e8ddf0;border-radius:10px;padding:14px;text-align:center;box-shadow:0 1px 3px rgba(0,0,0,0.04)}
.feature-icon{font-size:24px;margin-bottom:6px}
.feature-card h4{font-size:13px;margin-bottom:4px;color:#7c3a9e}
.feature-card p{font-size:11px;color:#8a7a9a;line-height:1.5}

/* Element tabs */
.element-tabs{display:flex;gap:4px;margin-bottom:10px;flex-wrap:wrap}
.elem-tab{padding:6px 14px;border-radius:6px;border:1px solid #e0d4eb;font-size:12px;cursor:pointer;background:#fff;color:#8a7a9a;transition:all .15s}
.elem-tab.active{background:#f0e8f7;color:#7c3a9e;border-color:#9b59b6}

/* Crystal cards */
.crystals-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:6px}
.crystal-card{background:#fff;border:1px solid #e8ddf0;border-radius:10px;padding:10px 6px;text-align:center;transition:all .15s;box-shadow:0 1px 3px rgba(0,0,0,0.03)}
.crystal-card:active{transform:scale(.95)}
.card-emoji{font-size:22px;line-height:1.3;min-height:36px;display:flex;align-items:center;justify-content:center}
.card-crystal-img{width:36px;height:36px;border-radius:50%;object-fit:cover;display:block;border:1px solid #e8ddf0}
.card-name{font-size:12px;font-weight:500;margin:3px 0;color:#2d1b3d}
.card-elem{display:inline-block;font-size:9px;padding:1px 6px;border-radius:4px}
.el-金{background:#fef5e7;color:#b7950b;border:1px solid #fef0d5}
.el-木{background:#eafaf1;color:#1e8449;border:1px solid #d5f5e3}
.el-水{background:#ebf5fb;color:#2e86c1;border:1px solid #d4e6f1}
.el-火{background:#fdedec;color:#c0392b;border:1px solid #fadbd8}
.el-土{background:#fef9e7;color:#a04000;border:1px solid #fceabb}
.card-desc{font-size:9px;color:#8a7a9a;margin:4px 0;line-height:1.3}
.card-price{font-size:12px;font-weight:600;color:#7c3a9e}

/* Presets */
.presets-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px}
.preset-card{background:#fff;border:1px solid #e8ddf0;border-radius:10px;padding:14px;cursor:pointer;transition:all .15s;box-shadow:0 1px 3px rgba(0,0,0,0.03)}
.preset-card:active{transform:scale(.97);background:#faf5fd}
.preset-name{font-size:15px;font-weight:600;color:#7c3a9e}
.preset-price{font-size:20px;font-weight:700;margin:6px 0;color:#2d1b3d}
.preset-desc{font-size:11px;color:#8a7a9a;line-height:1.4}
.preset-cta{font-size:11px;color:#9b59b6;margin-top:8px}

/* Footer */
.footer{text-align:center;padding:30px 16px;color:#bfb0cf;font-size:12px}
.footer-note{font-size:10px;margin-top:4px;color:#cfc0df}

/* Reviews Carousel */
.reviews-carousel{overflow:hidden;position:relative;padding:8px 0}
.review-track{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 0 8px;-webkit-overflow-scrolling:touch}
.review-track::-webkit-scrollbar{height:3px}
.review-track::-webkit-scrollbar-thumb{background:rgba(124,58,158,0.15);border-radius:2px}
.review-card{flex:0 0 260px;scroll-snap-align:start;background:#fff;border:1px solid #e8ddf0;border-radius:10px;padding:14px;min-height:100px;box-shadow:0 1px 3px rgba(0,0,0,0.03)}
.review-stars{font-size:12px;margin-bottom:4px}
.review-content{font-size:12px;color:#5a4a6a;line-height:1.6;font-style:italic}
.review-author{font-size:11px;color:#bfb0cf;margin-top:6px}

/* Loading / Error / Empty */
.loading,.empty,.error{text-align:center;padding:20px;color:#bfb0cf;font-size:13px}
.error{color:#e74c3c}

/* Orders page */
.order-lookup{max-width:400px;margin:20px auto;text-align:center}
.order-lookup input{width:100%;padding:12px;border-radius:8px;border:1px solid #e0d4eb;background:#fff;color:#2d1b3d;font-size:14px;text-align:center;outline:none}
.order-lookup input:focus{border-color:#9b59b6}
.order-card{background:#fff;border:1px solid #e8ddf0;border-radius:10px;padding:16px;margin-top:12px;box-shadow:0 1px 3px rgba(0,0,0,0.03)}
.order-card h4{color:#7c3a9e;margin-bottom:8px}
.order-card .row{display:flex;justify-content:space-between;font-size:12px;padding:4px 0;border-bottom:1px solid #f0e8f7}
.order-card .row:last-child{border:none}

/* Premium Section */
.premium-section{margin-top:40px;margin-bottom:20px}
.premium-inner{background:linear-gradient(135deg,#f0e8f7,#e8ddf0);border:1px solid #d8c8e8;border-radius:16px;padding:28px 20px;text-align:center;position:relative;overflow:hidden}
.premium-inner::before{content:'';position:absolute;top:-50%;left:-50%;width:200%;height:200%;background:radial-gradient(circle,rgba(124,58,158,0.05) 0%,transparent 70%);pointer-events:none}
.premium-badge{display:inline-block;padding:4px 16px;border-radius:20px;background:linear-gradient(135deg,#d4af37,#f0d68a);color:#4a3000;font-size:11px;font-weight:700;letter-spacing:2px;text-transform:uppercase;margin-bottom:12px}
.premium-title{font-size:20px;font-weight:700;color:#5a3070;margin-bottom:6px;letter-spacing:2px}
.premium-desc{font-size:13px;color:#8a7a9a;line-height:1.6;margin-bottom:20px}
.premium-features{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:600px;margin:0 auto 18px}
.premium-item{background:#fff;border:1px solid #e8ddf0;border-radius:10px;padding:14px 10px;text-align:center}
.pf-icon{font-size:26px;margin-bottom:6px}
.pf-name{font-size:12px;font-weight:600;color:#b4820c;margin-bottom:3px}
.pf-desc{font-size:10px;color:#8a7a9a;line-height:1.5}
.btn-premium{display:inline-block;padding:10px 28px;background:linear-gradient(135deg,#d4af37,#f0d68a);color:#3a2000;font-weight:700;border-radius:8px;font-size:13px;transition:transform .15s;text-decoration:none}
.btn-premium:active{transform:scale(.95)}
.premium-note{font-size:10px;color:#bfb0cf;margin-top:6px}

/* Responsive */
@media(max-width:640px){
  .premium-features{grid-template-columns:1fr}
}
@media(max-width:480px){
  .hero h2{font-size:22px}
  .features{grid-template-columns:1fr}
  .crystals-grid{grid-template-columns:repeat(auto-fill,minmax(80px,1fr))}
  .presets-grid{grid-template-columns:1fr 1fr}
}

/* ====== 🌟 星空背景 ====== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0d0b1a 0%, #1a0f2e 40%, #2d1b3d 65%, #f5f0fa 100%);
  min-height: 300px;
  padding: 28px 16px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle var(--duration, 3s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}

@keyframes twinkle {
  0% { opacity: var(--min-opacity, 0.2); transform: scale(0.8); }
  100% { opacity: var(--max-opacity, 1); transform: scale(1); }
}

.hero h2,
.hero p,
.hero .btn-primary {
  position: relative;
  z-index: 1;
}

.hero h2 {
  text-shadow: 0 0 30px rgba(155,89,182,0.3);
}

/* ====== 🔮 毛玻璃导航 ====== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(45,27,61,0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 24px rgba(0,0,0,0.15);
}

/* ====== 🎞️ 滚动入场动画 ====== */
.reveal {
  animation: fadeUp 0.7s cubic-bezier(0.25,0.46,0.45,0.94) both;
}

.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }
.reveal-delay-3 { animation-delay: 0.3s; }
.reveal-delay-4 { animation-delay: 0.4s; }

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ====== 🃏 卡片悬停增强 ====== */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.feature-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(124,58,158,0.12) !important;
  border-color: rgba(155,89,182,0.3) !important;
}

.crystal-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.crystal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(124,58,158,0.10);
  border-color: rgba(155,89,182,0.2);
}

.preset-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.preset-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(124,58,158,0.15);
  border-color: rgba(155,89,182,0.3);
}

/* ====== 💬 浮动联系按钮 ====== */
.floating-contact {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9b59b6, #7c3a9e);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(124,58,158,0.4);
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.floating-contact:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(124,58,158,0.5);
}

.floating-contact:active {
  transform: scale(0.95);
}

/* ====== 💬 微信弹窗 ====== */
.wechat-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.wechat-modal.active {
  display: flex;
}

.wechat-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.wechat-modal-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 20px;
  max-width: 300px;
  width: 85%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modalPop 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes modalPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.wechat-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.wechat-close:hover {
  color: #333;
}

.wechat-qr-title {
  font-size: 16px;
  font-weight: 600;
  color: #2d1b3d;
  margin-bottom: 18px;
}

.wechat-qr-wrap {
  background: #f5f0fa;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.wechat-qr-img {
  width: 180px;
  height: 180px;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.wechat-id {
  padding: 8px;
  color: #5a4a6a;
  font-size: 14px;
}

.wechat-id strong {
  color: #7c3a9e;
}

.wechat-hint {
  font-size: 11px;
  color: #bfb0cf;
}

/* ====== 📱 响应式微调 ====== */
@media(max-width:640px) {
  .header {
    background: rgba(45,27,61,0.3);
    backdrop-filter: blur(12px);
  }
  .hero {
    min-height: 260px;
    padding: 20px 16px 24px;
  }
}
