﻿/* ============================================================
   浙江上加电力科技有限公司 - 企业网站样式
   主色：深蓝 #0b5cad / 亮蓝 #1e88e5 / 点缀红 #e60012
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; font-size: 14px; color: #333; background: #fff; line-height: 1.6; }
a { color: #333; text-decoration: none; transition: color .2s; }
a:hover { color: #0b5cad; }
img { border: 0; vertical-align: middle; }
ul, ol, li { list-style: none; }
.wrap { width: 1200px; margin: 0 auto; }

/* ---------- 顶部信息栏 ---------- */
.topbar { background: #0b3a6b; color: #cdd9e8; font-size: 12px; }
.topbar-in { display: flex; justify-content: space-between; height: 32px; line-height: 32px; }
.tb-right a { color: #cdd9e8; margin: 0 6px; }
.tb-right a:hover { color: #fff; }
.tb-right i { font-style: normal; color: #4a6c8e; }

/* ---------- 头部 ---------- */
.header { background: #fff; border-bottom: 1px solid #eef1f5; }
.header-in { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
.logo img { display: block; height: 72px; width: auto; }
.head-right { text-align: right; }
.slogan { font-size: 18px; font-weight: bold; color: #0b5cad; letter-spacing: 2px; margin-bottom: 10px; }
.slogan::before { content: ""; display: inline-block; width: 6px; height: 18px; background: #e60012; margin-right: 8px; vertical-align: -2px; }
.search { display: inline-block; }
.search input { width: 260px; height: 36px; border: 2px solid #0b5cad; border-right: 0; padding: 0 12px; font-size: 13px; outline: none; float: left; color: #333; }
.search button { width: 76px; height: 36px; border: 0; background: #0b5cad; color: #fff; font-size: 14px; cursor: pointer; }
.search button:hover { background: #094a8f; }

/* ---------- 主导航 ---------- */
.nav { background: linear-gradient(90deg, #0b5cad 0%, #1e88e5 100%); box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.nav-list { display: flex; position: relative; z-index: 99; }
.nav-list > li { position: relative; }
.nav-list > li > a { display: block; padding: 0 34px; line-height: 50px; color: #fff; font-size: 16px; font-weight: bold; }
.nav-list > li:hover > a, .nav-list > li.on > a { background: #094a8f; color: #fff; }
.nav-list > li.has-sub .subnav { display: none; position: absolute; top: 50px; left: 0; width: 220px; background: #fff; border: 1px solid #e5e9f0; border-top: 3px solid #0b5cad; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.nav-list > li.has-sub:hover .subnav { display: block; }
.subnav a { display: block; padding: 9px 16px; color: #444; font-size: 13px; border-bottom: 1px dashed #edf0f5; }
.subnav a:hover { background: #f0f6ff; color: #0b5cad; padding-left: 20px; }

/* ---------- 首页轮播 ---------- */
.banner { position: relative; height: 420px; overflow: hidden; }
.banner-inner, .slide { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.slide { opacity: 0; transition: opacity .6s; background-size: cover; background-position: center; }
.slide.active { opacity: 1; z-index: 1; }
.slide-txt { position: relative; top: 120px; color: #fff; }
.slide-txt h2 { font-size: 38px; letter-spacing: 3px; margin-bottom: 14px; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.slide-txt p { font-size: 17px; margin-bottom: 24px; text-shadow: 0 1px 4px rgba(0,0,0,.3); }
.btn-more { display: inline-block; padding: 10px 34px; background: #e60012; color: #fff; font-size: 15px; border-radius: 3px; }
.btn-more:hover { background: #c40010; color: #fff; }
.banner-dots { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; z-index: 5; }
.banner-dots i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.5); margin: 0 6px; cursor: pointer; }
.banner-dots i.on { background: #fff; }

/* ---------- 内页横幅 ---------- */
.page-banner { height: 150px; background: linear-gradient(120deg, #0b3a6b 0%, #0b5cad 60%, #1e88e5 100%); color: #fff; }
.page-banner-in { padding-top: 40px; }
.page-banner h2 { font-size: 30px; letter-spacing: 4px; }
.page-banner p { margin-top: 10px; font-size: 13px; color: #cfe0f2; }
.page-banner a { color: #cfe0f2; }
.page-banner a:hover { color: #fff; }

/* ---------- 通用区块 ---------- */
.section { padding: 40px 0; }
.section-gray { background: #f5f7fa; }
.sec-title { text-align: center; margin-bottom: 26px; }
.sec-title h2 { font-size: 26px; color: #0b3a6b; letter-spacing: 3px; }
.sec-title p { font-size: 13px; color: #999; margin-top: 6px; letter-spacing: 1px; }
.sec-title h2::after { content: ""; display: block; width: 46px; height: 3px; background: #e60012; margin: 10px auto 0; }

/* 首页：产品中心 */
.pro-grid { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.pro-item { width: 25%; padding: 12px; }
.pro-card { background: #fff; border: 1px solid #eef1f5; transition: all .25s; }
.pro-card:hover { box-shadow: 0 6px 18px rgba(11,92,173,.15); transform: translateY(-4px); }
.pro-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.pro-card .p-name { padding: 12px 14px 6px; font-size: 15px; font-weight: bold; color: #222; }
.pro-card .p-name a:hover { color: #0b5cad; }
.pro-card .p-desc { padding: 0 14px 12px; font-size: 12px; color: #888; height: 38px; overflow: hidden; }

/* 分类图标块（首页） */
.cat-grid { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.cat-item { width: 20%; padding: 10px; text-align: center; }
.cat-card { background: #fff; border: 1px solid #eef1f5; padding: 20px 8px; transition: all .25s; }
.cat-card:hover { border-color: #0b5cad; box-shadow: 0 6px 16px rgba(11,92,173,.12); }
.cat-card img { width: 64px; height: 64px; margin-bottom: 10px; }
.cat-card h3 { font-size: 15px; color: #222; }
.cat-card p { font-size: 12px; color: #999; margin-top: 6px; }

/* 首页：关于我们 */
.about-row { display: flex; }
.about-pic { width: 46%; padding-right: 40px; }
.about-pic img { width: 100%; border-radius: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.about-txt { width: 54%; }
.about-txt h3 { font-size: 22px; color: #0b3a6b; margin-bottom: 14px; }
.about-txt p { text-indent: 2em; color: #555; margin-bottom: 10px; line-height: 1.9; }
.about-feats { margin-top: 16px; overflow: hidden; }
.about-feats li { float: left; width: 50%; padding: 8px 0; font-size: 14px; color: #333; }
.about-feats li b { color: #e60012; font-size: 18px; margin-right: 6px; }

/* 首页：新闻 */
.news-row { display: flex; margin: 0 -12px; }
.news-col { width: 50%; padding: 0 12px; }
.news-list li { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed #e5e9f0; padding: 11px 2px; }
.news-list li a { display: block; max-width: 78%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; color: #444; }
.news-list li a:hover { color: #0b5cad; }
.news-list li span { font-size: 12px; color: #999; }

/* 侧栏 + 内容布局（内页） */
.page-main { display: flex; padding: 30px 0 50px; }
.sidebar { width: 220px; margin-right: 24px; }
.sidebar .side-title { background: #0b5cad; color: #fff; font-size: 17px; padding: 12px 18px; letter-spacing: 2px; }
.side-menu { border: 1px solid #e5e9f0; border-top: 0; }
.side-menu a { display: block; padding: 11px 18px; font-size: 14px; color: #444; border-bottom: 1px dashed #edf0f5; }
.side-menu a.on, .side-menu a:hover { background: #f0f6ff; color: #0b5cad; padding-left: 24px; }
.side-contact { margin-top: 16px; border: 1px solid #e5e9f0; }
.side-contact .t { background: #0b3a6b; color: #fff; font-size: 15px; padding: 10px 18px; }
.side-contact .c { padding: 12px 18px; font-size: 13px; color: #555; line-height: 1.9; }
.side-contact .c b { color: #e60012; font-size: 16px; }
.content { flex: 1; min-width: 0; border: 1px solid #eef1f5; background: #fff; padding: 26px 30px; }
.content-title { font-size: 22px; color: #0b3a6b; padding-bottom: 14px; border-bottom: 2px solid #0b5cad; margin-bottom: 20px; letter-spacing: 2px; }
.content-body { font-size: 14px; color: #555; line-height: 1.9; }
.content-body p { text-indent: 2em; margin-bottom: 10px; }

/* 产品列表 */
.pro-list { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.pro-list .pro-item { width: 33.33%; padding: 10px; }
.pro-list .pro-card img { height: 180px; }
.pager { text-align: center; margin-top: 22px; }
.pager .page { display: inline-block; padding: 5px 12px; margin: 0 3px; border: 1px solid #d6dde6; background: #fff; color: #555; font-size: 13px; }
.pager .page.cur { background: #0b5cad; border-color: #0b5cad; color: #fff; }
.pager .page:hover { border-color: #0b5cad; color: #0b5cad; }

/* 新闻 */
.news-detail-title { font-size: 20px; color: #222; text-align: center; }
.news-meta { text-align: center; color: #999; font-size: 12px; margin: 10px 0 20px; }
.news-content { border-top: 1px dashed #e5e9f0; padding-top: 18px; line-height: 2; color: #555; }
.news-content p { text-indent: 2em; }

/* 资质证书 */
.honor-grid { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.honor-item { width: 33.33%; padding: 10px; }
.honor-card { border: 1px solid #eef1f5; background: #fff; text-align: center; padding: 14px; transition: all .25s; }
.honor-card:hover { box-shadow: 0 6px 16px rgba(11,92,173,.15); }
.honor-card img { width: 100%; height: 190px; object-fit: cover; }
.honor-card h4 { font-size: 14px; color: #333; margin-top: 10px; }
.honor-card p { font-size: 12px; color: #999; margin-top: 4px; }

/* 产品详情 */
.pro-detail { display: flex; }
.pro-detail .pd-img { width: 300px; }
.pro-detail .pd-img img { width: 100%; border: 1px solid #eef1f5; }
.pro-detail .pd-info { flex: 1; padding-left: 30px; }
.pro-detail .pd-info h3 { font-size: 20px; color: #0b3a6b; margin-bottom: 14px; }
.pd-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.pd-table td { border: 1px solid #e5e9f0; padding: 8px 12px; font-size: 13px; color: #555; }
.pd-table td.k { background: #f5f8fc; width: 90px; color: #333; text-align: center; }
.pd-spec { margin-top: 20px; }
.pd-spec h4 { font-size: 16px; color: #0b3a6b; margin-bottom: 10px; padding-left: 10px; border-left: 4px solid #e60012; }

/* 客户服务 */
.svc-item { display: flex; padding: 18px 0; border-bottom: 1px dashed #e5e9f0; }
.svc-icon { width: 56px; height: 56px; border-radius: 50%; background: #f0f6ff; color: #0b5cad; font-size: 26px; line-height: 56px; text-align: center; margin-right: 18px; flex-shrink: 0; }
.svc-item h4 { font-size: 16px; color: #0b3a6b; margin-bottom: 6px; }
.svc-item p { color: #666; font-size: 13px; line-height: 1.8; }

/* 招聘 */
.job-table { width: 100%; border-collapse: collapse; }
.job-table th { background: #0b5cad; color: #fff; padding: 10px; font-size: 14px; }
.job-table td { border: 1px solid #e5e9f0; padding: 10px 12px; font-size: 13px; color: #555; }
.job-table tr:hover td { background: #f5f8fc; }

/* 联系方式 */
.contact-grid { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.contact-item { width: 50%; padding: 12px; }
.contact-card { border: 1px solid #eef1f5; padding: 20px; }
.contact-card h4 { color: #0b5cad; font-size: 16px; margin-bottom: 10px; }
.contact-card p { color: #555; font-size: 13px; line-height: 1.9; }

/* 搜索 */
.search-result { color: #555; margin-bottom: 14px; }

/* 页脚 */
.footer { background: #0b3a6b; color: #b9c9dc; padding: 34px 0 0; }
.footer-in { display: flex; padding-bottom: 24px; }
.f-col { flex: 1; padding-right: 24px; }
.f-col h3 { color: #fff; font-size: 16px; margin-bottom: 14px; letter-spacing: 1px; }
.f-col h3::after { content: ""; display: block; width: 30px; height: 2px; background: #e60012; margin-top: 8px; }
.f-about p { font-size: 13px; line-height: 1.9; }
.f-col ul li { font-size: 13px; line-height: 2.1; }
.f-col a { color: #b9c9dc; }
.f-col a:hover { color: #fff; }
.copyright { background: #082d52; color: #8fa5bd; text-align: center; font-size: 12px; padding: 14px 0; }
.copyright a { color: #8fa5bd; }
.copyright a:hover { color: #fff; }

/* 响应式 */
@media (max-width: 1200px) {
  .wrap { width: 96%; }
  .pro-item { width: 33.33%; }
}
@media (max-width: 900px) {
  .nav-list > li > a { padding: 0 16px; font-size: 14px; }
  .pro-item { width: 50%; }
  .cat-item { width: 33.33%; }
  .about-row { display: block; }
  .about-pic { width: 100%; padding: 0 0 20px; }
  .about-txt { width: 100%; }
  .news-row { display: block; }
  .news-col { width: 100%; }
  .page-main { display: block; }
  .sidebar { width: 100%; margin: 0 0 20px; }
  .contact-item { width: 100%; }
  .footer-in { flex-wrap: wrap; }
  .f-col { width: 50%; padding-bottom: 16px; }
}
@media (max-width: 600px) {
  .pro-item { width: 100%; }
  .pro-list .pro-item { width: 100%; }
  .cat-item { width: 50%; }
  .honor-item { width: 50%; }
  .header-in { display: block; text-align: center; }
  .head-right { text-align: center; margin-top: 10px; }
  .search input { width: 60%; }
  .slide-txt h2 { font-size: 24px; }
  .pro-detail { display: block; }
  .pd-info { padding-left: 0; padding-top: 16px; }
}

/* 首页联系条 */
.contact-strip { background: linear-gradient(120deg, #0b3a6b, #0b5cad); color: #fff; padding: 26px 0; }
.contact-strip-in { display: flex; justify-content: space-between; align-items: center; }
.contact-strip h3 { font-size: 20px; letter-spacing: 2px; }
.contact-strip p { font-size: 13px; color: #cfe0f2; margin-top: 6px; }
.cs-right { text-align: right; }
.cs-right span { display: block; font-size: 12px; color: #cfe0f2; }
.cs-right b { display: block; font-size: 26px; color: #ffd200; margin: 2px 0 8px; letter-spacing: 1px; }
.cs-right .btn-more { background: #e60012; }

/* 多语言切换 */
.topbar-in { gap: 18px; }
.tb-left { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tb-right { white-space: nowrap; }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; margin-right: 4px; }
.lang-switch .lang-label { margin-right: 2px; }
.lang-switch a { margin: 0 2px; padding: 0 4px; border-radius: 2px; }
.lang-switch a.on { background: rgba(255,255,255,.18); color: #fff; font-weight: bold; }
html[dir="rtl"] .about-pic { padding-right: 0; padding-left: 40px; }
html[dir="rtl"] .sidebar { margin-right: 0; margin-left: 24px; }
html[dir="rtl"] .pro-detail .pd-info { padding-left: 0; padding-right: 30px; }

@media (max-width: 900px) {
  .topbar-in { height: auto; line-height: 1.8; padding: 6px 0; align-items: flex-start; }
  .tb-left { display: none; }
  .tb-right { margin-left: auto; }
  html[dir="rtl"] .sidebar { margin-left: 0; }
}
