/* ==================== 掌鹿科技 · 品牌样式 ==================== */

:root {
  --primary: #2f7dff;
  --secondary: #625ff6;
  --gradient: linear-gradient(135deg, #2f7dff 0%, #625ff6 100%);
  --gradient-subtle: linear-gradient(135deg, #e8f0fe 0%, #eeeaff 100%);
  --dark: #0f172a;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(47, 125, 255, 0.08);
  --shadow-lg: 0 12px 48px rgba(47, 125, 255, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

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

/* ==================== 导航 ==================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition), border-color 0s;
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

.logo-icon { font-size: 24px; line-height: 1; }

.logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-logo {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.logo-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==================== Section Header ==================== */

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  padding: 4px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(47, 125, 255, 0.08);
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.section-header.light h2,
.section-header.light p { color: #fff; }
.section-header.light .section-tag {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* ==================== Hero ==================== */

.hero {
  padding: 120px 0 80px;
  background: var(--gradient-subtle);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(47,125,255,0.15), transparent),
    radial-gradient(ellipse 500px 500px at 80% 30%, rgba(98,95,246,0.1), transparent);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text { max-width: 520px; }

.hero-badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--gradient);
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(47,125,255,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(47,125,255,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(47,125,255,0.05);
  transform: translateY(-2px);
}

/* 手机模拟 */

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 240px;
  background: var(--dark);
  border-radius: 28px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.phone-notch {
  width: 80px;
  height: 6px;
  background: #1e293b;
  border-radius: 3px;
  margin: 0 auto 10px;
}

.phone-screen {
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  min-height: 360px;
}

.mock-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.mock-score {
  text-align: center;
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.mock-score strong {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 4px;
}

.mock-score span { font-size: 13px; color: var(--text-muted); }

.mock-items { display: flex; flex-direction: column; gap: 8px; }

.mock-item {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

.mock-item.risk-high { background: #fef2f2; color: #dc2626; }
.mock-item.risk-mid { background: #fffbeb; color: #d97706; }
.mock-item.risk-low { background: #f0fdf4; color: #16a34a; }

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==================== 产品 ==================== */

.product {
  padding: 100px 0;
  background: var(--bg);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.product-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
  background: var(--bg);
}

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

.product-icon { font-size: 32px; margin-bottom: 16px; }

.product-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.product-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==================== 功能 ==================== */

.features {
  padding: 100px 0;
  background: var(--bg-alt);
}

.features-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.feature-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.feature-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: var(--gradient);
  border-radius: 12px;
}

.feature-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--dark);
}

.feature-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ==================== 数据 ==================== */

.stats {
  padding: 80px 0;
  background: var(--gradient);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

/* ==================== 技术栈 ==================== */

.tech-stack {
  padding: 100px 0;
  background: var(--bg);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.tech-item {
  text-align: center;
  padding: 28px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.tech-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.tech-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
}

.tech-icon svg { width: 100%; height: 100%; }

.tech-item h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--dark);
}

.tech-item p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==================== 关于 ==================== */

.about {
  padding: 100px 0;
  background: var(--bg-alt);
}

.about-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-text p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 16px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.about-tags span {
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(47,125,255,0.08);
  border-radius: 20px;
}

.about-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  transition: var(--transition);
}

.about-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.about-card-header {
  padding: 32px 24px 0;
  text-align: center;
}

.about-card-icon { font-size: 48px; }

.about-card-body {
  padding: 20px 24px 28px;
  text-align: center;
}

.about-card-body h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-card-body p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.about-email {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  padding: 6px 16px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  transition: var(--transition);
}

.about-email:hover {
  background: rgba(47,125,255,0.05);
}

/* ==================== 联系 ==================== */

.contact {
  padding: 100px 0;
  background: var(--gradient);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card {
  display: block;
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  transition: var(--transition);
  color: #fff;
}

.contact-card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-3px);
}

.contact-icon { font-size: 32px; margin-bottom: 12px; }

.contact-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 13px;
  opacity: 0.8;
  line-height: 1.6;
}

/* ==================== Footer ==================== */

.footer {
  padding: 40px 0;
  background: var(--dark);
  color: #fff;
}

.footer-content { text-align: center; }

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

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

.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  transition: var(--transition);
}

.footer-links a:hover { color: rgba(255,255,255,0.7); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ==================== 动画 ==================== */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ==================== 响应式 ==================== */

@media (max-width: 768px) {
  .nav-links {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    background: none;
    backdrop-filter: none;
    padding: 0;
    transform: none;
    transition: none;
    border-bottom: none;
    justify-content: flex-end;
  }
  .nav-links a {
    font-size: 13px;
    padding: 4px 8px;
  }

  .menu-toggle { display: none; }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-text { max-width: 100%; text-align: center; }
  .hero-actions { justify-content: center; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }

  .about-content { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }

  .features-list { gap: 32px; }

  .product-grid { grid-template-columns: 1fr; }
}
