/* =========================================================
   OSPOWER 官网 - 公共样式
   设计稿还原：蓝色科技风
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
  font-size: 15px;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 40px;
}
.nav-logo { margin-right: 48px; display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 36px; width: auto; }
.nav-menu {
  display: flex;
  gap: 32px;
  flex: 1;
  align-items: center;
}
.nav-menu a {
  font-size: 14px;
  color: #333;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
  padding: 20px 0;
}
.nav-menu a:hover { color: #1A56C0; }
.nav-menu a.active { color: #1A56C0; font-weight: 600; }
.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 3px;
  background: #1A56C0;
  border-radius: 2px;
}
/* 语言切换 - 分段控件 */
.lang-switch {
  display: flex;
  align-items: center;
  background: rgba(26,86,192,0.1);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}
.lang-switch a {
  padding: 5px 14px;
  font-size: 13px;
  border-radius: 16px;
  color: #666;
  transition: all 0.2s;
  cursor: pointer;
}
.lang-switch a:hover { color: #1A56C0; }
.lang-switch a.active {
  background: linear-gradient(135deg, #1A56C0, #123E8A);
  color: #fff;
  box-shadow: 0 2px 6px rgba(26,86,192,0.3);
}

/* ===== 页面首屏（内页横幅，贴近设计稿：左对齐 + 底部圆点） ===== */
.page-hero {
  margin-top: 64px;
  position: relative;
  height: 360px;
  padding: 0;
  background: #0B1628;
  text-align: left;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.page-hero .ph-inner { position: relative; z-index: 2; width: 100%; }
.page-hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  letter-spacing: 1px;
  max-width: 820px;
}
.page-hero .ph-sub { display: none; }
.page-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 5;
  background: rgba(8, 16, 32, 0.45);
  padding: 8px 18px;
  border-radius: 20px;
}
.page-hero-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.85);
  background: transparent;
}
.page-hero-dots span.active {
  background: #2F6FE8;
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(47,111,232,0.35);
}

/* ===== 通用区块 ===== */
.section { padding: 88px 0; }
.section.alt { background: #F7F9FC; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-title { 
  font-size: 34px;
  font-weight: 800;
  color: #0D2B5C;
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.section-title::before,
.section-title::after {
  content: '';
  width: 14px; height: 14px;
  border: 2px solid #A8C4EE;
  background: transparent;
  transform: rotate(45deg);
  flex-shrink: 0;
}
/* 解决方案：标题后方浅蓝色横杠 */
.section-title.bar {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 10px;
  isolation: isolate;
}
.section-title.bar::before,
.section-title.bar::after { display: none; }
.section-title.bar .bar-mark {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  width: 118%;
  height: 12px;
  background: #C5DCFF;
  z-index: -1;
  border-radius: 1px;
}
/* 技术页：标题下方短横线 */
.section-title.line {
  display: block;
}
.section-title.line::before,
.section-title.line::after { display: none; }
.section-title.line::after {
  content: '';
  display: block;
  width: 42px;
  height: 3px;
  background: #8EC0F5;
  margin: 14px auto 0;
  transform: none;
  border: none;
}
.section-kicker {
  margin-top: 12px;
  font-size: 16px;
  color: #5A6A80;
  font-weight: 500;
}
.section-subtitle {
  margin-top: 16px;
  font-size: 14px;
  color: #666;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.9;
}
/* 小节标题：左对齐 + 短蓝线（产品优势 / 技术优势 / 方案卓越性） */
.sub-hd {
  font-size: 20px;
  font-weight: 800;
  color: #0D2B5C;
  margin: 8px 0 22px;
}
.sub-hd::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: #8EC0F5;
  margin-top: 8px;
  border-radius: 2px;
}
.sub-hd.center { text-align: center; }
.sub-hd.center::after { margin-left: auto; margin-right: auto; }

/* ===== 卡片通用 ===== */
.card {
  background: #F2F6FC;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(26,86,192,0.15); }
.card-title {
  background: linear-gradient(135deg, #2458B8, #174290);
  color: #fff;
  padding: 14px 20px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}
.card-body { padding: 20px 22px; font-size: 13px; color: #444; line-height: 1.8; }

/* ===== 页脚 ===== */
.footer {
  background: #060E1E;
  color: rgba(255,255,255,0.6);
  padding: 50px 40px 28px;
}
.footer-inner { max-width: 1920px; margin: 0 auto; }
.footer-top {
  display: flex;
  gap: 28px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.footer-col { flex: 1; min-width: 80px; }
.footer-col:first-child { flex: 0 0 210px; flex-shrink: 0; }
.footer-col h4 {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col ul li {
  font-size: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: color 0.2s;
}
.footer-col ul li a { transition: color 0.2s; }
.footer-col ul li a:hover { color: #4A8AE0; }
.footer-logo img { height: 30px; width: auto; margin-bottom: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0 8px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
}
.footer-bottom .site-icon {
  display: inline-block;
  height: 20px;
  vertical-align: -4px;
  margin-right: 8px;
}
.footer-bottom .site-icon img { height: 20px; width: auto; display: block; filter: none; }
.footer-bottom .sep { margin: 0 14px; opacity: 0.35; }

/* ===== 响应式 ===== */
@media (max-width: 1500px) {
  .nav-menu { gap: 22px; }
  .nav-logo { margin-right: 32px; }
}
@media (max-width: 1320px) {
  .nav-menu { gap: 14px; }
  .nav-menu a { font-size: 13px; }
  .lang-switch a { padding: 5px 10px; }
}
@media (max-width: 1100px) {
  .navbar { padding: 0 20px; }
  .nav-menu { display: none; }
  .container { padding: 0 24px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 26px; }
  .page-hero { height: 260px; }
  .page-hero h1 { font-size: 28px; }
  .footer-top { gap: 24px; }
  .footer-col { min-width: 140px; flex: none; }
  .footer-col:first-child { flex: 0 0 170px; }
}
