/* ============================================================
   黑马眼科 · 首页重设计
   暖调医疗人文 × 信息建筑融合
   不覆盖导航栏(.top / #navk) 和横幅(.sy_ban / swiper)
   ============================================================ */

:root {
  --rd-gold: #F8C000;
  --rd-gold-light: #FFE88A;
  --rd-gold-soft: #FFF9E6;
  --rd-ink: #231f20;
  --rd-ink-light: #3D3735;
  --rd-muted: #8A8078;
  --rd-muted-light: #B5ADA6;
  --rd-bg: #FFFFFF;
  --rd-bg-alt: #FFFFFF;
  --rd-card: #FFFFFF;
  --rd-line: rgba(35,31,32,0.08);
  --rd-line-strong: rgba(35,31,32,0.15);
  --rd-shadow-sm: 0 4px 16px rgba(35,31,32,0.06);
  --rd-shadow-md: 0 12px 36px rgba(35,31,32,0.09);
  --rd-shadow-lg: 0 20px 56px rgba(35,31,32,0.12);
  --rd-radius: 10px;
  --rd-transition: 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ===== 全局 ===== */
html { scroll-behavior: smooth; }

body {
  background: #FFFFFF;
  color: var(--rd-ink);
}

/* 首页模块之间的纵向节奏 */
.sy {
  padding-top: 44px;
}

@media only screen and (min-width: 1300px) {
  .sy_ban {
    margin-bottom: 18px;
  }
}

/* ===== 区块标题系统 ===== */
.sy_bt1 {
  font-size: 30px !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--rd-ink) !important;
  margin-bottom: 32px !important;
  padding-bottom: 0;
  line-height: 1.3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sy_tb1,
.sy_tb2 {
  background: none !important;
  background-image: none !important;
  height: auto !important;
}

.sy_tb1::before,
.sy_tb2::before,
.sy_bt1.sy_tb1::before,
.sy_bt1.sy_tb2::before {
  display: none !important;
  content: none !important;
}

.sy_bt1 .jyborder {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--rd-gold);
  border-radius: 2px;
  margin: 14px auto 0;
}

.sy_bt1::before { display: none !important; }

body .sy_bt1.sy_tb1::before,
body .sy_bt1.sy_tb2::before {
  display: none !important;
  content: none !important;
}

/* ===== 通知公告区 (三卡片) ===== */
.tzgg {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
  gap: 20px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.tzgg > .tzgg_One,
.tzgg > a,
.tzgg .tzgg_Two,
.tzgg .tzgg_Three {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  border-radius: var(--rd-radius);
  overflow: hidden;
}

/* 通知列表 */
.tzgg_One {
  height: 360px;
  padding: 28px 32px;
  background: var(--rd-card);
  border: 1px solid var(--rd-line);
  box-shadow: var(--rd-shadow-sm);
}

.tzgg_One .tzbt {
  font-size: 20px;
  font-weight: 700;
  color: var(--rd-ink);
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--rd-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tzgg_One .tzbt span a {
  font-size: 13px;
  font-weight: 500;
  color: var(--rd-muted);
  transition: color var(--rd-transition);
}

.tzgg_One .tzbt span a:hover {
  color: var(--rd-gold);
  text-decoration: none;
}

.tzgg_One .tzbt span a::after {
  content: " →";
}

.tzgg_One li {
  padding: 13px 8px;
  border-bottom: 1px solid var(--rd-line);
  transition: all var(--rd-transition);
}

.tzgg_One li:last-child { border-bottom: none; }

.tzgg_One li:hover {
  background: var(--rd-gold-soft);
  padding-left: 14px;
  border-radius: 4px;
}

.tzgg_One .dtxg {
  display: block;
}

.tzgg_One .dtxg h5 {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--rd-ink);
  margin-bottom: 4px;
}

.tzgg_One .sj {
  font-size: 12px;
  color: var(--rd-muted);
}

/* 右侧两张浅色卡片 */
.tzgg > a { display: block; color: inherit; }

.tzgg_Two,
.tzgg_Three {
  height: 360px;
  position: relative;
  display: flex;
  align-items: flex-end;
  background: var(--rd-card);
  border: 1px solid var(--rd-line);
  box-shadow: var(--rd-shadow-sm);
  transition: all var(--rd-transition);
}

.tzgg_Two:hover,
.tzgg_Three:hover {
  transform: translateY(-4px);
  box-shadow: var(--rd-shadow-lg);
}

.tzgg_Two::after,
.tzgg_Three::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, rgba(248,192,0,0.92), rgba(248,192,0,0.55));
  pointer-events: none;
}

.tzgg_Three::after {
  background: linear-gradient(170deg, rgba(248,192,0,0.95), rgba(15,159,152,0.5));
}

.tzgg .txtk {
  position: relative;
  z-index: 2;
  padding: 28px 26px 30px;
  width: 100%;
}

.tzgg_Two h3,
.tzgg_Three h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--rd-ink);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.tzgg_Two .tzgg_p,
.tzgg_Three .tzgg_p {
  font-size: 13px;
  color: var(--rd-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tzgg_Two .tzgg_pp,
.tzgg_Three .tzgg_pp {
  font-size: 14px;
  color: var(--rd-ink-light);
  line-height: 1.7;
  max-width: 88%;
}

/* ===== 医院新闻区 ===== */
.xw_lb {
  width: 100%;
  padding-right: 0;
}

.xw_lb ul.ktYj li {
  border-bottom: none;
  margin-bottom: 10px;
}

.xw_lb ul.ktYj li a,
.ktYj li a {
  padding: 16px 110px 16px 20px;
  border: 1px solid var(--rd-line) !important;
  border-radius: var(--rd-radius);
  background: var(--rd-card);
  box-shadow: var(--rd-shadow-sm);
  transition: all var(--rd-transition);
  position: relative;
}

.xw_lb ul.ktYj li a::before,
.ktYj li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
  transition: background var(--rd-transition);
}

.xw_lb ul.ktYj li a:hover,
.ktYj li a:hover {
  transform: translateX(3px);
  border-color: rgba(248,192,0,0.55) !important;
  box-shadow: var(--rd-shadow-md);
  background: #FFFDF7;
}

.xw_lb ul.ktYj li a:hover::before,
.ktYj li a:hover::before {
  background: var(--rd-gold);
}

.xw_lb ul.ktYj li a h5.bt,
.ktYj .bt {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--rd-ink);
}

.xw_lb ul.ktYj li a .sj,
.ktYj .sj {
  font-size: 13px;
  color: var(--rd-muted);
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

/* 查看更多按钮 */
a.cd_more1 {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  height: 38px;
  padding: 0 22px;
  border: 1.5px solid var(--rd-gold) !important;
  border-radius: 6px;
  background: transparent;
  color: var(--rd-gold) !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  transition: all var(--rd-transition);
}

a.cd_more1:hover {
  background: var(--rd-gold);
  color: var(--rd-ink) !important;
  text-decoration: none;
}

a.cd_more1 b { font-weight: 500; }

/* ===== 就医服务区 ===== */
.jy70 { margin-bottom: 0; }

.jyContent {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 0;
  padding: 0;
  margin: 0 0 40px;
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-radius);
  overflow: hidden;
  box-shadow: var(--rd-shadow-md);
  background: var(--rd-card);
}

.jyfwPic,
.borderLine {
  float: none;
  width: auto;
}

.jyfwPic {
  position: relative;
  height: 100%;
  min-height: 440px;
  overflow: hidden;
}

.jyfwPic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

/* 显示原图中部 50%：通过放大 2 倍后居中裁切实现 */
.jyfwPic img.jyfw-mid-50 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(2);
  transform-origin: center center;
}

.jyfwPic::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(35,31,32,0.06), rgba(248,192,0,0.10));
  pointer-events: none;
}

.borderLine {
  top: auto;
  padding: 34px 32px 28px;
  border: 0 !important;
  background: #FFFFFF;
}

.borderLine::before { display: none; }

.jySpan {
  position: relative;
  right: auto;
  top: auto;
  width: auto;
  display: block;
  padding: 0;
  margin-bottom: 22px;
  background: transparent;
  text-align: left;
  font-size: 20px;
  font-weight: 700;
  color: var(--rd-ink);
  line-height: 1.45;
}

.jySpan::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 12px;
  background: var(--rd-gold);
  border-radius: 2px;
}

.jyfyList {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  height: auto;
  padding: 0;
  background: transparent;
}

.sy_nav1 li {
  float: none;
  width: auto;
  margin: 0;
}

.sy_nav1 li::after { display: none !important; }

.jyfyList a {
  min-height: 128px;
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-radius);
  background: var(--rd-card);
  box-shadow: none;
  transition: all var(--rd-transition);
}

.jyfyList a:hover {
  border-color: rgba(248,192,0,0.45);
  transform: translateY(-3px);
  box-shadow: var(--rd-shadow-md);
  background: #FFFDF7;
}

.sy_nav1 .svgk {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--rd-gold-soft);
}

.sy_nav1 .svg {
  width: 30px;
  height: 30px;
}

.jyfyList .svg path.sl1,
.jyfyList .svg path.sl11 {
  fill: var(--rd-gold) !important;
}

.jyfyList .svg path.sl2 {
  fill: var(--rd-ink) !important;
}

.sy_nav1 .bt {
  font-size: 14px;
  font-weight: 600;
  color: var(--rd-ink) !important;
  margin: 0;
  line-height: 1.35;
}

/* ===== 科室列表区 ===== */
.syksBg {
  height: auto;
  padding: 72px 0;
  background: #FFFFFF;
}

.sy_ks {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 28px;
  align-items: start;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.sy_ks .imgk {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  right: auto;
  top: auto;
  float: none;
  width: auto;
  height: auto;
  padding: 36px 28px;
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-radius);
  background: var(--rd-card);
  box-shadow: var(--rd-shadow-sm);
}

.sy_ks .imgk h4 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.5px;
  color: var(--rd-ink);
  margin-bottom: 14px;
}

.sy_ks .imgk h4::before,
.sy_ks .imgk h4::after {
  display: none;
}

.sy_ks .imgk h4::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 14px;
  background: var(--rd-gold);
  border-radius: 2px;
}

.sy_ks .imgk p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--rd-ink-light);
  text-indent: 0;
}

.sy_ks_list {
  grid-column: 1;
  grid-row: 1;
  width: auto;
  float: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-content: start;
}

.sy_ks_list li {
  float: none;
  width: auto;
  padding: 0;
  margin: 0;
}

.sy_ks_list a {
  height: 52px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rd-line) !important;
  border-radius: var(--rd-radius);
  background: var(--rd-card);
  color: var(--rd-ink) !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  box-shadow: var(--rd-shadow-sm);
  transition: all var(--rd-transition);
}

.sy_ks_list a::before { display: none; }

.sy_ks_list a:hover {
  border-color: var(--rd-gold) !important;
  background: var(--rd-gold) !important;
  color: var(--rd-ink) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(248,192,0,0.32);
}

/* ===== 眼科科普区 ===== */
.sy_bt3 {
  height: auto;
  margin-bottom: 20px;
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--rd-line);
}

.sy_nav3 {
  float: none;
}

.sy_nav3 li {
  float: none;
  margin: 0;
  padding: 0 0 16px;
  font-size: 26px;
  font-weight: 700;
  color: var(--rd-muted);
  border-bottom: 3px solid transparent;
}

.sy_nav3 li.on a {
  font-size: 26px;
  color: var(--rd-ink) !important;
}

.sy_nav3 li.on {
  border-bottom-color: var(--rd-gold);
}

.sy_nav3 li::after { display: none; }

.xx1_lb {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.xx1_lb li {
  margin: 0;
  border-bottom: none;
}

.xx1_lb li a {
  min-height: 72px;
  height: 100%;
  display: flex;
  align-items: center;
}

.ktYj li a {
  padding: 18px 110px 18px 20px;
}

.home-knowledge-section {
  padding-bottom: 16px;
  background: var(--rd-bg);
}

/* ===== 联系我们区 ===== */
.symd50 {
  margin-bottom: 72px;
}

.dituDiv {
  display: grid;
  grid-template-columns: 380px 1fr;
  width: 100%;
  height: 480px;
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-radius);
  overflow: hidden;
  box-shadow: var(--rd-shadow-md);
  background: var(--rd-card);
}

.dituPicTop { display: none; }

.dituPic,
.dt {
  position: relative;
  left: auto;
  top: auto;
  float: none;
}

.dituPic {
  width: auto;
  height: auto;
  padding: 44px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #FFFFFF;
}

.dituPic .bt {
  font-size: 30px;
  font-weight: 700;
  color: var(--rd-ink);
  text-align: left;
  margin-bottom: 2px;
}

.dituPic .xbt {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--rd-muted);
  text-align: left;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--rd-line-strong);
  line-height: 1.5;
}

.dituPic .pContent {
  font-size: 15px;
  color: var(--rd-ink-light) !important;
  margin: 14px 0;
  line-height: 1.6;
  display: flex;
  align-items: center;
}

.dituPic .pContent a {
  color: var(--rd-ink) !important;
  font-weight: 600;
  border-bottom: 2px solid rgba(248,192,0,0.55);
  transition: border var(--rd-transition);
}

.dituPic .pContent a:hover {
  border-bottom-color: var(--rd-gold);
  text-decoration: none;
}

.dt {
  width: auto;
  height: auto;
  min-height: 100%;
  border: 0;
  background-size: cover;
  background-position: center;
}

/* ===== 页脚 ===== */
.foot {
  margin-top: 0;
  background: linear-gradient(180deg, #1A1817, var(--rd-ink)) !important;
}

.link_list {
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.link_list a {
  color: rgba(255,255,255,0.55) !important;
  transition: color var(--rd-transition);
}

.link_list a:hover {
  color: var(--rd-gold-light) !important;
  text-decoration: none;
}

.foot .foot2 {
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.foot .d1 {
  width: auto;
}

.cd_f {
  margin: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cd_f li {
  width: auto;
  margin-bottom: 0;
}

.cd_f li::after { display: none; }

.cd_f li a {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7) !important;
  font-size: 13px;
  transition: all var(--rd-transition);
}

.cd_f li a:hover {
  color: var(--rd-gold) !important;
  background: rgba(255,255,255,0.06);
  border-color: rgba(248,192,0,0.3);
  text-decoration: none;
}

.ewm {
  float: none;
  top: 0;
  position: relative;
}

.ewm li {
  width: 120px;
  text-align: center;
}

.ewm li img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  padding: 6px;
  background: #fff;
  margin-bottom: 6px;
}

.ewm li p {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}

.footCenter {
  background: rgba(0,0,0,0.15);
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.footCenter a {
  color: rgba(255,255,255,0.5) !important;
  transition: color var(--rd-transition);
}

.footCenter a:hover {
  color: var(--rd-gold-light) !important;
}

/* ===== 首页新页脚同步 ===== */
.site-footer {
  width: 100%;
  margin: 0;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  box-sizing: border-box;
  border-radius: 0;
  color: rgba(255, 253, 249, 0.82);
  background: var(--rd-ink);
  padding-inline: 85px;
}

.site-footer img {
  width: 190px;
  filter: brightness(0) invert(1);
}

.site-footer p {
  margin: 12px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
}

.site-footer a {
  color: rgba(255, 253, 249, 0.88) !important;
}

.legal {
  grid-column: 1 / -1;
  color: rgba(255, 253, 249, 0.62);
  font-size: 13px;
  margin: 0;
}

.site-footer a:hover {
  color: var(--rd-gold) !important;
}

/* ===== 响应式：平板 (≤1300px) ===== */
@media only screen and (max-width: 1300px) {
  .sy { padding: 30px 18px 0; }

  .sy_bt1 { font-size: 26px !important; margin-bottom: 26px !important; }

  .tzgg {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .tzgg > .tzgg_One {
    grid-column: 1 / -1;
  }

  .tzgg_One,
  .tzgg_Two,
  .tzgg_Three {
    height: auto;
    min-height: 240px;
  }

  .tzgg_One { min-height: 0; }

  .xw_lb {
    float: none;
    width: 100%;
  }

  .jyContent {
    grid-template-columns: 1fr;
  }

  .jyfwPic {
    min-height: 260px;
    height: 260px;
  }

  .borderLine {
    padding: 26px 22px;
  }

  .syksBg {
    padding: 48px 18px;
  }

  .sy_ks {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sy_ks .imgk,
  .sy_ks_list {
    grid-column: auto;
    grid-row: auto;
  }

  .sy_ks_list {
    grid-template-columns: repeat(2, 1fr);
  }

  .dituDiv {
    grid-template-columns: 1fr;
    height: auto;
  }

  .dt {
    min-height: 280px;
  }

  .foot .foot2 {
    flex-direction: column;
    gap: 20px;
  }

  .cd_f {
    justify-content: center;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding-inline: 3%;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

/* ===== 响应式：手机 (≤760px) ===== */
@media only screen and (max-width: 760px) {
  .sy { padding: 22px 14px 0; }

  .sy_bt1 { font-size: 22px !important; margin-bottom: 22px !important; }
  .sy_bt1 .jyborder { margin-top: 10px; }

  .tzgg {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tzgg_One { padding: 22px 18px; }
  .tzgg_One .tzbt { font-size: 18px; }

  .xw_lb ul.ktYj li a,
  .ktYj li a {
    padding: 14px 16px;
  }

  .xw_lb ul.ktYj li a .sj,
  .ktYj .sj {
    position: static;
    display: block;
    transform: none;
    margin-top: 6px;
  }

  .jyfyList {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .jyfyList a {
    min-height: 104px;
    padding: 14px 8px;
  }

  .sy_nav1 .svgk {
    width: 44px;
    height: 44px;
  }

  .sy_nav1 .svg { width: 26px; height: 26px; }

  .sy_ks_list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sy_ks_list a { height: 48px; }

  .sy_bt3 {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .sy_nav3 li,
  .sy_nav3 li.on a {
    font-size: 22px;
  }

  .sy_bt3 .cd_more1 {
    min-width: 100px;
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
  }

  .xx1_lb {
    grid-template-columns: 1fr;
  }

  .home-knowledge-section {
    padding-bottom: 12px;
  }

  .dituPic { padding: 28px 20px; }
  .dituPic .bt { font-size: 26px; }
  .dt { min-height: 220px; }

  .cd_f {
    flex-direction: column;
    align-items: center;
  }

  .ewm li { width: 100%; }
  .ewm li img { width: 80px; height: 80px; }

  .site-footer {
    padding: 24px 20px;
  }
}

/* ===== 所有内容区白色背景强制覆盖 ===== */
body .sy,
body .syksBg,
body .symd50,
body .tzgg,
body .tzgg_One,
body .xw_lb,
body .jy70,
body .jyContent,
body .jyfwPic,
body .borderLine,
body .sy_ks,
body .sy_ks .imgk,
body .xx1_lb,
body .dituDiv,
body .dituPic {
  background: #ffffff;
}

/* 动效减少偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
