/* MerchCore Demo — 自帶樣式,不引用任何外部 CDN 或第三方字型服務。 */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --border: #d7dce4;
  --text: #17202e;
  --muted: #5b6779;
  --accent: #1f5eff;
  --accent-soft: #e8eeff;
  --warn: #9a5b00;
  --warn-soft: #fff4e0;
  --danger: #a01b1b;
  --danger-soft: #fdecec;
  --ok: #16643d;
  --ok-soft: #e6f5ec;
  --radius: 10px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f131a; --surface: #161b24; --surface-2: #1d232e; --border: #2b3441;
    --text: #e6eaf1; --muted: #9aa6b8; --accent: #6f9bff; --accent-soft: #1b2740;
    --warn: #e8b567; --warn-soft: #3a2c14;
    --danger: #ef8a8a; --danger-soft: #3a1c1c; --ok: #6fd39a; --ok-soft: #143026;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.6; font-size: 15px;
}
a { color: var(--accent); }
header.site { background: var(--surface); border-bottom: 1px solid var(--border); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 14px 0; flex-wrap: wrap; }
.logo { font-weight: 700; font-size: 17px; letter-spacing: .2px; }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px;
  background: var(--warn-soft); color: var(--warn); border: 1px solid currentColor; font-weight: 600;
}
.badge.sim { background: var(--accent-soft); color: var(--accent); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.bad { background: var(--danger-soft); color: var(--danger); }
nav.main { display: flex; gap: 4px; flex-wrap: wrap; padding-bottom: 10px; }
nav.main a {
  padding: 6px 11px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 14px;
}
nav.main a:hover { background: var(--surface-2); color: var(--text); }
nav.main a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.notice {
  background: var(--warn-soft); color: var(--warn); border: 1px solid currentColor;
  border-radius: var(--radius); padding: 10px 14px; font-size: 13.5px; margin: 16px 0;
}
main { padding: 8px 0 56px; }
h1 { font-size: 27px; margin: 22px 0 6px; letter-spacing: -.3px; }
h2 { font-size: 19px; margin: 30px 0 10px; }
h3 { font-size: 15px; margin: 18px 0 6px; }
.lede { color: var(--muted); margin: 0 0 18px; max-width: 68ch; }
.grid { display: grid; gap: 14px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}
.card h3 { margin-top: 0; }
.kv { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
code, pre { font-family: var(--mono); }
pre {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px; overflow-x: auto; font-size: 12.5px; margin: 8px 0;
}
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
th, td { text-align: left; padding: 8px 11px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; font-size: 12.5px; color: var(--muted); }
tr:last-child td { border-bottom: none; }
button, .btn {
  font: inherit; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; display: inline-block;
}
.btn.ghost { background: transparent; color: var(--accent); }
button:disabled { opacity: .5; cursor: not-allowed; }
input, select, textarea {
  font: inherit; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); width: 100%;
}
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 3px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.row > * { flex: 1 1 160px; }
.step { border-left: 3px solid var(--border); padding-left: 14px; margin: 18px 0; }
.step.done { border-left-color: var(--ok); }
.step.active { border-left-color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
footer.site {
  border-top: 1px solid var(--border); background: var(--surface);
  padding: 22px 0; font-size: 12.5px; color: var(--muted);
}
.todo { color: var(--warn); font-weight: 600; }
.flash { border-radius: var(--radius); padding: 10px 14px; margin: 12px 0; font-size: 13.5px; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.bad { background: var(--danger-soft); color: var(--danger); }
.flash.info { background: var(--accent-soft); color: var(--accent); }

/* JCINNOVATIVE 深藍科技風展示入口樣式 */
:root {
  --jcin-bg: radial-gradient(circle at center, #1a3a5f 0%, #0a192f 100%);
  --jcin-surface: rgba(22, 27, 36, 0.7);
  --jcin-accent: #00a3ff;
  --jcin-text: #ffffff;
  --jcin-muted: rgba(255, 255, 255, 0.6);
  --jcin-border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
}

.jcin-theme {
  background: var(--jcin-bg);
  color: var(--jcin-text);
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.bg-decor {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    linear-gradient(rgba(0, 163, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 163, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  pointer-events: none;
}

.main-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header-brand {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 100px;
}
.brand-box {
  display: flex;
  gap: 16px;
}
.brand-logo {
  width: 48px;
  height: 48px;
  background: var(--jcin-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 24px;
  border-radius: 4px;
  clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}
.brand-text h2 {
  font-size: 18px;
  margin: 0;
  letter-spacing: 2px;
  font-weight: 600;
}
.brand-text p {
  font-size: 12px;
  margin: 2px 0 0;
  color: var(--jcin-muted);
  letter-spacing: 1px;
}

.session-meta {
  text-align: right;
  font-size: 12px;
  color: var(--jcin-muted);
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #34c759;
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 8px #34c759;
}

.hero-section {
  margin-bottom: 80px;
}
.hero-title {
  font-size: 88px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 32px;
  background: linear-gradient(to right, #fff 30%, var(--jcin-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -2px;
}
.hero-subtitle-box {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}
.hero-subtitle-box .line {
  width: 4px;
  height: 36px;
  background: #76c720;
}
.hero-subtitle {
  font-size: 28px;
  color: var(--jcin-text);
  margin: 0;
  font-weight: 500;
}
.hero-desc {
  font-size: 18px;
  color: var(--jcin-muted);
  max-width: 650px;
  line-height: 1.6;
}

.feature-row {
  display: flex;
  gap: 80px;
  margin-bottom: 100px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-icon {
  font-size: 32px;
  color: var(--jcin-accent);
}
.feature-name {
  font-size: 16px;
  font-weight: 600;
}
.feature-sub {
  font-size: 11px;
  color: var(--jcin-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.portal-section {
  margin-top: auto;
}
.portal-label {
  font-size: 13px;
  color: var(--jcin-accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 32px;
  display: block;
  font-weight: 600;
}
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.role-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}
.role-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--jcin-accent);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.role-card::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; width: 0; height: 3px;
  background: var(--jcin-accent);
  transition: width 0.3s ease;
}
.role-card:hover::after { width: 100%; }

.role-card .icon { font-size: 28px; margin-bottom: 24px; color: var(--jcin-accent); }
.role-card .tag { font-size: 12px; color: var(--jcin-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.role-card .title { font-size: 26px; font-weight: 600; margin-bottom: 16px; }
.role-card .detail { font-size: 15px; color: var(--jcin-muted); line-height: 1.6; margin-bottom: 32px; flex: 1; }
.role-card .cta { font-size: 15px; color: var(--jcin-accent); font-weight: 600; display: flex; align-items: center; gap: 8px; }

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 40px;
  border-top: 1px solid var(--jcin-border);
  font-size: 13px;
  color: var(--jcin-muted);
}
.meta-left .loc { color: #fff; font-family: var(--mono); margin-top: 6px; font-size: 15px; }
.meta-right { text-align: right; line-height: 1.6; }

@media (max-width: 1200px) {
  .hero-title { font-size: 64px; }
  .feature-row { gap: 40px; }
}
@media (max-width: 992px) {
  .main-wrap { padding: 40px; }
  .role-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 48px; }
}
