/* 基础样式 */
:root {
    --primary-color: #007acc;   /* 医疗蓝+海南海洋蓝 */
    --secondary-color: #00a859; /* 海南热带绿 */
    --accent-color: #f5a623;    /* 沙滩金 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* 顶部功能栏-宽屏白底版本 */
.top-bar {
    background: white;
    height: 50px;
    padding: 0 3%; /* 减少两侧留白 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.top-bar-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.top-bar-link {
    color: var(--topbar-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
    position: relative;
    padding: 8px 0;
}

.top-bar-link:hover {
    color: var(--primary-color);
}

/* Header主体样式 */
.header {
    background: linear-gradient(135deg, var(--primary-color) 70%, var(--secondary-color));
    height: 100px;
    padding: 0 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

/* 三层动态海浪效果 */
.header::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 200%;
    height: 40px;
    background:
        /* 底层深色波浪 */
            url('data:image/svg+xml;utf8,<svg viewBox="0 0 500 50" xmlns="http://www.w3.org/2000/svg"><path d="M0 35 C150 15 250 45 500 25 L500 50 L0 50 Z" fill="%23007acc" opacity="0.2"/></svg>'),
                /* 中层主波浪 */
            url('data:image/svg+xml;utf8,<svg viewBox="0 0 500 50" xmlns="http://www.w3.org/2000/svg"><path d="M0 30 C100 40 180 10 300 30 S450 20 500 35 L500 50 L0 50 Z" fill="%23ffffff"/></svg>'),
                /* 上层浅色波浪 */
            url('data:image/svg+xml;utf8,<svg viewBox="0 0 500 50" xmlns="http://www.w3.org/2000/svg"><path d="M0 40 C80 20 160 45 240 30 S400 35 500 25 L500 50 L0 50 Z" fill="%23ffffff" opacity="0.4"/></svg>');
    animation: waveFlow 20s linear infinite;
    transform: translateX(-25%);
}

@keyframes waveFlow {
    0% { transform: translateX(-25%); }
    100% { transform: translateX(-50%); }
}

/* 内容容器 */
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Logo区域 */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}
.logo:hover { opacity: 0.9; }
.logo-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.1));
}
.logo-text {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.3;
}
.imn1{
    height: 70px;
    margin-right: 15px;
}
.logo-text span:first-child {
    font-size: 1.8rem;
    display: block;
    font-weight: 700;
    letter-spacing: 1px;
}
.logo-text span:last-child {
    font-size: 0.9rem;
    opacity: 0.9;
    font-family: Arial, sans-serif;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    gap: 35px;
}
.nav-item {
    position: relative;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 5px 0;
    transition: 0.3s;
    font-weight: 500;
}
.nav-item:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}
.nav-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: 0.3s;
}
.nav-item:hover::after {
    left: 0;
    width: 100%;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .header { height: 80px; }
    .header::after { height: 30px; }
    .nav-menu { display: none; }
    .logo-icon { font-size: 0rem; }
    .logo-text span:first-child { font-size: 1.4rem; }
    .logo-text span:last-child { font-size: 0.8rem; }
}

/* 海南特色装饰元素 */
.hainan-pattern {
    background: repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            var(--hainan-blue) 10px,
            var(--hainan-blue) 20px
    );
    height: 5px;
}


/* 轮播容器基础样式 */
.carousel-container {
    position: relative;
    max-width: 1920px;
    margin: 0rem auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 轮播轨道 */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* 单个轮播项 */
.carousel-item {
    min-width: 100%;
    height: 500px;
    position: relative;
}

/* 背景图片样式 */
.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-position: center;
    background-size: cover;
    object-fit: contain;
}

/* 文字说明层 */
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

/* 导航按钮 */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.carousel-button:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.button-prev {
    left: 20px;
}

.button-next {
    right: 20px;
}

/* 指示器点 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: 0.3s;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-container {
        margin: 1rem;
        border-radius: 4px;
    }

    .carousel-item {
        height: 300px;
    }

    .carousel-caption {
        padding: 1rem;
    }
}

.quick-access {
    max-width: 1200px;

    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 8rem; /* 增大间距 */
    padding: 0 5%;
}

.quick-item {
    text-align: center;
    transition: 0.3s;
    position: relative;
}

/* 完美圆形解决方案 */
.quick-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;  /* 增大尺寸 */
    height: 120px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,122,204,0.2);
    margin-bottom: 20px;
    transition: 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    overflow: hidden;
    border: 2px solid rgba(0,122,204,0.1); /* 添加细微边框 */
}

/* 悬停动效增强 */
.quick-link:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,122,204,0.3);
}

/* 图标尺寸优化 */
.quick-icon {
    width: 55%;
    transition: 0.3s;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

/* 文字样式增强 */
.quick-text {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
}

/* 文字下划线动画 */
.quick-text::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: 0.3s;
}

.quick-item:hover .quick-text::after {
    left: 0;
    width: 100%;
}

/* 移动端适配优化 */
@media (max-width: 768px) {
    .quick-access {
        gap: 3rem;
        margin-bottom: 50px;
    }
    .quick-link {
        width: 80px;
        height: 80px;
    }
    .quick-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .quick-access {
        gap: 1.5rem;
        padding: 0 3%;
    }
}

.quick-access-wrapper {
    margin: 3rem auto;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 20px;
}

/* 核心容器 */
.member-carousel1 {
    width: 66.666%;
    margin: 5rem auto;
    position: relative;
    border-top: 3px solid #007acc;
    border-bottom: 3px solid #007acc;
    background: linear-gradient(to bottom, #f8faff 85%, #fff 100%);
    overflow: hidden;
}

/* 不规则标题栏 */
.carousel-header1 {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: #007acc;
    padding: 1rem 3rem;
    clip-path: polygon(10% 0, 90% 0, 100% 100%, 0% 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    z-index: 2;
}

/* 轮播轨道 */
.carousel-track1 {
    display: flex;
    padding: 3rem 0;
    animation: scroll 100s linear infinite;
    width: max-content;
}

/* 单个项目 */
.member-card1 {
    flex: 0 0 200px;
    margin: 0 2.5rem;
    text-align: center;
    transition: 0.3s;
}

.member-logo1 {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 15px;
    background: white;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,122,204,0.1);
    transition: transform 0.3s;
}

.member-name1 {
    margin-top: 1rem;
    color: #007acc;
    font-weight: 600;
    font-size: 1.1rem;
    width: 250px; /* 容器宽度 */
    white-space: nowrap; /* 禁止换行 */
    overflow: hidden; /* 隐藏溢出内容 */
    text-overflow: ellipsis; /* 添加省略号 */
}

/* 滚动动画 */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 悬停控制 */
.member-carousel:hover .carousel-track {
    animation-play-state: paused;
}

.member-card:hover .member-logo {
    transform: translateY(-5px) scale(1.05);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .member-carousel1 {
        width: 80%;
    }
    .member-card1 {
        margin: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .member-carousel1 {
        width: 90%;
        border-width: 2px;
    }
    .carousel-header1 {
        font-size: 1.2rem;
        padding: 0.8rem 2rem;
        top: -25px;
    }
    .member-logo1 {
        width: 120px;
        height: 120px;
    }
}