/* ========== 基础重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Roboto, sans-serif;
  background: #0a1f1c;
  color: #e2e8f0;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ========== 背景动效 ========== */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(20, 184, 166, 0.20) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(16, 185, 129, 0.18) 0%, transparent 50%),
    linear-gradient(180deg, #0a1f1c 0%, #0e2d27 100%);
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(45, 212, 191, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
}

/* ========== 导航 ========== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(10, 31, 28, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(20, 184, 166, 0.12);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.nav-spacer {
  flex: 1;  /* 撑开中间，让 logo 和 nav-links 分布在两端 */
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.brand-logo {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #14b8a6 0%, #10b981 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.4);
}
.brand-name {
  background: linear-gradient(135deg, #2dd4bf 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;  /* 关键：把菜单推到最右 */
  flex-shrink: 0;
}
.nav-links a {
  color: rgba(226, 232, 240, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: #2dd4bf; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: #2dd4bf;
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

/* 当前章节高亮 */
.nav-links a.active {
  color: #2dd4bf;
  font-weight: 600;
}
.nav-links a.active::after {
  width: 100%;
  background: linear-gradient(90deg, #2dd4bf, #10b981);
  box-shadow: 0 0 8px rgba(45, 212, 191, 0.6);
}

/* ========== 通用容器 ========== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 6rem 0; }
.section-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 100px;
  color: #2dd4bf;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  font-size: 1.1rem;
  color: rgba(226, 232, 240, 0.6);
  max-width: 700px;
  margin-bottom: 3rem;
}

/* ========== Hero ========== */
.hero {
  padding: 10rem 0 6rem;
  text-align: center;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  color: #2dd4bf;
  margin-bottom: 2rem;
}
.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, #2dd4bf 0%, #10b981 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.2rem;
  color: rgba(226, 232, 240, 0.7);
  max-width: 800px;
  margin: 0 auto 3rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  padding: 0.9rem 2.25rem;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #14b8a6 0%, #10b981 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(20, 184, 166, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(20, 184, 166, 0.4);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border: 1px solid rgba(45, 212, 191, 0.3);
}
.btn-ghost:hover {
  background: rgba(45, 212, 191, 0.1);
  border-color: #2dd4bf;
}

/* Hero 数据条 */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 5rem;
  padding: 2rem;
  background: rgba(14, 45, 39, 0.6);
  border: 1px solid rgba(45, 212, 191, 0.15);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2dd4bf 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.5);
}

/* ========== 业务板块 ========== */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.biz-card {
  background: linear-gradient(135deg, rgba(14, 45, 39, 0.8) 0%, rgba(10, 31, 28, 0.6) 100%);
  border: 1px solid rgba(45, 212, 191, 0.12);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.biz-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #14b8a6, #10b981);
  opacity: 0.5;
  transition: opacity 0.3s;
}
.biz-card:hover {
  border-color: rgba(45, 212, 191, 0.35);
  transform: translateY(-3px);
}
.biz-card:hover::before { opacity: 1; }
.biz-num {
  font-size: 0.85rem;
  color: #2dd4bf;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}
.biz-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.biz-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #f1f5f9;
}
.biz-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.biz-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.75);
}
.biz-list li::before {
  content: '';
  width: 6px; height: 6px;
  background: linear-gradient(135deg, #2dd4bf, #10b981);
  border-radius: 50%;
  margin-top: 0.55rem;
  flex-shrink: 0;
}

/* ========== 核心优势 ========== */
.advantage {
  background: rgba(14, 45, 39, 0.4);
  border-top: 1px solid rgba(45, 212, 191, 0.1);
  border-bottom: 1px solid rgba(45, 212, 191, 0.1);
}
.adv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.adv-card {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.08) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 1.25rem;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.adv-card::after {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.adv-platform {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: rgba(45, 212, 191, 0.15);
  color: #2dd4bf;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}
.adv-name {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}
.adv-name .accent { color: #2dd4bf; }
.adv-desc {
  color: rgba(226, 232, 240, 0.75);
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}
.adv-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(45, 212, 191, 0.15);
}
.metric {
  position: relative;
  z-index: 1;
}
.metric-num {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2dd4bf 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.metric-label {
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.55);
  margin-top: 0.25rem;
}

/* ========== 关于/使命 ========== */
.mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.mission-text p {
  color: rgba(226, 232, 240, 0.75);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}
.mission-list {
  list-style: none;
  margin-top: 2rem;
}
.mission-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(45, 212, 191, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(226, 232, 240, 0.85);
}
.mission-list .check {
  width: 22px; height: 22px;
  background: linear-gradient(135deg, #14b8a6, #10b981);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ========== 联系 ========== */
.contact {
  background: rgba(14, 45, 39, 0.4);
  border-top: 1px solid rgba(45, 212, 191, 0.1);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(10, 31, 28, 0.6);
  border: 1px solid rgba(45, 212, 191, 0.12);
  border-radius: 0.75rem;
  transition: all 0.3s;
}
.contact-item:hover {
  border-color: rgba(45, 212, 191, 0.3);
  transform: translateX(4px);
}
.contact-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(16, 185, 129, 0.2));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.contact-label {
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.5);
  margin-bottom: 0.25rem;
}
.contact-value {
  color: #f1f5f9;
  font-size: 0.98rem;
  word-break: break-all;
}
.contact-value a {
  color: #f1f5f9;
  text-decoration: none;
}
.contact-value a:hover { color: #2dd4bf; }

.contact-map {
  background: rgba(10, 31, 28, 0.6);
  border: 1px solid rgba(45, 212, 191, 0.12);
  border-radius: 0.75rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 320px;
}
.contact-map .map-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.contact-map h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: #f1f5f9;
}
.contact-map p {
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.95rem;
  line-height: 1.8;
}
.contact-map .map-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.5rem;
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(20, 184, 166, 0.4);
  color: #2dd4bf;
  text-decoration: none;
  border-radius: 100px;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.contact-map .map-link:hover {
  background: rgba(20, 184, 166, 0.25);
}

/* ========== 页脚 ========== */
footer {
  padding: 2.5rem 0;
  text-align: center;
  color: rgba(226, 232, 240, 0.4);
  font-size: 0.85rem;
  border-top: 1px solid rgba(45, 212, 191, 0.08);
}
footer .links { margin-top: 0.5rem; }
footer .beian { margin: 0.5rem 0 0; font-size: 0.8rem; }
footer .beian a { color: rgba(226, 232, 240, 0.5); }
footer a {
  color: rgba(226, 232, 240, 0.6);
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.2s;
}
footer a:hover { color: #2dd4bf; }

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .hero h1 { font-size: 2.75rem; }
  .section-title { font-size: 2rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .biz-grid, .adv-grid, .mission, .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  section { padding: 4rem 0; }
  .hero { padding: 8rem 0 4rem; }
  .adv-metrics { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .stat-num { font-size: 1.5rem; }
  .adv-name { font-size: 1.35rem; }
}

/* ========== 移动端顶部导航（文字纵向排列） ========== */
.mobile-topbar {
  display: none;
}
@media (max-width: 900px) {
  /* 滚动时给顶部 nav 留出空间 */
  section[id] { scroll-margin-top: 80px; }

  /* 关键：移动端完全隐藏桌面端 nav（避免和 mobile-topbar 重叠） */
  body > nav:not(.mobile-topbar) { display: none; }

  /* 移动端顶部内容下移（避免被 topbar 遮挡） */
  .hero { padding-top: 7.5rem; }
  .news-page { padding-top: 7rem; }
  .post-page { padding-top: 7rem; }
  .admin-page { padding-top: 6rem; }

  /* ============ 移动端顶部导航：左 brand + 右 6 菜单 ============ */
  .mobile-topbar {
    display: flex;
    align-items: center;          /* logo 文字纵向居中 */
    justify-content: space-between;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: 80px;                  /* 加高 banner */
    background: rgba(10, 31, 28, 0.7);
    border-bottom: 1px solid rgba(45, 212, 191, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 0 0.5rem 6px;
  }

  /* 移动端 brand（左侧） */
  .mobile-topbar .mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
  }
  .mobile-topbar .mobile-brand .brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #14b8a6 0%, #10b981 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
  }
  .mobile-topbar .mobile-brand .brand-name {
    background: linear-gradient(135deg, #2dd4bf 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
  }

  /* 移动端菜单（右侧，文字纵向） */
  .mobile-topbar .mobile-menu {
    display: flex;
    align-items: center;          /* 关键：菜单内 flex 居中对齐，让所有菜单视觉居中 */
    height: 100%;
    gap: 0.15rem;
  }
  .mobile-topbar .top-item {
    display: flex;
    align-items: center;          /* 关键：单菜单内也居中（解决 2 字"飘"的问题） */
    justify-content: center;
    width: 28px;
    flex-shrink: 0;
    color: rgba(226, 232, 240, 0.6);
    text-decoration: none;
    transition: color 0.25s ease;
    position: relative;
    height: 100%;
    padding: 0 0 0;
  }

  /* 文字纵向排列 */
  .mobile-topbar .top-text {
    writing-mode: vertical-rl;
    -webkit-writing-mode: vertical-rl;
    text-orientation: upright;
    -webkit-text-orientation: upright;
    font-size: 0.78rem;
    letter-spacing: 0.12rem;
    line-height: 1;
    white-space: nowrap;
    display: inline-block;
  }

  /* hover/active 状态 */
  .mobile-topbar .top-item:hover {
    color: #2dd4bf;
  }
  .mobile-topbar .top-item.active {
    color: #2dd4bf;
  }

  /* 当前激活：底部小光条 */
  .mobile-topbar .top-item.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 2px;
    background: linear-gradient(90deg, #2dd4bf, #10b981);
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(45, 212, 191, 0.6);
  }
}
