:root {
  --bg: #fff;
  --ink: #1e293b;
  --muted: #64748b;
  --black: #000;
  --blue: #003bff;
  --blue-link: #046bd2;
  --nav: #fff;
  --card: #f8fafc;
  --border: #e2e8f0;
  --max: 1140px;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  background: #000;
  color: #fff;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo img {
  width: 130px;
  height: auto;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 12px;
}

.nav-main a {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-main a:hover,
.nav-main a.active { color: #93c5fd; }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-mini {
  display: flex;
  align-items: center;
  background: #111;
  border: 1px solid #333;
  border-radius: 999px;
  overflow: hidden;
  height: 36px;
}

.search-mini input {
  background: transparent;
  border: 0;
  color: #fff;
  padding: 0 12px;
  width: 140px;
  outline: none;
  font-size: 13px;
}

.search-mini button {
  border: 0;
  background: transparent;
  color: #94a3b8;
  padding: 0 12px;
  height: 100%;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  transition: filter .15s, transform .15s;
}

.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

.btn-blue {
  background: var(--blue);
  color: #fff;
}

.btn-outline-light {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.55);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 15px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(6,12,32,.88) 0%, rgba(6,12,32,.62) 38%, rgba(6,12,32,.18) 72%, rgba(6,12,32,.05) 100%),
    url("../assets/images/original/bg-hero.jpg") center right / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

.hero > .container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  display: flex;
  justify-content: flex-start;
}

.hero-content {
  max-width: 620px;
  width: 100%;
  padding: 80px 0 72px;
  text-align: left;
  margin: 0;
  margin-right: auto;
}

.hero h1,
.hero .hero-title {
  margin: 0 0 14px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}

.hero h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
}

.hero .lead {
  margin: 16px 0 28px;
  font-size: 16px;
  line-height: 1.7;
  color: #e2e8f0;
  text-align: left;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-promo {
  background: #0b1b3a;
  color: #fff;
}

.section-download {
  position: relative;
  overflow: hidden;
  background: #071224;
  color: #fff;
}

.section-download::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #071224 0%, rgba(7,18,36,.92) 42%, rgba(7,18,36,.55) 100%),
    url("../assets/images/original/bg-2.jpg") right center / cover no-repeat;
  pointer-events: none;
}

.section-download > .container {
  position: relative;
  z-index: 1;
}

.section-soft {
  background: #f5f7fb;
}

.section-head {
  text-align: left;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 800;
}

.section-head p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
}

.section-promo .section-head p {
  color: #cbd5e1;
}

/* Promo carousel */
.promo-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.promo-card {
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255,255,255,.1);
  transition: transform .2s;
  display: block;
}

.promo-card:hover { transform: translateY(-4px); }

.promo-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Download */
.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 48px;
  align-items: center;
}

.download-copy {
  text-align: left;
  max-width: 560px;
}

.download-copy h2 {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 800;
  text-align: left;
}

.download-desc {
  margin: 0 0 18px;
  color: #cbd5e1;
  text-align: left;
}

.download-steps {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(6px);
}

.download-steps ol {
  margin: 0;
  padding-left: 22px;
}

.download-steps li {
  margin-bottom: 10px;
  color: #e2e8f0;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.device-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: end;
  justify-items: center;
}

.device-shots img {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.18);
  background: #020617;
  object-fit: contain;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}

.device-shots img:last-child {
  margin-bottom: 28px;
}

/* About / why */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
}

.about-copy {
  text-align: left;
  max-width: 640px;
}

.about-copy h2 {
  margin: 0 0 14px;
  font-size: 32px;
  text-align: left;
}

.about-copy p { color: var(--muted); }

.about-copy ul {
  margin: 14px 0 0;
  padding-left: 18px;
  list-style: disc;
  color: var(--ink);
}

.about-media {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.about-media img {
  width: 100%;
  max-width: 380px;
  border-radius: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
}

.feature-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

#cashier .device-shots img {
  border: 1px solid var(--border);
  background: #fff;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15,23,42,.1);
}

.news-card .thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e2e8f0;
}

.news-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card .body { padding: 16px; }

.news-card .cat {
  display: inline-block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.news-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.news-card .meta {
  font-size: 12px;
  color: var(--muted);
}

.news-card .excerpt {
  margin: 8px 0 0;
  font-size: 13px;
  color: #475569;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-banner {
  padding: 40px 0 18px;
  background: #0b1220;
  color: #fff;
}

.page-banner h1 {
  margin: 0 0 8px;
  font-size: 34px;
}

.page-banner p {
  margin: 0;
  color: #94a3b8;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.filters a {
  border: 1px solid #334155;
  background: #111827;
  color: #e2e8f0;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
}

.filters a.active,
.filters a:hover {
  background: var(--blue);
  border-color: transparent;
  color: #fff;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 28px 0 64px;
}

.pager button {
  min-width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
}

.pager button.active {
  background: var(--blue);
  border-color: transparent;
  color: #fff;
}

/* Article */
.article-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  padding: 36px 0 64px;
}

.article-main {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.article-main .cover {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
}

.article-main .cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-main h1 {
  margin: 0 0 10px;
  font-size: 30px;
}

.article-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.article-body {
  font-size: 16px;
  color: #334155;
}

.article-body p { margin: 0 0 14px; }
.article-body h2 { margin: 24px 0 10px; font-size: 22px; color: #0f172a; }
.article-body h3 { margin: 18px 0 8px; font-size: 18px; }
.article-body ul,
.article-body ol {
  margin: 0 0 14px;
  padding-left: 20px;
  list-style: disc;
}
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 6px; }
.article-body img {
  width: 100%;
  border-radius: 10px;
  margin: 12px 0;
}

.side-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.side-card h4 { margin: 0 0 10px; font-size: 15px; }

.side-list a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: #334155;
}

.side-list a:last-child { border-bottom: 0; }

.search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.search-row input {
  flex: 1;
  min-width: 220px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #111827;
  color: #fff;
  padding: 0 16px;
}

/* Footer */
.site-footer {
  background: #0a0a0a;
  color: #94a3b8;
  padding: 36px 0 24px;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-brand img {
  width: 120px;
  margin-bottom: 12px;
}

.footer-brand p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
}

.footer-col h5 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
}

.footer-col a {
  display: block;
  margin-bottom: 8px;
  color: #94a3b8;
}

.footer-col a:hover { color: #93c5fd; }

.footer-copy {
  border-top: 1px solid #1f2937;
  padding-top: 16px;
  color: #64748b;
  font-size: 12px;
}

.footer-copy p { margin: 0; }

.center { text-align: center; }
.mt-24 { margin-top: 24px; }

@media (max-width: 1100px) {
  .promo-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid,
  .about-grid,
  .article-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .device-shots {
    max-width: 520px;
    margin: 0;
  }
  .about-media { justify-content: flex-start; }
  .download-copy { max-width: none; }
}

@media (max-width: 860px) {
  .nav-main,
  .search-mini { display: none; }
  .nav-main.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: 80px;
    background: #000;
    padding: 16px 20px 22px;
    align-items: flex-start;
    gap: 14px;
  }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(6,12,32,.86) 0%, rgba(6,12,32,.58) 55%, rgba(6,12,32,.32) 100%),
      url("../assets/images/original/bg-hero.jpg") center top / cover no-repeat;
  }
  .hero-content {
    max-width: 100%;
    padding: 40px 0 36px;
    text-align: left;
  }
  .hero .hero-title { font-size: 28px; }
  .hero h3 { font-size: 18px; }
  .hero-actions { justify-content: flex-start; }
  .promo-track { grid-template-columns: 1fr; }
  .feature-grid,
  .news-grid,
  .device-shots,
  .footer-grid { grid-template-columns: 1fr; }
  .device-shots img:last-child { margin-bottom: 0; }
  .section { padding: 48px 0; }
  .section-head h2,
  .download-copy h2,
  .about-copy h2 { font-size: 26px; }
  .btn { font-size: 16px; padding: 11px 20px; }
}
