/* ============================================
   松应科技 官网统一样式系统 v2.0
   主题：科技蓝浅色主题
   ============================================ */

/* ---------- 设计变量 ---------- */
:root {
  --primary: #1976d2;
  --primary-light: #2196f3;
  --primary-dark: #1565c0;
  --primary-bg: rgba(25, 118, 210, 0.1);
  --primary-gradient: linear-gradient(90deg, #1976d2, #2196f3);
  --primary-shadow: rgba(33, 150, 243, 0.3);

  --text-primary: #333;
  --text-secondary: #555;
  --text-muted: #777;
  --text-light: #666;

  --bg-white: #fff;
  --bg-light: #f5f5f5;
  --bg-lighter: #f9f9f9;
  --bg-blue: #f0f8ff;

  --border-color: #eaeaea;
  --border-light: #eee;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  --shadow-sm: 0 5px 15px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 25px rgba(0,0,0,0.08);
  --shadow-lg: 0 15px 40px rgba(0,0,0,0.1);
  --shadow-blue: 0 15px 30px rgba(25, 118, 210, 0.1);

  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;

  --header-height: 75px;
  --max-width: 1400px;
}

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

html {
  scroll-behavior: smooth;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

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

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

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Section Title ---------- */
.section-title {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
  line-height: 1.8;
}

/* ---------- Buttons ---------- */
.primary-btn {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--primary-shadow);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.primary-btn:hover {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--primary-shadow);
  color: white;
}

.primary-btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.outline-btn {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 10px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.outline-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  background: var(--primary-bg);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(25, 118, 210, 0.3);
}

/* ---------- Header / Nav ---------- */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

header.scrolled {
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 45px;
  width: auto;
  vertical-align: middle;
  margin-right: 10px;
  filter: brightness(0) saturate(100%) invert(25%) sepia(90%) saturate(2000%) hue-rotate(200deg) brightness(90%) contrast(90%);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  padding: 8px 12px;
  position: relative;
  white-space: nowrap;
  border-radius: var(--radius-sm);
}

nav ul li a:hover {
  color: var(--primary);
  background: var(--primary-bg);
}

nav ul li a.active {
  color: var(--primary);
  font-weight: 600;
}

nav ul li a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
}

.search-bar input {
  background: rgba(238, 238, 238, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 8px 15px 8px 40px;
  color: var(--text-primary);
  width: 200px;
  transition: var(--transition);
  font-size: 0.9rem;
}

.search-bar input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.95);
  width: 260px;
  border-color: var(--primary);
}

.search-icon {
  position: absolute;
  left: 15px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: linear-gradient(90deg, #1976d2, #2196f3);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
  color: #fff;
}

/* ---------- Hamburger Menu ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

/* ---------- Mobile Menu Overlay ---------- */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: var(--bg-white);
  z-index: 999;
  padding: 80px 30px 30px;
  box-shadow: -5px 0 25px rgba(0,0,0,0.15);
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu ul li {
  margin-bottom: 5px;
}

.mobile-menu ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.mobile-menu ul li a:hover,
.mobile-menu ul li a.active {
  background: var(--primary-bg);
  color: var(--primary);
}

.mobile-menu ul li a i {
  width: 22px;
  text-align: center;
  color: var(--primary);
}

/* ---------- Page Banner ---------- */
.page-banner {
  background: linear-gradient(rgba(25, 118, 210, 0.85), rgba(33, 150, 243, 0.75)),
              url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1950') no-repeat center center;
  background-size: cover;
  color: white;
  padding: 150px 0 80px;
  text-align: center;
  margin-top: var(--header-height);
}

.page-banner h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-banner p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  color: #e3f2fd;
  line-height: 1.6;
}

/* ---------- Content Sections ---------- */
.content-section {
  padding: 70px 0;
}

.section-light {
  background: var(--bg-lighter);
}

.section-white {
  background: var(--bg-white);
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-blue);
  border-color: var(--primary);
}

/* ---------- Footer ---------- */
footer {
  color: var(--text-secondary);
  background-color: var(--bg-light);
  padding-top: 80px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 60px;
}

.footer-col h3 {
  font-size: 1.15rem;
  margin-bottom: 24px;
  color: var(--primary);
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-col p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
}

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

.footer-links li a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links li a i {
  width: 18px;
  color: var(--primary);
  text-align: center;
}

.footer-links li a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.footer-bottom {
  padding: 25px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  background: rgba(0,0,0,0.02);
}

.beian-link {
  color: var(--text-primary);
  text-decoration: none;
}

.beian-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.beian-link p {
  margin: 0;
  color: inherit;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* ---------- Scroll Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 65px;
  }

  nav ul {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu,
  .mobile-menu-overlay {
    display: block;
  }

  .search-bar input {
    width: 140px;
  }

  .search-bar input:focus {
    width: 180px;
  }

  .page-banner h1 {
    font-size: 2.2rem;
  }

  .page-banner p {
    font-size: 1.05rem;
  }

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

@media (max-width: 768px) {
  .header-right .search-bar {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .login-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .primary-btn {
    padding: 10px 24px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
}