/* ============================================================
   AURORA 官方商城 - 产品详情页样式
   ============================================================ */

:root {
  --accent: #ff4d00;
  --accent-2: #ff8a00;
  --accent-soft: #fff3ec;
  --text: #1f2329;
  --text-2: #4e5969;
  --muted: #86909c;
  --line: #eef0f3;
  --bg: #f5f6f8;
  --card: #ffffff;
  --green: #00b578;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 16px rgba(31, 35, 41, 0.06);
  --shadow-lg: 0 12px 40px rgba(31, 35, 41, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.logo-text { font-size: 18px; font-weight: 800; letter-spacing: 0.5px; }
.logo-text em {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 6px;
  letter-spacing: 1px;
}
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  position: relative;
  font-size: 15px;
  color: var(--text-2);
  padding: 6px 0;
  transition: color 0.2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--accent); }
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.hotline { font-size: 14px; color: var(--muted); }

/* ============ 面包屑 ============ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 16px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: #c9cdd4; }
.breadcrumb .current { color: var(--text-2); }

/* ============ 商品主区 ============ */
.product-card {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 48px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

/* 图库 */
.gallery-main {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f7f8fa;
  aspect-ratio: 1;
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-main:hover img { transform: scale(1.04); }
.gallery-badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 4px 10px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 20px;
}
.gallery-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.thumb {
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  background: #f7f8fa;
  transition: border-color 0.2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--accent); }

/* 信息区 */
.info { display: flex; flex-direction: column; }
.product-title { font-size: 26px; font-weight: 700; line-height: 1.3; }
.product-subtitle { margin-top: 8px; font-size: 15px; color: var(--muted); }

.price-panel {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #fff7f2, #fff0f7);
}
.price-row { display: flex; align-items: baseline; gap: 12px; }
.price-label { font-size: 14px; color: var(--muted); }
.price { color: var(--accent); font-weight: 700; }
.price i { font-size: 20px; font-style: normal; }
.price b { font-size: 36px; letter-spacing: -1px; }
.price small { font-size: 18px; }
.price-original { font-size: 14px; color: var(--muted); }
.discount-tag {
  font-size: 12px;
  color: #fff;
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
}
.price-meta {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.price-meta b { color: var(--text-2); font-weight: 600; }

/* 规格 */
.spec-group { margin-top: 22px; }
.spec-label { font-size: 14px; color: var(--text-2); margin-bottom: 10px; }
.spec-value { color: var(--accent); margin-left: 8px; }
.spec-options { display: flex; flex-wrap: wrap; gap: 10px; }
.spec-option {
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-2);
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  transition: all 0.2s;
}
.spec-option:hover { border-color: var(--accent); color: var(--accent); }
.spec-option.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

/* 数量 */
.stepper { display: flex; align-items: center; gap: 0; }
.stepper button {
  width: 40px; height: 40px;
  font-size: 20px;
  color: var(--text-2);
  background: #f5f6f8;
  border: 1px solid #e5e6eb;
  transition: all 0.2s;
}
.stepper button:first-child { border-radius: 8px 0 0 8px; }
.stepper button:last-of-type { border-radius: 0 8px 8px 0; }
.stepper button:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); }
.stepper button:disabled { color: #c9cdd4; cursor: not-allowed; }
.stepper input {
  width: 64px; height: 40px;
  text-align: center;
  font-size: 16px;
  border: 1px solid #e5e6eb;
  border-left: none;
  border-right: none;
  outline: none;
}
.stepper-hint { margin-left: 14px; font-size: 12px; color: var(--muted); }

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  padding: 14px 0;
  list-style: none;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.service-list li { font-size: 13px; color: var(--text-2); }
.service-list li::before { content: "✓"; color: var(--green); margin-right: 6px; font-weight: 700; }

/* 按钮 */
.actions { display: flex; gap: 14px; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s;
}
.btn-lg { height: 52px; padding: 0 40px; font-size: 16px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 16px rgba(255, 77, 0, 0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255, 77, 0, 0.38); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { color: var(--accent); border: 1px solid var(--accent); background: #fff; }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-block { width: 100%; height: 48px; font-size: 16px; }

.pay-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.pay-badge {
  display: inline-block;
  padding: 1px 8px;
  margin: 0 4px;
  font-size: 12px;
  border-radius: 4px;
}
.pay-badge.wechat { color: #07c160; background: #e8fff1; }
.pay-badge.alipay { color: #1677ff; background: #e8f2ff; }

/* ============ 详情 Tabs ============ */
.tabs-card {
  margin-top: 24px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
}
.tab {
  position: relative;
  padding: 18px 8px;
  margin-right: 32px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.2s;
}
.tab:hover { color: var(--accent); }
.tab.is-active { color: var(--accent); }
.tab.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.tab-panel { display: none; padding: 32px 40px; }
.tab-panel.is-active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.detail-intro h3 { font-size: 22px; margin-bottom: 12px; }
.detail-intro p { color: var(--text-2); max-width: 760px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.feature-card {
  padding: 22px;
  text-align: center;
  border-radius: var(--radius-sm);
  background: #fafbfc;
}
.feature-num {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--accent);
}
.feature-num span { font-size: 14px; font-weight: 600; margin-left: 2px; }
.feature-card h4 { margin: 8px 0 6px; font-size: 15px; }
.feature-card p { font-size: 13px; color: var(--muted); }

.detail-figure { margin-top: 24px; border-radius: var(--radius-sm); overflow: hidden; }
.detail-figure img { width: 100%; }

/* 规格表 */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table th {
  width: 160px;
  padding: 14px 20px;
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  background: #fafbfc;
}
.spec-table td { padding: 14px 20px; color: var(--text-2); }

/* 售后 */
.service-block { margin-bottom: 24px; }
.service-block:last-child { margin-bottom: 0; }
.service-block h4 { font-size: 16px; margin-bottom: 8px; color: var(--text); }
.service-block p { color: var(--text-2); font-size: 14px; }

/* ============ 页脚 ============ */
.site-footer { margin-top: 40px; background: #1c1f24; color: #a8abb2; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 48px 24px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text em { color: #6b6f76; }
.footer-brand p { font-size: 13px; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a, .footer-col p {
  display: block;
  font-size: 13px;
  line-height: 2.1;
  color: #a8abb2;
}
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 24px;
  font-size: 12px;
  color: #6b6f76;
}
.icp { display: flex; align-items: center; gap: 8px; }
.icp a:hover { color: #a8abb2; }
.icp .dot { color: #4a4d53; }

/* ============ 移动端下单栏 ============ */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  box-shadow: 0 -4px 16px rgba(31, 35, 41, 0.08);
}
.mobile-bar-price { font-size: 14px; color: var(--accent); }
.mobile-bar-price b { font-size: 26px; }
.mobile-bar-price small { font-size: 14px; }
.mobile-bar .btn { flex: 1; height: 44px; }

/* ============ 弹窗 ============ */
.modal { position: fixed; inset: 0; z-index: 100; }
.modal[hidden] { display: none; }
.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.2s ease;
}
.modal-dialog {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 440px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: popIn 0.25s ease;
}
@keyframes popIn {
  from { opacity: 0; transform: translate(-50%, -46%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  border-radius: 50%;
}
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-body { padding: 28px 28px 24px; }
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 18px; }
.modal-title.center { text-align: center; }

.order-product {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: #fafbfc;
}
.order-product img {
  width: 72px; height: 72px;
  border-radius: 8px;
  object-fit: cover;
}
.order-product-name { font-size: 14px; font-weight: 600; }
.order-product-spec { margin-top: 4px; font-size: 12px; color: var(--muted); }

.order-rows { margin-top: 14px; }
.order-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 14px;
  color: var(--text-2);
}
.order-row.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; }
.total-price { color: var(--accent); font-size: 20px; }

.pay-title { margin: 20px 0 12px; font-size: 15px; font-weight: 600; }
.pay-options { display: flex; flex-direction: column; gap: 12px; }
.pay-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid #e5e6eb;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.pay-option:hover { border-color: #c9cdd4; }
.pay-option input { display: none; }
.pay-option.is-checked { border-color: var(--accent); background: var(--accent-soft); }
.pay-icon {
  width: 40px; height: 40px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  font-size: 16px; font-weight: 700;
  color: #fff;
}
.pay-icon.wechat { background: #07c160; }
.pay-icon.alipay { background: #1677ff; }
.pay-name { flex: 1; font-size: 15px; font-weight: 600; }
.pay-name small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.pay-tag {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff;
  background: #c9cdd4;
}
.pay-tag.is-ready { background: var(--green); }

.modal-actions { margin-top: 20px; }

/* 等待态 */
.waiting-icon {
  width: 56px; height: 56px;
  margin: 4px auto 16px;
  border-radius: 50%;
  border: 4px solid var(--accent-soft);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.waiting-text { text-align: center; color: var(--text-2); font-size: 14px; }
.waiting-tip {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: #fffbe6;
  border: 1px solid #ffe58f;
  font-size: 13px;
  color: #ad6800;
}
.waiting-tip ul { margin: 8px 0 0 18px; line-height: 1.9; }
.order-no { margin-top: 16px; text-align: center; font-size: 13px; color: var(--muted); }
.order-no b { color: var(--text); }

/* ============ Toast ============ */
.toast {
  position: fixed;
  left: 50%; bottom: 80px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 10px 22px;
  font-size: 14px;
  color: #fff;
  background: rgba(31, 35, 41, 0.88);
  border-radius: 20px;
  animation: popIn 0.2s ease;
}
.toast[hidden] { display: none; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .product-card { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .gallery-main { max-width: 460px; }
  .site-nav { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hotline { display: none; }
  .product-card { padding: 16px; }
  .product-title { font-size: 20px; }
  .price b { font-size: 30px; }
  .actions { display: none; }
  .pay-note { display: none; }
  .tabs { padding: 0 16px; overflow-x: auto; }
  .tab { margin-right: 24px; white-space: nowrap; }
  .tab-panel { padding: 20px; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 36px 16px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .mobile-bar { display: flex; }
  .toast { bottom: 120px; }
  .modal-dialog { top: auto; bottom: 0; left: 0; right: 0; transform: none; width: 100%; max-width: 100%; border-radius: 16px 16px 0 0; }
}

/* ============ 关于我们页面 ============ */
.about-card {
  margin-top: 24px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 40px;
  box-shadow: var(--shadow);
}
.about-card h2 { font-size: 20px; margin-bottom: 16px; }
.about-card h3 { font-size: 16px; margin: 22px 0 12px; color: var(--text-2); }
.about-hero {
  margin-top: 24px;
  background: linear-gradient(135deg, #1c1f24, #2c3037);
  color: #fff;
}
.about-hero h1 { font-size: 26px; margin-bottom: 10px; }
.about-since {
  display: inline-block;
  padding: 4px 14px;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 20px;
}
.about-desc {
  margin-top: 16px;
  font-size: 15px;
  color: #c9cdd4;
  line-height: 1.9;
  max-width: 820px;
}
.about-lead { font-size: 15px; color: var(--text-2); line-height: 2; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.about-tag {
  padding: 7px 14px;
  font-size: 13px;
  color: var(--text-2);
  background: #f5f6f8;
  border: 1px solid #eef0f3;
  border-radius: 8px;
  transition: all 0.2s;
}
.about-tag:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.about-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.about-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.about-contact-item {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: #fafbfc;
}
.about-contact-item .k { font-size: 13px; color: var(--muted); }
.about-contact-item .v { font-size: 15px; font-weight: 600; margin-top: 4px; word-break: break-all; }
@media (max-width: 640px) {
  .about-card { padding: 20px; }
  .about-hero h1 { font-size: 22px; }
  .about-contact { grid-template-columns: 1fr; }
}
