/* ===== 新盛科技 - 新拟态设计系统 ===== */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;700;800;900&display=swap');

:root {
  --border-radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --color-light: #F5F5F5;
  --bg: #E6ECF3;
  --bg-grad: linear-gradient(145deg, #F0F5FA, #DDE4EC);
  --color-primary: #C8E0F4;
  --color-pink: #F5E0E8;
  --color-accent: #33608D;
  --color-text: #2C3549;
  --color-text-secondary: #5B6A80;
  --color-white: #FFFFFF;
  --shadow-soft-1: -6px -6px 14px rgba(255, 255, 255, 0.85);
  --shadow-soft-2: 6px 6px 14px rgba(96, 114, 140, 0.28);
  --shadow-raised: var(--shadow-soft-1), var(--shadow-soft-2);
  --shadow-inset: inset -4px -4px 10px rgba(255, 255, 255, 0.7), inset 4px 4px 10px rgba(96, 114, 140, 0.2);
  --shadow-hover: -8px -8px 18px rgba(255, 255, 255, 0.9), 8px 8px 18px rgba(96, 114, 140, 0.32);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

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

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

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ===== 容器 ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg);
  padding: 16px 0;
  border-bottom: 1px solid rgba(96, 114, 140, 0.08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--color-text); }
.brand-icon {
  width: 44px; height: 44px;
  background: var(--bg-grad);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-raised);
  display: flex; align-items: center; justify-content: center;
}
.brand-icon svg { width: 24px; height: 24px; }
.brand-text { font-weight: 800; font-size: 18px; line-height: 1.2; }
.brand-text small { display: block; font-size: 11px; font-weight: 500; color: var(--color-text-secondary); letter-spacing: 0.5px; }

.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--color-text-secondary);
  font-weight: 600; font-size: 15px; padding: 10px 16px;
  border-radius: var(--border-radius); transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--color-accent);
  background: var(--bg-grad);
  box-shadow: var(--shadow-raised);
}
.nav-links a:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-accent); color: var(--color-white);
  padding: 12px 24px; border-radius: var(--border-radius);
  font-weight: 700; font-size: 14px; text-decoration: none;
  box-shadow: var(--shadow-raised); transition: var(--transition);
  border: none; cursor: pointer;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.nav-cta:active { transform: scale(0.97); }
.nav-cta:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* 汉堡菜单 */
.menu-toggle {
  display: none; background: var(--bg-grad);
  border: none; border-radius: var(--border-radius);
  box-shadow: var(--shadow-raised); padding: 10px;
  cursor: pointer; width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--color-text); border-radius: 2px; transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero 区域 ===== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  text-transform: uppercase; letter-spacing: 3px;
  font-size: 13px; font-weight: 700;
  color: var(--color-accent);
  background: var(--bg-grad);
  padding: 8px 20px; border-radius: var(--border-radius);
  box-shadow: var(--shadow-raised);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 20px;
  max-width: 800px; margin-left: auto; margin-right: auto;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-secondary);
  max-width: 600px; margin: 0 auto 36px;
  line-height: 1.6;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== 按钮系统 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--border-radius);
  font-family: inherit; font-weight: 700; font-size: 15px;
  text-decoration: none; border: none; cursor: pointer;
  transition: var(--transition); min-height: 44px;
}
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.btn-primary {
  background: var(--color-accent); color: var(--color-white);
  box-shadow: var(--shadow-raised);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); background: #2a5278; }
.btn-primary:active { transform: scale(0.97); }
.btn-secondary {
  background: var(--bg-grad); color: var(--color-text);
  box-shadow: var(--shadow-raised);
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-secondary:active { transform: scale(0.97); }
.btn-ghost {
  background: transparent; color: var(--color-accent);
  padding: 14px 20px;
}
.btn-ghost:hover { background: var(--bg-grad); box-shadow: var(--shadow-raised); }
.btn:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ===== 风格信息条 ===== */
.style-chips {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  padding: 24px 0;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-grad);
  padding: 8px 18px; border-radius: var(--border-radius);
  box-shadow: var(--shadow-raised);
  font-size: 13px; font-weight: 600;
  color: var(--color-text-secondary);
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); }

/* ===== 章节通用 ===== */
.section { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; line-height: 1.2;
  color: var(--color-text); margin-bottom: 12px;
}
.section-header p {
  color: var(--color-text-secondary);
  max-width: 560px; margin: 0 auto;
  font-size: 16px;
}

/* ===== 特性卡片 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-grad);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-raised);
  transition: var(--transition);
  text-align: center;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  background: var(--bg-grad);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-inset);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 28px; height: 28px; stroke: var(--color-accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--color-text); }
.feature-card p { font-size: 15px; color: var(--color-text-secondary); line-height: 1.6; }

/* ===== 关于我们 ===== */
.about-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.about-text h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.about-text p { color: var(--color-text-secondary); margin-bottom: 16px; line-height: 1.8; }
.about-visual {
  background: var(--bg-grad);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised);
  padding: 40px; display: flex; align-items: center; justify-content: center;
  min-height: 320px;
}
.about-visual-inner {
  width: 200px; height: 200px;
  background: linear-gradient(145deg, var(--color-primary), var(--color-pink));
  border-radius: 50%;
  box-shadow: var(--shadow-inset);
  display: flex; align-items: center; justify-content: center;
}
.about-visual-inner svg { width: 80px; height: 80px; stroke: var(--color-accent); fill: none; stroke-width: 1.5; }

/* ===== 产品/服务 ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--bg-grad);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-raised);
  transition: var(--transition);
  text-decoration: none; color: inherit;
  display: block;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.service-card-img {
  width: 100%; height: 180px;
  border-radius: var(--border-radius);
  overflow: hidden; margin-bottom: 20px;
  box-shadow: var(--shadow-inset);
}
.service-card-img img { width: 100%; height: 100%; object-fit: cover; }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; margin-bottom: 16px; }
.service-card .card-link {
  font-size: 14px; font-weight: 700; color: var(--color-accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.service-card .card-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ===== 团队成员 ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.team-card {
  background: var(--bg-grad);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-raised);
  text-align: center;
  transition: var(--transition);
  text-decoration: none; color: inherit;
  display: block;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.team-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--bg-grad);
  box-shadow: var(--shadow-inset);
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.team-avatar svg { width: 40px; height: 40px; stroke: var(--color-accent); fill: none; stroke-width: 1.5; }
.team-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.team-card .team-role { font-size: 14px; color: var(--color-accent); font-weight: 600; margin-bottom: 12px; }
.team-card p { font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; }

/* ===== 联系我们 ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.contact-info-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.contact-info-item {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--bg-grad);
  padding: 20px; border-radius: var(--border-radius);
  box-shadow: var(--shadow-raised);
}
.contact-info-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--bg-grad);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-inset);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-icon svg { width: 22px; height: 22px; stroke: var(--color-accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-info-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.contact-info-item a, .contact-info-item p { font-size: 15px; color: var(--color-text-secondary); text-decoration: none; }
.contact-info-item a:hover { color: var(--color-accent); }

/* ===== 表单 ===== */
.form-section {
  background: var(--bg-grad);
  border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow-raised);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 14px; font-weight: 700;
  margin-bottom: 8px; color: var(--color-text);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 18px;
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-inset);
  font-family: inherit; font-size: 15px;
  color: var(--color-text);
  transition: var(--transition);
  min-height: 48px;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-inset), 0 0 0 3px rgba(51, 96, 141, 0.15);
}
.form-group input:focus-visible, .form-group textarea:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===== Toggle 开关 ===== */
.toggle-wrapper { display: flex; align-items: center; gap: 12px; }
.toggle {
  position: relative; width: 52px; height: 28px;
  background: var(--bg-grad);
  border-radius: 14px;
  box-shadow: var(--shadow-inset);
  cursor: pointer; transition: var(--transition);
  border: none; padding: 0;
}
.toggle::after {
  content: ''; position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  background: var(--color-white);
  border-radius: 50%;
  box-shadow: 2px 2px 6px rgba(96, 114, 140, 0.3);
  transition: var(--transition);
}
.toggle.active { background: var(--color-accent); }
.toggle.active::after { left: 27px; }

/* ===== Badge 徽标 ===== */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-primary { background: var(--color-accent); color: var(--color-white); }
.badge-secondary { background: var(--color-primary); color: var(--color-text); }
.badge-pink { background: var(--color-pink); color: var(--color-text); }

/* ===== 百度地图 ===== */
.map-section { padding: 48px 0; }
.map-container {
  background: var(--bg-grad);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised);
  overflow: hidden;
  height: 400px;
  position: relative;
}
#baiduMap { width: 100%; height: 100%; }

/* ===== 页脚 ===== */
.site-footer {
  background: var(--bg-grad);
  padding: 48px 0 24px;
  margin-top: 64px;
  box-shadow: inset 0 4px 12px rgba(96, 114, 140, 0.08);
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--color-text-secondary); font-size: 14px; margin-top: 12px; line-height: 1.6; }
.footer-col h4 { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: var(--color-text); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--color-text-secondary); text-decoration: none; font-size: 14px; transition: var(--transition); }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(96, 114, 140, 0.12);
  padding-top: 20px; text-align: center;
  font-size: 13px; color: var(--color-text-secondary);
}

/* ===== 详情页通用 ===== */
.page-hero {
  padding: 60px 0 40px; text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 900; margin-bottom: 12px; }
.page-hero p { color: var(--color-text-secondary); max-width: 600px; margin: 0 auto; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--color-text-secondary);
  margin-bottom: 24px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--color-text-secondary); }

.detail-content {
  background: var(--bg-grad);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised);
  padding: 40px; margin-bottom: 48px;
}
.detail-content h2 { font-size: 1.5rem; font-weight: 800; margin: 32px 0 16px; }
.detail-content h2:first-child { margin-top: 0; }
.detail-content p { color: var(--color-text-secondary); line-height: 1.8; margin-bottom: 16px; }
.detail-content ul { padding-left: 24px; margin-bottom: 16px; }
.detail-content li { color: var(--color-text-secondary); line-height: 1.8; margin-bottom: 8px; }

/* ===== 登录页 ===== */
.login-wrapper {
  max-width: 440px; margin: 60px auto; padding: 0 24px;
}
.login-card {
  background: var(--bg-grad);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised);
  padding: 40px 32px;
}
.login-card h1 { font-size: 1.8rem; font-weight: 900; text-align: center; margin-bottom: 8px; }
.login-card .login-subtitle { text-align: center; color: var(--color-text-secondary); margin-bottom: 32px; font-size: 15px; }
.login-card .btn-primary { width: 100%; }
.login-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--color-text-secondary); }
.login-footer a { color: var(--color-accent); text-decoration: none; font-weight: 600; }

/* ===== 下载页 ===== */
.download-hero { text-align: center; padding: 60px 0 40px; }
.download-hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 900; margin-bottom: 16px; }
.download-hero p { color: var(--color-text-secondary); max-width: 560px; margin: 0 auto 32px; }
.download-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.download-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--bg-grad);
  padding: 16px 32px; border-radius: var(--border-radius);
  box-shadow: var(--shadow-raised);
  text-decoration: none; color: var(--color-text);
  transition: var(--transition);
}
.download-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.download-btn svg { width: 32px; height: 32px; stroke: var(--color-accent); fill: none; stroke-width: 1.5; }
.download-btn-text { text-align: left; }
.download-btn-text small { display: block; font-size: 12px; color: var(--color-text-secondary); }
.download-btn-text strong { font-size: 16px; }

.download-features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px; max-width: 800px; margin: 0 auto;
}
.download-feature {
  background: var(--bg-grad);
  border-radius: var(--border-radius);
  padding: 24px; text-align: center;
  box-shadow: var(--shadow-raised);
}
.download-feature svg { width: 40px; height: 40px; stroke: var(--color-accent); fill: none; stroke-width: 1.5; margin-bottom: 12px; }
.download-feature h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.download-feature p { font-size: 14px; color: var(--color-text-secondary); }

/* ===== 随机图片展示 ===== */
.random-img-container {
  width: 100%; height: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
}
.random-img-container img { width: 100%; height: 100%; object-fit: cover; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta.desktop { display: none; }
  .menu-toggle { display: flex; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column;
    position: absolute; top: 76px; left: 16px; right: 16px;
    background: var(--bg-grad);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-raised);
    padding: 16px; gap: 4px;
  }
  .nav-links.mobile-open a { width: 100%; padding: 14px 16px; }
  .about-content { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 48px 0 40px; }
  .section { padding: 40px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .detail-content { padding: 24px; }
  .form-section { padding: 24px; }
  .login-card { padding: 28px 20px; }
}

/* ===== 减弱动效 ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
