:root {
  --bg: #060b16;
  --bg-soft: #0d1528;
  --card: #111b31;
  --text: #e8eefc;
  --muted: #9fb0d0;
  --green: #1fa463;
  --cyan: #1db8c9;
  --blue: #1e56d9;
  --gradient: linear-gradient(90deg, var(--green), var(--cyan), var(--blue));
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans TC", "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow { width: min(900px, calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(6, 11, 22, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo,
.custom-logo-link img {
  width: 88px;
  height: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1.05rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav .nav-list {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-size: 1.1rem;
}

.hero {
  padding: 5rem 0 4rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(31, 164, 99, 0.18), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(30, 86, 217, 0.22), transparent 30%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 0.4rem 0 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  font-size: 1.25rem;
  color: #d7e4ff;
  margin-bottom: 0.8rem;
}

.hero-desc { color: var(--muted); max-width: 36rem; }

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 12px 30px rgba(29, 184, 201, 0.25);
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text);
}

.btn-block { width: 100%; }

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
}

.hero-logo {
  width: min(100%, 360px);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.45));
}

.hero-glow {
  position: absolute;
  inset: auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,184,201,0.35), transparent 70%);
}

.section {
  padding: 4.5rem 0;
}

.page-intro {
  padding-top: 3rem;
  padding-bottom: 1rem;
}

.page-intro h1 {
  margin: 0.3rem 0 0.6rem;
}

.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 0.8rem;
}

.lead, .section-head p, .muted { color: var(--muted); }

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.about { background: var(--bg-soft); }

.about-story p {
  margin: 0 0 1.15rem;
  line-height: 1.75;
  color: var(--text);
}

.about-story p:last-child {
  margin-bottom: 0;
}

.about-story a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.about-story a:hover {
  color: #fff;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.feature-card,
.product-card,
.contact-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 1.4rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(29, 184, 201, 0.12);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.product-card { overflow: hidden; }

.product-thumb img,
.product-thumb-placeholder {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.product-thumb-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(31,164,99,0.25), rgba(30,86,217,0.25));
  font-size: 2rem;
  font-weight: 700;
}

.product-body { padding: 1.2rem 1.3rem 1.4rem; }

.product-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.product-body p {
  color: var(--muted);
  margin: 0 0 0.8rem;
  min-height: 3.2rem;
}

.link-more {
  color: var(--cyan);
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.contact-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.6rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.contact-card { padding: 1.5rem; }

.page-header {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.entry-content {
  color: #d7e4ff;
}

.entry-content a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  color: #5eead4;
}

.product-actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-actions .btn {
  margin-top: 0.5rem;
}

.single-thumb {
  margin: 1.2rem 0 1.6rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.product-single-title {
  margin-bottom: 1.25rem;
}

.product-single .eyebrow {
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0 1.5rem;
}

.product-gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.product-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.product-single-content {
  margin: 1.5rem 0;
  font-size: clamp(1.08rem, 2.2vw, 1.22rem);
  line-height: 1.85;
  color: #edf4ff;
}

.product-single-content p {
  margin: 0 0 1rem;
}

.product-single-content p:last-child {
  margin-bottom: 0;
}

.product-store-links {
  margin: 2rem 0 1.5rem;
}

.product-store-links-title {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.75rem;
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.06em;
  border: 1px solid rgba(29, 184, 201, 0.45);
  border-radius: 8px;
  background: rgba(29, 184, 201, 0.08);
}

.product-store-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.product-store-link-item {
  display: inline-block;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  transition: color 0.2s;
}

.product-store-link-item:hover {
  background: none;
  border: 0;
  color: var(--cyan);
  transform: none;
}

.product-video-wrap {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #000;
}

.product-video-wrap-youtube {
  aspect-ratio: 16 / 9;
}

.product-video-embed {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.product-video {
  width: 100%;
  max-height: 520px;
  display: block;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #04070f;
  padding: 3rem 0 1.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.2rem;
}

.footer-grid h3,
.footer-grid h4 {
  margin-top: 0;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li { margin: 0.45rem 0; }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-admin-link {
  color: inherit;
  text-decoration: none;
}

.footer-admin-link:hover,
.footer-admin-link:focus-visible {
  color: inherit;
  text-decoration: none;
  outline: none;
}

@media (max-width: 900px) {
  .hero-grid,
  .features,
  .product-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .site-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: rgba(6, 11, 22, 0.96);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: none;
  }

  .site-nav.open { display: block; }

  .site-nav .nav-list {
    flex-direction: column;
    padding: 1rem;
  }
}
