:root {
  --bg: #07111f;
  --bg-soft: #0d1a2c;
  --panel: #132238;
  --panel-2: #182b45;
  --line: rgba(143, 169, 205, 0.18);
  --text: #eef4fb;
  --muted: #a7b4c5;
  --gold: #dcb252;
  --gold-soft: #f2d28a;
  --cyan: #5dd5d0;
  --blue: #5b8def;
  --red: #e66d69;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.92);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(220, 178, 82, 0.7);
  background: linear-gradient(145deg, rgba(220, 178, 82, 0.2), rgba(93, 213, 208, 0.08));
  color: var(--gold-soft);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--gold-soft);
}

.nav-cta {
  padding: 10px 14px;
  border: 1px solid rgba(220, 178, 82, 0.55);
  color: var(--gold-soft) !important;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero,
.page-hero,
.section {
  padding: 88px clamp(20px, 5vw, 72px);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 56px;
  background:
    radial-gradient(circle at 72% 20%, rgba(93, 213, 208, 0.18), transparent 32%),
    linear-gradient(135deg, #07111f 0%, #0b1b31 58%, #091523 100%);
}

.section-muted {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-hero {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 82% 18%, rgba(220, 178, 82, 0.16), transparent 26%),
    linear-gradient(135deg, #07111f 0%, #0b1b31 64%, #091523 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero p:not(.eyebrow) {
  max-width: 820px;
  color: var(--muted);
  font-size: 19px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

h3 {
  font-size: 20px;
}

.hero-lead,
.section-heading p:not(.eyebrow),
article p,
.contact-card,
.dos-section p,
.section-note {
  color: var(--muted);
}

.hero-lead {
  max-width: 720px;
  font-size: 18px;
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin: 34px 0 28px;
}

.primary-button,
.secondary-button,
.contact-form button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 900;
}

.primary-button,
.contact-form button {
  background: var(--gold);
  color: #07111f;
}

.secondary-button {
  border-color: rgba(238, 244, 251, 0.24);
}

.trust-row span,
.signal-map span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
}

.room-panel {
  position: relative;
  margin-inline: auto;
  width: min(100%, 460px);
  padding: 22px;
  border: 1px solid rgba(220, 178, 82, 0.42);
  background: linear-gradient(145deg, rgba(19, 34, 56, 0.95), rgba(7, 17, 31, 0.88));
  box-shadow: var(--shadow);
}

.room-panel::before {
  content: "";
  position: absolute;
  inset: 22px -20px -20px 32px;
  z-index: -1;
  border: 1px solid rgba(93, 213, 208, 0.32);
}

.room-panel-top,
.signal-map {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.room-panel-top {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.room-panel-top strong {
  color: var(--cyan);
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.device-card {
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.device-card span,
.device-card strong {
  display: block;
}

.device-card span {
  color: var(--muted);
  font-size: 13px;
}

.device-card strong {
  margin-top: 18px;
  font-size: 20px;
}

.device-card.active {
  border-color: rgba(220, 178, 82, 0.65);
  background: rgba(220, 178, 82, 0.12);
}

.signal-map {
  flex-wrap: wrap;
}

.signal-map span {
  min-width: 70px;
  text-align: center;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 38px;
}

.section-heading.compact {
  margin-bottom: 26px;
}

.stats-grid,
.feature-grid,
.fiber-grid,
.timeline,
.energy-grid,
.energy-detail-grid,
.product-grid,
.product-showcase,
.product-category-grid,
.catalog-grid,
.product-text-grid,
.process-list,
.case-grid,
.scene-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid,
.energy-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fiber-grid,
.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scene-grid,
.energy-detail-grid,
.process-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-showcase {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-text-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid article,
.feature-grid article,
.timeline-item,
.fiber-grid article,
.energy-grid article,
.energy-detail-grid article,
.product-grid article,
.product-showcase article,
.product-text-grid article,
.category-card,
.process-list article,
.case-grid article,
.energy-panel-card,
.contact-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.stats-grid strong {
  display: block;
  color: var(--gold-soft);
  font-size: 32px;
}

.feature-grid span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--gold-soft);
  font-weight: 900;
}

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

.summary-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.summary-grid span,
.process-list span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--gold-soft);
  font-weight: 900;
}

.summary-grid a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--gold-soft);
  font-weight: 900;
}

.category-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.18), rgba(7, 17, 31, 0.92)),
    linear-gradient(135deg, rgba(220, 178, 82, 0.18), rgba(93, 213, 208, 0.1));
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.category-card:hover {
  border-color: rgba(220, 178, 82, 0.65);
  transform: translateY(-3px);
}

.category-card span {
  color: var(--gold-soft);
  font-weight: 900;
}

.history-section {
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.96), rgba(13, 26, 44, 0.96)),
    var(--bg);
}

.timeline {
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-item {
  position: relative;
  min-height: 280px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  width: 10px;
  height: 10px;
  background: var(--gold);
}

.timeline-year {
  display: inline-block;
  margin-bottom: 22px;
  padding-left: 24px;
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 900;
}

.timeline-item h3 {
  margin-bottom: 12px;
}

.timeline-item p {
  margin-bottom: 12px;
  font-size: 14px;
}

.timeline-item.featured {
  border-color: rgba(220, 178, 82, 0.55);
  background: linear-gradient(145deg, rgba(220, 178, 82, 0.12), rgba(19, 34, 56, 0.95));
}

.fiber-section {
  background:
    radial-gradient(circle at 78% 18%, rgba(93, 213, 208, 0.12), transparent 28%),
    var(--bg);
}

.fiber-layout,
.solution-layout,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: stretch;
}

.fiber-map,
.solution-diagram {
  padding: 30px;
  border: 1px solid rgba(220, 178, 82, 0.35);
  background: var(--panel);
}

.fiber-core,
.diagram-node {
  display: grid;
  min-height: 66px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--panel-2);
  text-align: center;
  font-weight: 900;
}

.fiber-core {
  min-height: 118px;
  border-color: rgba(220, 178, 82, 0.64);
  background: rgba(220, 178, 82, 0.1);
}

.fiber-core strong {
  display: block;
  color: var(--gold-soft);
  font-size: 24px;
}

.fiber-services,
.diagram-cluster {
  display: grid;
  gap: 10px;
}

.fiber-services {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 22px;
}

.fiber-services span,
.diagram-cluster span {
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
  line-height: 1.35;
}

.fiber-grid article,
.energy-detail-grid article {
  border-left: 4px solid var(--cyan);
}

.product-showcase article {
  display: flex;
  flex-direction: column;
  min-height: 460px;
}

.product-showcase ul {
  margin: auto 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.product-showcase li + li {
  margin-top: 8px;
}

.product-text-grid article {
  border-left: 4px solid var(--gold);
  background: linear-gradient(145deg, rgba(19, 34, 56, 0.96), rgba(7, 17, 31, 0.92));
}

.product-visual {
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid rgba(220, 178, 82, 0.42);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(220, 178, 82, 0.1)),
    var(--panel-2);
}

.product-visual span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.product-visual strong {
  color: var(--gold-soft);
  font-size: 26px;
}

.product-page-hero {
  min-height: 500px;
}

.boutique-hero {
  background:
    linear-gradient(110deg, rgba(4, 11, 23, 0.94), rgba(15, 29, 48, 0.84)),
    radial-gradient(circle at 78% 24%, rgba(220, 178, 82, 0.18), transparent 34%);
}

.product-page-hero .trust-row a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 900;
}

.product-series-section {
  scroll-margin-top: 86px;
}

.catalog-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(19, 34, 56, 0.96), rgba(7, 17, 31, 0.92));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.catalog-image {
  position: relative;
  width: 100%;
  min-height: auto;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  cursor: zoom-in;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(220, 178, 82, 0.08)),
    var(--panel-2);
  padding: 14px;
}

.catalog-image img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  padding: 0;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.catalog-image:hover img,
.catalog-image:focus-visible img {
  filter: brightness(1.06);
  transform: scale(1.025);
}

.catalog-image:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.boutique-grid {
  align-items: stretch;
}

.boutique-grid.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-image img:not([src]),
.catalog-image img[src=""] {
  display: none;
}

.catalog-image span {
  position: absolute;
  inset: 22px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(220, 178, 82, 0.45);
  color: var(--gold-soft);
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  pointer-events: none;
}

.catalog-image img:not(.is-missing) + span {
  opacity: 0;
}

.catalog-image img.is-missing + span {
  opacity: 1;
}

.catalog-card figcaption {
  padding: 20px 22px 24px;
}

.catalog-card strong,
.catalog-card small {
  display: block;
}

.catalog-card strong {
  font-size: 19px;
}

.catalog-card small {
  margin-top: 8px;
  color: var(--muted);
}

body.is-lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(2, 7, 15, 0.88);
  backdrop-filter: blur(14px);
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox figure {
  width: min(1040px, 94vw);
  margin: 0;
  border: 1px solid rgba(220, 178, 82, 0.34);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(19, 34, 56, 0.96), rgba(5, 12, 22, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
}

.image-lightbox img {
  display: block;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
}

.image-lightbox figcaption {
  padding: 16px 20px;
  color: var(--gold-soft);
  font-weight: 900;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(220, 178, 82, 0.42);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.92);
  color: var(--gold-soft);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.switch-panel {
  border-color: rgba(220, 178, 82, 0.55);
}

.ac-panel {
  border-color: rgba(93, 213, 208, 0.55);
}

.door-panel {
  border-color: rgba(91, 141, 239, 0.55);
}

.rcu-host {
  border-color: rgba(230, 109, 105, 0.52);
}

.energy-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.45fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.process-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-grid article {
  text-align: center;
}

.case-grid strong {
  display: block;
  color: var(--gold-soft);
  font-size: 36px;
}

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

.section-note {
  margin: 28px 0 0;
  padding: 18px 20px;
  border: 1px solid rgba(220, 178, 82, 0.32);
  background: rgba(220, 178, 82, 0.08);
  font-size: 15px;
}

.diagram-node.primary {
  color: var(--cyan);
}

.diagram-node.center {
  border-color: rgba(220, 178, 82, 0.72);
  color: var(--gold-soft);
}

.diagram-line {
  width: 2px;
  height: 34px;
  margin: 0 auto;
  background: var(--gold);
}

.diagram-cluster {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.solution-list {
  display: grid;
  gap: 16px;
}

.solution-list article {
  padding: 24px;
  border-left: 4px solid var(--gold);
  background: var(--panel);
}

.scene-card {
  min-height: 250px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.22), rgba(7, 17, 31, 0.88)),
    linear-gradient(135deg, rgba(91, 141, 239, 0.36), rgba(220, 178, 82, 0.14));
}

.scene-card span {
  margin-bottom: 12px;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 900;
}

.dos-section {
  margin: 0 clamp(20px, 5vw, 72px);
  padding: 34px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(220, 178, 82, 0.38);
  background: linear-gradient(135deg, rgba(220, 178, 82, 0.12), rgba(93, 213, 208, 0.06));
}

.dos-section span {
  flex: 0 0 auto;
  align-self: center;
  padding: 12px 16px;
  border: 1px solid rgba(220, 178, 82, 0.45);
  color: var(--gold-soft);
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #0b1728;
  color: var(--text);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.contact-card ul {
  margin: 24px 0 0;
  padding-left: 20px;
}

.contact-card li + li {
  margin-top: 10px;
}

.company-contact ul {
  list-style: none;
  padding-left: 0;
}

.company-contact li {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.company-contact li strong {
  color: var(--gold-soft);
  font-size: 13px;
}

.company-contact a {
  color: var(--text);
  text-decoration: none;
}

.company-contact a:hover {
  color: var(--gold-soft);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #050c16;
  color: var(--muted);
}

.site-footer strong {
  color: var(--text);
}

.site-footer a {
  color: var(--gold-soft);
}

@media (max-width: 1080px) {
  .site-nav {
    gap: 10px;
    font-size: 13px;
  }

  .feature-grid,
  .timeline,
  .energy-grid,
  .product-grid,
  .product-showcase,
  .product-category-grid,
  .product-text-grid,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 69px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: rgba(13, 26, 44, 0.98);
    border: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .energy-layout,
  .fiber-layout,
  .solution-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .fiber-grid,
  .energy-detail-grid,
  .process-list,
  .catalog-grid,
  .scene-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-inline: 16px;
  }

  .hero,
  .page-hero,
  .section {
    padding: 64px 18px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .stats-grid,
  .feature-grid,
  .timeline,
  .fiber-grid,
  .energy-grid,
  .energy-detail-grid,
  .product-grid,
  .product-showcase,
  .product-category-grid,
  .product-text-grid,
  .summary-grid,
  .catalog-grid,
  .process-list,
  .case-grid,
  .scene-grid,
  .room-grid,
  .diagram-cluster,
  .fiber-services {
    grid-template-columns: 1fr;
  }

  .boutique-grid.two-column {
    grid-template-columns: 1fr;
  }

  .dos-section {
    margin-inline: 18px;
    flex-direction: column;
  }
}
