/* =====================================================
   public.css — 公共样式
   星时寻迹 | 深圳市玉山源科技有限公司
===================================================== */

/* ----- Reset & Base ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1d1d1f;
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ----- Layout ----- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.section-padding {
  padding: 96px 0;
}

/* ----- Section Header ----- */
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #0066cc;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 14px;
  border: 1.5px solid #0066cc;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 0.96rem;
  color: #6e6e73;
  max-width: 500px;
  margin: 0 auto;
}

.section-actions {
  text-align: center;
  margin-top: 48px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 34px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 5px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  border: 2px solid transparent;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: #0066cc;
  color: #ffffff;
  border-color: #0066cc;
}

.btn-primary:hover {
  background-color: #0055aa;
  border-color: #0055aa;
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: #0066cc;
  border-color: #0066cc;
}

.btn-outline:hover {
  background-color: #0066cc;
  color: #ffffff;
}

/* ----- Scroll Animations ----- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.30s; }
.delay-3 { transition-delay: 0.45s; }

/* =====================================================
   HEADER / NAV
===================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e8ecf5;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: 0.05em;
}

.company-name {
  font-size: 0.6rem;
  color: #9498a6;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: #3a3a3f;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0066cc;
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover {
  color: #0066cc;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: #0066cc;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.menu-toggle:hover {
  background-color: #f0f3f8;
}

.toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #1d1d1f;
  border-radius: 2px;
  transition: all 0.3s ease;
  pointer-events: none;
}

.menu-toggle.open .toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open .toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.open .toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================
   FOOTER
===================================================== */
.site-footer {
  background-color: #f5f6fa;
  border-top: 1px solid #e0e6f0;
  padding: 60px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.6fr;
  gap: 56px;
  margin-bottom: 48px;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-logo-img {
  height: 40px;
  width: auto;
}

.footer-brand-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1d1d1f;
}

.footer-company-name {
  display: block;
  font-size: 0.6rem;
  color: #9498a6;
}

.footer-tagline {
  font-size: 0.85rem;
  color: #6e6e73;
  margin-top: 6px;
}

.footer-col-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.84rem;
  color: #6e6e73;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #0066cc;
}

.footer-contact-list li {
  font-size: 0.82rem;
  color: #6e6e73;
  margin-bottom: 10px;
  line-height: 1.55;
}

.footer-bottom {
  border-top: 1px solid #e0e6f0;
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: #9498a6;
}

/* =====================================================
   PAGE BANNER (内页复用)
===================================================== */
.page-banner {
  padding: 130px 0 60px;
  background-color: #f2f5fc;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 56px solid #dde8f7;
  opacity: 0.5;
  pointer-events: none;
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 36px solid #dde8f7;
  opacity: 0.35;
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #9498a6;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: #6e6e73;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #0066cc;
}

.breadcrumb-sep {
  color: #c8ccd8;
}

.page-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #18192a;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.page-subtitle {
  font-size: 0.96rem;
  color: #6e6e73;
  position: relative;
  z-index: 1;
}

/* =====================================================
   CTA SECTION (内页复用)
===================================================== */
.cta-section {
  background-color: #eef3fb;
  border-top: 1px solid #d8e5f5;
  border-bottom: 1px solid #d8e5f5;
}

.cta-inner {
  text-align: center;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: #18192a;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.cta-desc {
  font-size: 0.98rem;
  color: #6e6e73;
  margin-bottom: 36px;
}

/* =====================================================
   RESPONSIVE (公共)
===================================================== */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e8ecf5;
    padding: 20px 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 13px 0;
    font-size: 0.96rem;
    border-bottom: 1px solid #f0f3f8;
  }

  .nav-link::after {
    display: none;
  }

  .page-banner {
    padding: 108px 0 48px;
  }

  .page-title {
    font-size: 2rem;
  }

  .page-banner::before,
  .page-banner::after {
    display: none;
  }

  .cta-title {
    font-size: 1.65rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .section-padding {
    padding: 64px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.85rem;
  }
}
