/* 香港搜奇智能有限公司 公司站 */

:root {
  --color-bg: #030f1b;
  --color-bg-elevated: #0c2744;
  --color-surface: #0f2d4a;
  --color-ink: #ffffff;
  --color-ink-muted: rgba(255, 255, 255, 0.78);
  --color-primary: #b8d9ff;
  --color-primary-light: #d4e8ff;
  --color-accent: #5eead4;
  --color-border: rgba(255, 255, 255, 0.14);
  --font-sans: "Noto Sans", system-ui, -apple-system, sans-serif;
  --header-h: 3.5rem;
  --radius: 10px;
  --shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
  --max: 68rem;
  --space: clamp(1rem, 4vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html[lang="zh-Hant"] {
  --font-sans: "Noto Sans TC", "Noto Sans", system-ui, -apple-system, sans-serif;
}

/* English: long legal company name wraps to 2+ lines so header / hero / footer stay balanced */
html[lang="en"] .logo {
  flex-shrink: 1;
  min-width: 0;
  align-items: flex-start;
  max-width: min(calc(100vw - 11rem), 24rem);
}

@media (min-width: 48rem) {
  html[lang="en"] .logo {
    max-width: min(calc(100vw - 15rem), 26rem);
  }
}

html[lang="en"] .logo__name {
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.22;
}

html[lang="en"] .hero-title {
  max-width: min(40rem, 100%);
  margin-inline: auto;
  text-wrap: balance;
  line-height: 1.28;
}

html[lang="en"] .footer-legal {
  max-width: min(40rem, 100%);
  margin-inline: auto;
  padding-inline: 0.5rem;
}

html[lang="en"] .footer-legal strong {
  white-space: normal;
  overflow-wrap: break-word;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-ink);
  background: var(--color-bg);
  color-scheme: dark;
}

strong {
  color: var(--color-ink);
  font-weight: 700;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  color: var(--color-ink);
  font-weight: 600;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 26, 46, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.header-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--color-bg-elevated);
}

.lang-btn {
  margin: 0;
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1.2;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.lang-btn:focus-visible {
  box-shadow: inset 0 0 0 2px var(--color-accent);
}

.lang-btn.is-active {
  color: #071a2e;
  background: rgba(255, 255, 255, 0.92);
}

.lang-btn + .lang-btn {
  border-left: 1px solid var(--color-border);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
  color: var(--color-ink);
  max-width: min(92vw, 26rem);
}

.logo__img {
  display: block;
  flex-shrink: 0;
  height: clamp(1.65rem, 4.5vw, 2.4rem);
  width: auto;
  max-width: min(28vw, 4.5rem);
  object-fit: contain;
}

.logo__name {
  font-weight: 700;
  font-size: clamp(0.78rem, 2.1vw, 1.02rem);
  line-height: 1.25;
  min-width: 0;
}

@media (min-width: 48rem) {
  .logo {
    max-width: none;
  }

  .logo__img {
    height: 2.5rem;
    max-width: 5.5rem;
  }

  .logo__name {
    font-size: 1.08rem;
  }
}

.nav-toggle {
  display: none;
  padding: 0.5rem;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--color-ink);
  position: relative;
  border-radius: 1px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

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

.site-nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 48rem) {
  .nav-toggle {
    display: block;
  }

  .header-end {
    gap: 0.5rem;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem var(--space) 1rem;
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.2s, opacity 0.2s, visibility 0.2s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav .nav-list {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Layout */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-accent);
  font-weight: 600;
  margin: 0 0 1rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--color-ink-muted);
  max-width: 55ch;
  margin: 0 0 1rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(90vh, 40rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) var(--space) 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #020810 0%, #061525 42%, #0a1f38 100%);
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 55% at 72% 18%, rgba(94, 234, 212, 0.08) 0%, transparent 52%);
  pointer-events: none;
  z-index: 1;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: min(92vw, 56rem);
  margin-inline: auto;
  padding-inline: max(0px, env(safe-area-inset-left, 0px))
    max(0px, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

.hero-entity {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.hero-title {
  margin: 0 auto 1rem;
  font-size: clamp(1.35rem, 4.2vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-wrap: balance;
}

.hero-lead {
  margin: 0 auto 0.75rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.2rem;
  line-height: 1.45;
  max-width: none;
  white-space: nowrap;
}

.hero-tagline {
  margin: 0 auto 1.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.06rem;
  line-height: 1.45;
  max-width: none;
  white-space: nowrap;
}

.hero-cta {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: #ffffff;
  color: #071a2e;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: #e8f4ff;
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* About */
.section-about {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.feature-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--color-ink-muted);
}

.feature-list li {
  margin-bottom: 0.5rem;
}

.section-outlook {
  margin-top: 1.5rem;
  font-weight: 500;
  color: var(--color-primary);
}

/* TipsMuseum */
.section-tips {
  background: var(--color-bg-elevated);
}

.section-split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  grid-template-columns: 1fr;
}

@media (min-width: 56rem) {
  .section-split {
    grid-template-columns: 1fr 1.05fr;
  }
}

.section-split__text p {
  color: var(--color-ink-muted);
  max-width: 50ch;
}

.section-tips .tips-content p {
  max-width: 62ch;
}

.section-tips .tips-content .section-subtitle.tips-tagline {
  max-width: 66ch;
  color: var(--color-accent);
  font-size: 1.12rem;
  font-weight: 600;
}

.section-tips .tips-dek {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--color-primary);
}

.section-tips .tips-pillars {
  margin: 1rem 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--color-ink-muted);
  max-width: 62ch;
}

.section-tips .tips-pillars li {
  margin-bottom: 0.45rem;
}

.section-tips .tips-block-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 2rem 0 0.5rem;
  line-height: 1.35;
}

.section-tips .tips-block-lead {
  margin: 0 0 1rem;
}

.section-tips .tips-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: 0.85rem;
  margin: 0 0 0.25rem;
  list-style: none;
  padding: 0;
}

.section-tips .tips-card {
  margin: 0;
  padding: 1rem 1rem 1.05rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.section-tips .tips-card:hover {
  border-color: rgba(94, 234, 212, 0.38);
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.1), var(--shadow);
}

.section-tips .tips-card__title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.35;
}

.section-tips .tips-card__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-ink-muted);
}

.section-tips .tips-tech-list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  max-width: 100%;
}

@media (min-width: 40rem) {
  .section-tips .tips-tech-list {
    grid-template-columns: 1fr 1fr;
  }
}

.section-tips .tips-tech-list li {
  margin: 0;
  padding: 0.75rem 0.9rem;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--color-ink-muted);
  line-height: 1.5;
  transition: border-color 0.2s ease;
}

.section-tips .tips-tech-list li:hover {
  border-color: rgba(184, 217, 255, 0.4);
}

.section-tips .tips-tech-list strong {
  color: var(--color-primary);
  font-weight: 700;
}

.section-tips .tips-checklist {
  margin: 0 0 0.5rem;
  padding-left: 1.2rem;
  max-width: 62ch;
}

.section-tips .tips-checklist li {
  margin-bottom: 0.4rem;
  color: var(--color-ink-muted);
}

.section-tips .tips-closing {
  margin: 1.75rem 0 1rem;
  font-weight: 500;
}

.section-tips .tips-cta {
  display: inline-block;
}

/* 竖图（高大于宽）横向并列，完整等比显示、不裁切 */
.tips-gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.5rem, 1.5vw, 0.9rem);
  width: 100%;
}

.tips-figure {
  margin: 0;
  border-radius: var(--radius);
  background: var(--color-bg);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
}

.tips-figure .tips-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  vertical-align: middle;
}

/* 窄屏：横向滚动浏览三张，避免过窄时竖图被压到看不清 */
@media (max-width: 40rem) {
  .tips-gallery {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.35rem;
  }

  .tips-figure {
    flex: 0 0 min(40vw, 10.5rem);
    min-width: min(40vw, 10.5rem);
    scroll-snap-align: start;
  }
}

.tips-figure .tips-img[hidden] {
  display: none;
}

.tips-figure--placeholder {
  min-height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  color: var(--color-ink-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  background: linear-gradient(160deg, #0f2d4a 0%, #0a2038 100%);
}

.tips-figure--placeholder p {
  margin: 0;
  max-width: 14rem;
}

/* ABooking */
.section-abooking {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.abooking-lead {
  max-width: 60ch;
}

.pain-points {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.5rem;
}

.pain-points li {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: rgba(94, 234, 212, 0.12);
  color: var(--color-ink);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.35);
}

/* Partners */
.section-partners {
  background: var(--color-bg-elevated);
}

.partner-tags {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.75rem;
}

.partner-tags li {
  padding: 0.9rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-ink);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

/* Operations */
.section-ops {
  background: linear-gradient(180deg, var(--color-bg) 0%, #061220 100%);
  border-top: 1px solid var(--color-border);
}

.subsection-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 2rem 0 0.75rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.stat {
  flex: 1 1 6rem;
  min-width: 5rem;
  max-width: 10rem;
  padding: 1.25rem 1rem;
  text-align: center;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-display {
  display: block;
}

.stat-value {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-ink-muted);
  font-weight: 500;
}

.ops-outlook {
  margin-top: 1.5rem;
  font-weight: 500;
  color: var(--color-primary);
}

.section-ops p {
  color: var(--color-ink-muted);
  max-width: 60ch;
}

/* Footer */
.site-footer {
  background: #040d18;
  color: rgba(255, 255, 255, 0.9);
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  text-align: center;
}

.footer-legal {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.footer-note {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Utilities */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
