:root {
  --bg: #0b0f14;
  --bg-soft: #121922;
  --panel: rgba(18, 27, 38, 0.88);
  --line: rgba(120, 150, 180, 0.18);
  --metal: #96a9b8;
  --text: #e8eef4;
  --muted: #95a6b5;
  --accent: #7df9ff;
  --accent-warm: #ffb347;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(125, 249, 255, 0.08), transparent 25%),
    linear-gradient(135deg, #070a0f 0%, #111820 45%, #0c1118 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent);
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  padding: 24px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: rgba(10, 14, 20, 0.72);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 18px rgba(125, 249, 255, 0.55);
  transform: rotate(45deg);
}

.brand-text,
.eyebrow,
.panel-head,
.card-tag,
.timeline span,
.btn {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.08em;
}

.brand-text {
  font-size: 0.95rem;
}

.topbar-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.topbar-links a {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  min-height: 36px;
}

.topbar-links a:hover {
  color: var(--accent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 32px;
  align-items: center;
  padding: 72px 0 32px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  margin-bottom: 16px;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.96;
}

.hero-text,
.card p,
.timeline p,
.contact p {
  color: var(--muted);
  line-height: 1.85;
}

.hero-text {
  max-width: 42rem;
  margin: 24px 0 32px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(125, 249, 255, 0.18), rgba(255, 179, 71, 0.15));
  border-color: rgba(125, 249, 255, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
}

.hero-panel .panel-frame {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 24px;
  border: 1px solid rgba(125, 249, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(125, 249, 255, 0.06), transparent 40%),
    var(--panel);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 20px 50px rgba(0, 0, 0, 0.35);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  color: var(--metal);
  font-size: 0.78rem;
}

.metrics {
  display: grid;
  gap: 20px;
  margin-top: 46px;
}

.metrics article {
  padding: 18px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.02);
}

.metrics strong {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 2.8rem;
  color: var(--accent);
}

.metrics span {
  color: var(--muted);
}

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(125, 249, 255, 0.04),
    rgba(125, 249, 255, 0.04) 2px,
    transparent 2px,
    transparent 6px
  );
  opacity: 0.45;
  animation: pulse 6s linear infinite;
}

.section {
  padding: 72px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card,
.contact-card,
.timeline article {
  background: rgba(13, 19, 27, 0.82);
  border: 1px solid var(--line);
}

.card {
  padding: 24px;
  min-height: 220px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(125, 249, 255, 0.35);
}

.article-card {
  display: flex;
  flex-direction: column;
}

.visual-card {
  overflow: hidden;
  padding: 0;
}

.visual-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.visual-card figcaption {
  padding: 20px;
}

.visual-card h3 {
  margin-bottom: 10px;
}

.article-card p {
  flex: 1;
}

.case-card p {
  margin: 0 0 10px;
}

.case-card strong {
  color: var(--text);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.text-link:hover {
  color: var(--accent-warm);
}

.card-tag {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent-warm);
  font-size: 0.78rem;
}

.card h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.timeline article {
  padding: 22px;
  position: relative;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline span,
.contact-card strong {
  color: var(--accent);
}

.timeline h3 {
  margin: 14px 0;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.social-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.social-card:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 249, 255, 0.35);
  background: rgba(125, 249, 255, 0.05);
}

.social-label {
  font-family: "Orbitron", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent-warm);
}

.social-card strong {
  font-size: 1rem;
}

.contact-card {
  padding: 28px;
}

.contact-card p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.contact-card span {
  text-align: right;
  color: var(--text);
  word-break: break-word;
}

.contact-card a {
  color: #ffffff;
  text-decoration: none;
}

.contact-card a:visited,
.contact-card a:active {
  color: #ffffff;
}

.contact-card a:hover {
  color: var(--accent);
}

.article-page {
  min-height: 100vh;
  padding: 24px 0 60px;
}

.article-shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
}

.article-hero {
  margin-top: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(10, 14, 20, 0.72);
  backdrop-filter: blur(12px);
}

.article-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.08;
}

.article-meta {
  margin-top: 16px;
  color: var(--muted);
}

.article-content {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 27, 0.82);
}

.article-figure {
  margin: 0 0 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.article-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f2f5f7;
}

.article-figure figcaption {
  padding: 14px 18px;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
}

.article-content h2 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.article-content p,
.article-content li {
  color: var(--muted);
  line-height: 1.9;
}

.article-content ul {
  padding-left: 20px;
}

.article-back {
  margin-top: 20px;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.48;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-links {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-grid,
  .contact,
  .service-grid,
  .timeline,
  .faq-grid,
  .article-grid,
  .visual-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy,
  .hero-panel {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    padding-top: 12px;
  }

  .topbar {
    padding: 14px;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .topbar-links {
    gap: 12px;
    font-size: 0.92rem;
    display: none;
    grid-template-columns: 1fr;
    width: 100%;
    padding-top: 12px;
  }

  .topbar-links.is-open {
    display: grid;
  }

  .topbar-links a {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
  }

  h1 {
    font-size: 2.4rem;
  }

  .hero-grid {
    padding-top: 40px;
  }

  .social-links {
    grid-template-columns: 1fr;
  }

  .hero-text {
    font-size: 0.98rem;
    margin-bottom: 24px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .btn {
    width: 100%;
    min-width: 0;
  }

  .hero-panel .panel-frame {
    min-height: auto;
    padding: 20px;
  }

  .metrics strong {
    font-size: 2.2rem;
  }

  .card {
    min-height: 0;
    padding: 20px;
  }

  .section {
    padding: 52px 0;
  }

  .contact-card {
    padding: 20px;
  }

  .article-shell {
    width: min(100% - 20px, 960px);
  }

  .article-hero,
  .article-content {
    padding: 20px;
  }

  .article-figure figcaption {
    padding: 12px 14px;
  }

  .contact-card p {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .contact-card span {
    text-align: left;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2rem;
  }

  .section h2 {
    font-size: 1.7rem;
  }
}
