/* ============================================
   山达尔科技 - 企业网站样式
   主色：#0066ff / #00c6ff
   背景：#f5f5f7
   ============================================ */

:root {
  --primary: #0066ff;
  --primary-light: #00c6ff;
  --text: #1d1d1f;
  --text-secondary: #86868b;
  --bg: #f5f5f7;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(0,102,255,0.1);
  --radius: 16px;
  --nav-bg: rgba(255,255,255,0.8);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ========== 导航栏 ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 0 40px;
  height: 76px;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar .logo {
  font-size: 20px; font-weight: 700; color: var(--primary);
  text-decoration: none; letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 10px;
}
.navbar .logo img { height: 56px; width: auto; display: block; }
.navbar .logo span { color: var(--text); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text);
  font-size: 15px; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-phone {
  font-size: 14px; font-weight: 600; color: var(--primary);
  text-decoration: none;
}

/* ========== 通用容器 ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-title {
  text-align: center; margin-bottom: 48px;
}
.section-title h2 {
  font-size: 36px; font-weight: 700; letter-spacing: -1px;
  margin-bottom: 12px;
}
.section-title p { font-size: 18px; color: var(--text-secondary); }

/* ========== 按钮 ========== */
.btn {
  display: inline-block; padding: 12px 28px;
  border-radius: 24px; font-size: 15px; font-weight: 600;
  text-decoration: none; transition: all 0.2s; cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; box-shadow: 0 4px 16px rgba(0,102,255,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,102,255,0.4); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }

/* ========== 卡片 ========== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,102,255,0.15); }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,102,255,0.1), rgba(0,198,255,0.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 20px;
}
.card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

/* ========== 网格布局 ========== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ========== Hero 首屏 ========== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, #e8f0ff 0%, #f0f8ff 50%, #f5f5f7 100%);
  padding-top: 76px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,102,255,0.06) 0%, transparent 70%);
}
.hero-content { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hero h1 {
  font-size: 56px; font-weight: 800; letter-spacing: -2px;
  line-height: 1.1; margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 20px; color: var(--text-secondary); max-width: 560px; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 16px; }
.hero-tags {
  margin-top: 48px; display: flex; gap: 32px; flex-wrap: wrap;
}
.hero-tag {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-secondary);
}
.hero-tag .tag-icon { font-size: 20px; }
.hero-tag strong { color: var(--text); font-weight: 600; }

/* ========== 数据条 ========== */
.stats-bar {
  background: var(--white); padding: 40px 0;
  border-top: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  text-align: center;
}
.stat-item h3 {
  font-size: 42px; font-weight: 800; color: var(--primary);
  letter-spacing: -2px; margin-bottom: 4px;
}
.stat-item p { font-size: 15px; color: var(--text-secondary); }

/* ========== 服务卡片 ========== */
.service-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; transition: all 0.3s;
  border: 1px solid transparent;
}
.service-card:hover {
  border-color: rgba(0,102,255,0.2);
  transform: translateY(-4px);
}
.service-card .card-icon { margin-bottom: 16px; }
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { font-size: 14px; }
.service-card a { color: var(--primary); font-size: 14px; text-decoration: none; font-weight: 500; }

/* ========== 流程步骤 ========== */
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  position: relative;
}
.step-item { text-align: center; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(0,102,255,0.25);
}
.step-item h4 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.step-item p { font-size: 14px; color: var(--text-secondary); }

/* ========== 行业客户 ========== */
.client-logos {
  display: flex; gap: 40px; flex-wrap: wrap; justify-content: center;
  opacity: 0.6; font-size: 18px; font-weight: 600; color: var(--text-secondary); }

/* ========== Footer ========== */
footer {
  background: var(--text); color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 { color: white; font-size: 22px; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.8; }
.footer-col h4 { color: white; font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.footer-col a {
  display: block; color: rgba(255,255,255,0.6);
  text-decoration: none; font-size: 14px; margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; text-align: center;
  font-size: 13px; color: rgba(255,255,255,0.4);
}

/* ========== 内页通用 ========== */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; padding: 100px 0 60px; text-align: center;
}
.page-hero h1 { font-size: 42px; font-weight: 700; letter-spacing: -1px; margin-bottom: 10px; }
.page-hero p { font-size: 18px; opacity: 0.85; }
.breadcrumb {
  font-size: 14px; color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb a:hover { color: white; }

/* ========== 服务详情 ========== */
.service-detail-content { max-width: 800px; margin: 0 auto; }
.detail-section { margin-bottom: 40px; }
.detail-section h3 { font-size: 22px; font-weight: 600; margin-bottom: 16px; color: var(--text); }
.detail-section ul { list-style: none; }
.detail-section li {
  padding: 10px 0; border-bottom: 1px solid #eee;
  font-size: 15px; display: flex; align-items: center; gap: 10px;
}
.detail-section li::before { content: '✓'; color: var(--primary); font-weight: 700; }

/* ========== 文章列表 ========== */
.article-filters {
  display: flex; gap: 12px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 20px; border-radius: 20px; font-size: 14px;
  font-weight: 500; cursor: pointer; border: 1.5px solid #ddd;
  background: white; color: var(--text); transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--primary); color: var(--primary);
  background: rgba(0,102,255,0.05);
}
.article-list { display: flex; flex-direction: column; gap: 16px; }
.article-card {
  background: white; border-radius: var(--radius);
  padding: 24px; display: flex; gap: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: all 0.2s; text-decoration: none; color: inherit;
}
.article-card:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.article-card .article-thumb {
  width: 120px; height: 90px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; flex-shrink: 0;
}
.article-card .article-info { flex: 1; }
.article-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.article-card .article-meta { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.article-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.article-tag { display: inline-block; padding: 2px 10px; background: rgba(0,102,255,0.08); color: var(--primary); border-radius: 10px; font-size: 12px; font-weight: 500; }

/* ========== 文章详情 ========== */
.article-body {
  max-width: 760px; margin: 0 auto; background: white;
  border-radius: var(--radius); padding: 48px;
  box-shadow: var(--shadow);
}
.article-body h1 { font-size: 30px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.5px; }
.article-meta { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #eee; }
.article-body h2 { font-size: 22px; font-weight: 600; margin: 28px 0 14px; }
.article-body p { font-size: 16px; line-height: 1.9; margin-bottom: 16px; color: #333; }
.article-body ul { margin: 16px 0; padding-left: 24px; }
.article-body li { font-size: 16px; line-height: 1.9; margin-bottom: 8px; color: #333; }

/* ========== 关于页面 ========== */
.about-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.about-text h2 { font-size: 32px; font-weight: 700; margin-bottom: 20px; }
.about-text p { font-size: 16px; line-height: 1.9; color: var(--text-secondary); margin-bottom: 12px; }
.about-visual {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius); height: 360px; display: flex;
  align-items: center; justify-content: center; font-size: 80px; color: white;
}

/* ========== 联系我们 ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-card {
  background: white; border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.contact-info-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid #eee;
}
.contact-info-item:last-child { border-bottom: none; }
.contact-icon { font-size: 28px; }
.contact-item-content h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.contact-item-content p { font-size: 14px; color: var(--text-secondary); }
.contact-form-card {
  background: white; border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid #e0e0e0;
  border-radius: 10px; font-size: 15px; font-family: inherit;
  transition: border-color 0.2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ========== 招聘 ========== */
.job-card {
  background: white; border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.job-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.job-title { font-size: 22px; font-weight: 700; }
.job-salary { font-size: 18px; color: var(--primary); font-weight: 600; }
.job-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.job-tag { padding: 4px 12px; background: rgba(0,102,255,0.08); color: var(--primary); border-radius: 8px; font-size: 13px; }
.job-desc h4 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.job-desc ul { padding-left: 20px; }
.job-desc li { font-size: 15px; line-height: 1.8; color: #444; }

/* ========== 404 ========== */
.error-page {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.error-page h1 { font-size: 120px; font-weight: 800; color: var(--primary); letter-spacing: -4px; margin-bottom: 16px; }
.error-page h2 { font-size: 28px; margin-bottom: 12px; }
.error-page p { color: var(--text-secondary); margin-bottom: 32px; }

/* ========== 滚动动画 ========== */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 42px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 17px; }
  .section { padding: 60px 0; }
  .section-title h2 { font-size: 28px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .about-intro { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .article-card { flex-direction: column; }
  .article-card .article-thumb { width: 100%; height: 160px; }
  .article-body { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ========== 汉堡菜单 ========== */
.mobile-menu-btn { display: none; background: none; border: none; font-size: 28px; cursor: pointer; }
@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .mobile-nav {
    position: fixed; top: 76px; left: 0; right: 0; bottom: 0;
    background: white; z-index: 999; padding: 24px;
    transform: translateX(100%); transition: transform 0.3s;
  }
  .mobile-nav.open { transform: translateX(0); }
  .mobile-nav a { display: block; padding: 16px 0; font-size: 18px; border-bottom: 1px solid #eee; text-decoration: none; color: var(--text); }
}
