:root {
    --primary: #0052d4;
    --secondary: #2ecc71;
    --dark: #2c3e50;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #0052d4 0%, #4364f7 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #333;
    background: var(--light-bg);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

li {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 顶部 */
.top-bar {
    background: #f1f5f9;
    padding: 6px 0;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #e2e8f0;
}

/* 导航 */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.nav-container {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.logo em {
    font-style: normal;
    color: var(--secondary);
    margin-left: 2px;
}

.nav-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-menu li {
    padding: 0 10px;
}

.nav-menu a {
    font-weight: 500;
    font-size: 15px;
    color: var(--dark);
    padding: 8px 4px;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}
.nav-menu a:hover {
    color: var(--primary) !important;
    transform: scale(1.05);
}
.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}
.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--primary);
}

.nav-appoint {
    padding: 8px 18px !important;
    background: var(--gradient);
    color: white !important;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(67, 100, 247, 0.15);
}

/* 首屏 */
.hero {
    height: 520px;
    background: linear-gradient(rgba(0, 82, 212, 0.08), rgba(0, 82, 212, 0.08)), url('/uploads/4.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-text h1 {
    font-size: 46px;
    line-height: 1.3;
    margin-bottom: 18px;
    color: var(--primary);
}

.hero-text p {
    font-size: 19px;
    margin-bottom: 24px;
    opacity: 0.85;
}

.btn-main {
    padding: 13px 36px;
    background: var(--gradient);
    color: white;
    border-radius: 50px;
    display: inline-block;
    font-weight: 500;
    box-shadow: 0 8px 18px rgba(67, 100, 247, 0.2);
}

/* 数据 */
.stats-bar {
    background: var(--white);
    padding: 30px 0;
    margin-top: -40px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item h2 {
    color: var(--primary);
    font-size: 30px;
    margin-bottom: 4px;
}

.stat-item p {
    color: #777;
    font-size: 13px;
}

/* 板块间距 */
.section {
    padding: 60px 0;
}

.section-about {
    background: #ffffff;
}

.section-dept {
    background: #f8fafc;
}

.section-expert {
    background: #ffffff;
}

.section-news {
    background: #f8fafc;
}

/* 统一大标题样式：左侧蓝色竖线 + 标题+英文 */
.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left !important;
  margin-bottom: 30px;
}
.section-header::before {
  content: "";
  width: 5px;
  height: 28px;
  background: var(--primary);
  border-radius: 2px;
}
.section-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0;
}
.section-header span {
  color: #999;
  font-size: 14px;
  font-weight: normal;
  letter-spacing: 0;
  margin-top: 10px;
}

/* 医院概况：左文字 + 右两张并排小图 300*200 */
.about-wrap {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 30px;
    align-items: center;
}

.about-text h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 16px;
}

.about-text p {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.8;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.about-feature::before {
    content: "✓";
    color: var(--secondary);
    font-weight: bold;
    font-size: 16px;
}

.about-images {
    display: flex;
    gap: 16px;
}

.about-img img{
    width: 300px;
    height: 200px;
    background: #eef2ff;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

/* 科室 */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.dept-card {
    background: var(--white);
    padding: 30px 16px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid #edf2f7;
}

.dept-card:hover {
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.dept-icon {
    width: 60px;
    height: 60px;
    background: #eefaf3;
    border-radius: 50%;
    margin: 0 auto 16px;
    line-height: 60px;
    font-size: 22px;
    color: var(--secondary);
}

.dept-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.dept-card p {
    font-size: 13px;
    color: #666;
}

/* 专家 */
.expert-wrapper {
    position: relative;
    overflow: hidden;
}

.expert-container {
    display: flex;
    transition: transform 0.4s ease;
    gap: 16px;
}

.expert-card {
    min-width: calc(25% - 12px);
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.04);
}

.expert-img {
    height: 288px;
    background-size: cover;
    background-position: center;
}

.expert-info {
    padding: 16px;
}

.expert-info a{
    font-size:14px;
	color:#ccc;
	float:right;
}
.expert-info a:hover{
	color:#0052d4;
}

.expert-info h3 {
    font-size: 16px;
    margin: 6px 0;
}

.tag {
    background: #eef2ff;
    color: var(--primary);
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 12px;
    display: inline-block;
}

.expert-info p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: white;
    border-radius: 50%;
    border: none;
    font-size: 16px;
    color: var(--primary);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
}

.prev { left: 0; }
.next { right: 0; }

/* 科室动态 + 就医指南 */
.academic-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.news-box {
    background: white;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.news-item {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
    align-items: center;
}

.news-date {
    min-width: 60px;
    text-align: center;
    background: #f8fafc;
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
}

.news-date b {
    font-size: 18px;
    color: var(--primary);
    display: block;
}

.news-txt h4 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

.news-txt h4 a:hover {
    color: var(--primary);
}

.news-txt p {
    font-size: 13px;
    color: #888;
}

/* 就医指南 */
.news-box ul li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-box ul li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
}

.news-box ul li:hover {
    color: var(--primary);
    padding-left: 3px;
}

/* 底部 */
footer {
    background: #1a2a3a;
    color: #cbd5e1;
    padding: 60px 0 30px;
    margin-top: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}
.footer-grid .logo{
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
}
.tel-big {
    font-size: 28px;
    color: var(--secondary);
    font-weight: 700;
    margin: 16px 0;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.footer-nav a {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
}

.footer-nav a:hover {
    background: var(--primary);
}

.appointment-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 10px;
}

.appointment-form input {

    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    margin-bottom: 12px;
    border-radius: 6px;
    font-size: 14px;
}

.btn-submit {
    padding: 13px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.page-right {
    width: 300px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: sticky;
    top: 100px;
}
.side-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    color: #333;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.6;
}
.contact-item strong {
    color: var(--primary);
    min-width: 70px;
    font-weight: 500;
}
.contact-item span {
    flex: 1;
}
.guide-list {
    margin-top: 20px;
}
.guide-list a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    font-size: 18px;
}
.guide-list a:hover {
    color: var(--primary);
    padding-left: 5px;
}
