/* style.css - 2026 修正版 (带金色荣誉感) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
    /* 品牌色：沉稳的医疗蓝 */
    --primary-color: #0e7490; 
    --primary-dark: #155e75;
    --primary-light: #ecfeff;
    
    /* 辅助色：荣誉金 (恢复并加深，更具质感) */
    --accent-color: #d97706; /* 之前是 amber-600 */
    --accent-light: #fcd34d;
    
    /* 文本色 */
    --text-main: #1e293b;
    --text-light: #64748b;
    
    /* 界面色 */
    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    
    /* 阴影系统 */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Noto Sans SC', "Microsoft YaHei", sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.8;
}

/* 覆盖 Bootstrap */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-light { background-color: #f1f5f9 !important; }
.text-muted { color: var(--text-light) !important; }

/* === 导航栏 === */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm) !important;
    padding: 15px 0;
}

.navbar-brand h2 {
    font-size: 1.5rem;
    font-weight: 700;
    /* 品牌名称使用深蓝色 */
    color: var(--primary-dark) !important;
    margin: 0;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main) !important;
    margin-left: 10px;
    transition: all 0.3s;
}

/* 导航悬停时使用金色，增加活跃感 */
.nav-link:hover, .nav-link.active {
    color: var(--accent-color) !important;
}

/* === 页面头部 Hero === */
section.bg-primary {
    /* 背景保持蓝色渐变，体现医疗属性 */
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
    padding: 120px 0 80px;
    position: relative;
}

/* === 标题与金色装饰 === */
.section-title {
    font-weight: 700;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    padding-bottom: 15px;
}

/* 核心修改：标题下方的横线改为金色 */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color); /* 金色 */
    border-radius: 2px;
}

/* 核心修改：副标题强制使用金色 */
.section-subtitle {
    color: var(--accent-color) !important; /* 金色 */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.95rem;
    margin-top: 5px;
}

/* === 卡片与团队 === */
.card {
    border: none;
    border-radius: 12px;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 30px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    /* 悬停时顶部出现金色边框 */
    border-top: 4px solid var(--accent-color); 
}

/* 专家头像金圈 */
.team-card img {
    /* 默认浅色边框 */
    border: 4px solid var(--primary-light); 
    transition: all 0.3s;
}

.team-card:hover img {
    /* 悬停时变更为金色边框，强调专家身份 */
    border-color: var(--accent-color);
    transform: scale(1.05);
}

/* === 按钮 === */
.btn-primary {
    /* 按钮保持主色调，稳重 */
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(14, 116, 144, 0.2);
    transition: all 0.3s;
}

.btn-primary:hover {
    box-shadow: 0 8px 15px rgba(14, 116, 144, 0.3);
    transform: translateY(-2px);
    /* 悬停时稍微提亮 */
    filter: brightness(1.1);
}

/* =========================================
   页脚专业美化版 (Footer Professional Refinement)
   ========================================= */

/* 1. 整体容器：使用深蓝渐变，而非死板的黑色 */
.site-footer {
    background: linear-gradient(180deg, #162a3b 0%, #0f172a 100%); /* 深蓝灰渐变 */
    color: #94a3b8; /* 柔和的灰蓝色文字，比纯白更护眼 */
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

/* 顶部装饰线：金色线条，强调分割 */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
}

/* 2. 标题样式 */
.footer-title {
    color: #f1f5f9; /* 亮白色标题 */
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 12px;
}

/* 标题下方的金色短横线 */
.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color); /* 荣誉金 */
    border-radius: 2px;
}

/* 3. 链接列表 */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a i {
    font-size: 0.8rem;
    margin-right: 8px;
    opacity: 0.6;
    transition: 0.3s;
}

/* 悬停效果：文字变白，图标变金，且轻微右移 */
.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px; /* 动效 */
}

.footer-links a:hover i {
    color: var(--accent-color);
    opacity: 1;
}

/* 4. 联系方式列表 */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-contact i {
    color: var(--accent-color); /* 图标使用金色 */
    margin-right: 12px;
    margin-top: 5px; /* 对齐文本 */
    font-size: 1.1rem;
}

/* 5. 底部版权栏 */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2); /* 在深色背景上再叠加一层半透明黑 */
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a:hover {
    color: var(--accent-color) !important;
}

/* 6. 社交图标优化（圆形） */
.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: white !important;
    transition: all 0.3s;
}

.footer-social a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}
/* === 自媒体矩阵美化 (Social Matrix Refinement) === */

/* 容器布局微调 */
#social-media-container {
    padding: 20px 0;
    gap: 20px; /* 卡片之间的间距 */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* 单个卡片样式 */
.social-card {
    background: #fff;
    border-radius: 16px; /* 更圆润的角 */
    padding: 30px 20px;
    width: 180px; /* 固定宽度，整齐 */
    text-align: center;
    text-decoration: none !important;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 弹性动画 */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 悬停时的整体效果 */
.social-card:hover {
    transform: translateY(-10px); /* 上浮更明显 */
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.15);
}

/* 图标容器 */
.social-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-light); /* 默认淡蓝色背景 */
    color: var(--primary-color);      /* 默认深蓝色图标 */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

/* 文字样式 */
.social-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1.1rem;
    transition: color 0.3s;
}

.social-action {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
    opacity: 0; /* 默认隐藏 */
    transform: translateY(10px);
    transition: all 0.3s;
}

/* 悬停时显示"点击关注" */
.social-card:hover .social-action {
    opacity: 1;
    transform: translateY(0);
    color: var(--accent-color); /* 金色 */
}

/* === 各平台品牌色定义 (悬停时生效) === */

/* 微信 - 绿色 */
.social-card.weixin:hover { border-bottom: 4px solid #07c160; }
.social-card.weixin:hover .social-icon-wrapper { background: #07c160; color: white; box-shadow: 0 10px 20px -5px rgba(7, 193, 96, 0.4); }

/* 微博 - 红色 */
.social-card.weibo:hover { border-bottom: 4px solid #e6162d; }
.social-card.weibo:hover .social-icon-wrapper { background: #e6162d; color: white; box-shadow: 0 10px 20px -5px rgba(230, 22, 45, 0.4); }

/* YouTube - 红色 */
.social-card.youtube:hover { border-bottom: 4px solid #ff0000; }
.social-card.youtube:hover .social-icon-wrapper { background: #ff0000; color: white; box-shadow: 0 10px 20px -5px rgba(255, 0, 0, 0.4); }

/* TikTok - 黑色/抖音色 */
.social-card.tiktok:hover { border-bottom: 4px solid #000000; }
.social-card.tiktok:hover .social-icon-wrapper { background: #000000; color: white; box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.4); }

/* QQ - 蓝色 */
.social-card.qq:hover { border-bottom: 4px solid #12b7f5; }
.social-card.qq:hover .social-icon-wrapper { background: #12b7f5; color: white; box-shadow: 0 10px 20px -5px rgba(18, 183, 245, 0.4); }

/* 默认/其他 - 金色 */
.social-card.default:hover { border-bottom: 4px solid var(--accent-color); }
.social-card.default:hover .social-icon-wrapper { background: var(--accent-color); color: white; }
/* === 新闻卡片高度统一美化 === */

/* 1. 强制固定图片高度，防止图片长宽不一导致卡片错位 */
.news-img-fixed {
    height: 220px;       /* 设定一个固定的高度 */
    width: 100%;         /* 宽度撑满 */
    object-fit: cover;   /* 裁剪图片，保证不便形 */
}

/* 2. 限制文本行数，超出显示省略号 */
.text-limit-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;  /* 限制显示 3 行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 4.5em;      /* 占位高度：保证即使字很少，也占3行的高度，对齐更整齐 */
    margin-bottom: 1rem;
}

/* 3. 限制标题行数（防止标题太长换行把卡片撑高） */
.title-limit-1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- 移动端适配样式 --- */
@media (max-width: 768px) {
    /* 1. 导航栏标题适配：缩小字号 */
    .navbar-brand h2 {
        font-size: 1.1rem; /* 电脑上默认是 2rem，手机上改小 */
        margin-bottom: 0;
        white-space: nowrap; /* 强行不换行 */
        overflow: hidden;
        text-overflow: ellipsis; /* 超出部分显示省略号 */
        max-width: 70vw; /* 限制宽度，给右边的汉堡菜单留位置 */
    }
    
    /* 2. 轮播图高度适配：电脑600px太高了，手机改矮 */
    .carousel-item img {
        height: 250px !important; /* 强制覆盖内联样式的600px */
    }
    
    /* 3. 轮播图文字调整 */
    .carousel-caption {
        bottom: 1rem !important;
        padding-bottom: 0;
    }
    .carousel-caption h5 {
        font-size: 1.2rem !important;
    }
    .carousel-caption p {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* 限制只显示2行文字 */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* 4. 自媒体矩阵：手机上一行显示3个 */
    #social-media-container .social-card {
        width: calc(33.33% - 14px); /* 一行3个，减去间距 */
        margin-bottom: 15px;
    }
    
    /* 5. 减少页面间距 */
    section.bg-primary {
        padding: 60px 0 40px;
    }
    
    /* 6. 让标题文字小一点 */
    h1 { font-size: 2rem; }
    h2.section-title { font-size: 1.75rem; }
}

/* =========================================
   内页顶部 Header 美化 (Page Header Refinement)
   ========================================= */

.page-header {
    /* 核心背景：深蓝渐变 + 抽象圆点纹理（模拟医疗科技感） */
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(14, 116, 144, 0.85) 100%),
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 80% 30%, rgba(217, 119, 6, 0.08) 0%, transparent 20%);
    
    /* 如果你有真实的背景图，请取消下面这行的注释，并替换路径 */
    /* background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(14, 116, 144, 0.8) 100%), url('../images/banner-bg.jpg'); */
    
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 140px 0 100px;
    color: white;
    margin-top: 0 !important;
    overflow: hidden;
}

/* 底部装饰：微波浪切角，打破死板的直线 */
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: var(--bg-body);
    clip-path: ellipse(60% 80% at 50% 100%);
}

/* 标题样式 */
.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

/* 标题下方的金色装饰线 */
.page-header h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin-top: 15px;
    border-radius: 2px;
}

/* 副标题样式 */
.page-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* 面包屑导航样式 (Glassmorphism 玻璃拟态) */
.breadcrumb-box {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.breadcrumb {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
}

.breadcrumb-item a:hover {
    color: var(--accent-color);
}

.breadcrumb-item.active {
    color: white;
    font-weight: 500;
}

/* 分隔符颜色 */
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   卡片按钮固定定位优化 (Fix Button Position)
   ========================================= */

/* 1. 卡片内容容器：作为定位的基准点 */
.card-fixed-body {
    position: relative !important;
    padding-bottom: 60px !important;
    display: block !important;
    min-height: 240px;
}

/* 2. 按钮容器：强制钉在左下角 */
.btn-fixed-bottom {
    position: absolute !important;
    bottom: 20px !important;
    left: 20px !important;
    z-index: 10;
    width: auto;
    text-align: left !important;
    margin: 0 !important;
}

/* 3. 文本区域：限制高度，超出隐藏 */
.text-fixed-area {
    overflow: hidden;
    margin-bottom: 0;
}

/* =========================================
   新闻卡片样式优化 (News Card Styles)
   ========================================= */

/* 新闻卡片图片容器 */
.news-card-img-wrapper {
    height: 220px;
    width: 100%;
    overflow: hidden;
    background-color: #f0f4f8;
}

/* 新闻卡片图片 */
.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 新闻卡片主体 */
.news-card-body {
    min-height: 220px;
    padding: 1.25rem;
}

/* 新闻卡片标题 */
.news-card-title {
    line-height: 1.4;
    padding-bottom: 2px;
    margin-bottom: 0.5rem;
}

/* 页脚描述 */
.footer-description {
    max-width: 90%;
}

/* =========================================
   专家卡片样式优化 (Team Card Styles)
   ========================================= */

/* 专家卡片多行文本截断与对齐 */
.team-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 4; /* 限制只显示4行，超出的文字用省略号代替 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left; /* 简介左对齐，阅读体验更好 */
    line-height: 1.6;
}

.team-card-wrapper {
    margin-bottom: 1.5rem; /* 保证换行后卡片上下有足够的间距 */
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}