/* SUIO SIS 賣場 — 對齊官網 Aqua */
:root {
  --suio-blue: #0A66C2;
  --suio-aqua: #00D2D3;
  --suio-dark: #060B14;
  --suio-card: #0f172a;
  --suio-slate-400: #94a3b8;
  --suio-ink: #0f172a;
  --font-display: "Plus Jakarta Sans", "Noto Sans TC", sans-serif;
  --font-body: "Noto Sans TC", "Plus Jakarta Sans", sans-serif;
  --max: 1120px;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.5rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.m-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: #fff;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 210, 211, 0.16), rgba(6, 11, 20, 0) 70%),
    var(--suio-dark);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.m-wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.m-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 251, 252, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.m-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.m-brand {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--suio-ink);
}

.m-brand-mark { font-size: 1.25rem; color: var(--suio-blue); }
.m-brand-sub { font-size: 0.78rem; color: #64748b; font-weight: 600; }

.m-nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.m-nav-links a {
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
}

.m-nav-links a:hover,
.m-nav-links a.is-active { color: var(--suio-blue); }

.m-nav-links a.m-btn-primary,
.m-nav-links a.m-btn-primary:hover {
  color: #041018;
}

.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  padding: 0.7rem 1.2rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.m-btn-primary {
  background: linear-gradient(135deg, var(--suio-aqua), var(--suio-blue));
  color: #041018;
}

.m-btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
}

.m-nav .m-btn-ghost {
  border-color: #e2e8f0;
  color: #334155;
}

.m-hero {
  padding: 4.5rem 0 3rem;
  text-align: center;
}

.m-hero-content {
  max-width: 48rem;
  margin: 0 auto;
}

.m-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(0, 210, 211, 0.16);
  color: #67e8f9;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(0, 210, 211, 0.35);
  margin-bottom: 1.1rem;
}

.m-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--suio-aqua);
}

.m-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  line-height: 1.15;
  font-weight: 800;
}

.m-aqua {
  color: var(--suio-aqua);
}

.m-tagline {
  margin: 0 0 0.9rem;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 700;
  color: var(--suio-aqua);
}

.m-hero p,
.m-lead {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  color: var(--suio-slate-400);
  font-size: 0.98rem;
  line-height: 1.75;
}

.m-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.m-section {
  padding: 4rem 0;
  border-top: 1px solid rgba(30, 41, 59, 0.8);
}

.m-section h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  font-weight: 800;
  text-align: center;
}

.m-section .m-lead {
  text-align: center;
  margin-bottom: 2rem;
}

.m-hl-grid,
.m-step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.m-hl,
.m-step {
  padding: 1.35rem 1.2rem;
  border-radius: var(--radius-2xl);
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.m-hl h3,
.m-step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.m-hl p,
.m-step p {
  margin: 0;
  color: var(--suio-slate-400);
  font-size: 0.9rem;
  line-height: 1.65;
}

.m-price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.m-price {
  padding: 1.5rem 1.35rem;
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: var(--radius-2xl);
  background: rgba(30, 41, 59, 0.65);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.m-price.is-featured {
  border-color: rgba(0, 210, 211, 0.5);
  background: linear-gradient(180deg, rgba(0, 210, 211, 0.12), rgba(30, 41, 59, 0.7));
}

.m-price h3 { margin: 0; font-size: 1.25rem; }

.m-price .m-amount {
  font-size: 1.65rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: #67e8f9;
}

.m-price .m-amount small {
  font-size: 0.85rem;
  color: var(--suio-slate-400);
  font-weight: 500;
}

.m-price ul {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}

.m-price li {
  padding: 0.35rem 0;
  color: var(--suio-slate-400);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.m-auth {
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  padding: 2.5rem 0 3.5rem;
}

.m-auth-panel {
  width: min(100%, 460px);
  padding: 2rem 1.6rem;
  border: 1px solid rgba(0, 210, 211, 0.3);
  border-radius: var(--radius-3xl);
  background: rgba(15, 23, 42, 0.92);
}

.m-auth-panel h1 { margin: 0 0 0.4rem; font-size: 1.75rem; }

.m-auth-panel .m-lead {
  margin-bottom: 1.4rem;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.m-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.95rem;
}

.m-field label {
  font-size: 0.82rem;
  color: var(--suio-slate-400);
  font-weight: 600;
}

.m-field input {
  width: 100%;
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  padding: 0.75rem 0.85rem;
  font: inherit;
}

.m-field input:focus {
  outline: none;
  border-color: rgba(0, 210, 211, 0.65);
}

.m-msg {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: #fca5a5;
  min-height: 1.2em;
}

.m-footer {
  border-top: 1px solid rgba(30, 41, 59, 0.9);
  padding: 1.5rem 0 2rem;
  color: var(--suio-slate-400);
  font-size: 0.85rem;
}

.m-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.m-footer a { color: var(--suio-aqua); font-weight: 600; }

.m-quote {
  margin: 0 auto;
  max-width: 40rem;
  color: #67e8f9;
  font-weight: 700;
  font-style: italic;
  line-height: 1.8;
}

/* —— SIS 操作 Demo（對齊官網 suio.tw #section-sis） —— */
.sis-demo-wrap { max-width: 980px; margin: 0 auto; }

.sis-kiosk {
  position: relative;
  min-height: 540px;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: #020617;
  border: 4px solid #1e293b;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  cursor: crosshair;
}

.sis-pets-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.sis-kiosk-head,
.sis-banner-wrap,
.sis-equip-grid,
.sis-kiosk-foot { position: relative; z-index: 2; }

.sis-kiosk-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sis-kiosk-brand { display: flex; align-items: center; gap: 0.75rem; }

.sis-kiosk-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #22d3ee, #5eead4);
  color: #041018;
  font-weight: 800;
  font-size: 0.78rem;
  display: grid;
  place-items: center;
}

.sis-kiosk-title { font-weight: 800; font-size: 0.9rem; }
.sis-kiosk-sub { font-size: 0.65rem; color: rgba(34, 211, 238, 0.85); font-family: ui-monospace, Consolas, monospace; }

.sis-kiosk-live {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--suio-slate-400);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #1e293b;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}

.sis-live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #34d399;
  animation: sis-pulse 1.4s ease-in-out infinite;
}

@keyframes sis-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.sis-banner-wrap { margin: 0.75rem 0; }

.sis-banner {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(6, 182, 212, 0.5);
  text-align: center;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.sis-banner.is-show { opacity: 1; transform: scale(1); }

#sis-result-title { font-size: 1.15rem; font-weight: 800; color: #67e8f9; margin-bottom: 0.25rem; }
#sis-result-subtitle { font-size: 0.82rem; color: #e2e8f0; }

.sis-equip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.sis-card {
  padding: 1.15rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(34, 211, 238, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sis-card.is-out { border-color: rgba(244, 63, 94, 0.4); }

.sis-card-top { display: flex; justify-content: space-between; align-items: center; gap: 0.4rem; }

.sis-code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #22d3ee;
  background: rgba(8, 47, 73, 0.8);
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 0.5rem;
  padding: 0.15rem 0.5rem;
}

.sis-card.is-out .sis-code {
  color: #fb7185;
  background: rgba(76, 5, 25, 0.8);
  border-color: rgba(244, 63, 94, 0.4);
}

.sis-status {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fb7185;
  background: rgba(76, 5, 25, 0.9);
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.sis-status.is-ok {
  color: #34d399;
  background: rgba(6, 78, 59, 0.9);
  border-color: rgba(16, 185, 129, 0.4);
}

.sis-card-name { font-weight: 800; font-size: 1rem; }
.sis-card-spec { font-size: 0.78rem; color: var(--suio-slate-400); line-height: 1.5; margin-bottom: 0.4rem; }

.sis-card-borrower {
  font-size: 0.72rem;
  color: #fda4af;
  background: rgba(76, 5, 25, 0.4);
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-radius: 0.75rem;
  padding: 0.45rem 0.55rem;
}

.sis-btn-borrow,
.sis-btn-return,
.sis-btn-cancel {
  width: 100%;
  border: none;
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.sis-btn-borrow {
  background: linear-gradient(135deg, var(--suio-aqua), #2dd4bf);
  color: #041018;
}

.sis-btn-return {
  background: #1e293b;
  color: #fff;
  border: 1px solid #475569;
}

.sis-btn-cancel {
  width: auto;
  background: #1e293b;
  color: #cbd5e1;
}

.sis-kiosk-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--suio-slate-400);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.7rem 0.85rem;
}

.sis-kiosk-foot-meta { color: #22d3ee; font-family: ui-monospace, Consolas, monospace; }

.sis-modal {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.75);
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.sis-modal.is-open { display: flex; }

.sis-modal-panel {
  width: min(100%, 28rem);
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: #0f172a;
  border: 1px solid rgba(6, 182, 212, 0.5);
}

.sis-modal-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #1e293b;
}

.sis-modal-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background: rgba(6, 182, 212, 0.2);
  display: grid;
  place-items: center;
}

.sis-modal-panel h4 { margin: 0; font-size: 0.9rem; }
#sis-modal-equip-name { font-size: 0.75rem; color: #22d3ee; }

.sis-modal-panel label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.4rem;
}

.sis-modal-panel input {
  width: 100%;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  background: #020617;
  color: #fff;
  padding: 0.7rem 0.85rem;
  font: inherit;
  margin-bottom: 0.85rem;
}

.sis-quick-label { margin: 0 0 0.4rem; font-size: 0.7rem; color: var(--suio-slate-400); }

.sis-quick-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.1rem; }

.sis-quick-row button {
  font: inherit;
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 0.55rem;
  border: 1px solid #334155;
  background: #1e293b;
  color: #e2e8f0;
  cursor: pointer;
}

.sis-modal-actions { display: flex; justify-content: flex-end; gap: 0.6rem; }
.sis-modal-actions .sis-btn-borrow { width: auto; }

@media (max-width: 900px) {
  .m-hl-grid,
  .m-step-grid,
  .m-price-grid,
  .sis-equip-grid { grid-template-columns: 1fr; }
}
