* {
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #0f172a;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--secondary);
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

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

.brand-text strong {
  font-size: 1.05rem;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--secondary);
}

.hero {
  padding: 104px 0 88px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 30%),
    linear-gradient(135deg, #eff6ff 0%, #ffffff 46%, #eef2ff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow,
.section-label,
.panel-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(2.5rem, 4vw, 4.8rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.highlight {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.highlight strong {
  display: block;
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.highlight span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-image img {
  width: 100%;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h2 {
  margin: 16px 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.15;
}

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

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}

.info-list {
  display: grid;
  gap: 18px;
}

.info-card {
  display: flex;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.info-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-card h3 {
  margin: 0 0 8px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.service-tags span {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.92rem;
}

.line-card {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: 30px;
  padding: 32px;
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.22);
}

.line-card h3 {
  margin: 14px 0 12px;
  font-size: 1.5rem;
}

.line-card p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
}

.qr-wrapper {
  background: #ffffff;
  border-radius: 24px;
  padding: 18px;
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.qr-wrapper img {
  width: min(280px, 100%);
  border-radius: 18px;
}

.line-actions {
  display: grid;
  gap: 14px;
}

.form-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 32px;
  box-shadow: var(--shadow);
}

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

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

.form-group {
  display: grid;
  gap: 10px;
}

.form-group.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 700;
  color: var(--secondary);
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #ffffff;
  font: inherit;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.process-step {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.process-step h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.process-step p {
  margin: 0;
  color: var(--muted);
}

.feature-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.feature-content h2 {
  margin-top: 16px;
  margin-bottom: 24px;
  font-size: clamp(2rem, 3vw, 2.9rem);
}

.feature-list {
  display: grid;
  gap: 20px;
}

.feature-item {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.9), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.feature-item h3 {
  margin: 0 0 10px;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
}

.panel-card {
  width: 100%;
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: 30px;
  padding: 32px;
  box-shadow: 0 26px 54px rgba(15, 23, 42, 0.22);
}

.panel-card h3 {
  margin: 14px 0 14px;
  font-size: 1.5rem;
}

.panel-card p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
}

.panel-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
}

.cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
}

.cta-box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.cta-box .section-label {
  color: #bfdbfe;
}

.cta-box h2 {
  margin: 16px 0;
  font-size: clamp(2rem, 3vw, 3rem);
}

.cta-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  background: transparent;
}

.footer {
  padding: 28px 0;
  background: #020617;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.back-to-top {
  color: #bfdbfe;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .hero-grid,
  .contact-layout,
  .feature-layout,
  .cta-box,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 768px) {
  .container {
    width: min(100% - 32px, 1120px);
  }

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

  nav {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  nav.open {
    display: flex;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-grid,
  .contact-layout,
  .feature-layout,
  .cta-box,
  .process-grid,
  .hero-highlights,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
