@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700&family=Noto+Sans+TC:wght@400;500;700&display=swap');

:root {
  --ink: #17212f;
  --ink-soft: #4f6178;
  --surface: #ffffff;
  --surface-muted: rgba(255, 255, 255, 0.82);
  --accent: #ef6c24;
  --accent-dark: #b74a15;
  --line: #d6dfeb;
  --ok: #1d9f5f;
}

html {
  font-size: 16px;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(circle at 20% 15%, #d4ecff 0%, #edf4fb 40%, #f6f8fb 100%);
  font-family: "Noto Sans TC", sans-serif;
  position: relative;
}

h1, h2, h3, h4, .brand-mark {
  font-family: "Barlow Condensed", "Noto Sans TC", sans-serif;
  letter-spacing: 0.02em;
}

a {
  color: #0e5ea8;
  text-decoration: none;
}

a:hover {
  color: #08437a;
}

.nav-shell {
  margin: 0.9rem auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-muted);
  backdrop-filter: blur(6px);
  box-shadow: 0 14px 35px rgba(20, 34, 54, 0.08);
}

.brand-mark {
  font-size: 1.8rem;
  color: #12263f;
}

.nav-link {
  color: #1b3a57;
  font-weight: 600;
}

.nav-btn {
  border-color: rgba(23, 33, 47, 0.2);
}

.app-badge {
  color: #173045;
  border: 1px solid var(--line);
}

.footer-shell {
  margin-top: 1.5rem;
  padding: 1rem 0 2rem;
  color: #60738a;
}

.card-shell {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(17, 36, 63, 0.08);
}

.hero-title {
  font-size: clamp(1.8rem, 1.1rem + 2.2vw, 3rem);
  line-height: 1.05;
}

.hero-note {
  color: var(--ink-soft);
}

.stat-box {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f9fcff;
  padding: 0.8rem;
}

.table-wrap {
  overflow-x: auto;
}

.viewer-frame {
  width: 100%;
  min-height: 50vh;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f1f6fb;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  opacity: 0.45;
}

.bg-shape-one {
  width: 230px;
  height: 230px;
  top: 7%;
  right: 6%;
  background: #ffd5b0;
}

.bg-shape-two {
  width: 340px;
  height: 340px;
  bottom: -90px;
  left: -100px;
  background: #bddfff;
}

.page-fade {
  animation: page-in 0.45s ease-out;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.badge-pending { background-color: #f1c54d; color: #222; }
.badge-processing { background-color: #4f8ecc; color: #fff; }
.badge-completed { background-color: var(--ok); color: #fff; }
.badge-failed { background-color: #cb3f36; color: #fff; }

@media (max-width: 992px) {
  .nav-shell {
    border-radius: 14px;
  }

  .hero-title {
    font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.1rem);
  }

  .viewer-frame {
    min-height: 42vh;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 15px;
  }

  .app-badge {
    display: none;
  }

  .stat-box {
    margin-bottom: 0.7rem;
  }

  .viewer-frame {
    min-height: 36vh;
  }
}
