/* ===== 基础变量 ===== */
:root {
  --primary: #0058bc;
  --primary-light: #409eff;
  --primary-dark: #004494;
  --accent: #007aff;
  --text: #1a1c1d;
  --text-secondary: #5a6270;
  --text-muted: #8b92a0;
  --bg: #f8f9fb;
  --bg-white: #ffffff;
  --border: rgba(193, 198, 215, 0.35);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --font: 'HarmonyOS Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 16px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 88, 188, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 88, 188, 0.36);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-block {
  width: 100%;
}

/* ===== 导航 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.site-header.scrolled {
  box-shadow: var(--shadow);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.brand-logo {
  height: 46px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--primary);
}

.nav-cta {
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff !important;
  border-radius: 999px;
}

.nav-cta:hover {
  opacity: 0.9;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url('../assets/images/hero-xiamen.jpg') center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 28, 56, 0.55) 0%, rgba(0, 60, 120, 0.35) 50%, rgba(0, 88, 188, 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: calc(var(--header-h) + 48px) 24px 120px;
  max-width: 820px;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 56px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
}

.stat {
  padding: 20px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.stat strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== 核心业务 ===== */
.services {
  background: var(--bg-white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 36px 28px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card.featured {
  background: linear-gradient(165deg, #eef4fc 0%, #f8fbff 100%);
  border-color: rgba(0, 88, 188, 0.2);
}

.service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 88, 188, 0.1), rgba(64, 158, 255, 0.15));
  color: var(--primary);
  margin-bottom: 20px;
}

.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card > p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.service-card ul {
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.service-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
}

/* ===== AI 行程 ===== */
.ai-plan {
  background: linear-gradient(165deg, #dce9fb 0%, #eef3f9 38%, #f7f8fb 100%);
}

.ai-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.ai-copy h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.ai-copy > p {
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.ai-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ai-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.ai-step strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.ai-step p {
  font-size: 13px;
  color: var(--text-muted);
}

.demo-window {
  border-radius: var(--radius);
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #f0f2f5;
  border-bottom: 1px solid var(--border);
}

.demo-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
}

.demo-header .dot:nth-child(1) { background: #ff5f57; }
.demo-header .dot:nth-child(2) { background: #febc2e; }
.demo-header .dot:nth-child(3) { background: #28c840; }

.demo-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.demo-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 320px;
}

.chat-msg {
  max-width: 90%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.65;
}

.chat-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-msg.ai {
  align-self: flex-start;
  background: #f0f4f8;
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-msg.ai strong {
  color: var(--primary);
}

.demo-typing {
  display: flex;
  gap: 4px;
  padding: 8px 0;
}

.demo-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing 1.4s infinite;
}

.demo-typing span:nth-child(2) { animation-delay: 0.2s; }
.demo-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* ===== 鹭岛精选 ===== */
.destinations {
  background: var(--bg-white);
}

.dest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 16px;
}

.dest-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.dest-large {
  grid-row: span 2;
  grid-column: span 2;
}

.dest-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.dest-card:hover .dest-img {
  transform: scale(1.06);
}

.dest-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 60%);
  color: #fff;
}

.dest-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.dest-info p {
  font-size: 13px;
  opacity: 0.85;
}

/* ===== 关于我们 ===== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-copy h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 16px;
}

.about-lead {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fact strong {
  display: block;
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 4px;
}

.fact span {
  font-size: 14px;
  color: var(--text-secondary);
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.value-card {
  padding: 24px;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  border: 1px solid var(--border);
}

.value-num {
  font-size: 28px;
  font-weight: 800;
  color: rgba(0, 88, 188, 0.15);
  margin-bottom: 8px;
}

.value-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== 联系我们 ===== */
.contact {
  background: var(--bg-white);
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px;
  border-radius: var(--radius);
  background: linear-gradient(165deg, #eef4fc 0%, #f8fbff 100%);
  border: 1px solid rgba(0, 88, 188, 0.12);
}

.contact-copy h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-copy > p {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  background: var(--bg-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.15);
}

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

.form-tip {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== 页脚 ===== */
.site-footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer-brand-wrap {
  padding: 14px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
}

.footer-logo {
  height: 40px;
  width: auto;
  margin: 0 auto 8px;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.footer-links a {
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .ai-layout,
  .about-layout,
  .contact-card {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .dest-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .dest-large {
    grid-row: span 1;
    grid-column: span 2;
    min-height: 280px;
  }

  .dest-card {
    min-height: 180px;
  }
}

@media (max-width: 768px) {
  .container {
    width: calc(100% - 32px);
  }

  .section {
    padding: 64px 0;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 12px 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

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

  .nav a {
    padding: 14px 24px;
    width: 100%;
    text-align: center;
  }

  .nav-cta {
    margin: 8px 24px 4px;
    width: calc(100% - 48px);
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dest-grid {
    grid-template-columns: 1fr;
  }

  .dest-large {
    grid-column: span 1;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 28px 20px;
  }
}
