/* ============================================================
   Beebecn肥仔峰 | www.beebecn.com
   清新现代静态个人网站样式
   浅色系 / 留白 / 圆角 / 渐变 / 响应式
   ============================================================ */

:root {
  --primary: #2b8de0;
  --primary-deep: #1a6cb5;
  --accent: #38c9a9;
  --accent-soft: #e6f9f3;
  --bg: #f6fbfe;
  --bg-soft: #eef7fd;
  --text: #233140;
  --text-light: #5f7485;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(28, 100, 160, 0.08);
  --shadow-lg: 0 18px 44px rgba(28, 100, 160, 0.14);
  --gradient: linear-gradient(135deg, #2b8de0 0%, #38c9a9 100%);
  --gradient-soft: linear-gradient(135deg, #eaf6ff 0%, #e6f9f3 100%);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(28, 100, 160, 0.08);
}

.nav-inner {
  width: min(1160px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.brand span { font-weight: 400; margin-left: 6px; }

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

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  opacity: 0.92;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }

.navbar.scrolled .nav-links a { color: var(--text); }
.navbar.scrolled .nav-links a:hover { color: var(--primary-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.navbar.scrolled .nav-toggle span { background: var(--text); }

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.05);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 40, 70, 0.35) 0%, rgba(12, 40, 70, 0.18) 45%, rgba(246, 251, 254, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
  margin-top: 40px;
}

.hero-domain {
  display: inline-block;
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  padding: 8px 22px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
  text-shadow: 0 4px 24px rgba(0, 40, 80, 0.35);
  line-height: 1.15;
}

.hero-subtitle {
  max-width: 680px;
  margin: 18px auto 34px;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 12px rgba(0, 40, 80, 0.3);
}

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

.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  color: var(--white);
  background: var(--gradient);
  box-shadow: 0 8px 22px rgba(43, 141, 224, 0.35);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(43, 141, 224, 0.45); }

.btn-ghost {
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

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

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  z-index: 2;
}

.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 3px;
  background: var(--white);
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- 通用 Section ---------- */
.section { padding: 96px 0; }

.section:nth-of-type(even) { background: var(--bg-soft); }

.section-head { text-align: center; margin-bottom: 56px; }

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(43, 141, 224, 0.08);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.section-lead {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1.02rem;
}

/* ---------- 卡片通用 ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ---------- 关于我 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.about-card { padding: 34px 28px; }

.card-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  background: var(--gradient-soft);
  border-radius: 16px;
  margin-bottom: 20px;
}

.about-card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 12px; }
.about-card p { font-size: 0.94rem; color: var(--text-light); }

/* ---------- 海洋光谱号 ---------- */
.spectrum { background: var(--gradient-soft); }

.spectrum-intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  margin-bottom: 48px;
}

.spectrum-info h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 14px; }
.spectrum-info p { color: var(--text-light); margin-bottom: 18px; }

.spectrum-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.spectrum-facts li {
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
}

.spectrum-facts b { color: var(--primary-deep); font-weight: 700; }

.spectrum-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spectrum-photo img { width: 100%; height: 100%; object-fit: cover; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature { padding: 32px 28px; }

.feature-emoji {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.feature p { font-size: 0.92rem; color: var(--text-light); }

/* ---------- 图集 ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.gallery-item { overflow: hidden; border-radius: var(--radius); }

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item figcaption {
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: center;
}

/* ---------- 旅行札记 ---------- */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.journal-item { padding: 30px 28px; }

.journal-meta {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.journal-item h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 10px; }
.journal-item p { font-size: 0.92rem; color: var(--text-light); }

/* ---------- 联系我 ---------- */
.contact-card {
  text-align: center;
  padding: 64px 40px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 800; margin-bottom: 12px; }

.contact-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0 20px;
}

.contact-note { font-size: 0.9rem; color: var(--text-light); }

/* ---------- 页脚 ---------- */
.footer {
  background: #0f2a3d;
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 0;
  text-align: center;
}

.footer-brand { font-weight: 700; font-size: 1.05rem; color: var(--white); margin-bottom: 8px; }
.footer-copy { font-size: 0.82rem; opacity: 0.65; }

.footer-icp {
  margin-top: 6px;
  font-size: 0.82rem;
  opacity: 0.75;
}

.footer-icp a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.footer-icp a:hover { color: var(--white); opacity: 1; text-decoration: underline; }

/* ---------- 滚动显现动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .spectrum-intro { grid-template-columns: 1fr; padding: 28px; }
  .spectrum-facts { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(280px, 72vw);
    flex-direction: column;
    gap: 8px;
    padding: 88px 30px 30px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: -8px 0 30px rgba(28, 100, 160, 0.12);
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }

  .nav-links.open { transform: translateX(0); }

  .nav-links a { color: var(--text) !important; font-size: 1.05rem; padding: 10px 0; border-bottom: 1px solid rgba(28, 100, 160, 0.08); }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle.open span { background: var(--text); }

  .hero-title { font-size: 2.4rem; }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; text-align: center; }
  .contact-card { padding: 44px 22px; }
}
