/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --orange:        #F5831F;
  --orange-dark:   #D96A0A;
  --orange-light:  #FEF3E8;
  --orange-border: #F8D9B8;
  --blue:          #1A72D8;
  --blue-light:    #EBF3FE;
  --bg:            #FAF8F5;
  --surface:       #FFFFFF;
  --text:          #1A1A1A;
  --text-muted:    #6B6B70;
  --border:        #E8E3DC;
  --shadow:        0 2px 12px rgba(0,0,0,0.07);
  --radius:        12px;
  --font:         'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --max-w:         900px;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange); }

/* ─── Container ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Navbar ─────────────────────────────────────────────────── */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.navbar-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 8px;
}
.navbar-brand {
  font-weight: 700;
  font-size: 15px;
  color: var(--orange);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: auto;
}
.navbar-brand-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  margin-right: 8px;
  vertical-align: middle;
  object-fit: cover;
  flex-shrink: 0;
}
.navbar-nav {
  display: flex;
  gap: 2px;
}
.navbar-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 7px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--orange);
  background: var(--orange-light);
}
.navbar-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 18px;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  background-color: #005bdf;
  border-bottom: none;
  padding: 64px 0 56px;
  transition: background-color .7s ease;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

/* Slider (left column) */
.hero-slider { flex: 0 0 45%; min-width: 0; }
.hero-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.hero-dot {
  height: 8px;
  width: 8px;
  border-radius: 100px;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, width .25s;
}
.hero-dot.active {
  background: #fff;
  width: 24px;
}

/* Content (right column) */
.hero-content { flex: 1; min-width: 0; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: .03em;
}
.hero-title {
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin-bottom: 14px;
  color: #fff;
}
.hero-company {
  font-size: 14px;
  color: rgba(255,255,255,.8);
  margin-bottom: 18px;
  font-weight: 500;
}
.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,.82);
  max-width: 560px;
  margin: 0 0 40px;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.hero-actions-row {
  display: flex;
  gap: 12px;
}
.hero-content .btn-primary {
  background: #fff;
  color: var(--orange);
}
.hero-content .btn-primary:hover {
  background: var(--orange-light);
  color: var(--orange-dark);
}
.hero-content .btn-outline {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.hero-content .btn-outline:hover {
  background: rgba(255,255,255,.28);
  color: #fff;
  border-color: rgba(255,255,255,.8);
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all .18s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-light);
}

/* ─── Section ────────────────────────────────────────────────── */
.section       { padding: 56px 0; }
.section-white { background: var(--surface); }
.section-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -.01em;
}
.section-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ─── App Cards ──────────────────────────────────────────────── */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
}
.app-icon-img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
}
.app-name { font-weight: 600; font-size: 14px; line-height: 1.4; }
.app-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ─── Feature Grid ───────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 10px;
}
.feature-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* ─── Link Cards (nav shortcuts) ────────────────────────────── */
.link-cards { display: flex; flex-direction: column; gap: 12px; }
.link-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.link-card:hover {
  border-color: var(--orange);
  transform: translateX(4px);
  box-shadow: 0 4px 18px rgba(245,131,31,.12);
}
.link-card-num {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--orange-light);
  color: var(--orange);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.link-card-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 3px;
}
.link-card-desc {
  font-size: 14px;
  color: var(--text-muted);
}
.link-card-arrow {
  margin-left: auto;
  color: var(--orange);
  font-size: 18px;
  flex-shrink: 0;
  font-weight: 700;
}

/* ─── Prose (long-form pages) ────────────────────────────────── */
.prose-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.prose-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.prose-header h1 {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.prose-header .meta {
  font-size: 14px;
  color: var(--text-muted);
}
.prose-header .apps-badge {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.badge-orange { background: var(--orange-light); color: var(--orange); border: 1px solid var(--orange-border); }
.badge-blue   { background: var(--blue-light);   color: var(--blue);   border: 1px solid #C5DCFA; }

.prose h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange-light);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.prose h2 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--orange);
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.prose h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--text);
}
.prose p { margin-bottom: 14px; font-size: 15px; line-height: 1.8; }
.prose ul {
  margin: 10px 0 16px 20px;
  font-size: 15px;
  line-height: 1.8;
}
.prose ul li { margin-bottom: 5px; }
.prose strong { font-weight: 700; }

/* Apply-by-email box */
.email-box {
  background: var(--orange-light);
  border: 1.5px solid var(--orange-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
}
.email-box .email-link {
  font-size: 18px;
  font-weight: 800;
  color: var(--orange);
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
}
.email-box .subject {
  font-family: monospace;
  font-size: 13px;
  background: #fff;
  border: 1px solid var(--orange-border);
  border-radius: 6px;
  padding: 6px 12px;
  display: inline-block;
  margin-top: 8px;
  color: var(--text);
}

/* Apply steps */
.steps { margin: 16px 0; }
.step-item {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  align-items: flex-start;
}
.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-body { font-size: 15px; line-height: 1.75; }
.step-body strong { display: block; font-weight: 700; margin-bottom: 2px; }

/* Contact info block */
.contact-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.contact-block .company-name {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg);
  font-size: 15px;
}
.contact-row:last-child { border-bottom: none; }
.contact-label {
  width: 84px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}
.contact-value { font-weight: 600; }
.contact-value a { color: var(--orange); text-decoration: none; }
.contact-value a:hover { text-decoration: underline; }

/* Useful links list */
.useful-links { list-style: none; margin: 16px 0; }
.useful-links li {
  border-bottom: 1px solid var(--border);
}
.useful-links li:last-child { border-bottom: none; }
.useful-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 4px;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: color .15s;
}
.useful-links a:hover { color: var(--orange); }
.useful-links a::after {
  content: '→';
  color: var(--orange);
  font-size: 16px;
}

/* ─── Disclaimer bar ─────────────────────────────────────────── */
.disclaimer {
  background: #FFF8F0;
  border-top: 1px solid var(--orange-border);
  border-bottom: 1px solid var(--orange-border);
  padding: 14px 0;
}
.disclaimer p {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer p { font-size: 13px; color: var(--text-muted); }
.footer a { color: var(--orange); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ─── Page header (for inner pages) ─────────────────────────── */
.page-header {
  background: linear-gradient(150deg, #FFF9F2 0%, #FDF5EC 100%);
  border-bottom: 1px solid var(--orange-border);
  padding: 40px 0 36px;
}
.page-header h1 {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 800;
  margin-bottom: 6px;
}
.page-header .breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
}
.page-header .breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.page-header .breadcrumb a:hover { color: var(--orange); }
.page-header .breadcrumb span { margin: 0 6px; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .navbar-toggle { display: block; }
  .navbar-brand { font-size: 14px; }

  .navbar-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 10px 20px 16px;
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .navbar-nav.open { display: flex; }
  .navbar-nav a { padding: 10px 12px; font-size: 15px; }

  .hero { padding: 40px 0 36px; }
  .hero-inner { flex-direction: column; gap: 28px; }
  .hero-slider { flex: none; width: 100%; }
  .hero-content { width: 100%; text-align: center; }
  .hero-badge { margin-left: auto; margin-right: auto; }
  .hero-desc { margin: 0 auto 32px; }
  .hero-actions { align-items: center; }
  .hero-actions-row { flex-direction: column; align-items: center; width: 100%; }
  .btn { width: 100%; max-width: 280px; text-align: center; }

  .section { padding: 40px 0; }
  .app-grid { grid-template-columns: 1fr 1fr; }

  .link-card { padding: 16px 18px; gap: 14px; }
  .link-card-num { width: 38px; height: 38px; font-size: 16px; }

  .prose-wrap { padding: 32px 20px 48px; }
  .contact-block { padding: 18px 20px; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 400px) {
  .app-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}
