@charset "UTF-8";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, #1a5f7a 0%, #2d7a9a 100%);
    color: white;
    padding: 8px 0;
    font-size: 13px;
}
.top-bar span{
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    text-align: right;
    padding-right: 20px;
}
/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #1a5f7a;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1a5f7a, #4a9aba);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a5f7a;
    font-size: 20px;
    font-weight: bold;
}

.phone-icon {
    width: 24px;
    height: 24px;
}
.phone-title{
    font-size: 13px;
}

/* Navigation */
nav {
    background: white;
    border-top: 1px solid #eee;
    position: relative;
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    padding: 0 20px;
}

.nav-content > a {
    color: #333;
    text-decoration: none;
    padding: 18px 0;
    display: block;
    position: relative;
    transition: color 0.3s ease;
    font-size: 20px;
}

.nav-content > a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #144f72, #43728e);
    transition: width 0.3s ease;
}

.nav-content > a:hover {
    color: #144f72;
}

.nav-content > a:hover::after {
    width: 100%;
}

/* Dropdown Navigation Styles */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.nav-item-dropdown .nav-link {
    color: #333;
    text-decoration: none;
    padding: 18px 0;
    display: block;
    position: relative;
    transition: color 0.3s ease;
    font-size: 20px;
    cursor: pointer;
}

/* .nav-item-dropdown .nav-link::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #144f72, #43728e);
    transition: width 0.3s ease;
} */

.nav-item-dropdown:hover .nav-link {
    color: #144f72;
}

.nav-item-dropdown:hover .nav-link::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-width: 120px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
    padding: 8px 0;
    z-index: 1001;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.dropdown-item {
    display: block;
    padding: 12px 24px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, #144f72, #43728e);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(20, 79, 114, 0.05), transparent);
    color: #144f72;
    padding-left: 28px;
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

/* Dropdown Arrow Indicator */
/* .nav-item-dropdown .nav-link::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.nav-item-dropdown:hover .nav-link::before {
    transform: rotate(180deg);
    opacity: 1;
} */

/* Hero Banner Carousel */
/* Make the hero section full-bleed horizontally (edge-to-edge) so the banner
    always spans the viewport width regardless of surrounding layout. */
.hero {
    position: relative;
    overflow: hidden;
    color: white;
    width: 100vw; /* force full viewport width */
    margin-left: calc(50% - 50vw); /* center the full-bleed area within the page flow */
    margin-right: calc(50% - 50vw);
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: none; /* ensure no container width limit interferes */
    /* Use viewport-relative sizing so the hero scales on large/high-res screens
        instead of relying on a fixed pixel height which causes cropping. */
    min-height: 50vh;
    height: 74vh;
    max-height: 900px; /* avoid becoming extremely tall on huge screens */
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background: #f5f5f5;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text {
    position: absolute;
    z-index: 10;
    text-align: center;
    width: auto;
    max-width: 600px;
    padding: 0 20px;
}

/* 按钮位置控制 - 底部居中（默认） */
.hero-text[data-position="bottom-center"] {
    bottom: 143px;
    left: 50%;
    transform: translateX(-50%);
}

/* 按钮位置控制 - 底部左侧 */
.hero-text[data-position="bottom-left"] {
    bottom: 80px;
    left: 80px;
    transform: none;
    text-align: left;
}

/* 按钮位置控制 - 底部右侧 */
.hero-text[data-position="bottom-right"] {
    bottom: 80px;
    right: 80px;
    left: auto;
    transform: none;
    text-align: right;
}

/* 按钮位置控制 - 中间左侧 */
.hero-text[data-position="middle-left"] {
    top: 50%;
    left: 80px;
    transform: translateY(-50%);
    text-align: left;
}

/* 按钮位置控制 - 中间右侧 */
.hero-text[data-position="middle-right"] {
    top: 50%;
    right: 80px;
    left: auto;
    transform: translateY(-50%);
    text-align: right;
}

/* 按钮位置控制 - 顶部居中 */
.hero-text[data-position="top-center"] {
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
}
/* 按钮其他位置 */
.hero-text[data-position="banner2"] {
    bottom: 24%;
    left: 50%;
    transform: translateX(-50%);
}
.hero-text[data-position="banner3"] {
    bottom: 230px;
    left: 376px;
}
.hero-text[data-position="banner4"] {
    bottom: 92px;
    left: 50%;
    transform: translateX(-50%);
}
.hero-text[data-position="banner5"] {
    bottom: 198px;
    left: 372px;
}
.hero-text[data-position="banner6"] {
    bottom: 209px;
    left: 163px;
}
/* banner按钮颜色单独控制 */
.hero-text[data-position="banner6"] .btn-primary{
    background: #162463;
    box-shadow:none;
}
.hero-text[data-position="banner6"] .btn-secondary{
    background: #162463;
}

.hero-image {
    width: 100%;
    /* height: 100%; */
    position: relative;
}

.hero-image img {
    /* Fill the full horizontal area and cover vertically — this ensures the
        banner spans the viewport horizontally (full-bleed) and the image
        covers the area. If you prefer no cropping, switch to object-fit: contain. */
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    display: block;
}

/* Larger screens: increase hero height so wide/ultrawide monitors show more of the image */
@media (min-width: 1600px) {
    .carousel-container {
        height: 740px;
        min-height: 680px;
        max-height: 1100px;
    }
}

/* Ultra-wide / very high-res displays: give even more vertical space */
@media (min-width: 2200px) {
    .carousel-container {
        height: 85vh;
        min-height: 780px;
        max-height: 1300px;
    }
}

/* Carousel Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.95);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.28s ease;
    backdrop-filter: blur(5px);
    /* hidden by default; reveal on hover of the banner */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

/* Reveal arrows when user hovers the hero/banner */
.hero:hover .carousel-arrow,
.hero:focus-within .carousel-arrow {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
}

/* Keyboard accessibility: show when focused */
.carousel-arrow:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(34,139,230,0.15);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
}

/* Mobile: show arrows by default because hover isn't available */
@media (max-width: 768px) {
    .carousel-arrow {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(-50%) scale(1);
    }
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.dot.active {
    background: white;
    width: 40px;
    border-radius: 6px;
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-text .subtitle {
    font-size: 28px;
    margin-bottom: 15px;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-text .description {
    font-size: 16px;
    margin-bottom: 30px;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    /* padding: 14px 35px; */
    width: 162px;
    height: 45px;
    border: none;
    /* border-radius: 30px; */
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}

.btn-primary {
    /* background: linear-gradient(135deg, #f39c12, #f1c40f); */
    background: #f29e00;
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(243, 156, 18, 0.6);
}

.btn-secondary {
    /* background: white; */
    /* background: linear-gradient(135deg, #f39c12, #f1c40f); */
    background: #f29e00;
    /* color: #f39c12; */
    color: white;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.5);
}



/* Sidebar */
.sidebar {
    position: fixed;
    right: 20px;
    top: 76%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-item {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 11px;
    color: #666;
}

.sidebar-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    color: #1a5f7a;
}

.sidebar-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

/* Department Section */
.department-section {
    width: 1200px;
    margin: 130px auto;
    /* padding: 80px 20px; */
    /* background: #f8f9fa; */
    position: relative;
}

.department-section .section-title {
    width: 1200px;
    height: 222px;
    /* text-align: center; */
    margin: 0 auto;
}

.department-section .section-title h2 {
    font-size: 38px;
    color: #144f72;            
    display: inline-block;
}
.department-section .section-title .divsion {
    font-size: 38px;
    color: #18181a;
    position: relative;
}

.department-section .section-title .divsion::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 95px;
    height: 6px;
    border-radius: 3px;
    /* background: linear-gradient(90deg, #f39c12, #f1c40f); */
    background: #155574;
}

.department-section .section-title .subtitle {
    color: #000;
    font-size: 55px;
}

/* .department-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
} */
    .department-grid {
    margin: 0 auto;
    width: 1200px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.department-grid .department-card:first-child{
    position: absolute;
    top: 0;
    left: 600px;
}
/* .department-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
} */

.department-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.9), rgba(74, 154, 186, 0.9));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.department-card img{
    display: block;
}
/* .department-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
} */

/* .department-card:hover::before {
    opacity: 1;
} */

/* .department-card-content {
    padding: 60px 30px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
} */

/* .department-card:hover .department-card-content {
    color: white;
} */

/* .department-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #1a5f7a, #4a9aba);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.department-card:hover .department-icon {
    background: white;
}

.department-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
    transition: fill 0.3s ease;
}

.department-card:hover .department-icon svg {
    fill: #1a5f7a;
}

.department-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.department-card p {
    font-size: 14px;
    opacity: 0.8;
} */

/* Doctor Section */
.doctor-section {
    /* padding: 80px 20px; */
    height: 1008px;
    background: linear-gradient(135deg, #1a5f7a 0%, #2d7a9a 100%);
    color: white;
    position: relative;
    display: flex;
}

.doctor-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(90deg, #f39c12, transparent);
    opacity: 0.3;
}
.doctor-section .section-title{
    height: 100%;
    width: 37%;
    background: #f29d00;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}



.doctor-section .section-title h2{
    font-size: 55px;
}

.doctor-section .section-title .subtitle {
    font-size: 38px;
}

.doctor-grid {
    min-width: 1560px;
    /* margin: 0 auto; */
    display: flex;
    flex-wrap: wrap;
}

.doctor-card {
    width: 520px;
    text-align: center;
    transition: transform 0.3s ease;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.doctor-card-front {
    transition: opacity 0.4s ease;
}

.doctor-card:hover .doctor-card-front {
    opacity: 0;
}

.doctor-avatar {
    width: 150px;
    height: 150px;
    margin: 113px auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    position: relative;
}

.doctor-card:hover .doctor-avatar {
    border-color: #f39c12;
    box-shadow: 0 0 30px rgba(243, 156, 18, 0.5);
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4a9aba, #1a5f7a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}

.doctor-card-front h3 {
    font-size: 36px;
    margin-bottom: 8px;
}

.doctor-card-front p {
    font-size: 20px;
    opacity: 0.9;
}

/* Doctor Detail Card */
.doctor-card-detail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: flex;
}

.doctor-card:hover .doctor-card-detail {
    opacity: 1;
    visibility: visible;
}

.doctor-detail-tag {
    width: 46px;
    height: 260px;
    background: #155574;
    color: white;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 20px 0;
}
.doctor-detail-tag span{
    font-size: 10px;
    margin-top: 10px;
}
.doctor-detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* background: #f5f5f5; */
}

.doctor-detail-photo {
    width: 100%;
    height: 260px;
    overflow: hidden;
    /* background: #dcdcdd; */
    background: #f5f5f5;
    display: flex;
    /* justify-content: space-between; */
    text-align: center;
}

.doctor-detail-photo img {
    /* width: 100%;
    height: 100%; */
    object-fit: cover;
    margin: 0 auto;
}

.doctor-detail-info {
    flex: 1;
    padding: 0 24px;
    text-align: left;
    background:#fff;
    color: #18181a;
}

.doctor-detail-info h3 {
    font-size: 36px;
    margin-bottom: 6px;
    font-weight: 700;
}

.doctor-detail-info h3 span {
    font-size: 21px;
    font-weight: 400;
    margin-left: 8px;
}

.doctor-expertise {
    margin-top: 10px;
}

.expertise-title {
    background: #155574;
    color: white;
    display: inline-block;
    padding: 1px 9px;
    font-size: 23px;
    font-weight: 600;
    margin-bottom: 8px;
}

.doctor-expertise p {
    font-size: 20px;
    line-height: 1.3;
    text-align: justify;
}

/* Special Treatment Section */
.treatment-section {
    padding: 80px 20px;
    background: white;
    position: relative;
    
}
.treatment-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/special_section_bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0.2; 
    /* z-index: -1; 确保伪元素在内容之下 */
}
.treatment-section .section-title{
    text-align: center;
    color: #18181a;
    margin-bottom: 90px;
}
.treatment-section .section-title h2 {
    font-size: 55px;
}
.treatment-section .section-title .subtitle{
    font-size: 24px;
}

.treatment-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.treatment-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.treatment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 35px rgba(0,0,0,0.15);
}

.treatment-card-content {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.treatment-image {
    width: 300px;
    height: 193px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.treatment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* .treatment-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f4f8, #d4e9f2);
    display: flex;
    align-items: center;
    justify-content: center;
} */

.treatment-info h3 {
    font-size: 22px;
    color: #1a5f7a;
    margin-bottom: 15px;
}

.treatment-info p {
    font-size: 16px;
    color: #18181a;
    line-height: 1.8;
    margin-bottom: 15px;
}

.treatment-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.treatment-tag {
    padding: 6px 15px;
    background: #f0f8ff;
    color: #1a5f7a;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid #d4e9f2;
}

/* Footer */
footer {
    /* background: #1a1a1a; */
    background: linear-gradient(135deg, #1a5f7a 0%, #2d7a9a 100%);
    color: white;
    padding: 5px 20px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 12px;
}

.footer-content p {
    margin-bottom: 10px;
    opacity: 0.8;
}
.footer-content a{
    color: #fff;
    text-decoration: none;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    z-index: 998;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(243, 156, 18, 0.6);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-container {
        height: 400px;
    }

    /* 移动端统一按钮位置到底部居中 */
    .hero-text[data-position="bottom-center"],
    .hero-text[data-position="bottom-left"],
    .hero-text[data-position="bottom-right"],
    .hero-text[data-position="middle-left"],
    .hero-text[data-position="middle-right"],
    .hero-text[data-position="top-center"] {
        bottom: 40px !important;
        top: auto !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        text-align: center !important;
        width: 95%;
        max-width: none;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text .subtitle {
        font-size: 18px;
    }

    .hero-text .description {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-buttons .btn {
        flex: 1;
        min-width: 120px;
        padding: 12px 20px;
        font-size: 14px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }

    .carousel-dots {
        bottom: 15px;
    }

    .department-grid,
    .doctor-grid,
    .treatment-grid {
        grid-template-columns: 1fr;
    }

    .nav-content {
        gap: 15px;
        font-size: 13px;
        flex-wrap: wrap;
    }

    .nav-content > a,
    .nav-item-dropdown .nav-link {
        padding: 12px 0;
        font-size: 13px;
    }

    /* Mobile dropdown adjustments */
    .dropdown-menu {
        min-width: 150px;
        font-size: 13px;
    }

    .dropdown-item {
        padding: 10px 18px;
        font-size: 13px;
    }

    .nav-item-dropdown .nav-link::before {
        border-left: 3px solid transparent;
        border-right: 3px solid transparent;
        border-top: 4px solid currentColor;
    }

    .sidebar {
        display: none;
    }
}