/* ============================================================
   小象眼视光 · 全站主题样式 eye.css
   主色：眼视光专业蓝 #2C7FBF ｜ 强调：预约橙 #FF8F00
   ============================================================ */
:root {
  --primary: #2C7FBF;
  --primary-dark: #1B5E8A;
  --primary-light: #E8F3FB;
  --accent: #FF8F00;
  --cyan: #4FC3F7;
  --text-dark: #2D3748;
  --text-mid: #4A5568;
  --text-light: #718096;
  --bg-light: #F5F9FC;
  --border: #E6EBF0;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-hover: 0 12px 36px rgba(44,127,191,0.15);
}

/* ===== 全局布局：内容区 1600px，header 固定补偿 ===== */
body { padding-top: 76px; }
.container {
  max-width: 1600px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ===== 头部导航 ===== */
.header {
  z-index: 999;
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.header .container { display: flex; align-items: center; height: 76px; }
.header .logo { margin: 0; }
.header .logo a { display: block; height: 50px; width: 180px; background-size: contain !important; background-position: left center !important; }
.header .nav { margin-left: auto; }
.header .nav>ul>li { position: relative; float: left; }
.header .nav>ul>li>a {
  display: block;
  padding: 0 22px;
  line-height: 76px;
  font-size: 16px;
  color: var(--text-dark);
  transition: color .3s;
}
.header .nav>ul>li>a:hover,
.header .nav>ul>li.active>a { color: var(--primary); }
.header .nav>ul>li>ul {
  display: none;
  position: absolute;
  top: 76px;
  left: 0;
  min-width: 140px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}
.header .nav>ul>li:hover>ul { display: block; }
.header .nav>ul>li>ul>li>a {
  display: block;
  padding: 12px 22px;
  font-size: 14px;
  color: var(--text-mid);
  transition: all .3s;
}
.header .nav>ul>li>ul>li>a:hover {
  color: var(--primary);
  background: var(--primary-light);
  padding-left: 26px;
}
.navBtn { display: none; }

/* ===== 移动端导航 ===== */
@media screen and (max-width: 991px) {
  .navBtn {
    display: block;
    margin-left: auto;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
  }
  .navBtn .line {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    height: 2px;
    background: #2D3748;
    transform: translateY(-50%);
    transition: all .3s;
  }
  .navBtn .line:before, .navBtn .line:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #2D3748;
    transition: all .3s;
  }
  .navBtn .line:before { top: -8px; }
  .navBtn .line:after { top: 8px; }
  .header .nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    overflow-y: auto;
    padding: 20px;
  }
  .header .nav.show { display: block; }
  .header .nav>ul>li { float: none; }
  .header .nav>ul>li>a { line-height: 50px; padding: 0; font-size: 16px; border-bottom: 1px solid #F0F4F8; }
  .header .nav>ul>li>ul {
    display: none;
    position: static;
    box-shadow: none;
    border-radius: 0;
    padding-left: 16px;
  }
  .header .nav>ul>li.active>ul { display: block; }
  .header .nav>ul>li>ul>li>a { line-height: 40px; }
}


/* ===== Banner ===== */
.banner { width: 100%; overflow: hidden; position: relative; }
.banner .player { height: 800px; }
.banner .player .swiper-slide { background-size: cover; }
.banner .swiper-button-prev,
.banner .swiper-button-next { color: #fff; opacity: .5; }
.banner .swiper-button-prev:hover,
.banner .swiper-button-next:hover { opacity: 1; }

/* 单页 banner */
.banner-simple {
  height: 360px;
  color: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.banner-simple:before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20,50,80,0.45);
}
.banner-simple-tit {
  position: relative;
  font-size: 40px;
  font-weight: bold;
  letter-spacing: 2px;
}
.banner-simple-desc {
  position: relative;
  margin-top: 14px;
  font-size: 16px;
  opacity: .9;
}

/* ===== 面包屑 ===== */
.breadbar { background: var(--bg-light); border-bottom: 1px solid var(--border); }
.breadbar .container { height: 56px; display: flex; align-items: center; }
.breadbar-where { color: var(--primary); font-size: 16px; font-weight: bold; }
.breadbar-bread { text-align: right; font-size: 14px; color: var(--text-light); }
.breadbar-bread a { color: var(--text-light); }
.breadbar-bread a:hover { color: var(--primary); }

/* ===== 通用 section ===== */
.section { padding: 72px 0; }
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 14px;
}
.section-title:after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin: 16px auto 0;
}
.section-subtitle {
  text-align: center;
  font-size: 15px;
  color: var(--text-light);
  max-width: 720px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  padding: 12px 36px;
  border-radius: 24px;
  font-size: 15px;
  cursor: pointer;
  transition: all .3s;
  border: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #e67e00; }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ===== 卡片通用 ===== */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .35s, box-shadow .35s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* ===== 底部 ===== */
.footer {
  padding: 60px 0 0;
  background: #1B2A3E;
  color: #9DB2C8;
  font-size: 14px;
}
.footer, .footer a { color: #9DB2C8; }
.footer a:hover { color: #fff; }
.footer-links li { margin-bottom: 12px; }
.footer-links li:first-child { margin-bottom: 20px; }
.footer-links li:first-child,
.footer-links li:first-child a { color: #C8D6E5; font-size: 16px; font-weight: bold; }
.footer-links .tel { font-size: 24px; color: #fff; margin: 20px 0; white-space: nowrap; }
.footer .weichart { float: right; width: 160px; text-align: center; }
.footer .weichart + .weichart { margin-right: 48px; }
.footer .weichart img { display: block; width: 160px; height: 160px; margin-bottom: 8px; border-radius: 8px; }
.footer .weichart .tit { color: #C8D6E5; font-size: 14px; }
.footer_text_el {
  background: #16232F;
  color: #7E93A8;
  padding: 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== 悬浮预约按钮 ===== */
.float-book {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(255,143,0,0.4);
  cursor: pointer;
  transition: all .3s;
}
.float-book:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(255,143,0,0.55); }
.float-book .fb-icon { font-size: 22px; line-height: 1; }
.float-book .fb-text { font-size: 11px; margin-top: 2px; }

/* ===== 响应式 ===== */
@media screen and (max-width: 991px) {
  .header .container { height: 60px; }
  .header .logo a { height: 40px; width: 140px; }
  .header .nav>ul { display: none; }
  .navBtn { display: block; margin-left: auto; }
  .banner .player { height: 380px; }
  .banner-simple { height: 220px; }
  .banner-simple-tit { font-size: 26px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 24px; }
  .float-book { width: 50px; height: 50px; right: 16px; bottom: 80px; }
}
