* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: #fff;
    color: #333;
    line-height: 1.6;
    min-width: 1200px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

/* ========== 头部 ========== */
.header {
    width: 100%;
    height: 98px;
    background: #e6f0ff;
    border-bottom: 1px solid #ccd6e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    /* max-width: 1200px; */
    height: 100%;
    margin: 0 auto;
    padding: 0 280px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 60px;
    height: 60px;
}

.logo-text {
    font-weight: bold;
    font-size: 29px;
    color: #000000;
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-item {
    padding: 12px 25px;
    font-weight: 800;
    font-size: 23px;
    color: #000000;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.nav-item:hover,
.nav-item.active {
    /* color: #1a7fd4;
    font-weight: 600; */
}

.nav-item.active {
    position: relative;
}

.nav-item.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: #BBD4EF;
    border-radius: 2px;
}

.nav-line {
    display: inline-block;
    width: 1px;
    height: 24px;
    background: #ccd6e0;
    flex-shrink: 0;
}

/* ========== 内容区 ========== */
.content {
    width: 100%;
    min-height: 200px;
}

.page-panel {
    display: none;
}

.page-panel.active {
    display: block;
}

/* ========== Banner ========== */
.banner {
    position: relative;
    width: 100%;
    height: 673px;
    overflow: hidden;
    background: url('../images/banner7.jpg');
    background-size: cover;
    background-position: center center;
}

.banner-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: right center;
    z-index: 1;
}

.banner-inner {
    position: relative;
    z-index: 2;
    max-width: 1250px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.banner-text {
    position: absolute;
    left: 20px;
    top: 100px;
}

.banner-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a7fd4;
    line-height: 1.4;
    margin-bottom: 16px;
}

.banner-subtitle {
    font-size: 16px;
    color: #666;
}

/* Banner 按钮：绝对定位，可按设计稿微调 */
.banner-btn {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    height: 71px;
    padding: 0 24px;
    font-weight: 400;
    font-size: 36px;
    color: #FFFFFF;
    border-radius: 4px;
    transition: opacity 0.2s;
    z-index: 3;
}

.banner-btn:hover {
    opacity: 0.9;
}

.banner-btn-primary {
    left: 20px;
    top: 390px;
    /* background: #1a7fd4; */
    background: linear-gradient(to right, #38B9FD, #2C89E4);
}

.banner-btn-secondary {
    left: 336px;
    top: 390px;
    /* background: #5eb3f0; */
    background: linear-gradient(to right, #38B9FD, #2C89E4);
}

/* ========== 通用区块 ========== */
.section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 60px 20px 120px 20px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 45px;
    font-weight: bold;
    font-size: 48px;
    color: #000000;
    margin-bottom: 40px;
}

.section-title::before,
.section-title::after {
    content: "";
    flex: 1;
    max-width: 365px;
    height: 1px;
    background: #c8c8c8;
}

.section-title-blue {
    color: #1a7fd4;
    gap: 108px;
}

/* ========== 资质公示 ========== */
.qualifications {
    padding-bottom: 40px;
}

.cert-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: center; */
    /* gap: 60px; */
    margin-bottom: 36px;
}

.cert-item {
    text-align: center;
}

.cert-item img {
    /* width: 556px;
    height: 382px; */
    width: 1000px;
    height: 738px;
    object-fit: contain;
    /* border: 1px solid #e0e0e0;
    background: #fafafa; */
}

.cert-item.cert-placeholder img {
    display: none;
}

.cert-item.cert-placeholder::before {
    content: "";
    display: block;
    width: 320px;
    height: 220px;
    border: 1px solid #e0e0e0;
    background: #f5f5f5;
}

.cert-item.cert-item-licence img {
    /* margin-left: 60px; */
}

.cert-name {
    margin-top: 12px;
    font-size: 15px;
    color: #444;
}

.qualifications-tip {
    font-size: 18px;
    color: #999;
    max-width: 1095px;
    margin: 0 auto;
    line-height: 1.8;
    text-indent: 38px;
}

/* ========== 我们的服务 ========== */
.services {
    background: #FFFFFF;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.services .section-title,
.services .service-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    border: 1px solid #b8d9f0;
    border-radius: 6px;
    padding: 36px 32px;
    background: #fff;
    text-align: center;
    transition: box-shadow 0.2s;
}

.service-card:hover {
    box-shadow: 0 4px 16px rgba(26, 127, 212, 0.12);
}

.service-icon {
    width: 250px;
    height: 250px;
    margin: 0 auto 20px;
    color: #1a7fd4;
}

.inquiry img {
    width: 237px;
    height: 207px;
}

.inquiry img {
    width: 205px;
    height: 226px;
}

.inquiry img {
    width: 272px;
    height: 224px;
}

.inquiry img {
    width: 235px;
    height: 265px;
}

.service-name {
    font-weight: bold;
    font-size: 58px;
    color: #0762CB;
    margin-bottom: 12px;
}

.service-desc {
    font-weight: 400;
    font-size: 36px;
    color: #0762CB;
    line-height: 1.8;
    text-align: left;
}

/* ========== 子页面 Banner ========== */
.page-banner {
    position: relative;
    width: 100%;
    height: 679px;
    overflow: hidden;
    background: #1a5a9e center / cover no-repeat;
}

.page-banner--about {
    background-image: url('../images/banner1.jpg');
}

.page-banner--dept {
    background-image: url('../images/banner2.jpg');
}

.page-banner--doctors {
    background-image: url('../images/banner3.jpg');
}

.page-banner--consultation {
    background-image: url('../images/banner4.jpg');
}

.page-banner--appointment {
    background-image: url('../images/banner5.jpg');
}

.page-banner--aboutOur {
    background-image: url('../images/banner6.jpg');
}


.page-banner-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-banner-title {
    font-weight: bold;
    font-size: 72px;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 12px;
}

.page-banner-subtitle {
    font-weight: 400;
    font-size: 36px;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 1px;
}

/* ========== 科室介绍 ========== */
.dept-section {
    padding-top: 56px;
    padding-bottom: 125px;
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.dept-card {
    width: 540px;
    background: #0762CB;
    border-radius: 8px;
    padding: 40px 36px 44px;
    color: #ffffff;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-left: 25px;
}

.dept-card--empty {
    background: #e8e8e8;
    min-height: 320px;
    pointer-events: none;
}

.dept-icon {
    position: relative;
    width: 250px;
    height: 250px;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.dept-icon img {
    width: 100%;
    height: 100%;
}

.dept-name {
    font-weight: bold;
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.dept-desc {
    font-weight: 400;
    font-size: 22px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.75;
    text-align: left;
    width: 100%;
}

/* ========== 关于我们 ========== */
.about-page-body {
    /* background: #f5f9fc; */
}

.about-intro {
    padding-top: 56px;
    padding-bottom: 48px;
}

.about-qualifications {
    padding-top: 48px;
    padding-bottom: 230px;
}

.about-section-title {
    font-weight: bold;
    font-size: 48px;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
}

.about-text {
    max-width: 1125px;
    margin: 0 auto;
}

.about-text p {
    font-size: 27px;
    color: #333333;
    line-height: 2;
    text-align: justify;
    text-indent: 2em;
    margin-bottom: 24px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-qualifications .qualifications-tip {
    margin-top: 36px;
}

/* ========== 医生团队 ========== */
.doctors-page-body {
    background: #FFFFFF;
}

.doctor-profile {
    padding: 72px 20px 96px;
}

.doctor-card {
    max-width: 1030px;
    margin: 0 auto;
    /* text-align: center; */
}

.doctor-head {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
}

.doctor-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 210px;
    flex-shrink: 0;
}

.doctor-title-vertical {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-weight: 400;
    font-size: 45px;
    color: #595757;
    letter-spacing: 6px;
    line-height: 1.2;
}

.doctor-name-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 14px;
    background: linear-gradient(to right, #38B9FD, #2C89E4);
    /* background: #0762CB; */
    border-radius: 10px;
    font-weight: 800;
    font-size: 45px;
    color: #FFFFFF;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 8px;
    line-height: 1.2;
}

.doctor-avatar {
    width: 586px;
    height: 727px;
    /* border-radius: 50%; */
    overflow: hidden;
    /* border: 4px solid #ffffff;
    box-shadow: 0 8px 24px rgba(7, 98, 203, 0.15); */
    /* flex-shrink: 0;
    background: #d0e4f5; */
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-avatar--placeholder img {
    display: none;
}

.doctor-avatar--placeholder::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #c5d9eb 0%, #a8c4de 100%);
}

.doctor-specialty {
    max-width: 1030px;
    margin: 0 auto;
}

.doctor-specialty p {
    font-weight: 400;
    font-size: 30px;
    color: #595757;
    line-height: 2;
    /* text-align: center; */
}

/* .doctor-specialty-label {
    font-size: 30px;
    color: #595757;
} */

/* ========== 在线问诊 / 预约挂号 ========== */
.form-page-body {
    background: #ffffff;
}

.service-form-section {
    padding: 56px 20px 80px;
}

.service-form {
    max-width: 720px;
    margin: 0 auto;
}

.form-notice {
    font-size: 16px;
    color: #555555;
    line-height: 1.85;
    margin-bottom: 32px;
}

.form-notice--highlight {
    padding: 18px 20px;
    background: #fff8f8;
    border: 1px solid #f0d0d0;
    border-radius: 8px;
    color: #666666;
}

.form-notice--highlight strong {
    color: #333333;
}

.form-notice--plain {
    padding: 0 4px;
    color: #666666;
}

.form-field {
    display: block;
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    font-size: 16px;
    font-family: inherit;
    color: #333333;
    background: #eef5fc;
    border: 1px solid #d4e6f7;
    border-radius: 28px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder {
    color: #9bb8d4;
}

.form-input:focus {
    border-color: #0762CB;
    box-shadow: 0 0 0 2px rgba(7, 98, 203, 0.12);
}

.form-textarea {
    height: auto;
    min-height: 140px;
    padding: 16px 20px;
    border-radius: 16px;
    resize: vertical;
    line-height: 1.6;
}

/* 在线问诊 / 预约服务表单（统一样式） */
.service-form--consultation {
    max-width: 1300px;
    padding: 40px 36px 48px;
    /* border: 1px solid #d4e8f5; */
    border-radius: 4px;
}

.consultation-notice {
    font-weight: 400;
    font-size: 28px;
    color: #595757;
    line-height: 1.85;
    margin-bottom: 80px;
    padding: 0 4px;
}

.service-form--consultation .form-field {
    margin-bottom: 42px;
    text-align: center;
}

.service-form--consultation .form-input {
    width: 600px;
    height: 64px;
    padding: 0 22px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-weight: 500;
    font-size: 24px;
    color: #595757;
}

.service-form--consultation .form-input::placeholder {
    color: #999999;
}

.service-form--consultation .form-input:focus {
    border-color: #00aaff;
    box-shadow: 0 0 0 2px rgba(0, 170, 255, 0.12);
}

.consultation-tip {
    font-weight: 400;
    font-size: 28px;
    color: #595757;
    line-height: 1.85;
    text-align: center;
    margin: 0;
}

.form-submit {
    display: block;
    width: 100%;
    max-width: 638px;
    height: 165px;
    margin: 144px auto 124px;
    padding: 0 32px;
    font-weight: bold;
    font-size: 58px;
    color: #FFFFFF;
    font-family: inherit;
    background: #1a9cf0;
    border: none;
    border-radius: 80px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(26, 156, 240, 0.35);
    transition: opacity 0.2s, transform 0.15s;
}

.form-submit:hover {
    opacity: 0.92;
}

.form-submit:active {
    transform: scale(0.99);
}

.service-form--consultation .form-submit {
    width: 320px;
    max-width: none;
    height: 64px;
    margin: 32px auto 20px;
    padding: 0;
    font-size: 24px;
    font-weight: 500;
    background: #00aaff;
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.35);
}

.service-form--consultation .form-submit:hover {
    opacity: 1;
    background: #0099e6;
}

.form-tip {
    font-size: 14px;
    color: #999999;
    line-height: 1.85;
    text-align: center;
}

/* ========== 占位页 ========== */
.page-placeholder {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
}

.page-placeholder h2 {
    font-size: 28px;
    color: #1a7fd4;
    margin-bottom: 16px;
}

.page-placeholder p {
    font-size: 16px;
}

/* ========== 底部 ========== */
.footer {
    background: #0762CB;
    color: #fff;
    padding-top: 60px;
    height: 360px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-brand {
    /* display: flex;
    align-items: center; */
    gap: 12px;
}

.footer-brand-top {
    display: flex;
    align-items: center;
}

.footer-logo {
    position: relative;
    width: 60px;
    height: 60px;
    margin-right: 12px;
}

.footer-logo img {
    width: 100%;
    height: 100%;
}

.footer-name {
    font-weight: bold;
    font-size: 29px;
    color: #FFFFFF;
}

.footer-brand-bottom {
    font-weight: bold;
    font-size: 29px;
    color: #FFFFFF;
    text-align: center;
    padding-left: 68px;
    margin-top: 20px;
}

.footer-contact h4 {
    font-weight: bold;
    font-size: 27px;
    color: #FFFFFF;
    margin-bottom: 16px;
    margin-top: 10px;
}

.footer-contact p {
    font-weight: bold;
    font-size: 16px;
    color: #FFFFFF;
    line-height: 2;
    /* color: rgba(255, 255, 255, 0.85); */
}

.footer-copy {
    padding: 16px 20px;
    text-align: center;
}

.footer-copy p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-copyright {
    font-size: 13px;
    margin-top: 12px;
}