/* ============================================
   绵阳抚悦科技有限公司 · 官网样式表 v2.0
   Color: 深蓝 #1B2A4A / 青绿 #0EA5A9 / 浅灰 #F5F7FA
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #0EA5A9;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #0b8a8e;
}

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

ul {
  list-style: none;
}

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

/* ---------- Header / Nav ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eaeaea;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #1B2A4A;
}

.logo img {
  width: 36px;
  height: 36px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text .chi {
  font-size: 20px;
  color: #1B2A4A;
}

.logo-text .eng {
  font-size: 11px;
  color: #888;
  letter-spacing: 0.5px;
}

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

.nav a {
  font-size: 15px;
  color: #555;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #0EA5A9;
  transform: scaleX(0);
  transition: transform 0.25s;
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.nav a.active {
  color: #1B2A4A;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1B2A4A;
  border-radius: 2px;
  transition: 0.25s;
}

/* ---------- Hero ---------- */
.hero {
  padding: 148px 0 80px;
  background: linear-gradient(135deg, #1B2A4A 0%, #243b5e 50%, #1B2A4A 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(14,165,169,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(14,165,169,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.hero h1 span {
  color: #0EA5A9;
}

.hero .subtitle {
  font-size: 20px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
  font-weight: 300;
}

.hero .desc {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: #0EA5A9;
  color: #fff;
}

.btn-primary:hover {
  background: #0b8a8e;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(14,165,169,0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: #fff;
  color: #fff;
  transform: translateY(-1px);
}

/* ---------- Section common ---------- */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #1B2A4A;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 15px;
  color: #888;
  text-align: center;
  margin-bottom: 48px;
}

.section-light {
  background: #F5F7FA;
}

/* ---------- About intro ---------- */
.about-intro {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  font-size: 16px;
  color: #555;
  line-height: 1.9;
}

/* ---------- Products grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  padding: 36px 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: all 0.3s;
  border: 1px solid #eee;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border-color: #0EA5A9;
}

.product-card .icon {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  color: #0EA5A9;
}

.product-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1B2A4A;
  margin-bottom: 10px;
}

.product-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 16px;
}

.product-card .tag {
  display: inline-block;
  font-size: 12px;
  color: #0EA5A9;
  background: rgba(14,165,169,0.08);
  padding: 3px 10px;
  border-radius: 4px;
}

/* ---------- Advantages ---------- */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage-item {
  text-align: center;
  padding: 28px 16px;
}

.advantage-item .num {
  font-size: 14px;
  color: #0EA5A9;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.advantage-item h4 {
  font-size: 17px;
  color: #1B2A4A;
  margin-bottom: 8px;
}

.advantage-item p {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
}

/* ---------- Contact bar ---------- */
.contact-bar {
  text-align: center;
  padding: 40px 0;
}

.contact-bar p {
  font-size: 15px;
  color: #666;
  margin-bottom: 4px;
}

.contact-bar .tel {
  font-size: 22px;
  font-weight: 700;
  color: #1B2A4A;
}

/* ---------- Footer ---------- */
.footer {
  background: #1B2A4A;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 28px 0;
  font-size: 13px;
  line-height: 2;
}

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

.footer a:hover {
  color: #fff;
}

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

.footer .beian a {
  color: rgba(255,255,255,0.5);
}

.footer .beian a:hover {
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
  .advantage-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid #eee;
  }
  .nav.open {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero {
    padding: 120px 0 60px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .advantage-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 56px 0;
  }
}
