@charset "UTF-8";

/* ============================================
   Ruixing E-Commerce Static Site - Main Stylesheet
   Color scheme: white base, dark gray text, blue accent
   ============================================ */

/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: #ffffff;
  color: #333333;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: #2563eb; text-decoration: none; transition: color 0.2s; }
a:hover { color: #1d4ed8; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ===== Layout Container ===== */
.rx-wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ===== Header ===== */
.rx-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.rx-topbar-in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rx-brandbox { display: flex; align-items: center; gap: 8px; }
.rx-brandbox img { height: 36px; width: auto; }
.rx-brandword { font-size: 20px; font-weight: 700; color: #1f2937; letter-spacing: 1px; }

/* Nav */
.rx-nav { display: flex; align-items: center; gap: 28px; }
.rx-nav a { font-size: 15px; color: #374151; font-weight: 500; position: relative; padding: 4px 0; transition: color 0.2s; }
.rx-nav a:hover { color: #2563eb; }
.rx-nav a.active { color: #2563eb; }
.rx-nav a.active::after { content: ""; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: #2563eb; border-radius: 1px; }

/* Cart icon */
.rx-nav-side { display: flex; align-items: center; gap: 16px; }
.rx-cartlink { position: relative; display: flex; align-items: center; gap: 4px; color: #374151; font-size: 15px; }
.rx-cartlink:hover { color: #2563eb; }
.rx-cartnum {
  position: absolute; top: -8px; right: -10px;
  background: #ef4444; color: #fff; font-size: 11px; font-weight: 600;
  min-width: 18px; height: 18px; line-height: 18px; text-align: center;
  border-radius: 9px; padding: 0 4px; display: none;
}
.rx-cartnum.show { display: block; }

/* Hamburger */
.rx-menubtn { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; cursor: pointer; }
.rx-menubtn span { display: block; width: 22px; height: 2px; background: #374151; border-radius: 1px; transition: all 0.3s; }
.rx-menubtn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rx-menubtn.open span:nth-child(2) { opacity: 0; }
.rx-menubtn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Drawer */
.rx-nav-panel {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid #e5e7eb;
  padding: 16px; z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.rx-nav-panel.open { display: flex; flex-direction: column; gap: 12px; }
.rx-nav-panel a { font-size: 16px; color: #374151; padding: 10px 12px; border-radius: 8px; transition: background 0.2s; }
.rx-nav-panel a:hover { background: #eff6ff; color: #2563eb; }
.rx-nav-panel a.active { background: #eff6ff; color: #2563eb; }

/* ===== Carousel ===== */
.rx-stage { position: relative; width: 100%; height: 420px; overflow: hidden; background: #f3f4f6; }
.rx-stage-strip { display: flex; width: 100%; height: 100%; transition: transform 0.5s ease; }
.rx-stage-item { min-width: 100%; height: 100%; position: relative; }
.rx-stage-item img { width: 100%; height: 100%; object-fit: cover; }
.rx-stage-caption { position: absolute; left: 10%; top: 50%; transform: translateY(-50%); color: #fff; z-index: 2; }
.rx-stage-caption h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.rx-stage-caption p { font-size: 16px; margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.rx-stage-actions { display: flex; gap: 12px; }
.rx-stage-cta { display: inline-block; padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; border: none; }
.rx-stage-cta-solid { background: #2563eb; color: #fff; }
.rx-stage-cta-solid:hover { background: #1d4ed8; color: #fff; }
.rx-stage-cta-lite { background: rgba(255,255,255,0.85); color: #1f2937; }
.rx-stage-cta-lite:hover { background: #fff; }

/* Carousel Arrows */
.rx-stage-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.8);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 20px; color: #374151; border: none;
  z-index: 3; transition: background 0.2s;
}
.rx-stage-arrow:hover { background: #fff; }
.rx-stage-arrow-l { left: 12px; }
.rx-stage-arrow-r { right: 12px; }

/* Carousel Dots */
.rx-stage-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.rx-stage-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.2s; border: none; padding: 0; }
.rx-stage-dot.active { background: #fff; width: 24px; border-radius: 4px; }

/* ===== Section ===== */
.rx-block { padding: 48px 0; }
.rx-block-head { text-align: center; margin-bottom: 32px; }
.rx-block-head h2 { font-size: 24px; font-weight: 700; color: #1f2937; margin-bottom: 4px; }
.rx-block-head p { font-size: 14px; color: #9ca3af; }

/* ===== Activity Cards ===== */
.rx-promo-grid { display: grid; grid: none / repeat(4, 1fr); gap: 16px; }
.rx-promo-card {
  background: #f8fafc; border-radius: 12px; padding: 24px 16px;
  text-align: center; transition: box-shadow 0.2s, transform 0.2s;
  border: 1px solid #e2e8f0; display: block;
}
.rx-promo-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }
.rx-promo-card .rx-promo-ico { width: 40px; height: 40px; margin: 0 auto 8px; border-radius: 50%; background: #eff6ff; display: flex; align-items: center; justify-content: center; }
.rx-promo-card .rx-promo-ico svg { width: 22px; height: 22px; stroke: #2563eb; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rx-promo-card h3 { font-size: 16px; font-weight: 600; color: #1f2937; margin-bottom: 4px; }
.rx-promo-card p { font-size: 13px; color: #6b7280; }

/* ===== New Arrivals (horizontal scroll) ===== */
.rx-fresh-block { padding: 48px 0; }
.rx-fresh-strip {
  display: flex; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding-bottom: 12px; scrollbar-width: thin;
}
.rx-fresh-strip::-webkit-scrollbar { height: 6px; }
.rx-fresh-strip::-webkit-scrollbar-track { background: #f3f4f6; border-radius: 3px; }
.rx-fresh-strip::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.rx-fresh-strip .rx-pdcard { flex: 0 0 220px; scroll-snap-align: start; }

/* ===== Category Section ===== */
.rx-line-block { padding: 48px 0; }
.rx-line-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.rx-line-head h2 { font-size: 22px; font-weight: 700; color: #1f2937; }
.rx-line-head a { font-size: 14px; color: #2563eb; }
.rx-line-grid { display: grid; grid: none / repeat(4, 1fr); gap: 16px; }

/* ===== New User Zone ===== */
.rx-rookie-block { padding: 48px 0; background: #f0f7ff; }
.rx-rookie-grid { display: grid; grid: none / repeat(4, 1fr); gap: 16px; }
.rx-rookie-card {
  background: #fff; border-radius: 12px; padding: 20px 16px;
  text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s; display: block;
}
.rx-rookie-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.rx-rookie-card .rx-rookie-ico { width: 36px; height: 36px; margin: 0 auto 8px; border-radius: 50%; background: #eff6ff; display: flex; align-items: center; justify-content: center; }
.rx-rookie-card .rx-rookie-ico svg { width: 20px; height: 20px; stroke: #2563eb; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rx-rookie-card h3 { font-size: 15px; font-weight: 600; color: #1f2937; margin-bottom: 4px; }
.rx-rookie-card p { font-size: 13px; color: #6b7280; }

/* ===== Latest Activity Banner ===== */
.rx-live-banner { padding: 48px 0; }
.rx-live-banner-in {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-radius: 16px; padding: 40px 32px; text-align: center; color: #fff;
}
.rx-live-banner-in h2 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.rx-live-banner-in p { font-size: 15px; opacity: 0.9; margin-bottom: 20px; }
.rx-live-banner-cta {
  display: inline-block; padding: 12px 32px;
  background: #fff; color: #2563eb; border-radius: 8px;
  font-size: 15px; font-weight: 600; transition: transform 0.2s;
}
.rx-live-banner-cta:hover { transform: scale(1.03); color: #1d4ed8; }

/* ===== Product Card (shared) ===== */
.rx-pdcard {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative; display: flex; flex-direction: column;
}
.rx-pdcard:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.rx-pdcard .rx-flag-new {
  position: absolute; top: 8px; left: 8px;
  background: #ef4444; color: #fff; font-size: 12px; font-weight: 600;
  padding: 2px 8px; border-radius: 4px; z-index: 2;
}
.rx-pdcard .rx-pdcard-photo { width: 100%; aspect-ratio: 1 / 1; background: #f9fafb; overflow: hidden; }
.rx-pdcard .rx-pdcard-photo img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s; }
.rx-pdcard:hover .rx-pdcard-photo img { transform: scale(1.05); }
.rx-pdcard .rx-pdcard-info { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.rx-pdcard .rx-pdcard-name {
  font-size: 14px; font-weight: 600; color: #1f2937; margin-bottom: 4px;
  line-height: 1.4; overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.rx-pdcard .rx-pdcard-note {
  font-size: 12px; color: #9ca3af; margin-bottom: 8px;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}
.rx-pdcard .rx-pdcard-cost { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; margin-top: auto; }
.rx-pdcard .rx-cost-now { font-size: 18px; font-weight: 700; color: #ef4444; }
.rx-pdcard .rx-cost-was { font-size: 13px; color: #d1d5db; text-decoration: line-through; }
.rx-pdcard .rx-pdcard-ops { display: flex; gap: 8px; }
.rx-pdcard .rx-ops-view {
  flex: 1; padding: 7px 12px; text-align: center;
  border: 1px solid #2563eb; border-radius: 6px;
  font-size: 12px; font-weight: 600; color: #2563eb; background: #fff;
  cursor: pointer; transition: all 0.2s;
}
.rx-pdcard .rx-ops-view:hover { background: #2563eb; color: #fff; }
.rx-pdcard .rx-ops-buy {
  flex: 1; padding: 7px 12px; text-align: center;
  background: #2563eb; border: 1px solid #2563eb; border-radius: 6px;
  font-size: 12px; font-weight: 600; color: #fff;
  cursor: pointer; transition: all 0.2s;
}
.rx-pdcard .rx-ops-buy:hover { background: #1d4ed8; border-color: #1d4ed8; }

/* ===== List Page ===== */
.rx-listing { padding-top: 32px; padding-bottom: 64px; }
.rx-listing-hero { text-align: center; margin-bottom: 24px; }
.rx-listing-hero h1 { font-size: 28px; font-weight: 700; color: #1f2937; margin-bottom: 4px; }
.rx-listing-hero p { font-size: 14px; color: #9ca3af; }
.rx-line-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.rx-line-tab {
  padding: 8px 24px; border-radius: 8px; font-size: 15px; font-weight: 600;
  color: #6b7280; background: #f3f4f6; cursor: pointer; transition: all 0.2s; border: none;
}
.rx-line-tab:hover { background: #dbeafe; color: #2563eb; }
.rx-line-tab.active { background: #2563eb; color: #fff; }
.rx-pdgrid { display: grid; grid: none / repeat(4, 1fr); gap: 16px; }
.rx-listing-foot { text-align: center; padding: 48px 0 24px; }
.rx-listing-foot p { font-size: 16px; color: #9ca3af; font-weight: 500; }

/* ===== Footer ===== */
.rx-footbar { background: #1f2937; color: #d1d5db; padding: 48px 0 24px; }
.rx-footbar-in { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.rx-footbar-main { display: grid; grid: none / repeat(5, 1fr); gap: 24px; padding-bottom: 32px; border-bottom: 1px solid #374151; }
.rx-footbar-col h4 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.rx-footbar-col a { display: block; font-size: 13px; color: #9ca3af; margin-bottom: 6px; transition: color 0.2s; }
.rx-footbar-col a:hover { color: #fff; }
.rx-footbar-tel .rx-footbar-line { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; color: #9ca3af; margin-bottom: 6px; }
.rx-footbar-tel .rx-footbar-tag { color: #d1d5db; font-weight: 500; min-width: 56px; flex-shrink: 0; }
.rx-footbar-base { padding-top: 20px; text-align: center; }
.rx-footbar-base p { font-size: 13px; color: #9ca3af; margin-bottom: 4px; }
.rx-footbar-base .rx-footbar-icp a { color: #9ca3af; font-size: 13px; }
.rx-footbar-base .rx-footbar-icp a:hover { color: #fff; }

/* ===== Toast ===== */
.rx-hint {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: rgba(31, 41, 55, 0.92); color: #fff;
  padding: 10px 24px; border-radius: 8px; font-size: 14px;
  z-index: 9999; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.rx-hint.show { opacity: 1; }

/* ===== Responsive: 1024px ===== */
@media (max-width: 1024px) {
  .rx-pdgrid, .rx-line-grid, .rx-rookie-grid { grid: none / repeat(3, 1fr); }
  .rx-promo-grid { grid: none / repeat(3, 1fr); }
  .rx-footbar-main { grid: none / repeat(3, 1fr); }
  .rx-stage { height: 340px; }
  .rx-stage-caption h2 { font-size: 22px; }
}

/* ===== Responsive: 768px ===== */
@media (max-width: 768px) {
  .rx-nav { display: none; }
  .rx-menubtn { display: flex; }
  .rx-pdgrid, .rx-line-grid, .rx-rookie-grid { grid: none / repeat(2, 1fr); }
  .rx-promo-grid { grid: none / repeat(2, 1fr); }
  .rx-footbar-main { grid: none / repeat(2, 1fr); }
  .rx-stage { height: 280px; }
  .rx-stage-caption { left: 6%; }
  .rx-stage-caption h2 { font-size: 18px; }
  .rx-stage-caption p { font-size: 13px; }
  .rx-stage-cta { padding: 8px 16px; font-size: 12px; }
  .rx-stage-arrow { width: 32px; height: 32px; font-size: 16px; }
  .rx-block-head h2 { font-size: 20px; }
  .rx-line-head h2 { font-size: 18px; }
  .rx-fresh-strip .rx-pdcard { flex: 0 0 170px; }
  .rx-nav-side .rx-cartlink span { display: none; }
}

/* ===== Responsive: 390px ===== */
@media (max-width: 390px) {
  .rx-wrap, .rx-topbar-in, .rx-footbar-in { padding: 0 10px; }
  .rx-pdgrid, .rx-line-grid, .rx-rookie-grid { grid: none / repeat(2, 1fr); gap: 10px; }
  .rx-promo-grid { grid: none / repeat(2, 1fr); }
  .rx-footbar-main { grid: none / 1fr; }
  .rx-stage { height: 200px; }
  .rx-stage-caption h2 { font-size: 15px; }
  .rx-stage-caption p { font-size: 12px; margin-bottom: 10px; }
  .rx-stage-cta { padding: 6px 14px; font-size: 11px; }
  .rx-stage-arrow { width: 28px; height: 28px; font-size: 14px; }
  .rx-stage-arrow-l { left: 6px; }
  .rx-stage-arrow-r { right: 6px; }
  .rx-pdcard .rx-pdcard-name { font-size: 13px; }
  .rx-pdcard .rx-cost-now { font-size: 16px; }
  .rx-pdcard .rx-ops-view, .rx-pdcard .rx-ops-buy { font-size: 11px; padding: 6px 8px; }
  .rx-fresh-strip .rx-pdcard { flex: 0 0 150px; }
  .rx-brandword { font-size: 16px; }
  .rx-brandbox img { height: 28px; }
  .rx-live-banner-in { padding: 24px 16px; }
  .rx-live-banner-in h2 { font-size: 20px; }
  .rx-block { padding: 32px 0; }
  .rx-line-block, .rx-fresh-block, .rx-rookie-block, .rx-live-banner { padding: 32px 0; }
}
