/* 灵标 Lumark skin for the dujiaoka "hyper" theme — dark, aurora, glass. Mounted from /opt/dujiaoka/theme. */
:root {
  --lm-bg: #08080d;
  --lm-panel: rgba(255, 255, 255, 0.04);
  --lm-panel-2: rgba(255, 255, 255, 0.07);
  --lm-line: rgba(255, 255, 255, 0.09);
  --lm-line-2: rgba(255, 255, 255, 0.16);
  --lm-text: #f4f3f8;
  --lm-muted: #a3a1b4;
  --lm-dim: #6f6d80;
  --lm-violet: #c4b5fd;
  --lm-pink: #f0abfc;
  --lm-gold: #fde68a;
  --lm-grad: linear-gradient(100deg, #c4b5fd 0%, #f0abfc 45%, #fde68a 100%);
  --lm-ink: #0b0b12;
  --lm-danger: #fb7185;
  --lm-ok: #86efac;
  --lm-font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

html, body { background: var(--lm-bg) !important; }
body {
  color: var(--lm-text) !important;
  font-family: var(--lm-font) !important;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}
body::before {
  content: ""; position: fixed; inset: -10vh -10vw; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40vw 30vw at 12% 8%, rgba(139, 92, 246, 0.28), transparent 70%),
    radial-gradient(36vw 28vw at 88% 12%, rgba(240, 171, 252, 0.18), transparent 70%),
    radial-gradient(42vw 30vw at 70% 100%, rgba(253, 230, 138, 0.10), transparent 70%);
  filter: blur(10px);
}
.wrapper, .content-page, .content { position: relative; z-index: 1; background: transparent !important; }
a { color: var(--lm-pink); }
a:hover { color: var(--lm-gold); }
h1, h2, h3, h4, h5, h6, .page-title, .card-title { color: var(--lm-text) !important; font-family: var(--lm-font) !important; letter-spacing: -0.01em; }
p, li, span, label, small { color: inherit; }
.text-muted, small, .footer-links { color: var(--lm-muted) !important; }
::selection { background: rgba(240, 171, 252, .35); }

/* ---------- top bar ---------- */
.header-navbar {
  height: 68px !important;
  background: rgba(8, 8, 13, 0.6) !important;
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  box-shadow: none !important;
  border-bottom: 1px solid var(--lm-line);
  position: sticky; top: 0; z-index: 100;
}
.header-flex { height: 68px !important; gap: 12px; }
.topnav-logo { display: inline-flex !important; align-items: center; gap: 10px; text-decoration: none; }
.topnav-logo img { height: 34px !important; width: 34px; border-radius: 10px; }
.logo-title { font-family: var(--lm-font) !important; color: var(--lm-text) !important; font-size: 19px !important; font-weight: 700 !important; margin-left: 0 !important; letter-spacing: .01em; }
.logo-title em { font-style: normal; font-weight: 500; color: var(--lm-muted); font-size: 13px; margin-left: 6px; }
.lm-nav-actions { display: flex; align-items: center; gap: 8px; }
.lm-back { color: var(--lm-muted) !important; font-size: 13.5px; padding: 8px 10px; text-decoration: none; white-space: nowrap; }
.lm-back:hover { color: var(--lm-text) !important; }

/* ---------- buttons ---------- */
.btn { border-radius: 999px !important; font-weight: 600 !important; letter-spacing: .01em; transition: transform .2s, box-shadow .25s, background .2s, border-color .2s, opacity .2s !important; }
.btn-primary, .btn-danger, #submit, .btn-success {
  background: var(--lm-grad) !important; color: var(--lm-ink) !important; border: 0 !important;
  box-shadow: 0 10px 30px -10px rgba(240, 171, 252, .55) !important;
}
.btn-primary:hover, .btn-danger:hover, #submit:hover { transform: translateY(-1px); box-shadow: 0 14px 40px -10px rgba(240, 171, 252, .8) !important; }
.btn-primary i, .btn-danger i, #submit i { color: var(--lm-ink) !important; }
.btn-outline-primary, .btn-light, .btn-secondary, .btn-outline-secondary {
  background: var(--lm-panel) !important; color: var(--lm-text) !important; border: 1px solid var(--lm-line-2) !important;
}
.btn-outline-primary:hover, .btn-light:hover { background: var(--lm-panel-2) !important; border-color: rgba(255,255,255,.28) !important; color: var(--lm-text) !important; }
.btn-outline-primary i, .search-icon { color: var(--lm-violet) !important; }
#submit { min-width: 220px; padding: 12px 28px !important; font-size: 16px !important; }

/* ---------- hero (home) ---------- */
.lm-hero { padding: 44px 0 10px; text-align: center; }
.lm-hero .lm-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--lm-line-2); background: var(--lm-panel); font-size: 13px; color: var(--lm-muted); }
.lm-hero .lm-eyebrow b { color: var(--lm-pink); font-weight: 600; }
.lm-hero h1 { margin: 18px 0 10px; font-size: clamp(28px, 5vw, 44px); font-weight: 800; line-height: 1.2; }
.lm-hero h1 span { background: var(--lm-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lm-hero p { margin: 0 auto; max-width: 560px; color: var(--lm-muted); font-size: 15px; line-height: 1.7; }
.lm-steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 6px; padding: 0; list-style: none; font-size: 13px; color: var(--lm-muted); }
.lm-steps li i { font-style: normal; color: var(--lm-violet); margin-right: 6px; }

/* ---------- page title row / search ---------- */
.page-title-box { margin: 18px 0 6px; }
.page-title { font-size: 18px !important; font-weight: 700 !important; line-height: 70px; }
.app-search .form-control, .form-control, .bootstrap-touchspin input, input, textarea, select {
  background: rgba(255, 255, 255, 0.05) !important; color: var(--lm-text) !important;
  border: 1px solid var(--lm-line-2) !important; border-radius: 12px !important; box-shadow: none !important;
}
.form-control:focus, input:focus { border-color: rgba(240, 171, 252, .6) !important; box-shadow: 0 0 0 3px rgba(240, 171, 252, .15) !important; }
.form-control::placeholder, input::placeholder { color: var(--lm-dim) !important; }
.app-search span.uil-search { color: var(--lm-muted) !important; }

/* ---------- category tabs ---------- */
.tab-link {
  border: 1px solid var(--lm-line-2) !important; background: var(--lm-panel) !important; color: var(--lm-muted) !important;
  border-radius: 999px !important; padding: 7px 18px !important; font-size: 14px !important; font-weight: 600;
}
.tab-link:hover { color: var(--lm-text) !important; border-color: rgba(255,255,255,.3) !important; }
.tab-link.active { background: var(--lm-grad) !important; color: var(--lm-ink) !important; border-color: transparent !important; }
.tab-link .tab-title { color: inherit !important; }
.img-checkmark { display: none !important; }

/* ---------- product cards ---------- */
.hyper-wrapper { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important; gap: 16px !important; }
.home-card {
  background: var(--lm-panel) !important; border: 1px solid var(--lm-line) !important; border-radius: 20px !important;
  box-shadow: none !important; overflow: hidden; padding: 0 !important; color: var(--lm-text) !important;
  transition: transform .25s, border-color .25s, box-shadow .25s !important; display: flex !important; flex-direction: column;
  width: auto !important; margin: 0 !important;
}
.home-card:hover { transform: translateY(-4px); border-color: rgba(240,171,252,.45) !important; box-shadow: 0 30px 60px -30px rgba(240,171,252,.45) !important; }
.home-img { width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0 !important; margin: 0 !important; background: #111119; }
.home-card .flex { padding: 14px 16px 16px !important; display: flex; flex-direction: column; gap: 6px; align-items: flex-start !important; }
.home-card .name { color: var(--lm-text) !important; font-weight: 700; font-size: 15px !important; margin: 0 !important; -webkit-line-clamp: 2; }
.home-card .price, .price b { color: var(--lm-gold) !important; font-weight: 700; }
.home-card .price b { font-size: 20px; }
.ribbon-two span { background: rgba(251, 113, 133, .9) !important; }

/* ---------- cards / buy page ---------- */
.card {
  background: rgba(255, 255, 255, 0.035) !important; border: 1px solid var(--lm-line) !important; border-radius: 22px !important;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.8) !important; color: var(--lm-text) !important;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.card-body { color: var(--lm-text) !important; }
.buy-grid { gap: 20px !important; }
.buy-title { color: var(--lm-muted) !important; font-size: 13px !important; font-weight: 600; margin-bottom: 8px !important; }
.buy-price { color: var(--lm-gold) !important; font-weight: 800; }
.buy-product img { max-width: 100%; height: auto; border-radius: 14px; }
.buy-product h4 { font-size: 16px; margin-top: 18px; }
.buy-product ul { padding-left: 20px; color: #d9d7e6; line-height: 1.9; }
.buy-product p { color: #d9d7e6; line-height: 1.8; }
.badge { border-radius: 999px !important; padding: 5px 10px !important; font-weight: 600 !important; }
.badge-outline-primary { color: var(--lm-violet) !important; border: 1px solid rgba(196,181,253,.45) !important; background: rgba(196,181,253,.08) !important; }
.badge-outline-danger { color: var(--lm-danger) !important; border-color: rgba(251,113,133,.45) !important; background: rgba(251,113,133,.08) !important; }
.badge-outline-dark { color: var(--lm-muted) !important; border-color: var(--lm-line-2) !important; }
del { color: var(--lm-dim) !important; }
.alert, .alert-dark { background: rgba(255,255,255,.05) !important; color: var(--lm-text) !important; border: 1px solid var(--lm-line-2) !important; border-radius: 14px !important; }
.bootstrap-touchspin .btn, .input-group-btn .btn, .input-group-prepend .btn, .input-group-append .btn {
  background: var(--lm-panel-2) !important; color: var(--lm-text) !important; border: 1px solid var(--lm-line-2) !important; box-shadow: none !important; border-radius: 12px !important;
}
.pay-type { border: 1px solid var(--lm-line-2) !important; border-radius: 14px !important; background-color: rgba(255,255,255,.92) !important; }
.pay-type.active { border-color: var(--lm-pink) !important; box-shadow: 0 0 0 2px rgba(240,171,252,.45) !important; }
.lm-buy-tip { margin: 0 0 14px; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(196,181,253,.3); background: rgba(196,181,253,.07); font-size: 13px; color: #e5e1f5; line-height: 1.7; }
.lm-buy-tip a { color: var(--lm-pink); font-weight: 600; }

/* ---------- tables (order pages) ---------- */
.table, .table td, .table th { color: var(--lm-text) !important; border-color: var(--lm-line) !important; background: transparent !important; }
.table-striped tbody tr:nth-of-type(odd) { background: rgba(255,255,255,.025) !important; }
.nav-tabs .nav-link { color: var(--lm-muted) !important; border: 0 !important; }
.nav-tabs .nav-link.active { color: var(--lm-text) !important; background: var(--lm-panel-2) !important; border-radius: 10px !important; }
.nav-tabs { border-bottom-color: var(--lm-line) !important; }
.textarea-kami, pre, code { background: rgba(0,0,0,.35) !important; color: var(--lm-gold) !important; border-radius: 10px; }

/* ---------- modal ---------- */
.modal-content { background: #111119 !important; border: 1px solid var(--lm-line-2) !important; border-radius: 22px !important; color: var(--lm-text) !important; }
.modal-header { border-bottom: 1px solid var(--lm-line) !important; padding: 14px 18px !important; }
.modal-header .close { color: var(--lm-muted) !important; text-shadow: none !important; opacity: 1; }
.modal-body { color: #d9d7e6 !important; line-height: 1.8; }
.modal-backdrop.show { opacity: .7 !important; }

/* ---------- footer ---------- */
.hyper-footer { border-top: 1px solid var(--lm-line) !important; color: var(--lm-muted) !important; background: rgba(8,8,13,.4); position: relative !important; margin-top: 48px; }
.hyper-footer a { color: var(--lm-muted) !important; }
.hyper-footer a:hover { color: var(--lm-text) !important; }
.lm-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.lm-footer .lm-back-logo { color: var(--lm-pink) !important; font-weight: 600; }
.content { margin-bottom: 0 !important; }
.back-to-top .btn { width: 42px; height: 42px; padding: 0 !important; }

/* ---------- layer / toast (layui) ---------- */
.layui-layer { border-radius: 16px !important; }

/* ---------- mobile ---------- */
@media (max-width: 767px) {
  .container { padding: 0 16px !important; }
  .lm-hero { padding: 28px 0 4px; }
  .hyper-wrapper { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .home-card .flex { padding: 10px 12px 12px !important; }
  .home-card .name { font-size: 13.5px !important; }
  .home-card .price b { font-size: 17px; }
  .page-title { line-height: 1.4; margin: 6px 0 !important; }
  .page-title-right { float: none !important; margin: 0 0 10px !important; }
  .app-search { width: 100% !important; }
  .logo-title em { display: none; }
  .lm-back { display: none; }
  .header-navbar .btn { padding: 7px 12px !important; font-size: 13px !important; }
  .lm-footer { justify-content: center; text-align: center; }
  #submit { width: 100%; }
}

/* fixes for hyper.css card sizing */
.home-img { max-width: 100% !important; margin: 0 !important; display: block; }
.home-card .flex { margin-top: 0 !important; width: 100%; }
.home-card .name { min-height: 0 !important; }
.ribbon-box .ribbon-two { z-index: 2; }
@media (max-width: 767px) {
  .home-card { flex-direction: column !important; align-items: stretch !important; }
  .home-img { max-width: 100% !important; margin: 0 !important; }
}

/* modal backdrop: dark, not washed-out grey */
.modal-backdrop { background-color: #05050a !important; }
.modal-backdrop.show { opacity: .78 !important; }
/* secondary buttons next to the primary one (e.g. 重置) */
button[type="reset"], .btn-reset, #reset { background: var(--lm-panel) !important; color: var(--lm-text) !important; border: 1px solid var(--lm-line-2) !important; box-shadow: none !important; }
.pay-type { color: #1d1d26 !important; }

/* stacking fix: let Bootstrap modals sit above their backdrop */
html { background: var(--lm-bg) !important; }
body { background: transparent !important; }
body::before { z-index: -1 !important; }
.wrapper, .content-page, .content { z-index: auto !important; }

@media (max-width: 767px) { .pay-grid { grid-template-columns: 1fr !important; display: grid !important; width: 100%; } .pay-type { width: 100% !important; } }
