/* 公共基础样式 - 瑞泉水处理全国营销站 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; font-size: 14px; line-height: 1.6; color: #333; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; transition: all .2s ease; }
a:hover { color: #1976d2; }
img { max-width: 100%; height: auto; display: block; border: 0; }
ul, ol { list-style: none; }
.container { width: 1200px; max-width: 96%; margin: 0 auto; }
.clearfix::after { content: ""; display: block; clear: both; }
.text-center { text-align: center; }
.fl { float: left; }
.fr { float: right; }

/* 通用按钮 */
.btn { display: inline-block; padding: 10px 26px; border-radius: 30px; font-size: 14px; border: 0; cursor: pointer; transition: all .25s; }
.btn-primary { background: linear-gradient(90deg, #1976d2, #00bcd4); color: #fff !important; box-shadow: 0 6px 18px rgba(25,118,210,.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(25,118,210,.35); color: #fff; }
.btn-outline { background: rgba(255,255,255,.1); color: #fff !important; border: 1px solid rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.25); color: #fff; }

/* 顶部导航 + Banner 一体 */
.top-bar { background: rgba(0,0,0,.35); color: #fff; font-size: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(6px); }
.top-bar a { color: #fff; margin: 0 6px; opacity: .9; }
.top-bar a:hover { color: #ffd54f; opacity: 1; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }

.header-banner { position: relative; min-height: 620px; overflow: hidden; color: #fff; }
.header-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.header-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,30,60,.55) 0%, rgba(0,20,50,.65) 100%); }
.header-banner .header-content { position: relative; z-index: 2; }

/* 导航 - 优化PC端 */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 18px; border-bottom: 1px solid rgba(255,255,255,.12); gap: 20px; }
.logo { display: flex; align-items: center; color: #fff; flex-shrink: 0; transition: transform .3s; }
.logo:hover { transform: scale(1.02); }
.logo .logo-main { font-size: 30px; font-weight: 800; letter-spacing: 2px; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.logo .logo-divider { font-size: 30px; margin: 0 14px; opacity: .7; font-weight: 300; }
.logo .logo-sub { font-size: 30px; font-weight: 500; letter-spacing: 1px; opacity: .95; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.nav-menu { display: flex; align-items: center; flex: 1; justify-content: center; gap: 4px; }
.nav-menu li { position: relative; }
.nav-menu li a { display: block; padding: 10px 18px; color: #fff; font-size: 15px; font-weight: 500; letter-spacing: 1px; transition: all .25s; border-radius: 4px; }
.nav-menu li a:hover, .nav-menu li a.active { color: #fff; background: var(--nav-hover-bg, rgba(255,255,255,.12)); }
.nav-menu li a::after { content: ""; display: block; width: 0; height: 2px; background: var(--nav-underline, #ffd54f); transition: width .3s; margin: 0 auto; margin-top: 4px; }
.nav-menu li a:hover::after, .nav-menu li a.active::after { width: 60%; }
.nav-phone { font-size: 22px; font-weight: 700; color: #ffd54f; text-align: right; flex-shrink: 0; padding: 6px 14px; border-left: 1px solid rgba(255,255,255,.18); text-shadow: 0 2px 6px rgba(0,0,0,.3); }
.nav-phone small { display: block; font-size: 12px; font-weight: 400; color: rgba(255,255,255,.85); margin-bottom: 2px; letter-spacing: 1px; }

/* Banner主体 */
.banner-main { padding: 70px 0 60px; text-align: center; }
.banner-title { font-size: 46px; font-weight: 800; letter-spacing: 2px; line-height: 1.3; text-shadow: 0 4px 12px rgba(0,0,0,.4); }
.banner-subtitle { font-size: 20px; margin-top: 18px; opacity: .9; }
.banner-keywords { margin: 30px 0; }
.banner-keywords span { display: inline-block; margin: 4px 6px; padding: 6px 16px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); border-radius: 24px; font-size: 14px; backdrop-filter: blur(6px); }
.banner-actions { margin-top: 30px; }
.banner-actions .btn { margin: 0 8px; }

/* 动画 */
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .8s ease both; }
.float-y { animation: floatY 4s ease-in-out infinite; }

/* 板块通用 */
.section { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 34px; font-weight: 800; color: #1a237e; position: relative; display: inline-block; padding: 0 24px; }
.section-title h2::before, .section-title h2::after { content: ""; position: absolute; top: 50%; width: 60px; height: 3px; background: linear-gradient(90deg, #1976d2, #00bcd4); }
.section-title h2::before { right: 100%; border-radius: 2px 0 0 2px; }
.section-title h2::after { left: 100%; border-radius: 0 2px 2px 0; background: linear-gradient(90deg, #00bcd4, #1976d2); }
.section-title p { color: #666; margin-top: 12px; font-size: 16px; }

/* 公司介绍 */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-img { border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.about-text h3 { font-size: 26px; color: #1976d2; margin-bottom: 16px; }
.about-text p { color: #555; margin-bottom: 12px; line-height: 1.9; }
.about-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; }
.feature-item { background: #fff; padding: 30px 20px; text-align: center; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.06); transition: all .3s; }
.feature-item:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(25,118,210,.18); }
.feature-item .icon { width: 64px; height: 64px; line-height: 64px; border-radius: 50%; background: linear-gradient(135deg, #1976d2, #00bcd4); color: #fff; font-size: 28px; margin: 0 auto 14px; }
.feature-item h4 { font-size: 18px; color: #1a237e; margin-bottom: 8px; }
.feature-item p { color: #777; font-size: 13px; }

/* 优势板块 */
.advantage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.adv-card { background: #fff; border-radius: 12px; padding: 30px 24px; box-shadow: 0 6px 20px rgba(0,0,0,.06); border-top: 4px solid #1976d2; transition: all .3s; }
.adv-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(0,0,0,.12); }
.adv-card h4 { font-size: 20px; color: #1a237e; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.adv-card h4 span.num { display: inline-block; width: 36px; height: 36px; line-height: 36px; text-align: center; border-radius: 50%; background: #1976d2; color: #fff; font-size: 16px; }
.adv-card p { color: #666; line-height: 1.8; }

/* 产品展示 */
.product-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.product-tabs .tab { padding: 8px 20px; background: #fff; border: 1px solid #ddd; border-radius: 24px; cursor: pointer; font-size: 14px; transition: all .2s; }
.product-tabs .tab.active, .product-tabs .tab:hover { background: linear-gradient(90deg, #1976d2, #00bcd4); color: #fff; border-color: transparent; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.06); transition: all .3s; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(0,0,0,.12); }
.product-card .p-img { width: 100%; height: 200px; overflow: hidden; position: relative; }
.product-card .p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .p-img img { transform: scale(1.08); }
.product-card .p-body { padding: 14px; }
.product-card .p-body h4 { font-size: 15px; color: #1a237e; margin-bottom: 8px; line-height: 1.4; min-height: 42px; }
.product-card .p-body p { color: #888; font-size: 12px; line-height: 1.6; min-height: 56px; }
.product-card .p-tag { display: inline-block; padding: 2px 8px; background: #e3f2fd; color: #1976d2; border-radius: 4px; font-size: 11px; margin-top: 6px; }

/* 应用领域 */
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.app-item { position: relative; border-radius: 12px; overflow: hidden; height: 180px; cursor: pointer; }
.app-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.app-item:hover img { transform: scale(1.1); }
.app-item .app-text { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.7), rgba(0,0,0,.1)); display: flex; align-items: flex-end; padding: 16px; color: #fff; font-size: 16px; font-weight: 600; }

/* 工艺流程 */
.process-flow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: center; }
.process-step { text-align: center; padding: 18px 10px; background: #fff; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,.06); position: relative; }
.process-step .p-num { width: 40px; height: 40px; line-height: 40px; background: linear-gradient(135deg, #1976d2, #00bcd4); color: #fff; border-radius: 50%; margin: 0 auto 10px; font-weight: 700; }
.process-step h5 { font-size: 14px; color: #1a237e; margin-bottom: 6px; }
.process-step p { font-size: 12px; color: #888; }
.process-step::after { content: "›"; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); color: #1976d2; font-size: 24px; font-weight: 700; }
.process-step:last-child::after { display: none; }

/* FAQ */
.faq-list { max-width: 980px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: 8px; margin-bottom: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.05); overflow: hidden; }
.faq-q { padding: 16px 22px; cursor: pointer; font-weight: 600; color: #1a237e; display: flex; justify-content: space-between; 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; }
.faq-q .toggle { font-size: 22px; color: #1976d2; transition: transform .3s; }
.faq-item.active .faq-q .toggle { transform: rotate(45deg); }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: all .35s; color: #555; line-height: 1.8; }
.faq-item.active .faq-a { padding: 0 22px 18px 60px; max-height: 500px; }
.faq-a::before { content: "A"; display: inline-block; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; background: #ff7043; color: #fff; font-size: 13px; margin-right: 12px; float: left; margin-top: 2px; }

/* 新闻/案例 */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.06); transition: all .3s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.12); }
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-card .n-body { padding: 18px; }
.news-card .n-date { color: #999; font-size: 12px; }
.news-card h4 { font-size: 17px; color: #1a237e; margin: 8px 0; line-height: 1.5; }
.news-card p { color: #777; font-size: 13px; line-height: 1.7; }

/* 联系板块 */
.contact-section { background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%); color: #fff; }
.contact-section .section-title h2 { color: #fff; }
.contact-section .section-title p { color: rgba(255,255,255,.7); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
.contact-card { background: rgba(255,255,255,.08); padding: 30px 24px; border-radius: 12px; text-align: center; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.12); }
.contact-card .icon { font-size: 32px; margin-bottom: 12px; color: #ffd54f; }
.contact-card h4 { font-size: 18px; margin-bottom: 12px; }
.contact-card p { color: rgba(255,255,255,.85); line-height: 1.9; font-size: 14px; }
.qrcode { width: 140px; height: 140px; margin: 0 auto 10px; border-radius: 8px; overflow: hidden; background: #fff; padding: 6px; }
.qrcode img { width: 100%; height: 100%; object-fit: contain; }

/* 友情链接 */
.friend-links { padding: 40px 0; background: #f5f7fa; }
.friend-links h3 { font-size: 18px; color: #1a237e; margin-bottom: 16px; text-align: center; }
.friend-links .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; }
.friend-links .links a { color: #555; font-size: 13px; }
.friend-links .links a:hover { color: #1976d2; }

/* 底部 */
.footer { background: #0d1b3d; color: #c5cae9; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; margin-bottom: 18px; font-size: 16px; }
.footer p, .footer li { font-size: 13px; line-height: 2; color: #9fa8da; }
.footer a { color: #9fa8da; }
.footer a:hover { color: #ffd54f; }
.footer .city-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 10px; }
.footer-bottom { text-align: center; padding-top: 24px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: #7986cb; }
.footer-bottom a { color: #7986cb; }
.footer-bottom a:hover { color: #ffd54f; }

/* 浮动工具 */
.float-tools { position: fixed; right: 16px; bottom: 80px; z-index: 99; display: flex; flex-direction: column; gap: 8px; }
.float-tools a { width: 56px; height: 56px; line-height: 1.2; text-align: center; padding-top: 8px; background: #1976d2; color: #fff !important; border-radius: 50%; font-size: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.18); transition: all .2s; }
.float-tools a:hover { transform: scale(1.08); background: #0d47a1; color: #fff !important; }
.float-tools a.weixin { background: #07c160; }
.float-tools a.phone { background: #ff5722; }
.float-tools a.top { background: #455a64; }

/* 弹窗 */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 999; display: none; align-items: center; justify-content: center; }
.modal.show { display: flex; }
.modal-content { background: #fff; border-radius: 12px; padding: 30px; max-width: 420px; width: 92%; text-align: center; position: relative; }
.modal-content .close { position: absolute; top: 8px; right: 14px; font-size: 24px; cursor: pointer; color: #999; }
.modal-content img { width: 220px; height: 220px; margin: 0 auto 12px; }

/* 响应式 */
@media (max-width: 980px) {
  .banner-title { font-size: 30px; }
  .nav-menu { display: none; }
  .about-grid, .about-features, .advantage-grid, .app-grid, .news-grid, .contact-grid, .footer-grid, .product-grid { grid-template-columns: 1fr 1fr; }
  .process-flow { grid-template-columns: repeat(2, 1fr); }
  .process-step::after { display: none; }
  .logo .logo-main, .logo .logo-divider, .logo .logo-sub { font-size: 22px; }
  .nav-phone { font-size: 16px; }
}
@media (max-width: 600px) {
  .about-grid, .about-features, .advantage-grid, .app-grid, .news-grid, .contact-grid, .footer-grid, .product-grid { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .section-title h2 { font-size: 24px; }
  .banner-title { font-size: 22px; }
  .banner-subtitle { font-size: 14px; }
  .footer .city-links { grid-template-columns: repeat(3, 1fr); }
}

/* 雪花/特效背景 */
.snow, .rain, .leaf, .wave { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.snow span, .rain span, .leaf span { position: absolute; color: #fff; opacity: .6; animation-timing-function: linear; animation-iteration-count: infinite; }
.snow span { animation: snowFall 12s linear infinite; }
@keyframes snowFall { 0% { transform: translateY(-10px); } 100% { transform: translateY(560px); } }
.rain span { animation: rainFall 1s linear infinite; color: rgba(255,255,255,.5); }
@keyframes rainFall { 0% { transform: translateY(-20px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(560px); opacity: 0; } }
.leaf span { font-size: 18px; animation: leafFall 8s linear infinite; }
@keyframes leafFall { 0% { transform: translateY(-30px) rotate(0); opacity: 0; } 20% { opacity: .8; } 100% { transform: translateY(560px) rotate(360deg); opacity: 0; } }
.wave::before, .wave::after { content: ""; position: absolute; left: -50%; width: 200%; height: 80px; background: rgba(255,255,255,.18); border-radius: 40%; animation: waveMove 8s linear infinite; }
.wave::after { bottom: -20px; opacity: .5; animation-duration: 12s; }
@keyframes waveMove { 0% { transform: translateX(0) rotate(0); } 100% { transform: translateX(50%) rotate(360deg); } }

/* 粒子背景 */
.particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.particles span { position: absolute; width: 4px; height: 4px; background: rgba(255,255,255,.6); border-radius: 50%; animation: particleFloat 6s linear infinite; }
@keyframes particleFloat { 0% { transform: translate(0,0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(60px, -200px); opacity: 0; } }
