/* ==========================================================================
   易微帮 IT 技术服务平台 - 站点样式 (style.css)
   说明: 该文件由原 Hyper 模板内联样式重构而来，覆盖两个页面全部自定义样式。
   ========================================================================== */

/* ---------- 基础与变量 ---------- */
:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --danger: #ef4444;
  --success: #10b981;
  --dark: #0f172a;
  --body-bg: #f8fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --text: #475569;
  --text-strong: #0f172a;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --ai-bg: #1a1a2e;
  --ai-bg2: #16213e;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--body-bg);
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
}

img {
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-strong);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 0.75rem;
}

ul, ol {
  margin: 0 0 0.75rem;
}

/* ---------- 布局骨架 ---------- */
.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-page {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1 0 auto;
  padding-bottom: 40px;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

[class*="col-"] {
  position: relative;
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* ---------- 顶部导航 ---------- */
.header-navbar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

/* 导航栏右侧按钮间距 */
.header-navbar .d-flex {
  gap: 10px;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.topnav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-strong);
}

.topnav-logo img {
  display: block;
}

.logo-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
}

@media (max-width: 640px) {
  .logo-title {
    font-size: 14px;
  }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  padding: 0.45rem 0.95rem;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  letter-spacing: 0.02em;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.15s ease, filter 0.2s ease;
}

.btn:focus {
  outline: 0;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn:active {
  transform: scale(0.97);
}

/* 描边主按钮 */
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  color: #fff;
  background-color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.btn-outline-primary:active {
  transform: translateY(0) scale(0.97);
}

/* 主按钮 */
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #38bdf8 0%, var(--primary) 60%, var(--primary-dark) 100%);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
  transform: translateY(0) scale(0.97);
}

/* 危险按钮 */
.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #f87171 0%, var(--danger) 60%, #dc2626 100%);
  border-color: var(--danger);
  box-shadow: 0 4px 12px rgba(250, 92, 124, 0.28);
}

.btn-danger:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(250, 92, 124, 0.4);
}

.btn-danger:active {
  transform: translateY(0) scale(0.97);
}


/* ---------- 页面标题 / 搜索 ---------- */
.page-title-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0 10px;
}

.page-title {
  font-size: 18px;
  margin: 0;
}

.page-title-right {
  margin-left: auto;
}

.app-search {
  position: relative;
}

/* 导航栏内搜索框 */
.header-search {
  flex: 1;
  max-width: 420px;
  margin: 0 18px;
}

.header-search .form-control {
  height: 38px;
}

@media (max-width: 768px) {
  .header-search {
    order: 3;
    flex: 0 0 100%;
    max-width: 100%;
    margin: 4px 0 0;
  }
}

.app-search .form-control {
  padding-right: 36px;
}

.app-search .uil-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  pointer-events: none;
}


/* ---------- 表单控件 ---------- */
.form-control {
  display: block;
  width: 100%;
  padding: 0.5rem 0.85rem;
  font-size: 14px;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 0.3rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 0.15rem rgba(59, 130, 246, 0.25);
}

.form-group {
  margin-bottom: 1.2rem;
}

.buy-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 6px;
}

/* 单选组（操作系统 / 软件版本） */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radio-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  transition: all 0.15s ease;
  user-select: none;
}

.radio-item:hover {
  border-color: var(--primary);
}

.radio-item:has(input:checked) {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.06);
  color: var(--primary);
  font-weight: 600;
}

.radio-item input {
  accent-color: var(--primary);
  margin: 0;
  cursor: pointer;
}

/* ---------- 分类标签页 ---------- */
.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}

.tab-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s ease;
}

.tab-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.tab-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.tab-link .img-checkmark {
  display: none;
  width: 14px;
  height: 14px;
}

.tab-link.active .img-checkmark {
  display: inline-flex;
}

.tab-link .img-checkmark img {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
}

/* ---------- Tab 内容 ---------- */
.tab-content > .tab-pane {
  display: none;
}

.tab-content > .tab-pane.active {
  display: block;
}

/* ---------- 商品卡片 ---------- */
.hyper-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .hyper-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hyper-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 420px) {
  .hyper-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.home-card {
  position: relative;
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--text);
}

.home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.home-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  display: block;
  background: #f8f9fc;
  padding: 14px;
}

@media (max-width: 420px) {
  .home-img {
    height: 130px;
  }
}

.home-card .flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
}

.home-card .name {
  margin: 0;
  font-size: 14px;
  color: var(--text-strong);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-card .price {
  flex-shrink: 0;
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
}

.home-card .price b {
  font-size: 18px;
}

/* 分页组件 */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 24px 0 8px;
}

.pagination .page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pagination .page-btn:hover:not(:disabled):not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.pagination .page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pagination .page-ellipsis {
  color: #98a6ad;
  padding: 0 2px;
}

/* 缺货 ribbon */
.ribbon-box {
  overflow: hidden;
}

.ribbon-two {
  position: absolute;
  top: 12px;
  right: -30px;
  z-index: 5;
  transform: rotate(45deg);
  padding: 5px 34px;
  font-size: 12px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.ribbon-two-danger {
  background: var(--danger);
}

.ribbon-two span {
  display: block;
  white-space: nowrap;
}

/* ---------- Modal ---------- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}

.modal.show {
  display: block;
}

.modal::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.modal-dialog {
  position: relative;
  width: auto;
  max-width: 500px;
  margin: 1.75rem auto;
  padding: 0 15px;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 3.5rem);
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  outline: 0;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 16px;
  margin: 0;
}

.modal-body {
  padding: 20px;
}

.close {
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  padding: 0 4px;
}

.close:hover {
  color: var(--danger);
}

/* ---------- 页脚（内容不足一屏时贴底，内容超长时跟随内容流） ---------- */
.hyper-footer {
  margin-top: auto;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: rgba(255, 255, 255, 0.75);
  padding: 24px 0;
}

.footer-simple {
  text-align: center;
}

.footer-simple-copy {
  margin: 0 0 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-simple-meta {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-simple-meta b {
  color: #ffd76a;
  font-size: 13px;
}

.footer-simple-meta a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.footer-simple-meta a:hover {
  color: #fff;
  text-decoration: underline;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
}

.back-to-top .btn {
  border-radius: 50%;
  width: 42px;
  height: 42px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 回到顶部箭头（CSS 绘制，替代已删除的 dripicons 图标字体） */
.dripicons-chevron-up::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(45deg);
  margin-top: 5px;
}

/* ---------- 详情页：购买区 ---------- */
.buy-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 24px;
  align-items: start;
  margin: 16px 0 24px;
}

@media (max-width: 992px) {
  .buy-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-body {
  padding: 24px;
}

.sticky {
  position: sticky;
  top: 16px;
}

.buy-shop h3 {
  font-size: 18px;
  margin: 0;
}

.buy-price {
  color: var(--danger);
  font-size: 26px;
  font-weight: 700;
}

.buy-shop small del {
  color: #98a6ad;
  margin-left: 6px;
}

/* badge */
.badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  border-radius: 10rem;
  border: 1px solid transparent;
  margin-right: 4px;
}

.badge-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.badge-outline-dark {
  color: var(--dark);
  border-color: var(--dark);
}

.badge-outline-success {
  color: var(--success);
  border-color: var(--success);
}

/* 数量输入 */
.input-group {
  display: flex;
  align-items: center;
  width: 100%;
}

.bootstrap-touchspin {
  max-width: 260px;
}

.input-group-btn {
  display: flex;
}

.input-group-btn .btn {
  border-radius: 0.3rem;
  width: 38px;
  padding: 0.5rem 0;
}

.input-group .form-control {
  flex: 1;
  min-width: 0;
  text-align: center;
  margin: 0 8px;
  max-width: 90px;
}

/* 支付方式 */
.pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  width: 100%;
}

.pay-type {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  background: #fff;
  color: var(--text);
  transition: all 0.15s ease;
  justify-content: flex-start;
}

.pay-type:hover {
  border-color: var(--primary);
}

.pay-type.active {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.06);
  color: var(--primary);
  font-weight: 600;
}

.pay-type .icon {
  flex-shrink: 0;
}

/* 商品详情卡片 */
.buy-product {
  line-height: 1.7;
}

.card-title {
  font-size: 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.buy-product ul,
.buy-product ol {
  padding-left: 26px;
}

/* ---------- 工具类 ---------- */
.d-none {
  display: none !important;
}

.d-flex {
  display: flex !important;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.align-items-center {
  align-items: center;
}

.justify-content-between {
  justify-content: space-between;
}

.ml-auto {
  margin-left: auto;
}

.ml-1 { margin-left: 0.25rem; }
.mr-1 { margin-right: 0.25rem; }
.me-1 { margin-right: 0.25rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-0 { margin-bottom: 0; }
.pl-2 { padding-left: 0.5rem; }
.pl-8 { padding-left: 2rem; }
.gap-1 { gap: 0.25rem; }

.text-center {
  text-align: center;
}

.text-md-right {
  text-align: left;
}

@media (min-width: 768px) {
  .d-md-block {
    display: block !important;
  }

  .d-md-none {
    display: none !important;
  }

  .text-md-right {
    text-align: right;
  }
}

.list-disc {
  list-style-type: disc;
}

.list-decimal {
  list-style-type: decimal;
}

.break-words {
  overflow-wrap: break-word;
  word-break: break-word;
}

.whitespace-normal {
  white-space: normal;
}

.leading-\[1\.7\] {
  line-height: 1.7;
}

.underline {
  text-decoration: underline;
}

/* ==========================================================================
   轻量提示 Toast（替代原 $.NotificationApp）
   ========================================================================== */
.ev-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  padding: 12px 22px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  animation: evToastIn 0.3s ease;
  max-width: 90vw;
}

.ev-toast.info {
  background: var(--primary);
}

.ev-toast.warn {
  background: #f8bb86;
}

.ev-toast.success {
  background: var(--success);
}

.ev-toast.hide {
  animation: evToastOut 0.3s ease forwards;
}

@keyframes evToastIn {
  from {
    opacity: 0;
    transform: translate(-50%, -16px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes evToastOut {
  to {
    opacity: 0;
    transform: translate(-50%, -16px);
  }
}

/* 图片放大 modal 内图片 */
#img-modal .modal-dialog {
  max-width: 90vw;
  width: auto;
}

#img-zoom {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 5px;
}

/* ==========================================================================
   登录注册页
   ========================================================================== */


/* ---------- 登录页输入框：深色玻璃（仅登录页） ---------- */
body.login-page .form-control {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

body.login-page .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

body.login-page .form-control:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: #7dd3fc;
  box-shadow: 0 0 0 0.2rem rgba(147, 197, 253, 0.25);
  color: #fff;
}

body.login-page .captcha-canvas {
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* ---------- 登录注册页：页脚贴底 ---------- */
body.login-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.login-page .auth-page {
  flex: 1 0 auto;
  min-height: 0;
}

body.login-page .hyper-footer {
  margin-top: auto;
}
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  position: relative;
  overflow: hidden;
  /* 登录：深蓝系流动渐变 */
  background: linear-gradient(135deg, #0f172a, #1e3a8a, #1a1a2e, #16213e, #24355e, #0f172a);
  background-size: 400% 400%;
  animation: authBgFlow 14s ease infinite;
}

@keyframes authBgFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 内容保持在背景层之上 */
.auth-page > * {
  position: relative;
  z-index: 2;
}

/* 漂浮光斑层 */
.auth-page::before {
  content: '';
  position: absolute;
  inset: -10%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(620px circle at 22% 28%, rgba(59, 130, 246, 0.4), transparent 62%),
    radial-gradient(520px circle at 78% 18%, rgba(6, 182, 212, 0.32), transparent 62%),
    radial-gradient(720px circle at 50% 92%, rgba(16, 185, 129, 0.22), transparent 60%),
    radial-gradient(460px circle at 88% 78%, rgba(14, 165, 233, 0.3), transparent 60%);
  animation: authGlow 9s ease-in-out infinite alternate;
}

@keyframes authGlow {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-28px, 22px, 0) scale(1.06); }
  100% { transform: translate3d(30px, -24px, 0) scale(1.1); }
}

/* 注册模式：紫红系流动渐变叠加层（淡入） */
.auth-page::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(135deg, #1a1a2e, #155e75, #0e7490, #06b6d4, #1a1a2e);
  background-size: 400% 400%;
  animation: authBgFlow 14s ease infinite;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.auth-page.bg-register::after {
  opacity: 1;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  padding: 36px 30px 28px;
}

/* 登录页返回首页 */
.auth-back {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.auth-back:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  text-decoration: none;
  transform: translateX(-2px);
}

.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.auth-logo img {
  border-radius: 8px;
}

.auth-logo-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 22px;
}

.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #fff;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.45);
}


/* ---------- 登录验证码行 ---------- */
.code-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.code-row .form-control {
  flex: 1;
}

.code-row canvas {
  flex-shrink: 0;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 6px;
}

.form-control.error {
  border-color: #dc2626;
}

.form-control.error:focus {
  box-shadow: 0 0 0 0.15rem rgba(220, 38, 38, 0.2);
}

.btn-block {
  display: block;
  width: 100%;
  padding: 10px 0;
  font-size: 15px;
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin: 16px 0 0;
}

.auth-switch a {
  color: #7dd3fc;
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-tip {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  line-height: 1.7;
  color: #98a6ad;
}

.auth-tip code {
  background: #f1f3f9;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
}

/* ==========================================================================
   个人中心
   ========================================================================== */
.user-login-tip {
  background: linear-gradient(135deg, #fff 0%, #f8f9fc 100%);
  border: 1px dashed var(--primary);
  border-radius: 14px;
  padding: 44px 20px;
  text-align: center;
  margin-bottom: 24px;
}

.user-login-tip .tip-icon {
  font-size: 44px;
  display: block;
  margin-bottom: 10px;
}

.user-login-tip p {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 18px;
}

.user-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  flex-wrap: wrap;
}

.user-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: #f1f3f9;
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  min-width: 160px;
}

.user-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-strong);
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-name::after {
  content: "👤";
  font-size: 16px;
}

.user-meta-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-meta-row {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  padding: 3px 8px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.user-meta-row:hover {
  background: #f6f8fc;
}

.user-meta-label {
  color: #98a6ad;
  flex-shrink: 0;
  min-width: 58px;
}

.user-meta-value {
  color: var(--text-strong);
  word-break: break-all;
}

.user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.user-edit-form {
  max-width: 320px;
  margin-top: 10px;
}

.user-edit-form .form-group {
  margin-bottom: 10px;
}

.user-orders {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.orders-title {
  font-size: 16px;
  color: var(--text-strong);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.orders-count {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  border-radius: 10rem;
  padding: 2px 10px;
}

.orders-empty {
  text-align: center;
  padding: 48px 0;
  color: #98a6ad;
  font-size: 14px;
}

.orders-empty .empty-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 10px;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  transition: box-shadow 0.15s ease;
}

.order-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.order-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.order-id {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
  word-break: break-all;
}

.order-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* 服务状态徽章 */
.order-status {
  display: inline-block;
  width: fit-content;
  font-size: 12px;
  font-weight: 600;
  border-radius: 10rem;
  padding: 2px 10px;
}

.order-status.pending {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}

.order-status.done {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.12);
}

/* 支付状态徽章 */
.pay-status {
  display: inline-block;
  width: fit-content;
  font-size: 12px;
  font-weight: 600;
  border-radius: 10rem;
  padding: 2px 10px;
}

.pay-status.pending {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.12);
}

.pay-status.paid {
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
}

/* 头部金额 */
.order-total {
  margin-left: auto;
  font-size: 20px;
  font-weight: 700;
  color: var(--danger);
}

/* 明细区 */
.order-detail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 28px;
  background: #f8f9fc;
  border-radius: 8px;
  padding: 12px 14px;
}

.detail-row {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.detail-label {
  color: #98a6ad;
  flex-shrink: 0;
  min-width: 52px;
}

.detail-value {
  color: var(--text-strong);
  word-break: break-all;
}

/* 订单商品缩略图 */
.order-product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-thumb {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f8f9fc;
  padding: 4px;
  flex-shrink: 0;
}

.order-product-name {
  flex: 1;
}

/* 底部：合计 + 操作 */
.order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.order-total-sum {
  font-size: 16px;
  font-weight: 700;
  color: var(--danger);
}

.order-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.order-del {
  flex-shrink: 0;
  padding: 5px 14px;
  font-size: 13px;
}

.order-toggle {
  flex-shrink: 0;
  padding: 5px 14px;
  font-size: 13px;
}

@media (max-width: 600px) {
  .order-detail {
    grid-template-columns: 1fr;
  }

  .order-total {
    margin-left: 0;
  }

  .order-footer {
    align-items: flex-end;
    flex-direction: column;
  }

  .order-actions {
    align-self: flex-end;
  }
}

/* ---------- 首页搜索框升级（胶囊 + 光晕 + 清除按钮） ---------- */
.header-search .form-control {
  height: 40px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  padding-left: 16px;
  padding-right: 40px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.header-search .form-control:hover {
  border-color: #cbd5e1;
  background: #fff;
}

.header-search .form-control:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12), 0 4px 14px rgba(59, 130, 246, 0.18);
}

.header-search .form-control:focus + .uil-search {
  color: var(--primary);
}

.search-clear {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  border: none;
  border-radius: 50%;
  background: rgba(100, 116, 139, 0.15);
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  display: none;
  padding: 0;
  transition: all 0.2s ease;
}

.search-clear:hover {
  background: var(--primary);
  color: #fff;
}

/* ---------- 专业化首页区块：Hero / 保障条 / 服务流程 ---------- */
.hero-section {
  position: relative;
  padding: 64px 0 72px;
  background: linear-gradient(160deg, #0f172a 0%, #16213e 45%, #1e3a8a 100%);
  color: #fff;
  overflow: hidden;
}

/* 网格纹理 */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 20px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}

.btn-lg {
  padding: 12px 30px;
  font-size: 15px;
  border-radius: 24px;
}

.btn-outline-light {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
  transform: translateY(-1px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
}

.hero-stat {
  text-align: center;
}

.hero-stat b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}

.hero-stat span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* 保障条 */
.feature-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px;
  border-right: 1px solid var(--border);
}

.feature-item:last-child {
  border-right: none;
}

.feature-item svg {
  flex-shrink: 0;
}

.feature-item b {
  font-size: 15px;
  color: var(--text-strong);
}

.feature-item p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--text);
}

/* 服务流程 */
.process-section {
  padding: 56px 0 64px;
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-strong);
  margin: 0 0 6px;
}

.section-head p {
  color: var(--text);
  margin: 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.25s ease;
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border-color: rgba(59, 130, 246, 0.35);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
  margin-bottom: 14px;
}

.process-step h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0 0 8px;
}

.process-step p {
  font-size: 13px;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 992px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(2n) { border-right: none; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .hero-title { font-size: 30px; }
  .hero-stats { gap: 32px; }
  .feature-grid, .process-grid { grid-template-columns: 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ============================================================
   UI 全面精修（覆盖层，保持结构不变）
   ============================================================ */

/* ---------- 导航栏 ---------- */
.header-navbar {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02), 0 6px 24px rgba(15, 23, 42, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-title {
  font-size: 19px;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Hero：动态光晕与入场动画 ---------- */
.hero-section {
  position: relative;
  padding: 80px 0 90px;
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(59, 130, 246, 0.35), transparent 62%),
    radial-gradient(820px 400px at 88% 12%, rgba(6, 182, 212, 0.30), transparent 62%),
    linear-gradient(160deg, #0b1120 0%, #16213e 50%, #1e3a8a 100%);
  overflow: hidden;
}

.hero-section::before {
  opacity: 0.4;
  animation: heroGridMove 20s linear infinite;
}

@keyframes heroGridMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(44px); }
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.12), transparent 60%);
  animation: heroPulse 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero-inner {
  animation: heroFadeInUp 0.9s ease-out both;
}

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

.hero-title {
  font-size: 48px;
  letter-spacing: -1px;
  background: linear-gradient(180deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 17px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-badge {
  padding: 7px 18px;
  font-size: 13px;
  letter-spacing: 0.4px;
  animation: heroFadeInUp 0.9s ease-out 0.15s both;
}

.hero-actions {
  animation: heroFadeInUp 0.9s ease-out 0.3s both;
}

.hero-stats {
  animation: heroFadeInUp 0.9s ease-out 0.45s both;
}

.hero-stat b {
  background: linear-gradient(135deg, #38bdf8, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- 保障条：悬浮玻璃卡片（叠在 Hero 底部） ---------- */
.feature-strip {
  position: relative;
  z-index: 5;
  margin-top: -40px;
  padding-bottom: 28px;
  background: transparent;
  border-bottom: none;
}

.feature-grid {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.feature-item {
  padding: 26px 22px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.feature-item:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}

.feature-item b {
  font-size: 15.5px;
}

/* ---------- 商品区标题 ---------- */
.products-section {
  padding: 42px 0 56px;
}

.products-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.products-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-strong);
  margin: 0;
}

.products-title span {
  color: var(--primary);
}

.hot-keywords {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  position: relative;
  z-index: 1;
}

.hot-keywords span {
  color: #64748b;
}

.hot-keyword {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 16px;
  background: #f1f5f9;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.hot-keyword:hover {
  background: rgba(59, 130, 246, 0.08);
  color: var(--primary);
  border-color: rgba(59, 130, 246, 0.2);
}

/* ---------- 分类 tab：现代胶囊 + 横向滚动 ---------- */
.nav-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0 0 18px;
  padding-bottom: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.tab-link {
  flex-shrink: 0;
  font-weight: 600;
  transition: all 0.2s ease;
  padding: 9px 20px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--border);
}

.tab-link:hover {
  border-color: rgba(59, 130, 246, 0.4);
  color: #3b82f6;
}

.tab-link.active {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

/* ---------- 商品卡片：现代玻璃拟态 + hover ---------- */
.hyper-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

@media (max-width: 1100px) {
  .hyper-wrapper { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .hyper-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 420px) {
  .hyper-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.home-card {
  border-radius: 16px;
  border-color: #eef1f6;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.home-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border-color: rgba(59, 130, 246, 0.18);
}

.home-img {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f9 100%);
  padding: 20px;
  height: 190px;
  transition: transform 0.4s ease;
}

.home-card:hover .home-img {
  transform: scale(1.05);
}

.home-card .flex {
  padding: 14px 16px;
  align-items: flex-start;
}

.home-card .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}

.home-card .price {
  color: var(--danger);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.home-card .price b {
  font-weight: 800;
}

.home-card .sold {
  font-size: 12px;
  color: #94a3b8;
  padding: 0 16px 14px;
  margin-top: -6px;
}

/* 售罄卡片 */
.home-card.sold-out {
  opacity: 0.72;
  cursor: not-allowed;
}

.home-card.sold-out .home-img {
  filter: grayscale(0.85);
}

/* ---------- 骨架屏 ---------- */
.skeleton-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eef1f6;
  overflow: hidden;
}

.skeleton-img {
  height: 190px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
}

.skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
  margin: 12px 16px;
}

.skeleton-line.short {
  width: 45%;
  margin-bottom: 16px;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- 空状态 ---------- */
.empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
  text-align: center;
  color: #64748b;
}

.empty-state.show {
  display: flex;
}

.empty-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.empty-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0 0 6px;
}

.empty-desc {
  font-size: 13px;
  margin: 0;
  max-width: 360px;
}

/* ---------- 搜索无结果 ---------- */
.no-results {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  text-align: center;
}

.no-results.show {
  display: flex;
}

.no-results-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.no-results-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0 0 6px;
}

.no-results-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

/* ---------- 流程卡片 ---------- */
.process-section {
  background: linear-gradient(180deg, var(--body-bg) 0%, #fff 100%);
}

.process-step {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.process-step:hover::before {
  opacity: 1;
}

/* ---------- 分页 ---------- */
.pagination .page-btn {
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pagination .page-btn:hover {
  border-color: rgba(59, 130, 246, 0.4);
  color: #3b82f6;
}

.pagination .page-btn.active {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ---------- 页脚升级 ---------- */
.hyper-footer {
  padding: 30px 0;
}

/* ---------- 响应式微调 ---------- */
@media (max-width: 768px) {
  .hero-section { padding: 56px 0 64px; }
  .hero-title { font-size: 32px; }
  .hero-sub { font-size: 15px; }
  .hero-stats { gap: 32px; }
  .hero-stat b { font-size: 22px; }

  .products-head { flex-direction: column; align-items: flex-start; }
  .products-title { font-size: 20px; }

  .feature-grid { border-radius: 14px; }
  .feature-item { padding: 18px 16px; }

  .process-grid { grid-template-columns: 1fr; }
  .process-step { padding: 22px 18px; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 28px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .btn-lg { width: 100%; text-align: center; }
  .home-img { height: 150px; }
  .skeleton-img { height: 150px; }
}

/* ---------- 精致 header（深色毛玻璃吸顶） ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.82));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 24px rgba(2, 6, 23, 0.25);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
}

.site-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.site-logo::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, #38bdf8, #22d3ee);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.8);
  align-self: center;
}

.site-logo span {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav-link {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: all 0.2s ease;
}

.site-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.site-nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(6, 182, 212, 0.9));
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.site-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-actions .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.site-nav-link {
  white-space: nowrap;
}


.site-actions .header-search {
  flex: 0 1 300px;
  margin: 0;
}

.site-actions .header-search .form-control {
  height: 36px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 13px;
}

.site-actions .header-search .form-control::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.site-actions .header-search .form-control:focus {
  background: rgba(255, 255, 255, 0.16);
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
  color: #fff;
}

.site-actions .uil-search {
  color: rgba(255, 255, 255, 0.5);
}

.site-actions .form-control:focus + .uil-search {
  color: #7dd3fc;
}

/* 深色栏内的幽灵按钮 */
.btn-ghost {
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
}

.btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .site-header-inner {
    flex-wrap: wrap;
    gap: 10px;
    min-height: auto;
    padding: 10px 0;
  }
  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }
  .site-actions {
    margin-left: 0;
  }
  .site-actions .header-search {
    flex: 1 1 100%;
    order: 2;
  }
}

/* 页面内搜索框（服务列表页） */
.page-search {
  max-width: 640px;
  margin: 0 auto 18px;
}

.page-search .form-control {
  height: 42px;
  border-radius: 21px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  padding-left: 18px;
  padding-right: 40px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition: all 0.25s ease;
}

.page-search .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.page-search .form-control:focus + .uil-search {
  color: var(--primary);
}

/* ---------- 服务流程（新设计） ---------- */
.process-section {
  padding: 64px 0 72px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f9 100%);
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-strong);
  margin: 0 0 8px;
}

.section-head h2 em {
  font-style: normal;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head p {
  color: var(--text);
  margin: 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}

.process-step {
  position: relative;
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 16px;
  padding: 30px 20px 26px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.process-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.35);
}

.step-num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #cbd5e1;
}

.step-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
  color: #3b82f6;
  transition: all 0.3s ease;
}

.process-step:hover .step-icon {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #fff;
  box-shadow: 0 10px 22px rgba(59, 130, 246, 0.38);
}

.process-step h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0 0 8px;
}

.process-step p {
  font-size: 13px;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

/* 步骤连接箭头（桌面端） */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -17px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-top: 2px solid #cbd5e1;
  border-right: 2px solid #cbd5e1;
  transform: translateY(-50%) rotate(45deg);
  z-index: 3;
}

.process-cta {
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 992px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:not(:last-child)::after { display: none; }
}

@media (max-width: 576px) {
  .process-grid { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 24px; }
}

/* ---------- 关于我们页面 ---------- */
.about-hero {
  padding: 72px 0;
}

.about-section {
  padding: 56px 0;
}

.about-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-intro-text h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-strong);
  margin: 0 0 16px;
}

.about-intro-text p {
  color: var(--text);
  line-height: 1.9;
  margin: 0 0 12px;
}

.about-intro-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  transition: all 0.25s ease;
}

.about-point:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
}

.about-point-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-point b {
  font-size: 15px;
  color: var(--text-strong);
}

.about-point p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--text);
}

/* 核心数据 */
.about-stats-section {
  background: linear-gradient(135deg, #0f172a, #16213e, #1e3a8a);
  padding: 44px 0;
}
/* ---------- 关于我们（一屏紧凑） ---------- */
.about-hero {
  padding: 40px 0 44px;
}

.about-hero .hero-title {
  font-size: 34px;
}

.about-section {
  padding: 32px 0 36px;
}

.about-intro {
  gap: 36px;
}

.about-point {
  padding: 12px 16px;
}

.about-stats-section {
  padding: 24px 0;
}

.about-stat b {
  font-size: 26px;
}


.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.about-stat b {
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #38bdf8, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-stat span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.about-features .feature-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 6px;
}

/* 联系 CTA */
.about-cta {
  padding: 56px 0 72px;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc, #eef2f9);
}

.about-cta h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-strong);
  margin: 0 0 6px;
}

.about-cta p {
  color: var(--text);
  margin: 0 0 24px;
}

@media (max-width: 768px) {
  .about-intro { grid-template-columns: 1fr; gap: 28px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 首页（一屏紧凑） ---------- */
.hero-section {
  padding: 40px 0 46px;
}

.hero-title {
  font-size: 34px;
  margin-bottom: 10px;
}

.hero-sub {
  font-size: 15px;
  margin-bottom: 22px;
}

.hero-actions {
  margin-bottom: 24px;
}

.hero-actions .btn-lg {
  padding: 9px 24px;
  font-size: 14px;
}

.hero-stats {
  gap: 44px;
}

.hero-stat b {
  font-size: 22px;
}

.hero-badge {
  margin-bottom: 12px;
}

/* 保障条 */
.feature-strip {
  margin-top: -28px;
  padding-bottom: 18px;
}

.feature-item {
  padding: 16px 18px;
}

/* 服务流程 */
.process-section {
  padding: 30px 0 40px;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 24px;
}

.process-grid {
  gap: 14px;
}

.process-step {
  padding: 18px 14px 16px;
}

.step-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
}

.step-icon svg {
  width: 20px;
  height: 20px;
}

.process-step h4 {
  font-size: 14px;
  margin-bottom: 4px;
}

.process-step p {
  font-size: 12px;
}

.process-cta {
  margin-top: 20px;
}

/* ---------- 首页新 Hero（左右分栏 + 状态卡） ---------- */
.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-left {
  text-align: left;
}

.hero-left .hero-badge {
  margin-bottom: 14px;
}

.hero-left .hero-title {
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero-left .hero-sub {
  font-size: 15px;
  margin-bottom: 22px;
}

.hero-left .hero-actions {
  justify-content: flex-start;
  margin-bottom: 26px;
}

.hero-left .hero-stats {
  justify-content: flex-start;
  gap: 40px;
}

/* 右侧状态卡 */
.hero-right {
  position: relative;
  min-height: 300px;
}

.hero-card {
  position: absolute;
  left: 8%;
  width: 84%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 16px 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.35);
  animation: heroCardFloat 6s ease-in-out infinite;
}

.hero-card-1 {
  top: 0;
}

.hero-card-2 {
  top: 104px;
  animation-delay: 1.2s;
  background: rgba(255, 255, 255, 0.14);
}

.hero-card-3 {
  top: 208px;
  animation-delay: 2.4s;
}

@keyframes heroCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-card-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.hero-card-dot.done {
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
}

.hero-card-dot.working {
  background: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.25);
  animation: dotPulse 1.2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hero-card b {
  display: block;
  font-size: 14px;
  color: #fff;
  margin-bottom: 3px;
}

.hero-card p {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 992px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-right {
    min-height: 240px;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-card-2 { top: 84px; }
  .hero-card-3 { top: 168px; }
}

/* ---------- 关于我们（新设计） ---------- */
.about-main {
  padding: 44px 0 40px;
}

.about-main-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.about-story h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-strong);
  margin: 0 0 14px;
}

.about-story p {
  color: var(--text);
  line-height: 1.9;
  margin: 0 0 18px;
}

.about-mission {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  padding: 14px 18px;
}

.about-mission-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.about-mission b {
  font-size: 15px;
  color: var(--text-strong);
}

.about-mission p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--text);
}

/* 右侧数据 + 联系面板 */
.about-panel {
  background: linear-gradient(160deg, #0f172a, #16213e, #1e3a8a);
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.25);
}

.about-numbers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.about-number {
  text-align: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 10px;
}

.about-number b {
  display: block;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #38bdf8, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-number span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
}

.about-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  padding: 4px 6px;
}

.about-contact svg {
  flex-shrink: 0;
  color: #38bdf8;
}

.about-contact b {
  display: block;
  font-size: 13.5px;
}

.about-contact p {
  margin: 3px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* 底部服务理念 */
.about-points-section {
  padding: 0 0 48px;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.about-point-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  transition: all 0.25s ease;
}

.about-point-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
}

.about-point-card svg {
  flex-shrink: 0;
}

.about-point-card b {
  font-size: 15px;
  color: var(--text-strong);
}

.about-point-card p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--text);
}

@media (max-width: 768px) {
  .about-main-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-points { grid-template-columns: 1fr; }
}

/* ---------- 首页/关于页：Hero 撑满视口，避免底部空白 ---------- */
.content {
  display: flex;
  flex-direction: column;
}

.hero-section {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  padding: 56px 0;
}

.hero-section .container {
  width: 100%;
}

/* ============================================================
   科技感增强（辉光 / 网格 / 扫描线 / 发光边框）
   ============================================================ */

/* 1. 主按钮辉光 */
.btn-primary {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.45), 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 0 32px rgba(6, 182, 212, 0.6), 0 6px 22px rgba(59, 130, 246, 0.4);
  filter: brightness(1.1);
}

/* 2. Hero 科技网格 + 扫描光线 */
.hero-section::before {
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.09) 1px, transparent 1px);
  background-size: 44px 44px;
}

.hero-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.9), rgba(34, 211, 238, 0.9), transparent);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
  animation: heroScan 4.5s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes heroScan {
  0% { top: 0; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* 3. 状态卡发光边框 */
.hero-card {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.4), 0 0 26px rgba(6, 182, 212, 0.22);
}

/* 4. 卡片 hover 发光 */
.home-card:hover {
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.35), 0 14px 32px rgba(15, 23, 42, 0.12), 0 0 26px rgba(6, 182, 212, 0.18);
}

.process-step:hover,
.about-point-card:hover {
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.35), 0 12px 28px rgba(15, 23, 42, 0.1), 0 0 24px rgba(6, 182, 212, 0.16);
}

/* 5. tab / 分页激活辉光 */
.tab-link.active,
.pagination .page-btn.active {
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.55), 0 4px 14px rgba(59, 130, 246, 0.35);
}

/* 6. 数字辉光 */
.hero-stat b,
.about-number b {
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.65);
}

/* 7. 登录玻璃卡片发光边框 */
.auth-card {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 32px rgba(6, 182, 212, 0.18);
}

/* 8. 流程步骤数字辉光 */
.step-num {
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.5), 0 6px 16px rgba(6, 182, 212, 0.35);
}

/* 9. header logo 方块辉光（加强） */
.site-logo::before {
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.9), 0 0 30px rgba(34, 211, 238, 0.5);
}

/* ---------- 登录页科技感（网格 + 扫描线） ---------- */
.auth-tech {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  border-radius: 0;
}

.auth-tech::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.9), rgba(34, 211, 238, 0.9), transparent);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
  animation: heroScan 4.5s linear infinite;
}

/* 登录页卡片辉光加强 */
body.login-page .auth-card {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 36px rgba(6, 182, 212, 0.25), 0 0 60px rgba(59, 130, 246, 0.12);
}

body.login-page .auth-logo-title {
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
}

body.login-page .auth-tab.active {
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.55), 0 4px 14px rgba(6, 182, 212, 0.35);
}

/* ---------- 商品卡片 & 分类栏目（新设计） ---------- */

/* 分类筛选栏：白底卡片容器 */
.nav-list {
  gap: 8px;
  margin: 0 0 22px;
  padding: 12px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.tab-link {
  padding: 8px 20px;
  border-radius: 10px;
  border-color: transparent;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}

.tab-link:hover {
  background: rgba(59, 130, 246, 0.08);
  color: var(--primary);
  border-color: transparent;
}

.tab-link.active {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4), 0 0 14px rgba(6, 182, 212, 0.25);
}

/* 商品卡片 */
.home-card {
  border-radius: 16px;
  border: 1px solid #eef1f6;
}

.home-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.3), 0 16px 36px rgba(15, 23, 42, 0.12), 0 0 24px rgba(6, 182, 212, 0.14);
}

.home-img {
  height: 170px;
  background: linear-gradient(160deg, #0f172a 0%, #16213e 50%, #1e3a8a 100%);
  padding: 18px;
}

/* 无图占位 */
.card-placeholder {
  height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(160deg, #0f172a 0%, #16213e 50%, #1e3a8a 100%);
}

.card-placeholder svg {
  color: #38bdf8;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

.card-placeholder span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 2px;
}

.home-card .flex {
  padding: 14px 16px 16px;
}

.home-card .price {
  color: var(--primary);
  font-size: 15px;
  font-weight: 800;
}

.home-card .price b {
  font-size: 19px;
}

/* ---------- 商品图比例统一（4:3 铺满） ---------- */
.home-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  padding: 0;
  background: linear-gradient(160deg, #0f172a 0%, #16213e 50%, #1e3a8a 100%);
}

.card-placeholder {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  padding: 12px;
  box-sizing: border-box;
}

/* 详情页商品大图 */
.buy-product img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* ---------- 商品图 100% 铺满（容器撑高 + 绝对定位） ---------- */
.home-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 撑高（卡片更紧凑） */
  overflow: hidden;
  background: #ffffff;
}

.home-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* 商品卡片直角（无圆角） */
.home-card {
  border-radius: 0 !important;
}

/* 商品图铺满不留白 + 内容完整（fill：拉伸填满，不裁切） */
.home-img {
  object-fit: fill !important;
  padding: 0;
  box-sizing: border-box;
}

/* 无图占位：白色朴素（去掉深蓝渐变与辉光） */
.card-placeholder {
  background: #ffffff !important;
}

.card-placeholder svg {
  color: #cbd5e1 !important;
  filter: none !important;
}

.card-placeholder span {
  color: #cbd5e1 !important;
}

/* ---------- 商品卡：京东风格（价格独立一行） ---------- */
.card-info {
  padding: 12px 14px 14px;
}

.home-card .name {
  margin: 0 0 8px;
}

.card-price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.card-view {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  transition: color 0.2s ease;
}

.home-card:hover .card-view {
  color: #3b82f6;
}

.home-card .price {
  color: #f5222d !important;
  font-size: 13px;
  font-weight: 600;
}

.home-card .price b {
  font-size: 22px;
  font-weight: 800;
  margin-left: 1px;
}

/* 无图占位：深色渐变 + 青色辉光盾牌 */
.card-placeholder {
  background: linear-gradient(160deg, #0f172a 0%, #16213e 50%, #1e3a8a 100%) !important;
}

.card-placeholder svg {
  color: #38bdf8 !important;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6)) !important;
}

.card-placeholder span {
  color: rgba(255, 255, 255, 0.6) !important;
  letter-spacing: 2px;
}

/* ---------- 详情页（左功能栏 + 右商品详情） ---------- */
.detail-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
  align-items: start;
  margin: 16px 0 24px;
}

.detail-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-gallery .card {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

#detail-gallery-box img {
  max-width: 100%;
  max-height: 440px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  cursor: zoom-in;
}

/* 购买表单吸顶（滚动时保持可见） */
.buy-shop .card {
  position: sticky;
  top: 80px;
}

@media (max-width: 992px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .buy-shop .card {
    position: static;
  }
}

/* 图廊占位（无图时） */
.detail-gallery-ph {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 260px;
  background: linear-gradient(160deg, #0f172a 0%, #16213e 50%, #1e3a8a 100%);
}

.detail-gallery-ph svg {
  color: #38bdf8;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

.detail-gallery-ph span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  letter-spacing: 2px;
}

/* 详情页：服务类型 + 价格同行 */
.badges-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.badges-price .buy-price {
  color: #f5222d;
  font-size: 24px;
  font-weight: 800;
}
