/* ============================================================
   Uyun Template - 仿优孕行 IVF医疗门户
   Based on uyunbaby.com
   ============================================================ */

:root {
  --uyun-blue: #1a6cb5;
  --uyun-blue-dark: #14568f;
  --uyun-orange: #f39800;
  --uyun-red: #e84235;
  --uyun-dark: #222;
  --uyun-gray: #666;
  --uyun-light-gray: #f5f5f5;
  --uyun-border: #e8e8e8;
  --uyun-shadow: 0 2px 8px rgba(0,0,0,0.06);
  --uyun-radius: 4px;
  --uyun-font: "PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
}

body.uyun-theme {
  font-family: var(--uyun-font);
  color: var(--uyun-dark);
  background: #fff;
  line-height: 1.7;
  margin: 0;
}

.uyun-theme a { color: #333; text-decoration: none; }
.uyun-theme a:hover { color: var(--uyun-blue); }

/* === Header / Top Bar === */
.uyun-header {
  background: #fff;
  border-bottom: 1px solid var(--uyun-border);
}

.uyun-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
}

.uyun-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--uyun-blue) !important;
  letter-spacing: 1px;
}

.uyun-header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  color: var(--uyun-gray);
}

.uyun-header-phone {
  font-size: 16px;
  color: var(--uyun-orange);
  font-weight: 600;
}

/* === Navigation === */
.uyun-nav {
  background: var(--uyun-blue);
}

.uyun-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
}

.uyun-nav > li > a {
  display: block;
  padding: 14px 22px;
  color: #fff !important;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.2s;
}

.uyun-nav > li > a:hover,
.uyun-nav > li.active > a {
  background: var(--uyun-blue-dark);
}

/* dropdown */
.uyun-nav li { position: relative; }
.uyun-nav .uyun-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 140px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  border-radius: 0 0 4px 4px;
  z-index: 99;
  list-style: none;
  padding: 6px 0;
}

.uyun-nav li:hover > .uyun-submenu { display: block; }
.uyun-nav .uyun-submenu a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: #333 !important;
}
.uyun-nav .uyun-submenu a:hover { color: var(--uyun-blue) !important; background: var(--uyun-light-gray); }

/* mobile toggle */
.uyun-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 10px 15px;
}

/* === Hero Banner === */
.uyun-hero {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.uyun-hero .slick-slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* === Section Titles === */
.uyun-section-title {
  text-align: center;
  padding: 40px 0 25px;
  font-size: 28px;
  font-weight: 700;
  color: var(--uyun-dark);
}

.uyun-section-title span {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--uyun-gray);
  margin-top: 6px;
}

/* === Country Cards === */
.uyun-country-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px 30px;
}

.uyun-country-card {
  text-align: center;
  border: 1px solid var(--uyun-border);
  border-radius: var(--uyun-radius);
  padding: 20px 10px;
  transition: box-shadow 0.3s;
  display: block;
}

.uyun-country-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.uyun-country-card img {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 10px;
}

.uyun-country-card h3 {
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--uyun-dark);
}

.uyun-country-card p {
  font-size: 12px;
  color: var(--uyun-gray);
  margin: 0;
}

/* === Tab System === */
.uyun-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  border-bottom: 2px solid var(--uyun-border);
  max-width: 1200px;
  margin: 0 auto 20px;
}

.uyun-tab {
  padding: 10px 30px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: var(--uyun-gray);
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.uyun-tab:hover { color: var(--uyun-blue); }
.uyun-tab.active {
  color: var(--uyun-blue);
  border-bottom-color: var(--uyun-blue);
}

/* === Hospital Cards === */
.uyun-hospital-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.uyun-hospital-card {
  text-align: center;
  border: 1px solid var(--uyun-border);
  border-radius: var(--uyun-radius);
  padding: 15px 8px;
  background: #fff;
  transition: box-shadow 0.3s;
  display: block;
}

.uyun-hospital-card:hover { box-shadow: var(--uyun-shadow); }

.uyun-hospital-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 8px;
}

.uyun-hospital-card h4 {
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  color: var(--uyun-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Article List Item === */
.uyun-article-item {
  display: flex;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--uyun-border);
}

.uyun-article-item:last-child { border-bottom: none; }

.uyun-article-item .uyun-article-thumb {
  width: 180px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
}

.uyun-article-item .uyun-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.uyun-article-item:hover .uyun-article-thumb img {
  transform: scale(1.05);
}

.uyun-article-info { flex: 1; min-width: 0; }

.uyun-article-info h4 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 8px;
}

.uyun-article-info h4 a { color: var(--uyun-dark); }
.uyun-article-info h4 a:hover { color: var(--uyun-blue); }

.uyun-article-meta {
  font-size: 13px;
  color: var(--uyun-gray);
  margin-bottom: 6px;
}

.uyun-article-excerpt {
  font-size: 14px;
  color: #999;
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* === Sidebar === */
.uyun-sidebar { width: 280px; flex-shrink: 0; }

.uyun-sidebar-card {
  background: #fff;
  border: 1px solid var(--uyun-border);
  margin-bottom: 15px;
}

.uyun-sidebar-card h3 {
  font-size: 16px;
  padding: 12px 15px;
  margin: 0;
  background: var(--uyun-light-gray);
  border-bottom: 1px solid var(--uyun-border);
  color: var(--uyun-dark);
}

.uyun-sidebar-card .uyun-sidebar-body {
  padding: 12px 15px;
}

/* Category tree */
.uyun-cat-tree { list-style: none; padding: 0; margin: 0; }
.uyun-cat-tree li { border-bottom: 1px dashed var(--uyun-border); }
.uyun-cat-tree li:last-child { border-bottom: none; }
.uyun-cat-tree > li > a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--uyun-dark);
}
.uyun-cat-tree > li > a:hover { color: var(--uyun-blue); }

/* === Page Layout === */
.uyun-main {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
}

.uyun-content { flex: 1; min-width: 0; }

/* === Breadcrumb === */
.uyun-breadcrumb {
  font-size: 14px;
  color: var(--uyun-gray);
  padding: 10px 0;
}

.uyun-breadcrumb a { color: var(--uyun-gray); }
.uyun-breadcrumb a:hover { color: var(--uyun-blue); }
.uyun-breadcrumb span { margin: 0 4px; }

/* === Article Detail === */
.uyun-article-detail {
  background: #fff;
  padding: 20px 0;
}

.uyun-article-detail h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 12px;
  color: var(--uyun-dark);
}

.uyun-article-detail .uyun-meta {
  font-size: 13px;
  color: var(--uyun-gray);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--uyun-border);
  margin-bottom: 15px;
}

.uyun-article-detail .uyun-meta span {
  margin-right: 15px;
}

.uyun-article-body {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}

.uyun-article-body img { max-width: 100%; }

/* Prev/Next */
.uyun-article-nav {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-top: 1px solid var(--uyun-border);
  margin-top: 20px;
  font-size: 14px;
}

.uyun-article-nav a { color: var(--uyun-blue); }

/* Related */
.uyun-related { margin-top: 20px; }
.uyun-related h3 {
  font-size: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--uyun-blue);
  margin-bottom: 12px;
}

.uyun-related ul {
  list-style: none;
  padding: 0;
  columns: 2;
}

.uyun-related ul li {
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
}

.uyun-related ul li::before {
  content: '•';
  margin-right: 6px;
  color: var(--uyun-blue);
}

/* === Pagination === */
.uyun-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 25px 0;
}

.uyun-pagination a,
.uyun-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--uyun-border);
  border-radius: 3px;
  font-size: 14px;
  color: #666;
}

.uyun-pagination a:hover { border-color: var(--uyun-blue); color: var(--uyun-blue); }
.uyun-pagination .active { background: var(--uyun-blue); color: #fff; border-color: var(--uyun-blue); }

/* === Footer === */
.uyun-footer {
  background: #2c2c2c;
  color: #aaa;
  margin-top: 40px;
  padding: 35px 0 20px;
}

.uyun-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 25px;
  padding: 0 15px;
}

.uyun-footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 12px;
}

.uyun-footer a { color: #aaa; font-size: 13px; line-height: 2; }
.uyun-footer a:hover { color: #fff; }

.uyun-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 25px;
  padding-top: 15px;
  text-align: center;
  font-size: 12px;
  color: #666;
}

/* === Responsive === */
@media (max-width: 768px) {
  .uyun-main { flex-direction: column; }
  .uyun-sidebar { width: 100%; }
  .uyun-nav { display: none; }
  .uyun-nav.open { display: block; }
  .uyun-nav > li > a { padding: 10px 15px; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .uyun-nav .uyun-submenu { position: static; box-shadow: none; padding-left: 16px; }
  .uyun-nav-toggle { display: block; }
  .uyun-nav-inner { flex-direction: column; }
  .uyun-country-grid { grid-template-columns: repeat(3, 1fr); }
  .uyun-hospital-grid { grid-template-columns: repeat(2, 1fr); }
  .uyun-footer-inner { grid-template-columns: 1fr; }
  .uyun-hero .slick-slide img { height: 200px; }
  .uyun-article-item { flex-direction: column; }
  .uyun-article-item .uyun-article-thumb { width: 100%; height: 180px; }
  .uyun-related ul { columns: 1; }
}

/* === Utility === */
.uyun-btn {
  display: inline-block;
  padding: 6px 20px;
  background: var(--uyun-blue);
  color: #fff !important;
  border-radius: 3px;
  font-size: 14px;
}

.uyun-btn:hover { background: var(--uyun-blue-dark); }

.uyun-text-center { text-align: center; }
.uyun-mt20 { margin-top: 20px; }
