/* ============================================================
   港粵通 GangYueTong — 企業官方網站 共享樣式表
   設計系統：深藍（信任/跨境）+ 暖金（粵港澳/品質）+ 淺青（活力）
   ============================================================ */

:root {
  /* 主色 */
  --c-navy:        #14376e;
  --c-navy-700:    #1c4a8f;
  --c-blue:        #2e7bc4;
  --c-blue-soft:   #e8f1fb;
  --c-gold:        #d8a657;
  --c-gold-deep:   #b9863a;
  --c-teal:        #1f9e8f;

  /* 中性 */
  --c-ink:         #16233a;
  --c-text:        #2c3a52;
  --c-muted:       #61708a;
  --c-line:        #e4e9f2;
  --c-bg:          #ffffff;
  --c-bg-soft:     #f5f8fc;
  --c-bg-deep:     #0f2b54;

  /* 排版 */
  --font: "PingFang TC", "Microsoft JhengHei", "Hiragino Sans GB",
          "Noto Sans CJK TC", "Source Han Sans TC", "Heiti TC",
          "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* 尺度 */
  --maxw: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(20, 55, 110, .08);
  --shadow:    0 12px 32px rgba(20, 55, 110, .12);
  --shadow-lg: 0 24px 60px rgba(20, 55, 110, .18);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 2px; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section--soft { background: var(--c-bg-soft); }
.section--deep { background: var(--c-bg-deep); color: #eaf1fb; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--c-gold-deep); font-weight: 700;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(26px, 4vw, 40px); color: var(--c-navy);
  line-height: 1.25; letter-spacing: .5px; font-weight: 800;
}
.section--deep .section-head h2 { color: #fff; }
.section-head p { margin-top: 16px; color: var(--c-muted); font-size: 17px; }
.section--deep .section-head p { color: #b9cbe6; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700;
  font-size: 15px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn--primary { background: linear-gradient(135deg, var(--c-gold), var(--c-gold-deep)); color: #3a2606; box-shadow: 0 10px 24px rgba(184,134,58,.35); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(184,134,58,.45); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-3px); }
.btn--outline { background: #fff; color: var(--c-navy); border: 1.5px solid var(--c-line); }
.btn--outline:hover { border-color: var(--c-blue); color: var(--c-blue); transform: translateY(-3px); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 18px 0;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: var(--shadow-sm); padding: 12px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; transition: color .3s; }
.is-scrolled .brand { color: var(--c-navy); }
.brand .logo-mark { width: 40px; height: 40px; flex: none; }
.brand .logo-text { font-weight: 800; font-size: 20px; letter-spacing: 1px; line-height: 1; }
.brand .logo-sub { font-size: 11px; letter-spacing: 2px; opacity: .8; font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; padding: 10px 16px; font-weight: 600; font-size: 15px;
  color: rgba(255,255,255,.92); border-radius: 999px; transition: color .25s, background .25s;
}
.is-scrolled .nav-links a { color: var(--c-text); }
.nav-links a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px;
  background: var(--c-gold); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.cta { background: var(--c-gold); color: #3a2606 !important; margin-left: 8px; }
.nav-links a.cta::after { display: none; }
.nav-links a.cta:hover { background: var(--c-gold-deep); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s, opacity .3s; position: relative;
}
.is-scrolled .nav-toggle span, .is-scrolled .nav-toggle span::before, .is-scrolled .nav-toggle span::after { background: var(--c-navy); }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: radial-gradient(1200px 700px at 80% -10%, rgba(46,123,196,.55), transparent 60%),
              radial-gradient(900px 600px at 5% 110%, rgba(216,166,87,.35), transparent 55%),
              linear-gradient(135deg, #0f2b54 0%, #14376e 45%, #1c4a8f 100%);
  color: #fff; overflow: hidden; padding-top: 90px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5;
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
          mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  font-size: 13px; letter-spacing: .12em; font-weight: 600; margin-bottom: 22px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-gold); box-shadow: 0 0 0 4px rgba(216,166,87,.25); }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.12; font-weight: 800; letter-spacing: 1px; }
.hero h1 .hl { color: var(--c-gold); }
.hero p.lead { margin-top: 22px; font-size: 18px; color: #cfe0f5; max-width: 560px; }
.hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { margin-top: 52px; display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats .stat .num { font-size: 34px; font-weight: 800; color: #fff; }
.hero-stats .stat .num small { font-size: 18px; color: var(--c-gold); }
.hero-stats .stat .lbl { font-size: 14px; color: #aeC4e3; }

/* hero visual card */
.hero-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px; padding: 28px; backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { font-size: 18px; color: #fff; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.hero-card h3 .badge { font-size: 11px; background: var(--c-gold); color: #3a2606; padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.sector-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sector-mini .item {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px; padding: 16px; transition: transform .3s var(--ease), background .3s;
}
.sector-mini .item:hover { transform: translateY(-4px); background: rgba(255,255,255,.18); }
.sector-mini .item .ico { width: 34px; height: 34px; color: var(--c-gold); margin-bottom: 10px; }
.sector-mini .item .t { font-weight: 700; color: #fff; font-size: 15px; }
.sector-mini .item .d { font-size: 12.5px; color: #b9cbe6; margin-top: 4px; }

/* ---------- trust bar ---------- */
.trust { background: var(--c-navy); color: #cfe0f5; padding: 22px 0; }
.trust .container { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.trust .label { font-size: 13px; letter-spacing: .14em; opacity: .8; }
.trust .logos { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.trust .logos span { font-weight: 700; color: #fff; opacity: .85; font-size: 15px; }

/* ---------- feature cards (4 sectors) ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c-blue); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--c-blue-soft); color: var(--c-navy-700); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card .ico svg { width: 28px; height: 28px; }
.card h3 { font-size: 20px; color: var(--c-navy); margin-bottom: 10px; }
.card p { color: var(--c-muted); font-size: 15px; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--c-blue); font-weight: 700; font-size: 14px; }

/* ---------- two column ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .media {
  border-radius: var(--radius); min-height: 380px; padding: 36px; color: #fff;
  background: linear-gradient(150deg, var(--c-navy), var(--c-blue));
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.split .media::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(216,166,87,.25); }
.split .media .q { font-size: 22px; font-weight: 700; line-height: 1.5; }
.split .media .a { font-size: 15px; color: #cfe0f5; }
.checklist { display: grid; gap: 14px; margin-top: 8px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--c-blue-soft); color: var(--c-navy-700); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.checklist .txt strong { color: var(--c-navy); }
.checklist .txt span { color: var(--c-muted); font-size: 14.5px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.step .n { position: absolute; top: 20px; right: 24px; font-size: 56px; font-weight: 800; color: var(--c-blue-soft); line-height: 1; }
.step h4 { color: var(--c-navy); font-size: 18px; margin: 6px 0 8px; }
.step p { color: var(--c-muted); font-size: 14.5px; }

/* ---------- stats band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-band .num { font-size: clamp(34px, 5vw, 48px); font-weight: 800; color: var(--c-gold); }
.stat-band .lbl { color: #b9cbe6; margin-top: 6px; font-size: 15px; }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-thumb { height: 168px; display: flex; align-items: center; justify-content: center; color: #fff; position: relative; }
.news-thumb .cat { position: absolute; top: 14px; left: 14px; background: rgba(0,0,0,.35); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
.news-thumb svg { width: 54px; height: 54px; opacity: .9; }
.news-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.news-body .date { font-size: 13px; color: var(--c-muted); font-weight: 600; }
.news-body h3 { font-size: 18px; color: var(--c-navy); margin: 8px 0 10px; line-height: 1.4; }
.news-body p { color: var(--c-muted); font-size: 14.5px; flex: 1; }
.news-body .more { margin-top: 14px; color: var(--c-blue); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; }
.contact-info { background: linear-gradient(150deg, var(--c-navy), var(--c-blue)); color: #fff; border-radius: var(--radius); padding: 38px 34px; box-shadow: var(--shadow); }
.contact-info h3 { font-size: 22px; margin-bottom: 8px; }
.contact-info .sub { color: #cfe0f5; font-size: 15px; margin-bottom: 26px; }
.info-list { display: grid; gap: 20px; }
.info-list .row { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ico { flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; color: var(--c-gold); }
.info-list .ico svg { width: 22px; height: 22px; }
.info-list .k { font-size: 13px; color: #aeC4e3; }
.info-list .v { font-size: 15.5px; color: #fff; font-weight: 600; }

.form-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.form-card h3 { font-size: 22px; color: var(--c-navy); margin-bottom: 6px; }
.form-card .sub { color: var(--c-muted); margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 700; color: var(--c-ink); margin-bottom: 7px; }
.field label .req { color: #d9534f; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--c-line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; color: var(--c-text); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--c-blue); box-shadow: 0 0 0 4px var(--c-blue-soft); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.field .err { display: none; color: #d9534f; font-size: 13px; margin-top: 6px; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #d9534f; }
.field.invalid .err { display: block; }
.form-note { font-size: 13px; color: var(--c-muted); margin-top: 6px; }
.form-success {
  display: none; background: #e6f7f1; border: 1px solid #aee3d2; color: #0f7a5c;
  padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 18px;
}
.form-success.show { display: block; }

/* ---------- footer ---------- */
.site-footer { background: var(--c-bg-deep); color: #aeC4e3; padding: 64px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 14.5px; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: .5px; }
.footer-col a { display: block; padding: 6px 0; font-size: 14.5px; color: #aeC4e3; transition: color .2s; }
.footer-col a:hover { color: var(--c-gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 13.5px; }
.footer-bottom .socials { display: flex; gap: 12px; }
.footer-bottom .socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; color: #cfe0f5; transition: .25s; }
.footer-bottom .socials a:hover { background: var(--c-gold); color: #3a2606; border-color: var(--c-gold); }
.footer-bottom .socials svg { width: 18px; height: 18px; }

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--c-navy); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(16px);
  transition: opacity .3s, transform .3s, background .25s; z-index: 900;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--c-gold-deep); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .cards, .steps, .news-grid, .stat-band { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 480px; }
  .split, .contact-wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 16px 20px 26px; gap: 4px; box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .35s var(--ease); max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { color: var(--c-text) !important; padding: 14px 16px; border-radius: 12px; }
  .nav-links a::after { display: none; }
  .nav-links a:hover { background: var(--c-bg-soft); }
  .nav-links a.cta { margin: 8px 0 0; text-align: center; }
  .hero-stats { gap: 24px; }
  .cards, .steps, .news-grid, .stat-band { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section-head { margin-bottom: 40px; }
}
