/* ============================================================
   港澳巴士优选 · 官网样式
   配色：深青(港湾/大桥海色) + 暖金 + 米白
   ============================================================ */

:root {
  --teal-900: #0a3232;
  --teal-800: #0f4c4c;
  --teal-700: #14615f;
  --teal-600: #1c7a76;
  --gold: #c8a15a;
  --gold-soft: #d8b877;
  --cream: #f6f2e9;
  --cream-2: #efe9dc;
  --paper: #fbf9f4;
  --ink: #1d2626;
  --ink-soft: #4d5a59;
  --line: rgba(15, 76, 76, .12);
  --shadow-sm: 0 4px 18px rgba(10, 50, 50, .06);
  --shadow-md: 0 18px 50px rgba(10, 50, 50, .12);
  --shadow-lg: 0 30px 80px rgba(10, 50, 50, .20);
  --serif: "Noto Serif SC", serif;
  --sans: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --lat: "Cormorant Garamond", serif;
  --wrap: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { width: min(var(--wrap), 92%); margin-inline: auto; }

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.25; letter-spacing: .01em; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-weight: 500; font-size: .95rem;
  padding: .78em 1.7em; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: .3s cubic-bezier(.2,.7,.3,1);
  white-space: nowrap;
}
.btn-lg { padding: 1em 2.1em; font-size: 1.02rem; }
.btn-solid { background: var(--teal-800); color: #fff; }
.btn-solid:hover { background: var(--teal-900); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(10,50,50,.28); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; background: rgba(255,255,255,.04); }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--teal-900); font-weight: 700; }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(200,161,90,.4); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 1.1rem 0; transition: .35s ease;
}
.site-header.scrolled {
  background: rgba(251, 249, 244, .88);
  backdrop-filter: blur(14px);
  padding: .65rem 0;
  box-shadow: 0 6px 30px rgba(10,50,50,.09);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 2rem; }

.brand { display: flex; align-items: center; gap: .65rem; color: var(--teal-800); }
.site-header:not(.scrolled) .brand { color: #fff; }
.brand-mark { display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--serif); font-size: 1.28rem; letter-spacing: .04em; }
.brand-text em { font-family: var(--lat); font-style: italic; font-size: .8rem; opacity: .7; letter-spacing: .08em; }

.main-nav { display: flex; gap: 1.9rem; margin-left: auto; }
.main-nav a {
  position: relative; font-size: .97rem; font-weight: 500; color: rgba(255,255,255,.9);
  transition: color .25s; padding: .2em 0;
}
.site-header.scrolled .main-nav a { color: var(--ink-soft); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0;
  background: var(--gold); transition: width .3s;
}
.main-nav a:hover { color: var(--gold); }
.site-header.scrolled .main-nav a:hover { color: var(--teal-800); }
.main-nav a:hover::after { width: 100%; }

.header-cta { margin-left: .4rem; }
.site-header:not(.scrolled) .header-cta { background: var(--gold); color: var(--teal-900); }
.site-header:not(.scrolled) .header-cta:hover { background: var(--gold-soft); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 10.5rem 0 6rem; overflow: hidden;
  background:
    radial-gradient(120% 90% at 82% 8%, #16615d 0%, transparent 52%),
    linear-gradient(160deg, #0d4645 0%, #0a3232 58%, #082827 100%);
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow {
  position: absolute; width: 620px; height: 620px; right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(200,161,90,.22), transparent 62%);
  filter: blur(10px);
}
.hero-bridge { position: absolute; left: 0; bottom: 0; width: 100%; height: 320px; }

.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 3.5rem; align-items: center;
}
.eyebrow {
  display: inline-block; font-size: .82rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 500; margin-bottom: 1.3rem;
  padding-left: 3rem; position: relative;
}
.eyebrow::before { content: ""; position: absolute; left: 0; top: 50%; width: 2.2rem; height: 1px; background: var(--gold); }

.hero-copy h1 { font-size: clamp(3rem, 6.5vw, 5rem); font-weight: 900; letter-spacing: .03em; }
.hero-copy h1 .accent { color: var(--gold); }
.lede { font-size: 1.08rem; color: rgba(255,255,255,.82); max-width: 34rem; margin: 1.6rem 0 2.3rem; font-weight: 300; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 2.6rem; margin-top: 3.4rem; }
.stat b { font-family: var(--lat); font-size: 2.7rem; font-weight: 600; color: var(--gold-soft); display: block; line-height: 1; }
.stat span { font-size: .86rem; color: rgba(255,255,255,.65); }

/* Hero 车票卡片 */
.hero-card { display: flex; justify-content: center; }
.ticket {
  width: 100%; max-width: 370px; background: linear-gradient(150deg, #fdfbf6, #f2ece0);
  color: var(--ink); border-radius: 22px; padding: 1.7rem 1.7rem 1.4rem;
  box-shadow: var(--shadow-lg); position: relative;
  transform: rotate(1.4deg); animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard { 0%,100% { transform: rotate(1.4deg) translateY(0); } 50% { transform: rotate(1.4deg) translateY(-12px); } }
.ticket-top { display: flex; justify-content: space-between; align-items: center; }
.ticket-label { font-size: .68rem; letter-spacing: .15em; color: var(--teal-700); font-weight: 700; }
.ticket-code { font-family: var(--lat); font-size: 1.1rem; font-weight: 600; color: var(--gold); }
.ticket-route { display: flex; align-items: flex-end; justify-content: space-between; margin: 1.6rem 0 1.4rem; }
.node b { font-family: var(--serif); font-size: 1.35rem; display: block; }
.node span { font-family: var(--lat); font-size: .72rem; letter-spacing: .1em; color: var(--ink-soft); }
.node.right { text-align: right; }
.route-line { flex: 1; display: flex; align-items: center; gap: 4px; color: var(--teal-700); padding: 0 .6rem 4px; }
.route-line .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-700); flex: none; }
.route-line .dash { flex: 1; height: 0; border-top: 2px dashed rgba(15,76,76,.35); }
.ticket-meta { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 1rem; }
.ticket-meta div { display: flex; flex-direction: column; }
.ticket-meta small { font-size: .72rem; color: var(--ink-soft); }
.ticket-meta b { font-family: var(--serif); font-size: 1rem; }
.ticket-perf {
  position: relative; height: 1px; margin: 1.1rem -1.7rem .9rem;
  border-top: 2px dashed rgba(15,76,76,.22);
}
.ticket-perf::before, .ticket-perf::after {
  content: ""; position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal-900);
}
.ticket-perf::before { left: -11px; }
.ticket-perf::after { right: -11px; }
.ticket-bottom { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--ink-soft); }
.ticket-brand { font-family: var(--serif); font-weight: 700; color: var(--teal-800); }

/* ---------- 信任条 ---------- */
.trust-bar { background: var(--teal-900); color: rgba(255,255,255,.78); }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding: 1.1rem 0; }
.trust-inner span { font-size: .9rem; position: relative; padding-left: 1.4rem; }
.trust-inner span::before {
  content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: .8rem;
}

/* ---------- 通用 section ---------- */
.section { padding: 6.5rem 0; }
.section-alt { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 3.8rem; }
.kicker {
  display: inline-block; font-family: var(--lat); font-style: italic; font-size: 1.1rem;
  color: var(--gold); letter-spacing: .06em; margin-bottom: .6rem;
}
.kicker.light { color: var(--gold-soft); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--teal-900); }
.section-head p { color: var(--ink-soft); margin-top: .9rem; }

/* ---------- 服务优势 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.feature {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 2.3rem 2rem; overflow: hidden; transition: .35s cubic-bezier(.2,.7,.3,1);
}
.feature::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .4s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature:hover::before { transform: scaleX(1); }
.feature-num { position: absolute; top: 1.4rem; right: 1.6rem; font-family: var(--lat); font-size: 2.6rem; color: var(--cream-2); font-weight: 600; }
.feature-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--cream); color: var(--teal-700); margin-bottom: 1.3rem; transition: .35s;
}
.feature:hover .feature-icon { background: var(--teal-800); color: var(--gold-soft); }
.feature h3 { font-size: 1.28rem; color: var(--teal-900); margin-bottom: .55rem; }
.feature p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- 热门线路 ---------- */
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.route-card {
  position: relative; background: #fff; border-radius: 18px; padding: 1.8rem 1.7rem;
  border: 1px solid var(--line); transition: .35s cubic-bezier(.2,.7,.3,1);
}
.route-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.route-tag {
  display: inline-block; font-size: .74rem; font-weight: 700; color: var(--teal-800);
  background: rgba(200,161,90,.18); padding: .3em .9em; border-radius: 999px; margin-bottom: 1.1rem;
}
.route-path { display: flex; flex-direction: column; gap: .35rem; font-family: var(--serif); font-size: 1.18rem; color: var(--teal-900); font-weight: 600; }
.route-path i { font-style: normal; color: var(--gold); font-size: 1.05rem; }
.route-info { display: flex; gap: 2rem; margin: 1.3rem 0; padding: 1rem 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.route-info div { display: flex; flex-direction: column; }
.route-info small { font-size: .74rem; color: var(--ink-soft); }
.route-info b { font-family: var(--serif); font-size: 1rem; color: var(--ink); }
.route-foot { display: flex; align-items: center; justify-content: space-between; }
.price { font-family: var(--lat); font-size: 2.1rem; font-weight: 600; color: var(--teal-800); line-height: 1; }
.price em { font-style: normal; font-size: 1.1rem; margin-right: 1px; }
.price small { font-family: var(--sans); font-size: .78rem; color: var(--ink-soft); margin-left: 3px; }
.route-book { font-size: .9rem; font-weight: 500; color: var(--teal-800); border: 1.5px solid var(--teal-800); padding: .55em 1.2em; border-radius: 999px; transition: .3s; }
.route-book:hover { background: var(--teal-800); color: #fff; }
.route-note { text-align: center; margin-top: 2.2rem; font-size: .84rem; color: var(--ink-soft); }

/* ---------- 预订流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; position: relative; }
.step {
  text-align: center; padding: 2.4rem 1.4rem 2rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: 18px; position: relative;
}
.step-idx {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  margin: 0 auto 1.2rem; font-family: var(--lat); font-size: 1.9rem; font-weight: 600;
  color: #fff; background: linear-gradient(150deg, var(--teal-700), var(--teal-900));
  box-shadow: 0 10px 22px rgba(10,50,50,.22);
}
.step h3 { font-size: 1.2rem; color: var(--teal-900); margin-bottom: .5rem; }
.step p { font-size: .92rem; color: var(--ink-soft); }

/* ---------- 小程序预订 CTA ---------- */
.booking {
  padding: 6rem 0; color: #fff;
  background:
    radial-gradient(90% 120% at 15% 20%, #16615d 0%, transparent 55%),
    linear-gradient(150deg, #0f4c4c, #0a3232);
}
.booking-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3.5rem; align-items: center; }
.booking-copy h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1.1rem; }
.booking-copy > p { color: rgba(255,255,255,.82); font-weight: 300; max-width: 32rem; }
.booking-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.5rem; margin: 1.8rem 0 2.2rem; max-width: 32rem; }
.booking-list li { position: relative; padding-left: 1.7rem; color: rgba(255,255,255,.9); font-size: .96rem; }
.booking-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal-900);
  background: var(--gold); width: 1.2rem; height: 1.2rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .72rem; font-weight: 700; top: .25rem;
}
.qr-card { justify-self: center; text-align: center; }
.qr-frame {
  background: #fff; padding: 1.1rem; border-radius: 22px; box-shadow: var(--shadow-lg);
  position: relative;
}
.qr-frame::before, .qr-frame::after {
  content: ""; position: absolute; width: 26px; height: 26px; border: 3px solid var(--gold);
}
.qr-frame::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.qr-frame::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
.qr-frame img { width: 220px; height: 220px; object-fit: contain; border-radius: 10px; }
.qr-hint { margin-top: 1.1rem; font-size: .92rem; color: rgba(255,255,255,.82); }

/* ---------- 关于我们 ---------- */
.about-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
.about-copy h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--teal-900); margin-bottom: 1.2rem; }
.about-copy p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.about-badges { display: flex; gap: 1.4rem; margin-top: 2rem; flex-wrap: wrap; }
.badge { padding: 1rem 1.4rem; background: var(--cream); border-radius: 14px; border: 1px solid var(--line); }
.badge b { font-family: var(--serif); font-size: 1.4rem; color: var(--teal-800); display: block; }
.badge span { font-size: .84rem; color: var(--ink-soft); }

.about-panel { display: flex; justify-content: center; }
.about-glass {
  width: 100%; max-width: 380px; aspect-ratio: 4/5; border-radius: 24px; padding: 2.6rem;
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
  background:
    radial-gradient(80% 60% at 70% 20%, rgba(200,161,90,.3), transparent 60%),
    linear-gradient(160deg, #14615f, #0a3232);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.about-glass::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px; opacity: .5;
}
.about-quote { position: relative; font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--gold-soft); margin-bottom: 1rem; }
.about-glass p { position: relative; font-size: 1.15rem; font-family: var(--serif); line-height: 1.7; }
.about-line { position: relative; width: 46px; height: 3px; background: var(--gold); margin: 1.4rem 0 1rem; }
.about-glass small { position: relative; font-size: .82rem; color: rgba(255,255,255,.7); }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.contact-card {
  background: #fff; border-radius: 18px; padding: 2.4rem 2rem; text-align: center;
  border: 1px solid var(--line); transition: .35s;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.contact-icon {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.2rem;
  background: var(--teal-800); color: var(--gold-soft);
}
.contact-card h3 { font-size: 1.2rem; color: var(--teal-900); margin-bottom: .7rem; }
.contact-big { font-family: var(--lat); font-size: 2rem; font-weight: 600; color: var(--teal-800); display: block; margin-bottom: .3rem; }
.contact-big:hover { color: var(--gold); }
.contact-card p { color: var(--ink-soft); font-size: .94rem; }
.contact-addr { line-height: 1.7; }
.contact-link { display: inline-block; margin-top: .8rem; color: var(--teal-800); font-weight: 500; font-size: .92rem; }
.contact-link:hover { color: var(--gold); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--teal-900); color: rgba(255,255,255,.72); padding-top: 4rem; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1.1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-logo { color: #fff; margin-bottom: 1rem; }
.footer-brand p { font-size: .92rem; max-width: 22rem; }
.footer-col h4 { font-size: 1rem; color: #fff; margin-bottom: 1.1rem; font-family: var(--serif); }
.footer-col a, .footer-col p { display: block; font-size: .92rem; margin-bottom: .55rem; transition: color .25s; }
.footer-col a:hover { color: var(--gold); }
.footer-addr { line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; padding: 1.4rem 0; font-size: .84rem; color: rgba(255,255,255,.55); }
.footer-bottom-inner a:hover { color: var(--gold); }

/* ---------- 悬浮拨号 ---------- */
.float-call {
  position: fixed; right: 1.4rem; bottom: 1.6rem; z-index: 90;
  display: flex; align-items: center; gap: .5rem; padding: .85rem 1.3rem;
  background: var(--gold); color: var(--teal-900); font-weight: 700; font-size: .92rem;
  border-radius: 999px; box-shadow: 0 12px 30px rgba(200,161,90,.45);
  transition: .3s;
}
.float-call:hover { transform: translateY(-3px) scale(1.03); }

/* ---------- 滚动揭示动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner, .booking-inner, .about-inner { grid-template-columns: 1fr; gap: 2.6rem; }
  .hero-card, .qr-card, .about-panel { order: -1; }
  .feature-grid, .route-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column; gap: 0;
    background: var(--teal-900); padding: 5rem 1.5rem 2rem; transform: translateY(-120%);
    transition: transform .4s cubic-bezier(.2,.7,.3,1); box-shadow: var(--shadow-lg);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { color: #fff; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.08); width: 100%; }
  .site-header.scrolled .main-nav a { color: #fff; }
  .nav-toggle { display: flex; z-index: 101; }
  .header-cta { display: none; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: #fff; }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: #fff; }

  .hero { padding-top: 8rem; }
  .hero-stats { gap: 1.6rem; }
  .stat b { font-size: 2.1rem; }
  .feature-grid, .route-grid, .contact-grid, .steps, .footer-inner, .booking-list { grid-template-columns: 1fr; }
  .section { padding: 4.5rem 0; }
  .trust-inner { justify-content: flex-start; }
  .float-call span { display: none; }
  .float-call { padding: .9rem; }
}
