:root {
  --ink: #0c2230;
  --sea: #0a4d68;
  --sea-deep: #072330;
  --sky: #2f9fbe;
  --mist: #5a7682;
  --paper: #f4f9fb;
  --line: #e7eff2;
  --accent: #5fd0e6;
  --ease: cubic-bezier(.16,1,.3,1);
  --ease-soft: cubic-bezier(.22,.61,.36,1);

  --color-bg: #f4f9fb;
  --color-surface: #FFFFFF;
  --color-text: #0c2230;
  --color-text-muted: #5a7682;
  --color-primary: #0a4d68;
  --color-secondary: #f4f9fb;
  --color-accent: #5fd0e6;
  --color-cta: #0a4d68;
  --border-color: #e7eff2;
  --shadow: 0 4px 6px -1px rgba(12,34,48,0.1), 0 2px 4px -1px rgba(12,34,48,0.06);
  --shadow-hover: 0 10px 15px -3px rgba(12,34,48,0.12), 0 4px 6px -2px rgba(12,34,48,0.08);
  --gradient-hero: linear-gradient(135deg, #0a4d68 0%, #2f9fbe 100%);
  --gradient-cta: linear-gradient(135deg, #0a4d68 0%, #2f9fbe 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #fff;
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

h1, h2, h3 {
  font-family: 'Noto Serif SC', serif;
  letter-spacing: .01em;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 88px 72px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: transform, opacity;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: 44px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .3s ease, color .3s ease;
  border: none;
  min-height: 44px;
}

.btn:active {
  transform: scale(.96);
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: #fff;
  color: var(--sea);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}

.btn-ghost {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255,255,255,.22);
  transform: translateY(-3px);
}

.btn-dark {
  background: var(--sea);
  color: #fff;
}

.btn-dark:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(10,77,104,.35);
  background: #0c5a78;
}

.btn .arrow {
  display: inline-block;
  transition: transform .4s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(5px);
}

/* ---------- nav ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 72px;
  transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease);
}

.navbar.scrolled {
  padding: 16px 72px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: 0 1px 0 rgba(12,34,48,.06), 0 12px 30px rgba(12,34,48,.06);
}

.navbar-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: #fff;
  transition: color .4s var(--ease);
  text-decoration: none;
}

.navbar.scrolled .navbar-brand {
  color: var(--ink);
}

.logo-text {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  font-size: 25px;
  letter-spacing: .04em;
  color: inherit;
}

.logo-sub {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: .22em;
  color: #cbe4ec;
}

.navbar.scrolled .logo-sub {
  color: var(--sky);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 15px;
  color: #eaf5f8;
  font-weight: 500;
  list-style: none;
}

.navbar.scrolled .navbar-menu {
  color: var(--ink);
}

.navbar-menu a {
  position: relative;
  padding: 4px 0;
  color: inherit;
  transition: color .2s;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: currentColor;
  transition: right .4s var(--ease);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  right: 0;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: inherit;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  padding: 11px 20px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .3s var(--ease);
  cursor: pointer;
  text-decoration: none;
}

.navbar.scrolled .nav-cta {
  background: var(--sea);
  border-color: var(--sea);
  color: #fff;
}

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

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: inherit;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

@media (max-width: 1100px) {
  .navbar, section {
    padding-left: 32px;
    padding-right: 32px;
  }
  .navbar.scrolled {
    padding: 16px 32px;
  }
  .navbar-menu {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .navbar-menu.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow);
    color: var(--ink);
  }
}

@media (max-width: 680px) {
  .navbar, section {
    padding-left: 20px;
    padding-right: 20px;
  }
  .navbar.scrolled {
    padding: 12px 20px;
  }
  .btn {
    padding: 12px 22px;
    font-size: 14px;
    gap: 7px;
  }
  .nav-cta {
    padding: 8px 14px;
    font-size: 12px;
    gap: 5px;
    white-space: nowrap;
  }
  .nav-dot {
    width: 5px;
    height: 5px;
  }
}

/* ---------- section common ---------- */
.section-paper {
  background: var(--paper);
}

.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--sky);
  margin-bottom: 14px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 52px;
  gap: 40px;
}

.section-head h2 {
  font-size: 42px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.section-head p {
  max-width: 360px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist);
  margin: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--ink);
}

.section-header p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist);
  max-width: 800px;
  margin: 0 auto;
}

/* ---------- footer ---------- */
footer {
  background: var(--sea-deep);
  color: #9fc0cc;
  padding: 56px 72px 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .name {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
  color: #9fc0cc;
}

.footer-cols {
  display: flex;
  gap: 64px;
  font-size: 14px;
  line-height: 2.1;
}

.footer-cols .col-title {
  color: #fff;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 12px;
  padding-top: 24px;
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  color: #6f93a0;
  line-height: 1.8;
}

.footer-bottom-left {
  text-align: left;
}

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

.footer-bottom-right {
  text-align: right;
}

.footer-icp-link {
  color: #9fc0cc;
  text-decoration: underline;
  transition: all 0.3s ease;
}

.footer-icp::after {
  content: ' · ';
}

@media (max-width: 1100px) {
  footer {
    padding: 56px 32px 40px;
  }
}

@media (max-width: 680px) {
  footer {
    padding: 56px 20px 40px;
  }
  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: left;
  }
  .footer-bottom-left,
  .footer-bottom-center,
  .footer-bottom-right {
    text-align: left;
  }
  .footer-bottom-center {
    display: flex;
    flex-direction: column;
    gap: 4px;
    order: 2;
  }
  .footer-bottom-right {
    order: 1;
  }
  .footer-icp::after {
    content: none;
  }
}

/* ---------- grid system ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-5, .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .grid-5, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- card ---------- */
.card {
  background: #fff;
  border-radius: 18px;
  padding: 36px 32px;
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(12,34,48,.08);
  border-color: transparent;
}

/* ---------- animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .animate-fadeInUp {
    animation: none;
  }
}

/* ---------- modal styles (form component) ---------- */
.form-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12,34,48,0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.form-modal {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 40px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(12,34,48,0.25);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.form-modal::-webkit-scrollbar {
  display: none;
}

.form-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(12,34,48,0.05);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--mist);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
  line-height: 1;
  padding: 0;
}

.form-modal-close:hover {
  background: rgba(12,34,48,0.1);
  color: var(--ink);
  transform: rotate(90deg);
}

.form-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-modal-subtitle {
  font-size: 14px;
  color: var(--mist);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-label .required {
  color: #dc2626;
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 44px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(10,77,104,0.2);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-radio-group,
.form-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 8px 0;
}

.form-radio-label,
.form-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-text);
  transition: color 0.2s;
}

.form-radio-label:hover,
.form-checkbox-label:hover {
  color: var(--color-primary);
}

.form-radio-label input[type="radio"],
.form-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
  margin: 0;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
  display: flex;
  justify-content: center;
}

.form-privacy {
  font-size: 12px;
  color: var(--mist);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

.form-success {
  text-align: center;
  padding: 40px 0;
}

.form-success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.form-success-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.form-success-msg {
  font-size: 15px;
  color: var(--mist);
  line-height: 1.8;
}

.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

.slide-up-enter-active,
.slide-up-leave-active {
  transition: all 0.3s ease;
}

.slide-up-enter-from {
  opacity: 0;
  transform: translateY(20px);
}

.slide-up-leave-to {
  opacity: 0;
  transform: translateY(-20px);
}

@media (max-width: 768px) {
  .form-modal {
    padding: 28px 20px;
    max-width: 100%;
    border-radius: 12px;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .section-head h2 {
    font-size: 32px;
  }
}

/* ---------- qrcode modal ---------- */
.form-modal.form-modal--qrcode {
  max-width: 420px;
  padding: 32px;
}

.qrcode-content {
  text-align: center;
  padding: 8px 0;
}

.qrcode-box {
  width: 240px;
  height: 240px;
  margin: 20px auto;
  padding: 12px;
  background: var(--color-surface);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.qrcode-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.qrcode-tip {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.qrcode-hours {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.qrcode-phone {
  font-size: 14px;
  color: var(--color-text-muted);
}

.qrcode-phone a {
  color: var(--color-primary);
  font-weight: 500;
}

.qrcode-phone a:hover {
  color: var(--color-accent);
}

@media (max-width: 480px) {
  .qrcode-box {
    width: 200px;
    height: 200px;
    margin: 16px auto;
  }
}

/* ---------- floating contact ---------- */
.floating-contact {
  position: fixed;
  right: 30px;
  bottom: 80px;
  z-index: 999;
  transition: all 0.3s ease;
}

.floating-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--sea);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(10,77,104,0.4);
  transition: all 0.3s ease;
  position: relative;
}

.floating-btn:hover {
  background: var(--sky);
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(10,77,104,0.5);
}

.floating-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 2px;
}

.floating-text {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

@media (max-width: 768px) {
  .floating-contact {
    right: 20px;
    bottom: 60px;
  }
  .floating-btn {
    width: 56px;
    height: 56px;
  }
  .floating-icon {
    width: 24px;
    height: 24px;
  }
  .floating-text {
    font-size: 11px;
  }
}
