:root {
  --bg: #0b1220;
  --card: #111a2b;
  --muted: #cdd4e7;
  --text: #e8eefc;
  --accent: #38bdf8;
  --accent-2: #8b5cf6;
  --secondary: #fbbf24;
  --border: #1f2937;
  --gradient: linear-gradient(135deg, #0a1224 0%, #0b1c2f 55%, #0a1224 100%);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --grid-line: rgba(56, 189, 248, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", "Space Grotesk", system-ui, -apple-system, sans-serif;
  background: var(--gradient);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

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

.page-shell {
  position: relative;
  isolation: isolate;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px circle at 18% 18%, rgba(56, 189, 248, 0.08), transparent 50%),
    radial-gradient(800px circle at 82% 12%, rgba(139, 92, 246, 0.08), transparent 45%),
    repeating-linear-gradient(0deg, transparent 0, transparent 118px, var(--grid-line) 118px, var(--grid-line) 119px),
    repeating-linear-gradient(90deg, transparent 0, transparent 118px, var(--grid-line) 118px, var(--grid-line) 119px);
  z-index: -1;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(11, 18, 32, 0.7);
  border-bottom: 1px solid var(--border);
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 28px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
}

.logo img {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 6px 18px rgba(56, 189, 248, 0.3));
}

.logo-text {
  display: grid;
  gap: 3px;
  line-height: 1.05;
  font-size: 1.05rem;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
}

nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
  transition: all 0.2s ease;
}

nav a:hover {
  color: var(--text);
  background: rgba(56, 189, 248, 0.08);
}

.btn-cta {
  background: linear-gradient(120deg, #22d3ee, #38bdf8);
  color: #0b1220;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 15px 30px rgba(56, 189, 248, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(56, 189, 248, 0.36);
}

.hero {
  position: relative;
  padding: 90px 0 80px;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  margin: 12px 0 18px;
}

.hero p {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.hero-bg {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(59, 130, 246, 0.08));
  border: 1px solid #1f2b3d;
  padding: 28px;
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow);
}

.hero-img {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid #1f2b3d;
  z-index: 0;
  filter: brightness(0.9);
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.3), rgba(139, 92, 246, 0.2));
  mix-blend-mode: screen;
  opacity: 0.6;
  mask-image: radial-gradient(circle at 30% 30%, black, transparent 55%);
}

.img-placeholder {
  border-radius: calc(var(--radius) - 4px);
  border: 1px dashed rgba(148, 163, 184, 0.4);
  color: var(--muted);
  display: grid;
  place-items: center;
  min-height: 200px;
  text-align: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.floating-card {
  position: absolute;
  bottom: 22px;
  left: 22px;   /* A 版大圖的人物在右側，卡片放左下才不會擋住 */
  background: rgba(17, 26, 43, 0.9);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  max-width: 220px;
}

.floating-card .floating-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.floating-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-title {
  text-align: center;
  margin: 18px 0 40px;
}

.section-title h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  align-items: center;
  margin: 40px 0 60px;
}

.about-text h2 {
  font-size: 26px;
  margin: 8px 0 16px;
}

.about-text p {
  color: var(--muted);
  margin: 0 0 12px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.feature-item {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.industry-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.industry-card,
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.industry-card::after,
.service-card::after {
  content: "";
  position: absolute;
  inset: -30% 30% 40% -30%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08), transparent 50%);
  transform: rotate(-8deg);
}

.industry-card h4,
.service-card h3 {
  margin: 10px 0 8px;
}

.industry-card p,
.service-card p {
  margin: 0;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.industry-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 22px;
  position: relative;
  z-index: 1;
}

.industry-img {
  width: 100%;
  height: 150px;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.industry-svg {
  display: grid;
  place-items: center;
  height: 150px;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  background: rgba(34, 211, 238, 0.04);
}

.industry-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-img {
  min-height: 160px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tech-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: center;
  margin: 30px auto 70px;
  width: min(1100px, 92vw);
}

.tech-img {
  min-height: 280px;
  background: rgba(56, 189, 248, 0.04);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 520px;
  justify-self: center;
}

.tech-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tech-text {
  max-width: 520px;
  justify-self: center;
}

.tech-text h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.tech-text ul {
  padding-left: 18px;
  color: var(--muted);
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}

.tech-highlight {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 40px;
  margin: 0 auto 60px;
  width: min(1000px, 92vw);
  text-align: center;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.15);
  position: relative;
  overflow: hidden;
}

.tech-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.tech-highlight h3 {
  font-size: 28px;
  margin-bottom: 16px;
  color: #fff;
}

.tech-highlight p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.about-img img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  margin-bottom: 60px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
}

input,
select,
textarea {
  background: #0f172a;
  border: 1px solid #243047;
  border-radius: 10px;
  padding: 12px 12px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

button[type="submit"] {
  background: linear-gradient(120deg, #38bdf8, #22d3ee);
  color: #0b1220;
  font-weight: 700;
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 15px 30px rgba(56, 189, 248, 0.3);
}

button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(56, 189, 248, 0.36);
}

.form-status {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--muted);
  min-height: 1.2em;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.footer-info h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.footer-info p {
  margin: 0 0 8px;
  color: var(--muted);
}

.footer-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

footer {
  padding: 40px 0 26px;
  border-top: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.85);
}

footer .bottom {
  text-align: center;
  color: var(--muted);
  margin-top: 16px;
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  nav ul {
    flex-wrap: nowrap;
    gap: 16px;
    font-size: 0.92rem;
    white-space: nowrap;
    padding: 2px 0 6px;
  }

  .nav {
    flex-wrap: wrap;
  }

  .btn-cta {
    width: 100%;
    text-align: center;
  }
}

.cookie-banner {
  position: fixed;
  inset: auto 16px 16px 16px;
  max-width: 560px;
  margin: 0 auto;
  background: rgba(17, 26, 43, 0.95);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  display: none;
  gap: 12px;
  z-index: 50;
}

.cookie-banner.show {
  display: grid;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
}

.btn-ghost:hover {
  border-color: #38bdf8;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 20px;
}

.modal-backdrop.show {
  display: flex;
}

.modal {
  background: rgba(17, 26, 43, 0.95);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  width: min(420px, 92vw);
  padding: 22px 22px 18px;
  position: relative;
  overflow: hidden;
}

.modal::before {
  content: "";
  position: absolute;
  inset: -20% 30% 60% -30%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12), transparent 50%);
  transform: rotate(-8deg);
}

.modal h2 {
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
}

.modal p {
  margin: 0 0 12px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 6px;
  border-radius: 8px;
}

.modal-close:hover {
  background: rgba(56, 189, 248, 0.12);
}

.tech-highlight {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 auto 60px;
  width: min(1000px, 92vw);
  text-align: center;
  position: relative;
}

.tech-highlight::before {
  display: none;
}

.tech-highlight-img {
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-highlight-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.tech-highlight h3 {
  font-size: 28px;
  margin: 32px 0 16px;
  color: #fff;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.tech-highlight p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.6;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

#faq {
  width: min(1000px, 92vw);
  margin: 0 auto;
  padding: 24px 0 70px;
  scroll-margin-top: 110px;
}

#faq h2 {
  text-align: center;
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 28px;
}

#faq [itemscope][itemprop="mainEntity"] {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

#faq h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.4;
}

#faq p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 640px) {
  #faq {
    padding: 18px 0 54px;
  }

  #faq [itemscope][itemprop="mainEntity"] {
    padding: 18px;
  }
}

/* ── P1 2026-10-30：首頁改版與服務頁 ── */
body { font-family: "Noto Sans TC", "Space Grotesk", system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif; }
.logo img { width: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-secondary { display: inline-block; padding: 12px 18px; border-radius: 10px; border: 1px solid var(--accent); color: var(--accent); font-weight: 700; }
.btn-secondary:hover { background: rgba(56, 189, 248, 0.1); }
.highlight-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.highlight-list li { background: rgba(17, 26, 43, 0.75); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; color: var(--muted); font-size: 0.95rem; }
.floating-title { margin: 0 0 6px; font-size: 0.95rem; font-weight: 700; }
section { scroll-margin-top: 100px; }
.section { padding: 60px 0; }
.audience-grid, .card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.card p, .card li { color: var(--muted); }
.card ul { margin: 0 0 14px; padding-left: 1.2em; }
.card-link { color: var(--accent); font-weight: 700; }
.service-card a.card-link { display: inline-block; margin-top: 8px; }
.service-card .service-img img { width: 100%; height: auto; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; color: var(--muted); }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(56, 189, 248, 0.15); color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.steps strong { display: block; color: var(--text); }
.text-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.text-links a, .prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.footer-info a { color: var(--text); }
.footer-info a:hover { color: var(--accent); }
.footer-note { opacity: .75; font-size: .9em; }
.linklike { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }
/* 服務頁 */
.page-hero { padding: 64px 0 28px; }
.page-hero h1 { font-size: clamp(30px, 3.6vw, 46px); }
.page-hero .lead { color: var(--muted); font-size: 1.08rem; max-width: 820px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; color: var(--muted); font-size: 0.92rem; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; opacity: .7; }
.breadcrumb a { color: var(--accent); }
.prose { max-width: 860px; }
.prose h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 44px 0 14px; }
.prose p, .prose li { color: var(--muted); line-height: 1.85; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; color: var(--muted); }
.prose th { color: var(--text); background: rgba(56, 189, 248, 0.06); }
.prose .source { font-size: .9rem; }
.faq-list { max-width: 1000px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; margin-bottom: 16px; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22); }
.faq-item h3 { margin: 0 0 10px; font-size: 1.15rem; line-height: 1.4; }
.faq-item p { margin: 0; color: var(--muted); line-height: 1.75; }
.cta-box { margin: 48px 0 24px; padding: 28px; border-radius: 14px; border: 1px solid var(--border); background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(139, 92, 246, 0.08)); }
.cta-box h2 { margin: 0 0 8px; }
.cta-box p { color: var(--muted); margin: 0 0 16px; }
.related { margin: 36px 0 60px; }
.related ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.related a { display: block; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; color: var(--accent); }
.related a:hover { border-color: var(--accent); }
.h4 { margin: 0 0 8px; font-size: 1.05rem; }
