/* ============================================
   再移起 - 企业搬迁官网 | 共享样式表
   配色：深海蓝 + 活力橙 + 纯净白
   ============================================ */

/* ---------- CSS 变量 ---------- */
:root {
  /* 主色调 */
  --navy-900: #0a1a2e;
  --navy-800: #0f2540;
  --navy-700: #163356;
  --navy-600: #1e4670;
  --navy-500: #2a5a8c;

  /* 强调色 */
  --orange-600: #e85d22;
  --orange-500: #ff6b2c;
  --orange-400: #ff8552;
  --orange-300: #ffa478;
  --orange-100: #fff0e8;

  /* 中性色 */
  --gray-900: #1a2233;
  --gray-700: #3d4859;
  --gray-500: #6b7689;
  --gray-400: #9ba5b5;
  --gray-300: #d4dae4;
  --gray-200: #e8ecf2;
  --gray-100: #f4f6fa;
  --gray-50: #fafbfd;
  --white: #ffffff;

  /* 功能色 */
  --green-500: #22c55e;
  --green-100: #dcfce7;

  /* 字体 */
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  /* 间距 */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(10, 26, 46, 0.08);
  --shadow-md: 0 4px 20px rgba(10, 26, 46, 0.10);
  --shadow-lg: 0 12px 40px rgba(10, 26, 46, 0.15);
  --shadow-orange: 0 8px 24px rgba(232, 93, 34, 0.30);

  /* 过渡 */
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

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

ul {
  list-style: none;
}

/* ---------- 通用容器 ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--orange-500);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background: var(--orange-600);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(232, 93, 34, 0.40);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn-dark {
  background: var(--navy-800);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--navy-700);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* ---------- 通用区块标题 ---------- */
.section {
  padding: var(--space-2xl) 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-xl);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange-500);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  line-height: 1.8;
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy-900);
}

.nav-logo .logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-500);
  font-size: 1.3rem;
  font-weight: 900;
}

.nav-logo .logo-text {
  letter-spacing: 1px;
}

.nav-logo .logo-text span {
  color: var(--orange-500);
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange-500);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy-900);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--orange-500);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-cta:hover {
  background: var(--orange-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-orange);
}

.nav-cta::after {
  display: none;
}

/* 导航栏城市选择下拉框 */
.nav-city select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 8px 28px 8px 12px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 L6 7.5 L9 4.5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: all var(--transition);
}
.nav-city select:hover {
  border-color: var(--orange-500);
  color: var(--navy-900);
}

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

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ---------- 页面通用 Hero ---------- */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 44, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(42, 90, 140, 0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.page-hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  margin-top: 24px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
  color: var(--orange-400);
}

.breadcrumb span {
  margin: 0 8px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-xl) 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .nav-logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.5);
  max-width: 320px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--orange-400);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.footer-contact li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--orange-400);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom .beian {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.footer-bottom .beian a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-bottom .beian a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.footer-bottom .beian a + a {
  margin-left: 0;
}
.beian-gongan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.beian-gongan img {
  vertical-align: middle;
}

/* ---------- 动画 ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) {
  transition-delay: 0.1s;
}

.fade-up:nth-child(3) {
  transition-delay: 0.2s;
}

.fade-up:nth-child(4) {
  transition-delay: 0.3s;
}

/* ---------- 浮动联系按钮 ---------- */
.float-contact {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange-500);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-orange);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.float-btn:hover {
  transform: scale(1.1);
  background: var(--orange-600);
}

.float-btn svg {
  width: 24px;
  height: 24px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 968px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform var(--transition);
  }

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

  .nav-links a {
    width: 100%;
    padding: 10px 0;
  }

  .nav-cta {
    width: fit-content;
  }

  .nav-toggle {
    display: flex;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .page-hero {
    padding: 110px 0 60px;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
