/* ============================================================
   国康医院官网 v3 — 真实切图还原
   颜色精确值（从PSD像素采样）：
     顶部红/科室标题: #9c1f24
     功能按钮青绿:    #52a8a0
     搜索按钮橙:      #d4820a
     新闻面板红边框:  #9c1f24
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Microsoft YaHei", "微软雅黑", "SimHei", Arial, sans-serif;
  background: #f4f4f4;
  min-width: 1000px;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================================
   顶部信息栏 — 整张切图
   ============================================================ */
.top-bar {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.top-bar-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   Header
   ============================================================ */
.header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}
.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 80px;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Logo区 */
.logo-area {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.logo-seal {
  height: 88px;
  width: auto;
  display: block;
}
.logo-text {
  height: 80px;
  width: auto;
  display: block;
  margin-left: 4px;
}

/* 分隔线 */
.header-divider {
  width: 1px;
  height: 64px;
  background: #d5d5d5;
  margin: 0 36px;
  flex-shrink: 0;
}

/* 热线 */
.hotline-area { flex-shrink: 0; }
.hotline-img {
  height: 72px;
  width: auto;
  display: block;
}

/* 二维码 */
.qr-area {
  display: flex;
  gap: 14px;
  margin-left: auto;
  flex-shrink: 0;
}
.qr-img {
  height: 90px;
  width: auto;
  display: block;
 
}

/* ============================================================
   导航栏
   ============================================================ */
.navbar {
  background: #fff;
  position: relative;
}
.nav-red-line {
  height: 2px;
  background: #9c1f24;
  width: 100%;
}
.navbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  align-items: stretch;
}

.nav-links { display: flex; }
.nav-link {
  display: inline-block;
  padding: 11px 42px;
  font-size: 15px;
  color: #333;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
  font-weight: 400;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 2px;
  background: #9c1f24;
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-link:hover { color: #9c1f24; }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: #9c1f24; font-weight: 500; }

/* 搜索框 */
.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.search-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 2px;
  overflow: hidden;
  height: 30px;
}
.search-ico { padding: 0 7px; flex-shrink: 0; }
.search-wrap input {
  border: none; outline: none;
  font-size: 13px; color: #666;
  width: 210px; font-family: inherit;
  padding: 0 4px;
  background: #fff;
}
.search-wrap input::placeholder { color: #aaa; }
.search-btn {
  background: #d4820a;
  color: #fff; border: none;
  padding: 0 16px; height: 30px;
  font-size: 13px; font-family: inherit;
  cursor: pointer; font-weight: 500;
  transition: background 0.2s; white-space: nowrap;
}
.search-btn:hover { background: #b87008; }

/* ============================================================
   主体
   ============================================================ */
.main {
  background: #f0f0f0;
  padding: 14px 0 18px;
}
.main-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

/* ============================================================
   左侧科室导航
   ============================================================ */
.dept-sidebar-wrap {
  flex: 0 0 200px;
  background: #fff;
  border: 1px solid #ddd;
  overflow: hidden;
}

.dept-title {
  background: #9c1f24;
  color: #fff;
  padding: 11px 14px;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dept-arrow { font-size: 11px; opacity: 0.85; }

.dept-list li { border-bottom: 1px solid #f0e8e8; }
.dept-list li:last-child { border-bottom: none; }
.dept-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  font-size: 14px;
  color: #333;
  transition: all 0.15s;
}
.dept-list li a:hover {
  background: #fdf5f5;
  color: #9c1f24;
  padding-left: 18px;
}
.arr { color: #9c1f24; font-size: 15px; font-weight: bold; }

/* ============================================================
   中间功能宫格（真实切图）
   ============================================================ */
.func-grid-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width:714px;
  width:714px;
}

.func-row {
  display: flex;
  gap: 6px;
}

.func-btn {
  display: block;
  overflow: hidden;
  transition: filter 0.2s, transform 0.15s;
  cursor: pointer;
}
.func-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.func-btn img {
  display: block;
  width: 100%;
  height: auto;
}

/* 行1：4等分 */
.row1 .func-btn { flex: 1; }

/* 行2：3等分，只占前3/4宽度 */
.row2 .func-btn { flex: 0 0 calc(25% - 4.5px); }

/* 行3：3等分，只占前3/4宽度 */
.row3 .func-btn { flex: 0 0 calc(25% - 4.5px); }

/* 让行2行3图片高度与行1一致（等比例缩放） */
.row1 .func-btn img { width: 100%; }
.row2 .func-btn img { width: 100%; }
.row3 .func-btn img { width: 100%; }

/* ============================================================
   右侧新闻面板
   ============================================================ */
.news-sidebar {
  flex: 0 0 356px;
  border: 1.5px solid #9c1f24;
  background: #fff;
}

.news-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px 9px;
  border-bottom: 1px solid #eee;
}
.news-title-cn {
  font-size: 17px;
  font-weight: bold;
  color: #9c1f24;
  letter-spacing: 1px;
}
.news-title-en {
  font-size: 11px;
  color: #888;
  letter-spacing: 1.5px;
}

.news-body { padding: 12px 14px 14px; }

.news-featured-title {
  font-size: 15px;
  font-weight: bold;
  color: #222;
  line-height: 1.5;
  margin-bottom: 9px;
}
.news-featured-title:hover { color: #9c1f24; cursor: pointer; }

.news-featured-body {
  font-size: 13px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e0e0e0;
}
.detail-link {
  color: #9c1f24;
  font-weight: bold;
}
.detail-link:hover { text-decoration: underline; }

.news-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px dashed #eee;
  line-height: 1.5;
}
.news-list li:last-child { border-bottom: none; }
.dot { color: #9c1f24; font-size: 8px; flex-shrink: 0; margin-top: 5px; }
.news-list li a {
  font-size: 13px;
  color: #444;
  transition: color 0.15s;
  line-height: 1.6;
}
.news-list li a:hover { color: #9c1f24; }

/* ============================================================
   页脚
   ============================================================ */
.footer {
  background: #f9f9f9;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  padding: 18px 20px 22px;
}
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 9px;
}
.footer-links a {
  font-size: 13.5px;
  color: #444;
  padding: 0 12px;
  transition: color 0.15s;
}
.footer-links a:hover { color: #9c1f24; }
.sep { color: #ccc; font-size: 12px; }
.footer-info, .footer-addr {
  font-size: 12.5px;
  color: #777;
  line-height: 1.9;
}


