/* ===== 瑞泉水处理 - 基础样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", "Heiti SC", sans-serif; color: #333; line-height: 1.7; font-size: 14px; background: #fff; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: #1976d2; }
img { max-width: 100%; display: block; border: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5 { font-weight: 600; color: #1a2a3a; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.clearfix::after { content: ""; display: block; clear: both; }
.fl { float: left; } .fr { float: right; }

/* ===== 导航+Banner 一体区域 ===== */
.topbar { background: rgba(15, 30, 50, 0.85); color: #cfd8e3; font-size: 13px; padding: 6px 0; }
.topbar a { color: #cfd8e3; margin: 0 8px; }
.topbar a:hover { color: #fff; }
.topbar .welcome { margin-right: 18px; }

.header-banner {
  position: relative;
  background: linear-gradient(135deg, #0a3d6b 0%, #0e6ba8 50%, #1e88c7 100%);
  color: #fff;
  overflow: hidden;
}
.header-banner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(120,200,255,.25), transparent 50%);
  animation: bgFlow 12s ease-in-out infinite;
}
@keyframes bgFlow {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(2%,-2%) scale(1.05); }
}
.bubble {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.5), rgba(120,200,255,.1));
  animation: rise linear infinite;
  pointer-events: none;
}
@keyframes rise {
  0% { transform: translateY(100%) scale(.3); opacity: 0; }
  20% { opacity: .8; }
  100% { transform: translateY(-200%) scale(1); opacity: 0; }
}
.header-inner { position: relative; z-index: 2; }
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0 10px;
}
.logo { display: flex; align-items: center; }
.logo .icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #4fc3f7, #0288d1);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff; font-weight: bold;
  box-shadow: 0 4px 20px rgba(79,195,247,.5);
  margin-right: 14px;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(79,195,247,.5); }
  50% { box-shadow: 0 4px 30px rgba(79,195,247,.9); }
}
.logo-text { display: flex; flex-direction: column; }
.logo-text .main {
  font-size: 26px; font-weight: 800; letter-spacing: 1px;
  display: flex; align-items: center;
  background: linear-gradient(90deg, #fff, #b3e5fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-text .main .sep { font-size: 22px; margin: 0 10px; opacity: .8; -webkit-text-fill-color: #fff; color: #fff; }
.logo-text .main .sub { font-size: 22px; font-weight: 600; opacity: .95; -webkit-text-fill-color: #fff; color: #fff; }
.logo-text .slogan { font-size: 12px; color: #b3e5fc; letter-spacing: 4px; margin-top: 4px; }

.contact-mini { text-align: right; font-size: 13px; }
.contact-mini .phone {
  font-size: 22px; color: #ffd54f; font-weight: 700;
  display: flex; align-items: center; justify-content: flex-end;
}
.contact-mini .phone::before { content: "☎"; margin-right: 6px; }

.nav-bar {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.15);
  border-bottom: 1px solid rgba(255,255,255,.15);
  margin-top: 8px;
}
.nav-bar ul { display: flex; flex-wrap: wrap; justify-content: center; }
.nav-bar li { position: relative; }
.nav-bar li a {
  display: block; padding: 14px 22px; color: #fff;
  font-size: 15px; font-weight: 500; position: relative; transition: all .3s;
}
.nav-bar li a::after {
  content: ""; position: absolute; bottom: 0; left: 50%;
  width: 0; height: 3px; background: #ffd54f;
  transition: all .3s; transform: translateX(-50%);
}
.nav-bar li a:hover::after, .nav-bar li a.active::after { width: 60%; }
.nav-bar li a:hover { color: #ffd54f; }

.banner-content {
  padding: 50px 0 60px; text-align: center; position: relative; z-index: 2;
}
.banner-content h1 {
  font-size: 40px; color: #fff; margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
  animation: fadeInUp .8s ease;
}
.banner-content h1 span { color: #ffd54f; }
.banner-content .sub-title {
  font-size: 18px; color: #e1f5fe; margin-bottom: 30px;
  letter-spacing: 1px; animation: fadeInUp 1s ease;
}
.banner-content .keywords {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  animation: fadeInUp 1.2s ease;
}
.banner-content .keywords span {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  padding: 6px 16px; border-radius: 20px; font-size: 13px;
  backdrop-filter: blur(5px);
  transition: all .3s;
}
.banner-content .keywords span:hover { background: #ffd54f; color: #0a3d6b; transform: translateY(-2px); }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 板块通用 ===== */
.section { padding: 60px 0; }
.section-title {
  text-align: center; margin-bottom: 40px;
}
.section-title h2 {
  font-size: 32px; color: #0a3d6b; margin-bottom: 12px;
  position: relative; display: inline-block;
}
.section-title h2::before, .section-title h2::after {
  content: ""; position: absolute; top: 50%;
  width: 60px; height: 2px; background: linear-gradient(90deg, transparent, #1976d2);
}
.section-title h2::before { right: 100%; margin-right: 20px; }
.section-title h2::after { left: 100%; margin-left: 20px; background: linear-gradient(90deg, #1976d2, transparent); }
.section-title p { color: #666; font-size: 15px; letter-spacing: 1px; }

.bg-light { background: #f5f9fc; }
.bg-gradient { background: linear-gradient(180deg, #f5f9fc 0%, #fff 100%); }

/* ===== 关于我们 ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-img {
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(10,61,107,.15);
  position: relative; height: 360px;
  background: linear-gradient(135deg, #0a3d6b, #1976d2);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 80px;
}
.about-img::after {
  content: "瑞泉"; position: absolute;
  font-size: 80px; font-weight: 800;
  color: rgba(255,255,255,.15); letter-spacing: 10px;
}
.about-text h3 {
  font-size: 26px; color: #0a3d6b; margin-bottom: 18px;
  padding-left: 14px; border-left: 4px solid #1976d2;
}
.about-text p { margin-bottom: 14px; color: #555; line-height: 1.9; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }
.about-stats .item { text-align: center; padding: 18px 10px; background: #f0f7ff; border-radius: 8px; }
.about-stats .num { font-size: 28px; color: #1976d2; font-weight: 800; }
.about-stats .label { font-size: 13px; color: #666; margin-top: 4px; }

/* ===== 产品展示 ===== */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.tabs .tab {
  padding: 8px 18px; border: 1px solid #1976d2; color: #1976d2;
  border-radius: 30px; cursor: pointer; font-size: 14px;
  transition: all .3s;
}
.tabs .tab.active, .tabs .tab:hover { background: #1976d2; color: #fff; }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  transition: all .3s; cursor: pointer;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(25,118,210,.18); }
.product-card .img {
  width: 100%; height: 200px; overflow: hidden; background: #f0f4f8;
  display: flex; align-items: center; justify-content: center;
}
.product-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .img img { transform: scale(1.08); }
.product-card .info { padding: 16px; }
.product-card .info h4 {
  font-size: 15px; color: #1a2a3a; margin-bottom: 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.product-card .info p {
  font-size: 12px; color: #888; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ===== 优势板块 ===== */
.advantages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.adv-card {
  text-align: center; padding: 30px 18px;
  background: #fff; border-radius: 10px; border: 1px solid #eef2f6;
  transition: all .3s;
}
.adv-card:hover { border-color: #1976d2; transform: translateY(-4px); box-shadow: 0 12px 30px rgba(25,118,210,.12); }
.adv-card .icon {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 32px; color: #1976d2; margin-bottom: 14px;
}
.adv-card h4 { font-size: 17px; margin-bottom: 10px; }
.adv-card p { font-size: 13px; color: #777; }

/* ===== 应用场景 ===== */
.scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scene-card {
  position: relative; height: 220px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #0a3d6b, #1976d2);
  display: flex; align-items: flex-end; padding: 20px;
  color: #fff; cursor: pointer;
}
.scene-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.7));
}
.scene-card span { position: relative; z-index: 2; font-size: 18px; font-weight: 600; }

/* ===== 工艺流程 ===== */
.process { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.process-step {
  flex: 1; min-width: 130px; text-align: center; padding: 22px 10px;
  background: linear-gradient(180deg, #f0f7ff, #fff);
  border-radius: 8px; position: relative; border: 1px solid #e3f2fd;
}
.process-step::after {
  content: "→"; position: absolute; right: -16px; top: 50%;
  transform: translateY(-50%); color: #1976d2; font-size: 20px; font-weight: 700;
}
.process-step:last-child::after { display: none; }
.process-step .num {
  display: inline-block; width: 36px; height: 36px; line-height: 36px;
  background: #1976d2; color: #fff; border-radius: 50%;
  font-weight: 700; margin-bottom: 8px;
}
.process-step h5 { font-size: 15px; margin-bottom: 4px; color: #0a3d6b; }
.process-step p { font-size: 12px; color: #888; }

/* ===== FAQ ===== */
.faq-list { max-width: 980px; margin: 0 auto; }
.faq-item {
  background: #fff; border-radius: 8px; margin-bottom: 14px;
  border: 1px solid #eef2f6; overflow: hidden; transition: all .3s;
}
.faq-item:hover { border-color: #1976d2; }
.faq-q {
  padding: 18px 24px; cursor: pointer; position: relative;
  font-weight: 600; color: #0a3d6b; font-size: 15px;
  display: flex; align-items: center;
}
.faq-q::before {
  content: "Q"; display: inline-block; width: 26px; height: 26px;
  line-height: 26px; text-align: center; border-radius: 50%;
  background: #1976d2; color: #fff; font-size: 13px;
  margin-right: 12px; font-weight: 700; flex-shrink: 0;
}
.faq-q::after {
  content: "+"; position: absolute; right: 24px; top: 50%;
  transform: translateY(-50%); font-size: 22px; color: #1976d2;
  transition: transform .3s;
}
.faq-item.active .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a {
  padding: 0 24px; max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .3s;
  color: #555; line-height: 1.9; padding-left: 62px; padding-right: 24px;
}
.faq-item.active .faq-a { max-height: 400px; padding-bottom: 18px; padding-top: 4px; }

/* ===== 友链/产品线 ===== */
.link-section { background: #0a3d6b; color: #cfd8e3; padding: 50px 0; }
.link-section h3 { color: #fff; font-size: 22px; text-align: center; margin-bottom: 30px; position: relative; }
.link-section h3::after {
  content: ""; display: block; width: 50px; height: 3px;
  background: #ffd54f; margin: 12px auto 0;
}
.link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.link-block h4 { color: #ffd54f; margin-bottom: 14px; font-size: 15px; }
.link-block ul li { padding: 4px 0; font-size: 13px; }
.link-block ul li a:hover { color: #ffd54f; padding-left: 4px; }

/* ===== 联系我们 ===== */
.contact-section { background: linear-gradient(135deg, #0a3d6b, #1976d2); color: #fff; padding: 60px 0; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.contact-info h2 { color: #fff; font-size: 30px; margin-bottom: 10px; }
.contact-info .lead { color: #b3e5fc; margin-bottom: 30px; }
.contact-list .item { display: flex; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-list .item .ico {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.12); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-right: 14px;
}
.contact-list .item .lbl { font-size: 13px; color: #b3e5fc; }
.contact-list .item .val { font-size: 15px; color: #fff; margin-top: 2px; word-break: break-all; }
.contact-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px; padding: 30px; text-align: center;
  backdrop-filter: blur(10px);
}
.qrcode { width: 180px; height: 180px; background: #fff; border-radius: 8px; margin: 0 auto 14px; overflow: hidden; }
.qrcode img { width: 100%; height: 100%; object-fit: contain; }
.qrcode-text { font-size: 14px; color: #ffd54f; margin-bottom: 18px; }
.call-btn {
  display: inline-block; padding: 12px 30px;
  background: linear-gradient(90deg, #ffd54f, #ffb300); color: #0a3d6b;
  font-weight: 700; border-radius: 30px; font-size: 15px;
  transition: all .3s;
}
.call-btn:hover { transform: scale(1.05); color: #0a3d6b; box-shadow: 0 8px 20px rgba(255,213,79,.4); }

/* ===== 底部 ===== */
.footer { background: #06223e; color: #8094a8; padding: 30px 0 20px; text-align: center; font-size: 13px; line-height: 1.9; }
.footer a { color: #8094a8; }
.footer a:hover { color: #ffd54f; }
.footer .links { margin-bottom: 14px; }
.footer .links a { margin: 0 8px; }
.footer .copyright { border-top: 1px solid #1a2f48; padding-top: 18px; margin-top: 14px; }
.footer .copyright a.beian::before { content: "🔒"; margin-right: 4px; }

/* ===== 返回顶部 ===== */
.back-top {
  position: fixed; right: 20px; bottom: 30px; width: 46px; height: 46px;
  background: #1976d2; color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transform: translateY(20px);
  transition: all .3s; z-index: 99; font-size: 20px;
  box-shadow: 0 6px 20px rgba(25,118,210,.4);
}
.back-top.show { opacity: 1; transform: translateY(0); }
.back-top:hover { background: #ffd54f; color: #0a3d6b; }

/* ===== 浮动咨询 ===== */
.float-consult {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
  z-index: 99; display: flex; flex-direction: column; gap: 10px;
}
.float-consult a {
  width: 56px; height: 56px; border-radius: 50%;
  background: #1976d2; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11px; box-shadow: 0 4px 16px rgba(25,118,210,.3);
  transition: all .3s; text-align: center;
}
.float-consult a:hover { transform: scale(1.1); background: #ffd54f; color: #0a3d6b; }
.float-consult a .ic { font-size: 18px; margin-bottom: 2px; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .advantages { grid-template-columns: repeat(2, 1fr); }
  .scenes { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: 1fr; }
  .banner-content h1 { font-size: 28px; }
  .section-title h2 { font-size: 24px; }
  .section-title h2::before, .section-title h2::after { display: none; }
  .float-consult { display: none; }
}
@media (max-width: 640px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .advantages { grid-template-columns: 1fr; }
  .scenes { grid-template-columns: 1fr; }
  .nav-bar li a { padding: 10px 12px; font-size: 13px; }
  .banner-content h1 { font-size: 22px; }
  .banner-content .sub-title { font-size: 14px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .process-step::after { display: none; }
  .logo-text .main { font-size: 18px; }
  .logo-text .main .sep, .logo-text .main .sub { font-size: 16px; }
  .contact-mini { display: none; }
}
