/* ==========================================================
   广州亿富科技有限公司官网 - 样式表
   配色：YIFU 蓝 (#1e50a2) + 商标金 (#c9a24b)
   ========================================================== */
:root {
  --primary: #1e50a2;
  --primary-dark: #0f2c5c;
  --primary-deep: #0a1f42;
  --gold: #c9a24b;
  --gold-light: #e6c87a;
  --text: #2b3445;
  --text-light: #6b7688;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(15, 44, 92, 0.10);
  --shadow-hover: 0 14px 40px rgba(15, 44, 92, 0.18);

  /* 导航栏尺寸（随屏幕分级调整） */
  --header-h: 92px;      /* 导航栏高度 */
  --brand-logo: 62px;    /* Logo 显示高度（宽度按比例自适应） */
  --brand-title: 22px;   /* 公司名标题字号（英文按此等比缩放） */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ========== 顶部导航 ========== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(15, 44, 92, 0.08);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 4px 18px rgba(15, 44, 92, 0.12); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: var(--brand-logo); width: auto; object-fit: contain; }
.brand-name { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name strong {
  font-size: var(--brand-title);
  color: var(--primary-dark);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
/* 英文全称：字号按中文标题等比缩放，使其宽度与中文大致相同、左右边缘对齐 */
.brand-name em {
  font-style: normal;
  font-size: calc(var(--brand-title) * 0.48);
  color: var(--gold);
  letter-spacing: 0;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav-link {
  font-size: 15px;
  color: var(--text);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  transition: background 0.25s, transform 0.25s;
}
.nav-phone:hover { background: var(--primary-dark); transform: translateY(-1px); }

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-btn span {
  width: 24px; height: 2.5px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ========== 首页横幅 ========== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 68px) 0 90px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-dark) 45%, var(--primary) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(201, 162, 75, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--gold-light);
  border: 1px solid rgba(201, 162, 75, 0.5);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-title {
  font-size: 46px;
  line-height: 1.25;
  letter-spacing: 2px;
  margin-bottom: 18px;
}
.hero-title span { color: var(--gold-light); }
.hero-sub { font-size: 17px; color: rgba(255, 255, 255, 0.85); margin-bottom: 14px; }
/* 服务关键词条：弱化层级，避免与主副标题重复罗列业务 */
.hero-services {
  font-size: 13.5px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn-primary {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 6px 18px rgba(201, 162, 75, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(201, 162, 75, 0.5); }
.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }

.hero-points { display: flex; gap: 20px; flex-wrap: wrap; color: rgba(255,255,255,0.75); font-size: 14px; letter-spacing: 1px; }
.hero-poster img {
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  border: 4px solid rgba(255, 255, 255, 0.12);
}

/* ========== 通用板块 ========== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; margin-bottom: 52px; }
.section-tag {
  font-size: 13px;
  letter-spacing: 5px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}
.section-tag.light { color: var(--gold-light); }
.section-title {
  font-size: 34px;
  color: var(--primary-dark);
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
  margin-bottom: 14px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 52px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
}
.section-title.light { color: #fff; }
.section-desc { color: var(--text-light); font-size: 16px; }
.section-desc.light { color: rgba(255, 255, 255, 0.75); }

/* ========== 企业宣传片 ========== */
.section-film {
  position: relative;
  padding: 96px 0 100px;
  overflow: hidden;
  /* 与上方 hero 的深蓝渐变衔接，形成连续的两屏深色开场区 */
  background: linear-gradient(180deg, #061529 0%, #0a1f42 48%, #0f2c5c 100%);
}
.section-film::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 180px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  opacity: 0.75;
}
.film-glow {
  position: absolute;
  left: 50%; top: -14%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(30, 80, 162, 0.30), transparent 62%);
  pointer-events: none;
}
.section-film .container { position: relative; z-index: 1; }

/* 金色描边相框 */
.film-frame {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(230, 200, 122, 0.45) 0%,
              rgba(230, 200, 122, 0.08) 38%, rgba(30, 80, 162, 0.32) 100%);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.5), 0 0 70px rgba(30, 80, 162, 0.22);
}
/* 用 padding-top 撑起 16:9（比 aspect-ratio 兼容性更稳） */
.film-stage {
  position: relative;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #061529;
}
.film-cover,
.film-stage video {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.film-cover { transition: transform 0.8s ease; }
.film-stage:hover .film-cover { transform: scale(1.04); }

.film-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 92px; height: 92px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--gold-light), var(--gold));
  color: var(--primary-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s, box-shadow 0.3s;
}
.film-play svg {
  position: relative;
  z-index: 2;
  width: 34px; height: 34px;
  fill: currentColor;
  margin-left: 4px;
}
.film-play:hover {
  transform: translate(-50%, -50%) scale(1.09);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55);
}
.film-play-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(230, 200, 122, 0.75);
  animation: filmPulse 2.4s ease-out infinite;
}
@keyframes filmPulse {
  0%   { transform: scale(1);    opacity: 0.85; }
  100% { transform: scale(1.75); opacity: 0; }
}
.film-badge {
  position: absolute;
  right: 16px; bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(6, 21, 41, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
}
.film-note {
  margin: 30px auto 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  letter-spacing: 1px;
}

/* ========== 服务卡片 ========== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 26px;
  box-shadow: var(--shadow);
  border-top: 3px solid transparent;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--gold);
}
.service-icon {
  width: 62px; height: 62px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #fff;
}
.icon-blue { background: linear-gradient(135deg, var(--primary), #3a6fc4); }
.icon-gold { background: linear-gradient(135deg, var(--gold), #dfb96a); }
.service-card h3 {
  font-size: 18px;
  color: var(--primary-dark);
  margin-bottom: 14px;
}
/* 服务项列表：整块居中、内部保持左对齐，圆点不脱离文字 */
.service-card ul {
  display: inline-block;
  margin: 0 auto;
  text-align: left;
}
.service-card li {
  font-size: 14px;
  color: var(--text-light);
  padding: 5px 0 5px 16px;
  position: relative;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ========== 产品卡片 ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.product-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.product-badge {
  position: absolute;
  top: 0; right: 0;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  padding: 5px 14px;
  border-bottom-left-radius: 12px;
}
.product-img { margin: 6px 0 16px; text-align: center; }
.product-card h3 { font-size: 16px; color: var(--primary-dark); margin-bottom: 12px; }
.spec li {
  display: flex;
  font-size: 13px;
  color: var(--text-light);
  padding: 3.5px 0;
}
.spec b {
  color: var(--primary);
  font-weight: 600;
  min-width: 56px;
  flex-shrink: 0;
}
.price {
  margin-top: 16px;
  font-size: 26px;
  font-weight: 700;
  color: #e05656;
}
.price span { font-size: 12px; font-weight: 400; color: var(--text-light); margin-left: 4px; }

.product-banner {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.product-banner img { width: 100%; }

/* ========== 工程案例 ========== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.case-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.case-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.case-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.case-card:hover .case-img img { transform: scale(1.07); }
.case-info { padding: 20px 22px 24px; }
.case-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(30, 80, 162, 0.08);
  border: 1px solid rgba(30, 80, 162, 0.15);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.case-info h3 {
  font-size: 17px;
  color: var(--primary-dark);
  margin-bottom: 6px;
  line-height: 1.45;
}
.case-info p { font-size: 13.5px; color: var(--text-light); }

/* ========== 关于我们 ========== */
.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.about-img {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.about-text .section-title { display: inline-block; }
.about-text p { margin-bottom: 14px; color: var(--text-light); font-size: 15.5px; }
.about-text b { color: var(--primary); }
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.about-stats li {
  background: var(--bg-alt);
  border-radius: 12px;
  text-align: center;
  padding: 18px 8px;
}
.about-stats strong {
  display: block;
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 4px;
}
.about-stats span { font-size: 12.5px; color: var(--text-light); }

/* ========== 联系我们 ========== */
.section-dark {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-dark));
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.3s, background 0.3s;
  color: #fff;
}
.contact-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.10); }
.contact-icon {
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
}
.contact-card h3 { font-size: 15px; color: rgba(255, 255, 255, 0.75); margin-bottom: 10px; font-weight: 500; }
.contact-main { font-size: 26px; font-weight: 700; color: var(--gold-light); letter-spacing: 1px; }
.contact-main.small { font-size: 19px; color: #fff; }
.contact-sub { font-size: 14px; color: rgba(255, 255, 255, 0.65); margin-top: 6px; }
/* 地址卡片：两行文字统一为同一字号/颜色 */
.contact-card-addr .contact-main { line-height: 1.4; }
.contact-card-addr .contact-sub {
  font-size: 19px;
  color: #fff;
  margin-top: 2px;
  line-height: 1.4;
}

/* ========== 页脚 ========== */
.footer {
  background: var(--primary-deep);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 36px 0 90px;
  font-size: 13.5px;
}
.footer-logo { width: 42px; margin: 0 auto 12px; opacity: 0.9; }
.footer-slogan { color: var(--gold-light); margin-top: 6px; letter-spacing: 2px; }

/* ========== 移动端悬浮拨号按钮 ========== */
.float-call {
  display: none;
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 99;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(201, 162, 75, 0.55);
}

/* ========== 滚动显现动画 ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ==========================================================
   响应式适配
   ========================================================== */
/* 平板（≤1024px） */
@media (max-width: 1024px) {
  :root {
    --header-h: 84px;
    --brand-logo: 54px;
    --brand-title: 18px;
  }
  .hero-title { font-size: 38px; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions, .hero-points { justify-content: center; }
  .hero-poster { max-width: 480px; margin: 0 auto; }
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-img { max-width: 420px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .nav { gap: 18px; }
  .nav-link { font-size: 14px; }
}

/* 手机（≤768px） */
@media (max-width: 768px) {
  :root {
    --header-h: 74px;
    --brand-logo: 46px;
    --brand-title: 16px;
  }
  .pc-br { display: none; }
  .section { padding: 64px 0; }
  .hero { padding: calc(var(--header-h) + 48px) 0 64px; }
  .hero-title { font-size: 30px; }
  .hero-sub { font-size: 15px; }

  /* 汉堡菜单 */
  .menu-btn { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: 18px 22px 26px;
    gap: 4px;
    box-shadow: 0 16px 30px rgba(15, 44, 92, 0.15);
    transform: translateY(-130%);
    transition: transform 0.35s ease;
  }
  .nav.open { transform: none; }
  .nav-link { width: 100%; padding: 12px 4px; font-size: 15px; border-bottom: 1px solid var(--bg-alt); }
  .nav-link::after { display: none; }
  .nav-phone { margin-top: 14px; justify-content: center; width: 100%; }

  .section-title { font-size: 26px; }
  .service-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .product-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto 32px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .float-call { display: flex; }
  .footer { padding-bottom: 96px; }

  /* 企业宣传片 */
  .section-film { padding: 64px 0 68px; }
  .section-film .section-desc { font-size: 14.5px; padding: 0 6px; }
  .film-frame { padding: 8px; border-radius: 16px; }
  .film-play { width: 66px; height: 66px; }
  .film-play svg { width: 26px; height: 26px; }
  .film-badge { right: 10px; bottom: 9px; font-size: 11px; }
  .film-note { margin-top: 24px; font-size: 14px; padding: 0 12px; }
}

/* 小屏手机（≤400px） */
@media (max-width: 400px) {
  :root {
    --header-h: 68px;
    --brand-logo: 38px;
    --brand-title: 13.5px;
  }
  .brand { gap: 8px; }
  .hero-title { font-size: 26px; }
  .btn { padding: 12px 26px; width: 100%; text-align: center; }
}
