/* 8. style.css - 网站样式 */

/* ==================== 基础变量与重置 ==================== */
:root {
    /* 青黛绿色系 - 医疗专业感 */
    --teal-primary: #009688;
    --teal-dark: #00796b;
    --teal-light: #e0f2f1;
    --teal-accent: #80cbc4;
    --teal-pale: #b2dfdb;
    
    /* 辅助色 */
    --danger-custom: #e53935;
    --warning-custom: #ff9800;
    --info-custom: #2196f3;
    --purple-custom: #9c27b0;
    --pink-custom: #e91e63;
    
    /* 文字色 */
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    
    /* 背景色 */
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    
    /* 阴影 */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    /* 圆角 */
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 1rem;
}

/* ==================== 基础样式 ==================== */
body.qi-yu-medical-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--teal-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--teal-dark);
}

/* ==================== 颜色工具类 ==================== */
.text-teal { color: var(--teal-primary) !important; }
.text-teal-dark { color: var(--teal-dark) !important; }
.text-teal-light { color: var(--teal-light) !important; }
.text-teal-accent { color: var(--teal-accent) !important; }

.bg-teal { background-color: var(--teal-primary) !important; }
.bg-teal-dark { background-color: var(--teal-dark) !important; }
.bg-teal-light { background-color: var(--teal-light) !important; }
.bg-teal-accent { background-color: var(--teal-accent) !important; }

.bg-gradient-teal {
    background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-dark) 100%) !important;
}

.bg-gradient-teal-dark {
    background: linear-gradient(135deg, var(--teal-dark) 0%, #004d40 100%) !important;
}

.bg-gradient-teal-light {
    background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal-pale) 100%) !important;
}

.border-teal { border-color: var(--teal-primary) !important; }

.btn-teal {
    background-color: var(--teal-primary);
    border-color: var(--teal-primary);
    color: white;
}

.btn-teal:hover {
    background-color: var(--teal-dark);
    border-color: var(--teal-dark);
    color: white;
}

.btn-outline-teal {
    color: var(--teal-primary);
    border-color: var(--teal-primary);
}

.btn-outline-teal:hover {
    background-color: var(--teal-primary);
    border-color: var(--teal-primary);
    color: white;
}

/* ==================== 顶部栏 ==================== */
.qi-yu-top-bar {
    font-size: 0.875rem;
}

.bg-gradient-teal {
    background: linear-gradient(90deg, var(--teal-dark) 0%, var(--teal-primary) 100%);
}

/* ==================== 导航栏 ==================== */
.qi-yu-navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.qi-yu-navbar .navbar-brand h1 {
    background: linear-gradient(45deg, var(--teal-dark), var(--teal-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.qi-yu-navbar .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    position: relative;
}

.qi-yu-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--teal-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.qi-yu-navbar .nav-link:hover::after,
.qi-yu-navbar .nav-link.active::after {
    width: 80%;
}

.qi-yu-navbar .nav-link.active {
    color: var(--teal-primary);
}

.btn-consultation {
    background: linear-gradient(45deg, var(--teal-primary), var(--teal-dark));
    border: none;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 150, 136, 0.3);
    transition: all 0.3s ease;
}

.btn-consultation:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 150, 136, 0.4);
}

/* ==================== 移动端底部导航 ==================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    z-index: 1030;
    border-top: 1px solid #eee;
}

.mobile-bottom-nav a {
    color: var(--text-secondary);
    font-size: 0.75rem;
    display: block;
    padding: 0.25rem;
}

.mobile-bottom-nav a:hover {
    color: var(--teal-primary);
}

.mobile-bottom-nav i {
    font-size: 1.25rem;
}

/* ==================== 页脚 ==================== */
.qi-yu-footer {
    background: linear-gradient(135deg, #263238 0%, #1c2429 100%);
    position: relative;
}

.qi-yu-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal-primary), var(--teal-accent));
}

.text-teal-light {
    color: var(--teal-pale) !important;
}

.hover-white:hover {
    color: white !important;
}

.footer-links a {
    transition: all 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    transform: translateX(5px);
    color: white !important;
}

.bg-dark-teal {
    background-color: #263238 !important;
}

/* ==================== 返回顶部按钮 ==================== */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--teal-primary);
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1020;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--teal-dark);
    color: white;
    transform: translateY(-3px);
}

/* ==================== 悬浮咨询按钮 ==================== */
.floating-consult {
    position: fixed;
    bottom: 140px;
    right: 20px;
    z-index: 1019;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* ==================== 页面头部 ==================== */
.page-header {
    position: relative;
    margin-bottom: 0;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, rgba(248,249,250,1) 0%, rgba(248,249,250,0) 100%);
    display: none;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* ==================== 文章正文样式 ==================== */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--teal-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--teal-primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-style: italic;
    background: var(--teal-light);
    padding: 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* ==================== 工具类 ==================== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.object-fit-cover {
    object-fit: cover;
}

.ls-2 {
    letter-spacing: 0.2em;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 991.98px) {
    .qi-yu-navbar .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        margin-top: 1rem;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    body {
        padding-bottom: 60px; /* 为移动端底部导航留出空间 */
    }
    
    .back-to-top {
        bottom: 100px;
        right: 15px;
    }
    
    .floating-consult {
        bottom: 160px;
        right: 15px;
    }
}

@media (max-width: 767.98px) {
    .hero-slider {
        height: 500px !important;
    }
    
    .city-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important;
    }
    
    .process-step::after {
        display: none;
    }
}

/* ==================== 打印样式 ==================== */
@media print {
    .qi-yu-top-bar,
    .qi-yu-navbar,
    .mobile-bottom-nav,
    .qi-yu-footer,
    .back-to-top,
    .floating-consult {
        display: none !important;
    }
    
    body {
        padding-bottom: 0 !important;
    }
}

/* ==================== 动画效果 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* ==================== 表单样式增强 ==================== */
.form-control:focus {
    border-color: var(--teal-primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 150, 136, 0.25);
}

.input-group-text {
    border-color: #dee2e6;
}

/* ==================== 警告框样式 ==================== */
.alert-teal-light {
    background-color: var(--teal-light);
    border-color: var(--teal-accent);
    color: var(--teal-dark);
}

/* ==================== 徽章样式 ==================== */
.badge.bg-teal-light {
    background-color: var(--teal-light) !important;
    color: var(--teal-dark);
}

.badge.bg-danger-light {
    background-color: #ffebee !important;
    color: var(--danger-custom);
}

.badge.bg-warning-light {
    background-color: #fff3e0 !important;
    color: var(--warning-custom);
}

.badge.bg-info-light {
    background-color: #e3f2fd !important;
    color: var(--info-custom);
}

.badge.bg-purple-light {
    background-color: #f3e5f5 !important;
    color: var(--purple-custom);
}

.badge.bg-pink-light {
    background-color: #fce4ec !important;
    color: var(--pink-custom);
}

/* ==================== 卡片样式优化 ==================== */
.card {
    transition: all 0.3s ease;
}

.card.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

/* ==================== 时间线样式 ==================== */
.timeline-vertical {
    position: relative;
}

.timeline-dot {
    z-index: 1;
}

/* ==================== 城市标签样式 ==================== */
.city-tag {
    transition: all 0.3s ease;
}

.city-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 150, 136, 0.3);
}

/* ==================== 专家团队卡片 ==================== */
.expert-card {
    overflow: hidden;
}

.expert-card img {
    transition: transform 0.5s ease;
}

.expert-card:hover img {
    transform: scale(1.1);
}

/* ==================== 流程步骤 ==================== */
.process-step {
    position: relative;
}

@media (min-width: 768px) {
    .process-step::after {
        content: '';
        position: absolute;
        top: 30px;
        right: -50%;
        width: 100%;
        height: 2px;
        background: linear-gradient(to right, var(--teal-primary), var(--teal-accent));
        z-index: 0;
    }
    
    .process-step:last-child::after {
        display: none;
    }
}

/* ==================== 统计数字 ==================== */
.stats-counter {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--teal-primary), var(--teal-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .stats-counter {
        font-size: 2rem;
    }
}

/* ==================== 特色模块样式 ==================== */
.audience-card {
    border-left: 4px solid var(--teal-primary);
    transition: all 0.3s ease;
}

.audience-card:hover {
    border-left-width: 8px;
    background: rgba(0, 150, 136, 0.05);
}

/* ==================== 视频播放按钮 ==================== */
.video-play-btn {
    position: relative;
    cursor: pointer;
}

.video-play-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 150, 136, 0.3);
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ==================== 保证项样式 ==================== */
.guarantee-item {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border-bottom: 4px solid transparent;
}

.guarantee-item:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--teal-primary);
    box-shadow: 0 10px 30px rgba(0, 150, 136, 0.15);
}

/* ==================== 时间线项目 ==================== */
.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 2rem;
    border-left: 3px solid var(--teal-light);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--teal-primary);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--teal-light);
}

.timeline-item:last-child {
    border-left: 3px solid transparent;
}

/* ==================== 滚动新闻条 ==================== */
.news-ticker {
    overflow: hidden;
    white-space: nowrap;
}

.news-ticker-content {
    display: inline-block;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ==================== 特色图标 ==================== */
.feature-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    color: var(--teal-dark);
    font-size: 2rem;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.feature-box:hover .feature-icon {
    transform: rotateY(360deg);
    background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-dark) 100%);
    color: white;
}

/* ==================== 浮动动画 ==================== */
.float-anim {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ==================== 渐变文字 ==================== */
.gradient-text {
    background: linear-gradient(45deg, var(--teal-primary), #004d40);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==================== 章节标题 ==================== */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--teal-primary), var(--teal-accent));
    border-radius: 2px;
}

/* ==================== 视差区域 ==================== */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 77, 64, 0.85);
}

/* ==================== 案例图片效果 ==================== */
.case-image {
    position: relative;
    overflow: hidden;
}

.case-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.case-image:hover::before {
    left: 100%;
}

/* ==================== 技术徽章 ==================== */
.tech-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 150, 136, 0.9);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

/* ==================== 标签页自定义 ==================== */
.nav-pills-custom .nav-link {
    border: 2px solid transparent;
    border-radius: 10px 10px 0 0;
    margin-right: 5px;
    color: #666;
    font-weight: 600;
}

.nav-pills-custom .nav-link.active {
    background: white;
    border-color: #e0f2f1 #e0f2f1 white;
    color: var(--teal-primary);
    border-bottom: 2px solid white;
    margin-bottom: -2px;
}

.tab-content-custom {
    border: 2px solid #e0f2f1;
    border-top: none;
    border-radius: 0 0 15px 15px;
    padding: 2rem;
    background: white;
}

/* ==================== 白透明背景 ==================== */
.bg-white-10 {
    background: rgba(255, 255, 255, 0.1);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

/* ==================== 边框透明度 ==================== */
.border-white-20 {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ==================== 紫色和粉色背景 ==================== */
.bg-purple {
    background-color: var(--purple-custom) !important;
}

.bg-pink {
    background-color: var(--pink-custom) !important;
}

.text-purple {
    color: var(--purple-custom) !important;
}

.text-pink {
    color: var(--pink-custom) !important;
}

/* ==================== 信息颜色 ==================== */
.text-info {
    color: var(--info-custom) !important;
}

.bg-info {
    background-color: var(--info-custom) !important;
}

/* ==================== 警告颜色 ==================== */
.text-warning {
    color: var(--warning-custom) !important;
}

.bg-warning {
    background-color: var(--warning-custom) !important;
}

/* ==================== 危险颜色 ==================== */
.text-danger {
    color: var(--danger-custom) !important;
}

.bg-danger {
    background-color: var(--danger-custom) !important;
}

/* ==================== 手风琴样式 ==================== */
.accordion-button:not(.collapsed) {
    background-color: var(--teal-light);
    color: var(--teal-dark);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 150, 136, 0.25);
}

/* ==================== 列表组样式 ==================== */
.list-group-item.active {
    background-color: var(--teal-primary);
    border-color: var(--teal-primary);
}

/* ==================== 分页样式 ==================== */
.page-link {
    color: var(--teal-primary);
}

.page-link:hover {
    color: var(--teal-dark);
    background-color: var(--teal-light);
    border-color: var(--teal-accent);
}

.page-item.active .page-link {
    background-color: var(--teal-primary);
    border-color: var(--teal-primary);
}

/* ==================== 模态框样式 ==================== */
.modal-header {
    background: linear-gradient(135deg, var(--teal-primary), var(--teal-dark));
    color: white;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* ==================== 工具提示 ==================== */
.tooltip-inner {
    background-color: var(--teal-dark);
}

.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before {
    border-top-color: var(--teal-dark);
}

/* ==================== 滚动条美化 ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--teal-accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--teal-primary);
}

/* ==================== 选择文本颜色 ==================== */
::selection {
    background: var(--teal-accent);
    color: var(--teal-dark);
}

/* ==================== 焦点样式 ==================== */
*:focus-visible {
    outline: 2px solid var(--teal-primary);
    outline-offset: 2px;
}

/* ==================== 图片懒加载占位 ==================== */
img[loading="lazy"] {
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: shine 1.5s linear infinite;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

/* ==================== 响应式字体大小 ==================== */
@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

/* ==================== 打印优化 ==================== */
@media print {
    .no-print {
        display: none !important;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    
    .card {
        break-inside: avoid;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}