/* ============================================
   SYNERGY v2 - Tailwind CSS 深蓝商务配色
   半导体高压模拟芯片企业官网
   ============================================ */

/* 自定义颜色变量 */
:root {
  --primary: #163D7A;
  --primary-hover: #3E6499;
  --secondary: #3E6499;
  --text-body: #333333;
  --text-muted: #596777;
  --bg-white: #FFFFFF;
  --bg-section: #F3F6FA;
  --border-color: #596777;
}

/* 基础重置 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-white);
  color: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

ul, ol {
  list-style: none;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== 导航栏 ========== */
.navbar {
  background-color: #FFFFFF;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  height: 75px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #163D7A;
  letter-spacing: 1px;
  flex-shrink: 0;
  margin-right: 8px;
  margin-left: 70px;
}

.logo-img {
  height: 75px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a {
  color: #163D7A;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-menu a:hover {
  color: #163D7A;
  background: rgba(22,61,122,0.08);
}

.nav-menu a.active {
  color: #fff;
  background: #163D7A;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(22,61,122,0.25);
}

/* 语言切换按钮 */
.lang-toggle {
  margin-left: auto;
  padding: 6px 14px;
  border: 1.5px solid #163D7A;
  border-radius: 999px;
  color: #163D7A;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.lang-toggle:hover {
  background: #163D7A;
  color: #fff;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #163D7A;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.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);
}

/* 移动端菜单覆盖层 */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}
.nav-overlay.active {
  display: block;
}

/* ========== 页面内容顶部偏移（固定导航栏） ========== */
.page-content {
  padding-top: 72px;
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.btn-primary {
  background-color: #163D7A;
  color: #fff;
}

.btn-primary:hover {
  background-color: #3E6499;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(22,61,122,0.3);
}

.btn-outline {
  background: transparent;
  color: #163D7A;
  border: 2px solid #163D7A;
}

.btn-outline:hover {
  background: #163D7A;
  color: #fff;
}

.btn-white {
  background: #fff;
  color: #163D7A;
}

.btn-white:hover {
  background: #F3F6FA;
  color: #163D7A;
}

/* ========== 标题样式 ========== */
.heading-xl {
  font-size: 2.8rem;
  font-weight: 800;
  color: #163D7A;
  line-height: 1.2;
}

.heading-lg {
  font-size: 2.2rem;
  font-weight: 700;
  color: #163D7A;
  line-height: 1.3;
}

.heading-md {
  font-size: 1.5rem;
  font-weight: 600;
  color: #3E6499;
  line-height: 1.4;
}

.heading-sm {
  font-size: 1.1rem;
  font-weight: 600;
  color: #3E6499;
}

.text-body {
  color: #333333;
  line-height: 1.8;
}

.text-muted {
  color: #596777;
}

/* ========== Section 通用 ========== */
.section {
  padding: 80px 0;
}

.section-bg {
  background-color: #F3F6FA;
}

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

.section-tag {
  display: inline-block;
  padding: 4px 16px;
  background: rgba(22,61,122,0.08);
  border: 1px solid rgba(22,61,122,0.2);
  border-radius: 50px;
  font-size: 0.8rem;
  color: #163D7A;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

/* ========== Hero 首页大图 ========== */
.hero {
  background: #FFFFFF;
  min-height: auto;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-left: 0;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #163D7A;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  color: #163D7A;
}

.hero p {
  font-size: 1.1rem;
  color: #163D7A;
  margin-bottom: 32px;
  line-height: 1.8;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 50px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stat .number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
}

.hero-stat .label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* ========== 首页数据条 ========== */
.stats-bar {
  background: linear-gradient(135deg, #163D7A 0%, #0d2a5a 50%, #163D7A 100%);
  padding: 40px 0;
}

/* ========== 卡片 ========== */
.card {
  background: #fff;
  border: 1px solid #596777;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(22,61,122,0.12);
  border-color: #3E6499;
}

.card-img {
  height: 260px;
  background: linear-gradient(135deg, #163D7A 0%, #3E6499 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.8);
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #163D7A;
  margin-bottom: 8px;
}

.card-body p {
  font-size: 0.9rem;
  color: #596777;
  line-height: 1.6;
}

/* ========== 特性卡片 ========== */
.feature-card {
  background: #fff;
  border: 1px solid #596777;
  border-radius: 12px;
  padding: 32px 24px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(22,61,122,0.1);
  border-color: #3E6499;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(22,61,122,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #163D7A;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: #596777;
  line-height: 1.7;
}

/* ========== 产品规格标签 ========== */
.spec-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(22,61,122,0.08);
  border: 1px solid rgba(22,61,122,0.15);
  border-radius: 4px;
  font-size: 0.75rem;
  color: #3E6499;
  font-family: 'Inter', 'Roboto', sans-serif;
}

/* ========== 产品表格 ========== */
.table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #596777;
  background: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table thead {
  background: #163D7A;
}

.data-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: #fff;
  font-size: 0.85rem;
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  color: #333333;
  border-bottom: 1px solid #e5e8ec;
  white-space: nowrap;
}

.data-table tbody tr:hover {
  background: #F3F6FA;
}

.data-table .status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
}

.status-production {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.status-preproduction {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

/* ========== 时间线 ========== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: #596777;
}

.timeline-item {
  position: relative;
  padding: 0 0 40px;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  padding-right: 50px;
  text-align: right;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
  padding-left: 50px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 6px;
  width: 14px;
  height: 14px;
  background: #163D7A;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px #163D7A;
}

.timeline-item:nth-child(odd)::before { right: -7px; }
.timeline-item:nth-child(even)::before { left: -7px; }

.timeline-date {
  font-size: 0.85rem;
  color: #3E6499;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-content {
  background: #fff;
  border: 1px solid #596777;
  border-radius: 10px;
  padding: 20px;
}

.timeline-content h3 {
  font-size: 1rem;
  color: #163D7A;
  font-weight: 600;
}

.timeline-content p {
  font-size: 0.85rem;
  color: #596777;
  margin-top: 6px;
}

/* ========== 页面横幅 ========== */
.page-banner {
  background: linear-gradient(135deg, #163D7A 0%, #0d2a5a 100%);
  padding: 140px 0 60px;
  text-align: center;
  color: #fff;
}

.page-banner h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-banner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .current { color: #a8c4e8; }

/* ========== 联系表单 ========== */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: #596777;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #596777;
  border-radius: 8px;
  color: #333333;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #163D7A;
  box-shadow: 0 0 0 3px rgba(22,61,122,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ========== Footer ========== */
.footer {
  background: #163D7A;
  color: rgba(255,255,255,0.8);
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

/* ========== 回到顶部 ========== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: #163D7A;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  border: none;
  box-shadow: 0 4px 15px rgba(22,61,122,0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #3E6499;
  transform: translateY(-2px);
}

/* ========== 滚动动画 ========== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========== Grid 布局工具 ========== */
.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; }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero h1 { font-size: 2.4rem; }
  .heading-xl { font-size: 2.2rem; }
  .heading-lg { font-size: 1.8rem; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #163D7A;
    flex-direction: column;
    padding: 80px 24px 24px;
    gap: 4px;
    transition: right 0.35s ease;
    border-left: 1px solid rgba(255,255,255,0.1);
    z-index: 999;
  }

  .nav-menu.active { right: 0; }
  .nav-menu a { width: 100%; padding: 12px 16px; font-size: 1rem; }

  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-stat .number { font-size: 1.8rem; }

  .section { padding: 50px 0; }
  .page-banner { padding: 110px 0 50px; }
  .page-banner h1 { font-size: 2rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item:nth-child(even) {
    width: 100%; margin-left: 0; padding-left: 50px; padding-right: 0; text-align: left;
  }
  .timeline-item::before, .timeline-item:nth-child(odd)::before, .timeline-item:nth-child(even)::before {
    left: 13px; right: auto;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; }
  .container { padding: 0 16px; }
  .heading-xl { font-size: 1.8rem; }
  .heading-lg { font-size: 1.5rem; }
}

/* ========== 工具类 ========== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
.gap-20 { gap: 20px; }
.gap-30 { gap: 30px; }
