@charset "UTF-8";

/* ============================================
   Ruixing E-Commerce - Secondary pages stylesheet
   Pages: cart / checkout / pay / legal / about / contact / faq / search
   Loaded after style.css
   ============================================ */

/* ===== Page Hero (banner) ===== */
.rx-doc-hero { background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%); padding: 48px 16px; text-align: center; }
.rx-doc-hero h1 { font-size: 28px; font-weight: 700; color: #1f2937; margin-bottom: 8px; }
.rx-doc-hero p { font-size: 15px; color: #6b7280; }

/* ===== Breadcrumb ===== */
.rx-trail { max-width: 1280px; margin: 0 auto; padding: 16px; font-size: 13px; color: #9ca3af; }
.rx-trail a { color: #9ca3af; }
.rx-trail a:hover { color: #2563eb; }
.rx-trail span { margin: 0 6px; }

/* ===== Page Body ===== */
.rx-doc-body { max-width: 1280px; margin: 0 auto; padding: 24px 16px 64px; }

/* ===== Buttons ===== */
.rx-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 28px; border-radius: 8px; font-size: 14px; font-weight: 600; transition: all 0.2s; cursor: pointer; border: none; }
.rx-btn-solid { background: #2563eb; color: #fff; }
.rx-btn-solid:hover { background: #1d4ed8; color: #fff; }
.btn-outline { background: #fff; color: #2563eb; border: 1px solid #2563eb; }
.btn-outline:hover { background: #eff6ff; }
.rx-btn-line { background: transparent; color: #6b7280; border: 1px solid #d1d5db; }
.rx-btn-line:hover { border-color: #2563eb; color: #2563eb; }
.rx-btn-big { padding: 13px 40px; font-size: 15px; }
.rx-btn-sml { padding: 6px 14px; font-size: 13px; }
.rx-btn-full { width: 100%; }

/* ===== Section Heading ===== */
.rx-doc-sec { padding: 36px 0; }
.rx-doc-sec-h { text-align: center; margin-bottom: 8px; }
.rx-doc-sec-h h2 { font-size: 22px; font-weight: 700; color: #1f2937; }
.rx-doc-sec-sub { text-align: center; font-size: 14px; color: #9ca3af; margin-bottom: 28px; }

/* ===== Cart Page ===== */
.rx-basket-none { text-align: center; padding: 80px 16px; }
.rx-basket-none .rx-none-ico { width: 64px; height: 64px; margin: 0 auto 20px; }
.rx-basket-none h3 { font-size: 18px; color: #1f2937; margin-bottom: 8px; }
.rx-basket-none p { font-size: 14px; color: #9ca3af; margin-bottom: 24px; }

.rx-basket-head { width: 100%; border-collapse: collapse; }
.rx-basket-head th { text-align: left; font-size: 13px; color: #9ca3af; font-weight: 500; padding: 12px 8px; border-bottom: 1px solid #e5e7eb; }

.rx-basket-row { display: grid; grid: none / 24px 88px 1fr 110px 110px 120px 40px; align-items: center; gap: 16px; padding: 20px 8px; border-bottom: 1px solid #f3f4f6; }
.rx-basket-row img { width: 88px; height: 88px; object-fit: contain; border-radius: 8px; background: #f9fafb; }
.rx-basket-name { font-size: 14px; color: #1f2937; line-height: 1.5; }
.rx-basket-name a:hover { color: #2563eb; }
.rx-basket-unit { font-size: 14px; color: #374151; }
.rx-qty { display: flex; align-items: center; border: 1px solid #d1d5db; border-radius: 6px; overflow: hidden; width: 100px; }
.rx-qty button { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #374151; }
.rx-qty button:hover { background: #f3f4f6; }
.rx-qty span { flex: 1; text-align: center; font-size: 14px; }
.rx-basket-sum { font-size: 14px; color: #ef4444; font-weight: 700; }
.rx-basket-del { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: #d1d5db; cursor: pointer; background: none; }
.rx-basket-del:hover { color: #ef4444; }
.rx-basket-pick { width: 18px; height: 18px; cursor: pointer; accent-color: #2563eb; }
.rx-basket-bar { display: flex; align-items: center; justify-content: space-between; padding: 20px 8px; flex-wrap: wrap; gap: 12px; }
.rx-basket-bar-l { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rx-basket-bar-l label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #1f2937; cursor: pointer; }
.rx-basket-bar-r { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rx-basket-total { font-size: 22px; color: #ef4444; font-weight: 700; }

/* ===== Checkout Page ===== */
.rx-order-grid { display: grid; grid: none / 1fr 360px; gap: 24px; align-items: start; }
.rx-card { border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; margin-bottom: 20px; background: #fff; }
.rx-card h3 { font-size: 16px; font-weight: 700; color: #1f2937; margin-bottom: 16px; }
.rx-field-row { display: grid; grid: none / 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.rx-field { display: flex; flex-direction: column; gap: 6px; }
.rx-field label { font-size: 13px; color: #6b7280; }
.rx-field input, .rx-field select, .rx-field textarea { padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; color: #1f2937; outline: none; transition: border-color 0.2s; background: #fff; }
.rx-field input:focus, .rx-field select:focus, .rx-field textarea:focus { border-color: #2563eb; }
.rx-field-wide { grid-column: 1 / -1; }
.rx-bill { border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; position: sticky; top: 80px; background: #fff; }
.rx-bill h3 { font-size: 16px; font-weight: 700; color: #1f2937; margin-bottom: 16px; }
.rx-bill-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.rx-bill-row img { width: 48px; height: 48px; border-radius: 6px; object-fit: contain; background: #f9fafb; }
.rx-bill-info { flex: 1; }
.rx-bill-name { font-size: 13px; color: #1f2937; line-height: 1.4; }
.rx-bill-qty { font-size: 12px; color: #9ca3af; }
.rx-bill-price { font-size: 13px; color: #1f2937; white-space: nowrap; }
.rx-bill-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; color: #6b7280; }
.rx-bill-line-total { display: flex; justify-content: space-between; padding: 12px 0 0; border-top: 1px solid #f3f4f6; font-size: 16px; font-weight: 700; color: #1f2937; margin-top: 8px; }
.rx-bill-line-total span:last-child { color: #ef4444; }
.rx-voucher { display: flex; gap: 8px; margin: 12px 0; }
.rx-voucher input { flex: 1; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; }
.rx-voucher button { padding: 8px 16px; background: #f3f4f6; border-radius: 6px; font-size: 13px; color: #374151; white-space: nowrap; cursor: pointer; border: none; }
.rx-voucher button:hover { background: #e5e7eb; }

/* ===== Pay Page ===== */
.rx-pay { max-width: 620px; margin: 0 auto; }
.rx-pay-card { border: 1px solid #e5e7eb; border-radius: 12px; padding: 28px; margin-bottom: 20px; background: #fff; }
.rx-pay-card h3 { font-size: 16px; font-weight: 700; color: #1f2937; margin-bottom: 20px; }
.rx-pay-money { text-align: center; padding: 12px 0 4px; }
.rx-pay-money .rx-money-sign { font-size: 18px; color: #ef4444; }
.rx-pay-money .rx-money-num { font-size: 36px; color: #ef4444; font-weight: 700; }
.rx-pay-oid { text-align: center; font-size: 13px; color: #9ca3af; margin-bottom: 16px; }
.rx-pay-ways { display: flex; flex-direction: column; gap: 12px; }
.rx-pay-way { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid #e5e7eb; border-radius: 10px; cursor: pointer; transition: border-color 0.2s; }
.rx-pay-way.selected { border-color: #2563eb; }
.rx-pay-way-ico { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; font-weight: 700; }
.rx-way-alipay { background: #1677ff; }
.rx-way-wechat { background: #07c160; }
.rx-pay-way-name { flex: 1; font-size: 15px; color: #1f2937; }
.rx-pay-way-radio { width: 18px; height: 18px; border: 2px solid #d1d5db; border-radius: 50%; flex-shrink: 0; }
.rx-pay-way.selected .rx-pay-way-radio { border-color: #2563eb; background: #2563eb; box-shadow: inset 0 0 0 3px #fff; }
.rx-pay-note { text-align: center; font-size: 12px; color: #9ca3af; margin-top: 16px; }
.rx-pay-note a { color: #2563eb; }

/* ===== Pay Result ===== */
.rx-pay-result { max-width: 520px; margin: 0 auto; padding: 48px 16px; text-align: center; }
.rx-paymark { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.rx-paymark-ok { background: #f0fdf4; }
.rx-paymark-bad { background: #fef2f2; }
.rx-done-ico svg { width: 36px; height: 36px; }
.rx-pay-result h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: #1f2937; }
.rx-done-desc { font-size: 14px; color: #6b7280; margin-bottom: 12px; }
.rx-done-info { background: #f9fafb; border-radius: 10px; padding: 16px 20px; margin: 20px 0; text-align: left; }
.rx-done-row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 14px; }
.rx-done-row span:first-child { color: #9ca3af; flex-shrink: 0; }
.rx-done-row span:last-child { color: #1f2937; font-weight: 500; text-align: right; }
.rx-done-ops { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ===== About Page ===== */
.rx-story-hero { background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #eff6ff 100%); padding: 56px 16px; text-align: center; }
.rx-story-hero h1 { font-size: 30px; font-weight: 700; color: #1f2937; margin-bottom: 10px; }
.rx-story-hero p { font-size: 15px; color: #6b7280; max-width: 600px; margin: 0 auto; }
.rx-story-copy { max-width: 800px; margin: 0 auto; font-size: 15px; color: #4b5563; line-height: 1.9; }
.rx-story-copy p { margin-bottom: 14px; }
.rx-journey { max-width: 800px; margin: 0 auto; }
.rx-journey-step { display: flex; gap: 20px; padding: 18px 0; position: relative; }
.rx-journey-step::before { content: ""; position: absolute; left: 11px; top: 42px; bottom: -18px; width: 2px; background: #e5e7eb; }
.rx-journey-step:last-child::before { display: none; }
.rx-journey-node { width: 24px; height: 24px; border-radius: 50%; background: #2563eb; flex-shrink: 0; z-index: 1; display: flex; align-items: center; justify-content: center; }
.rx-journey-node::after { content: ""; width: 8px; height: 8px; background: #fff; border-radius: 50%; }
.rx-journey-body h4 { font-size: 16px; font-weight: 700; color: #1f2937; margin-bottom: 6px; }
.rx-journey-body p { font-size: 14px; color: #6b7280; }
.rx-story-stats { display: grid; grid: none / repeat(4, 1fr); gap: 16px; max-width: 1000px; margin: 0 auto; }
.rx-stat-card { text-align: center; padding: 22px 14px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }
.rx-stat-card .rx-stat-num { font-size: 22px; font-weight: 700; color: #2563eb; margin-bottom: 6px; }
.rx-stat-card .rx-stat-key { font-size: 13px; color: #9ca3af; }

/* ===== Contact Page ===== */
.rx-touch-grid { display: grid; grid: none / 1fr 1fr; gap: 20px; max-width: 1000px; margin: 0 auto; }
.rx-touch-card { border: 1px solid #e5e7eb; border-radius: 12px; padding: 26px; background: #fff; }
.rx-touch-card h3 { font-size: 17px; font-weight: 700; color: #1f2937; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.rx-touch-card h3 .rx-touch-ico { width: 34px; height: 34px; background: #eff6ff; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rx-touch-card h3 .rx-touch-ico svg { width: 18px; height: 18px; stroke: #2563eb; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rx-touch-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f3f4f6; }
.rx-touch-row:last-of-type { border-bottom: none; }
.rx-touch-key { font-size: 13px; color: #9ca3af; margin-bottom: 2px; }
.rx-touch-val { font-size: 15px; color: #1f2937; line-height: 1.6; }
.rx-touch-val a { color: #2563eb; }
.rx-touch-note { font-size: 13px; color: #9ca3af; margin-top: 12px; line-height: 1.6; }

/* ===== FAQ Page ===== */
.rx-qa-cats { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.rx-qa-cat { padding: 7px 18px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid #e5e7eb; color: #6b7280; transition: all 0.2s; background: #fff; }
.rx-qa-cat:hover { color: #2563eb; border-color: #2563eb; }
.rx-qa-cat.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.rx-qa-list { max-width: 800px; margin: 0 auto; }
.rx-qa-item { border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 12px; overflow: hidden; background: #fff; }
.rx-qa-q { padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 15px; font-weight: 600; color: #1f2937; width: 100%; text-align: left; background: none; border: none; }
.rx-qa-q:hover { color: #2563eb; }
.rx-qa-q .rx-qa-toggle { transition: transform 0.3s; font-size: 20px; color: #9ca3af; font-weight: 400; flex-shrink: 0; margin-left: 12px; }
.rx-qa-item.open .rx-qa-toggle { transform: rotate(45deg); }
.rx-qa-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.rx-qa-item.open .rx-qa-a { max-height: 400px; }
.rx-qa-a-in { padding: 0 20px 16px; font-size: 14px; color: #6b7280; line-height: 1.8; }

/* ===== Search Page ===== */
.rx-find-box { max-width: 620px; margin: 0 auto 28px; display: flex; }
.rx-find-box input { flex: 1; padding: 12px 16px; border: 2px solid #e5e7eb; border-right: none; border-radius: 10px 0 0 10px; font-size: 15px; outline: none; }
.rx-find-box input:focus { border-color: #2563eb; }
.rx-find-box button { padding: 12px 28px; background: #2563eb; color: #fff; border-radius: 0 10px 10px 0; font-size: 15px; font-weight: 600; cursor: pointer; border: none; }
.rx-find-box button:hover { background: #1d4ed8; }
.rx-find-hot { max-width: 620px; margin: 0 auto 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rx-find-hot span { font-size: 13px; color: #9ca3af; }
.rx-find-hot a { font-size: 13px; color: #2563eb; padding: 4px 12px; border: 1px solid #e5e7eb; border-radius: 16px; }
.rx-find-hot a:hover { background: #eff6ff; border-color: #2563eb; }
.rx-find-list { max-width: 1000px; margin: 0 auto; }
.rx-find-item { display: flex; gap: 16px; padding: 18px 20px; border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 12px; transition: box-shadow 0.2s; background: #fff; }
.rx-find-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.rx-find-item img { width: 88px; height: 88px; object-fit: contain; border-radius: 8px; background: #f9fafb; }
.rx-find-note h4 { font-size: 15px; font-weight: 600; color: #1f2937; margin-bottom: 6px; }
.rx-find-note p { font-size: 13px; color: #9ca3af; margin-bottom: 8px; }
.rx-find-price { font-size: 17px; color: #ef4444; font-weight: 700; }
.rx-find-price .rx-cost-old { font-size: 13px; color: #d1d5db; text-decoration: line-through; font-weight: 400; margin-left: 8px; }
.rx-find-count { font-size: 14px; color: #9ca3af; margin-bottom: 16px; }
.rx-find-none { text-align: center; padding: 60px 16px; }
.rx-find-none p { font-size: 16px; color: #6b7280; margin-bottom: 6px; }

/* ===== Legal Pages ===== */
.rx-legal-body { max-width: 820px; margin: 0 auto; padding: 8px 16px 56px; }
.rx-legal-body h2 { font-size: 20px; font-weight: 700; color: #1f2937; margin: 32px 0 12px; }
.rx-legal-body h2:first-of-type { margin-top: 8px; }
.rx-legal-body h3 { font-size: 16px; font-weight: 600; color: #374151; margin: 20px 0 8px; }
.rx-legal-body p { font-size: 14px; color: #4b5563; line-height: 1.9; margin-bottom: 12px; }
.rx-legal-body ul { padding-left: 20px; margin-bottom: 12px; }
.rx-legal-body ul li { font-size: 14px; color: #4b5563; line-height: 1.9; margin-bottom: 6px; list-style: disc; }
.rx-legal-stamp { font-size: 13px; color: #9ca3af; margin-bottom: 20px; }
.rx-legal-menu { background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 10px; padding: 18px 22px; margin-bottom: 28px; }
.rx-legal-menu h3 { font-size: 14px; color: #9ca3af; font-weight: 600; margin-bottom: 10px; }
.rx-legal-menu ol { padding-left: 20px; }
.rx-legal-menu ol li { margin-bottom: 6px; font-size: 14px; list-style: cjk-ideographic; }
.rx-legal-menu ol li a { color: #2563eb; }
.rx-legal-menu ol li a:hover { text-decoration: underline; }

/* ===== Responsive: 768px ===== */
@media (max-width: 768px) {
  .rx-doc-hero { padding: 32px 16px; }
  .rx-doc-hero h1 { font-size: 22px; }
  .rx-order-grid { grid: none / 1fr; }
  .rx-field-row { grid: none / 1fr; }
  .rx-touch-grid { grid: none / 1fr; }
  .rx-story-stats { grid: none / repeat(2, 1fr); }
  .rx-basket-row { grid: none / 20px 72px 1fr 96px 40px; gap: 12px; padding: 16px 4px; }
  .rx-basket-row .rx-basket-unit, .rx-basket-row .rx-basket-sum { display: none; }
  .rx-basket-head { display: none; }
  .rx-basket-row img { width: 72px; height: 72px; }
  .rx-basket-name { font-size: 13px; }
  .rx-bill { position: static; }
  .rx-story-hero { padding: 40px 16px; }
  .rx-story-hero h1 { font-size: 24px; }
  .rx-pay-card { padding: 20px; }
  .rx-money-num { font-size: 28px; }
  .rx-legal-body { padding: 8px 12px 40px; }
  .rx-legal-body h2 { font-size: 18px; }
  .rx-doc-body { padding: 16px 12px 48px; }
}

/* ===== Responsive: 390px ===== */
@media (max-width: 390px) {
  .rx-doc-body { padding: 12px 10px 40px; }
  .rx-story-stats { grid: none / 1fr; }
  .rx-basket-row { grid: none / 18px 56px 1fr 92px 36px; }
  .rx-basket-row img { width: 56px; height: 56px; }
  .rx-qty { width: 92px; }
  .rx-done-ops { flex-direction: column; }
  .rx-done-ops .rx-btn { width: 100%; }
  .rx-find-box input { padding: 10px 12px; font-size: 14px; }
  .rx-find-box button { padding: 10px 18px; font-size: 14px; }
  .rx-basket-bar { flex-direction: column; align-items: stretch; }
  .rx-basket-bar-l, .rx-basket-bar-r { justify-content: space-between; width: 100%; }
  .rx-basket-bar-r .rx-btn { flex: 1; }
}
