/**
 * 全国近视手术平台 - 主样式表
 * 
 * 设计原则：
 * - 移动优先
 * - 清晰的视觉层次
 * - GEO优化内容突出显示
 * - 医疗信息专业可信
 */

/* ==================== 变量定义 ==================== */
:root {
    /* 主色调 - 医疗蓝 */
    --primary-color: #0066cc;
    --primary-light: #e6f0ff;
    --primary-dark: #004999;
    
    /* 辅助色 */
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    
    /* 中性色 */
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --border-color: #dee2e6;
    
    /* 间距 */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* 圆角 */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    
    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    
    /* 字体大小 */
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
}

/* ==================== 基础重置 ==================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== 通用组件 ==================== */

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* 卡片 */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.card-header {
    background: var(--bg-color);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.card-body {
    padding: var(--spacing-md);
}

/* 徽章 */
.badge {
    display: inline-block;
    padding: 0.25em 0.5em;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.badge-primary { background: var(--primary-color); color: white; }
.badge-secondary { background: var(--secondary-color); color: white; }
.badge-success { background: var(--success-color); color: white; }
.badge-info { background: var(--info-color); color: white; }
.badge-warning { background: var(--warning-color); color: #000; }
.badge-danger { background: var(--danger-color); color: white; }

/* 按钮 */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    color: white;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    color: var(--secondary-color);
    background-color: white;
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
}

.btn-outline-primary {
    color: var(--primary-color);
    background-color: white;
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--font-size-sm);
}

.btn-block {
    display: block;
    width: 100%;
}

/* 表单 */
.form-control {
    display: block;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--text-color);
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-color);
}

/* 表格 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-md);
}

.table th,
.table td {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    text-align: left;
}

.table thead th {
    background-color: var(--bg-color);
    font-weight: 600;
}

.table-bordered {
    border: 1px solid var(--border-color);
}

.table-hover tbody tr:hover {
    background-color: var(--bg-color);
}

.table-striped tbody tr:nth-child(odd) {
    background-color: var(--bg-color);
}

/* 提示框 */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.alert-info {
    background-color: var(--info-color);
    color: white;
}

.alert-warning {
    background-color: var(--warning-color);
    color: #000;
}

/* ==================== 布局工具 ==================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(-1 * var(--spacing-md));
}

/* 默认全宽（移动端优先） */
[class*="col-"] {
    flex: 0 0 auto;
    width: 100%;
    padding: 0 var(--spacing-md);
}

.col-6 { width: 50%; }

/* 中等屏幕（≥768px） */
@media (min-width: 768px) {
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.333333%; }
    .col-md-6 { width: 50%; }
    .col-md-8 { width: 66.666667%; }
}

/* 大屏幕（≥992px） */
@media (min-width: 992px) {
    .col-lg-3 { width: 25%; }
    .col-lg-4 { width: 33.333333%; }
    .col-lg-6 { width: 50%; }
    .col-lg-8 { width: 66.666667%; }
    .col-lg-9 { width: 75%; }
}

.d-flex { display: flex; }
.align-items-start { align-items: flex-start; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.flex-grow-1 { flex-grow: 1; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--spacing-sm) !important; }
.mb-3 { margin-bottom: var(--spacing-md) !important; }
.mb-4 { margin-bottom: var(--spacing-lg) !important; }
.mt-2 { margin-top: var(--spacing-sm) !important; }
.mt-3 { margin-top: var(--spacing-md) !important; }
.mt-4 { margin-top: var(--spacing-lg) !important; }
.ms-2 { margin-left: var(--spacing-sm) !important; }
.ms-3 { margin-left: var(--spacing-md) !important; }
.me-2 { margin-right: var(--spacing-sm) !important; }
.me-4 { margin-right: var(--spacing-lg) !important; }
.p-2 { padding: var(--spacing-sm) !important; }
.p-3 { padding: var(--spacing-md) !important; }
.p-4 { padding: var(--spacing-lg) !important; }
.pt-3 { padding-top: var(--spacing-md) !important; }
.pb-3 { padding-bottom: var(--spacing-md) !important; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-info { color: var(--info-color) !important; }

.bg-light { background-color: var(--bg-color); }
.bg-white { background-color: var(--white); }

.small { font-size: var(--font-size-sm); }

/* 排版 */
.display-4 { font-size: 2.5rem; font-weight: 700; line-height: 1.2; }
.h1 { font-size: 2.5rem; font-weight: 700; }
.h2 { font-size: 2rem; font-weight: 600; }
.h3 { font-size: 1.75rem; font-weight: 600; }
.h4 { font-size: 1.5rem; font-weight: 600; }
.h5 { font-size: 1.25rem; font-weight: 600; }
.h6 { font-size: 1rem; font-weight: 600; }
.lead { font-size: 1.25rem; font-weight: 300; }
.fw-bold { font-weight: 700 !important; }
.fw-normal { font-weight: 400 !important; }

/* 按钮尺寸 */
.btn-lg { padding: var(--spacing-md) var(--spacing-xl); font-size: 1.125rem; }

/* 边框和阴影 */
.border-0 { border: 0 !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* 尺寸 */
.h-100 { height: 100% !important; }
.w-100 { width: 100% !important; }

/* 间距扩展 */
.py-5 { padding-top: var(--spacing-xxl) !important; padding-bottom: var(--spacing-xxl) !important; }
.py-4 { padding-top: var(--spacing-xl) !important; padding-bottom: var(--spacing-xl) !important; }
.px-4 { padding-left: var(--spacing-xl) !important; padding-right: var(--spacing-xl) !important; }
.g-3 { gap: var(--spacing-md); }
.g-4 { gap: var(--spacing-lg); }

/* 文字 */
.text-decoration-none { text-decoration: none !important; }
.text-dark { color: var(--text-color) !important; }

/* 显示类 */
.d-block { display: block !important; }
.d-none { display: none !important; }

/* 表单 */
.form-select {
    display: block;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--text-color);
    background-color: white;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right var(--spacing-md) center;
    background-size: 16px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    appearance: none;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* 圆角 */
.rounded { border-radius: var(--radius-md) !important; }

.list-unstyled {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

/* ==================== 页面特定样式 ==================== */

/* 页面头部 */
.page-header {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.page-header .lead {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* 面包屑导航 */
.breadcrumb {
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-sm);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: "/";
    margin: 0 var(--spacing-sm);
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--text-light);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* 筛选栏 */
.filter-bar,
.filter-sidebar {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.filter-form .filter-group {
    margin-bottom: var(--spacing-md);
}

.filter-form label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-color);
}

.filter-status {
    padding: var(--spacing-md);
    background: var(--bg-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

/* GEO AI答案块 */
.geo-answer-block {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.geo-answer-block .block-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
}

.geo-answer-block p {
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
}

/* 列表样式 */
.hospital-list-item,
.doctor-list-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.hospital-list-item:hover,
.doctor-list-item:hover {
    box-shadow: var(--shadow-md);
}

/* 评分星星 */
.rating-stars {
    color: #ffc107;
    font-size: 1.1rem;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--warning-color);
    color: #000;
    padding: 0.25em 0.5em;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: var(--spacing-lg) 0;
    gap: var(--spacing-xs);
}

.pagination li {
    display: inline-block;
}

.pagination li a,
.pagination li span {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    min-width: 2.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--primary-color);
    text-decoration: none;
}

.pagination li.active span {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination li.disabled span {
    color: var(--text-muted);
    cursor: not-allowed;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header .lead {
        font-size: 1rem;
    }
    
    .hospital-list-item .col-md-4,
    .doctor-list-item .col-md-4 {
        text-align: center;
        margin-top: var(--spacing-md);
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .geo-answer-block {
        padding: var(--spacing-md);
        margin: var(--spacing-lg) 0;
    }
}

/* 打印样式 */
@media print {
    .filter-bar,
    .filter-sidebar,
    .btn,
    .pagination {
        display: none;
    }
    
    .container {
        max-width: 100%;
    }
}

/* ==================== Header 样式 ==================== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
    gap: var(--spacing-lg);
}

.logo img {
    height: 40px;
    width: auto;
}

.main-nav {
    flex: 1;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--spacing-xs);
}

.nav-item .nav-link {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-item .nav-link:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    text-decoration: none;
}

.header-search {
    width: 200px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-xs) var(--spacing-sm);
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: var(--spacing-xs);
    font-size: 0.875rem;
    outline: none;
}

.search-box button {
    background: none;
    border: none;
    padding: var(--spacing-xs);
    cursor: pointer;
    color: var(--text-muted);
}

.mobile-menu-toggle {
    display: none !important;
    background: none;
    border: none;
    padding: var(--spacing-sm);
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* 手机端菜单 - PC端隐藏 */
.mobile-menu {
    display: none !important;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-list li a {
    display: block;
    padding: var(--spacing-md);
    color: var(--text-color);
    text-decoration: none;
}

.mobile-search {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.mobile-search input {
    flex: 1;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.mobile-search button {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-list li a {
    display: block;
    padding: var(--spacing-md);
    color: var(--text-color);
    text-decoration: none;
}

.mobile-search {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.mobile-search input {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

/* ==================== Footer 样式 ==================== */
.site-footer {
    background: #1a1a2e;
    color: #e0e0e0;
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xxl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr 1fr;
    gap: var(--spacing-xl);
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: var(--spacing-xs);
}

.footer-nav li a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-nav li a:hover {
    color: var(--white);
}

/* 快速导航分两列 */
.footer-nav-grid {
    display: flex;
    gap: 4px;
    width: fit-content;
}

.footer-nav-grid .footer-nav {
    margin: 0;
    width: 50px;
}

.footer-nav-grid .footer-nav li {
    margin-bottom: 2px;
}

.footer-nav-grid .footer-nav li a {
    font-size: 0.8125rem;
}

.city-list,
.procedure-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
}

.city-list li,
.procedure-list li {
    display: inline-block;
}

.city-list li a,
.procedure-list li a {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255,255,255,0.1);
    color: #b0b0b0;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.city-list li a:hover,
.procedure-list li a:hover {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

/* 热门城市和手术方式列 */
.footer-cities,
.footer-procedures {
    min-width: 0;
}

.footer-cities .city-list,
.footer-procedures .procedure-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.footer-bottom {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.875rem;
}

.footer-legal p {
    margin-bottom: var(--spacing-xs);
}

.beian-info {
    margin-bottom: var(--spacing-sm);
}

.beian-info a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.beian-info a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-about-link a {
    color: #fff;
    text-decoration: none;
}

.footer-about-link a:hover {
    text-decoration: underline;
}

.medical-disclaimer {
    font-size: 0.75rem;
    color: #808080;
}

/* ==================== 返回顶部按钮 ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 999;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ==================== Skip Link ==================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    z-index: 10000;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* ==================== 响应式 Header/Footer ==================== */
@media (max-width: 991.98px) {
    .main-nav {
        display: none;
    }
    
    .header-search {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    .footer-cities,
    .footer-procedures {
        grid-column: span 1;
    }
}

@media (max-width: 575.98px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .header-inner {
        flex-wrap: wrap;
    }
}

/* ==================== 详情页样式 ==================== */

/* 医院详情页 */
.hospital-profile-card {
    background: linear-gradient(135deg, var(--primary-light) 0%, white 100%);
}

.profile-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.hospital-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.hospital-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-sm);
}

.procedures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.procedure-item {
    padding: var(--spacing-md);
    background: var(--bg-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.procedure-name {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.price-range {
    color: var(--primary-color);
    font-weight: 600;
}

/* 医生详情页 */
.doctor-profile-card {
    background: linear-gradient(135deg, #f0f9ff 0%, white 100%);
}

.doctor-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.doctor-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

/* 评价列表 */
.review-item {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.review-content {
    line-height: 1.7;
}

/* 城市列表页 */
.hot-city-item,
.city-item {
    display: block;
    padding: var(--spacing-md);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s;
}

.hot-city-item:hover,
.city-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

/* 排行榜 */
.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.ranking-table th {
    background: var(--bg-color);
    font-weight: 600;
}

.ranking-table tr:hover {
    background: var(--bg-color);
}

/* 价格表 */
.price-table {
    width: 100%;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.price-row:hover {
    background: var(--bg-color);
}

/* 对比页 */
.compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.compare-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.compare-card-header {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-md);
    text-align: center;
}

.compare-card-body {
    padding: var(--spacing-md);
}

/* 搜索结果 */
.search-result-item {
    padding: var(--spacing-lg);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.search-result-item:hover {
    box-shadow: var(--shadow-sm);
}

.search-result-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.search-result-excerpt {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* 面包屑 */
.breadcrumb {
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-lg);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--spacing-xs);
}

.breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 var(--spacing-xs);
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
}

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

/* ==================== 现代化美化样式 ==================== */

/* 渐变背景 */
.bg-gradient-primary {
    background: linear-gradient(135deg, #0066cc 0%, #0044aa 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

/* 页面头部美化 */
.page-header {
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

/* AI摘要卡片美化 */
.ai-summary-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid var(--primary-color);
}

.ai-summary-card .ai-icon {
    font-size: 2rem;
}

/* 卡片悬浮效果 */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* 文章卡片美化 */
.article-card {
    transition: all 0.3s ease;
}

.article-card .card-title a:hover {
    color: var(--primary-color);
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

/* 评价卡片美化 */
.review-card {
    transition: all 0.3s ease;
}

.review-card .surgery-info {
    font-size: 0.85rem;
}

/* 统计徽章 */
.stats-badge .badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

/* 筛选卡片 */
.filter-card .category-item {
    transition: all 0.2s ease;
    text-decoration: none;
}

.filter-card .category-item:hover {
    transform: translateX(5px);
}

.filter-card .category-item.active {
    font-weight: 600;
}

/* 现代化按钮 */
.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

/* 卡片标题 */
.card-title {
    color: var(--text-color);
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-title a:hover {
    color: var(--primary-color);
}

/* 阅读更多链接 */
.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

/* 响应式优化 */
@media (max-width: 767.98px) {
    .page-header {
        padding: var(--spacing-lg) 0;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .ai-summary-card {
        padding: var(--spacing-md);
    }
    
    .hover-lift:hover {
        transform: none;
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card,
.review-card {
    animation: fadeInUp 0.5s ease forwards;
}

.article-card:nth-child(2) { animation-delay: 0.1s; }
.article-card:nth-child(3) { animation-delay: 0.2s; }
.article-card:nth-child(4) { animation-delay: 0.3s; }
.article-card:nth-child(5) { animation-delay: 0.4s; }

/* 主内容区域 */
.main-content {
    min-height: 60vh;
}

/* 表格美化 */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: var(--bg-color);
    font-weight: 600;
    color: var(--text-color);
}

.admin-table tr:hover {
    background: var(--bg-color);
}

/* 管理后台卡片 */
.admin-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-lg);
}

.admin-card-body {
    padding: var(--spacing-lg);
}

/* 分页美化 */
.pagination .page-link {
    border-radius: var(--radius-sm);
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* 表单美化 */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

/* 徽章美化 */
.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-primary {
    background: #dbeafe;
    color: #1e40af;
}

/* 显示更多动画 */
.show-more-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background: var(--bg-color);
    color: var(--primary-color);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.show-more-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

/* ==================== 列表页Banner样式 ==================== */

/* Banner基础样式 */
.list-banner {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
    margin-bottom: 40px;
}

.list-banner .banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.list-banner .container {
    position: relative;
    z-index: 1;
}

.list-banner .banner-content {
    display: flex;
    align-items: center;
    gap: 32px;
}

.list-banner .banner-icon {
    font-size: 4rem;
    line-height: 1;
    flex-shrink: 0;
}

.list-banner .banner-text {
    flex: 1;
}

.list-banner .banner-text h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.list-banner .banner-text p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.list-banner .banner-stats {
    display: flex;
    gap: 24px;
    flex-shrink: 0;
}

.list-banner .banner-stat {
    text-align: center;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.list-banner .stat-num {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
}

.list-banner .stat-label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 4px;
}

/* 医院列表Banner */
.hospital-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #0ea5e9 100%);
    color: #fff;
}

.hospital-banner .banner-bg {
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* 医生列表Banner */
.doctor-banner {
    background: linear-gradient(135deg, #065f46 0%, #10b981 50%, #34d399 100%);
    color: #fff;
}

.doctor-banner .banner-bg {
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* 手术方式Banner */
.procedure-banner {
    background: linear-gradient(135deg, #581c87 0%, #8b5cf6 50%, #a78bfa 100%);
    color: #fff;
}

.procedure-banner .banner-bg {
    background: url("data:image/svg+xml,%3Csvg width='88' height='88' viewBox='0 0 88 88' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h88v88H0V0zm44 44V0H0v44h44zm0 0v44h44V44H44zm0 0h44V0H44v44z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* 价格页Banner */
.price-banner {
    background: linear-gradient(135deg, #92400e 0%, #f59e0b 50%, #fbbf24 100%);
    color: #fff;
}

.price-banner .banner-bg {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* 问答页Banner */
.qa-banner {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 50%, #5eead4 100%);
    color: #fff;
}

.qa-banner .banner-bg {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52' viewBox='0 0 52 52'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath fill-rule='evenodd' d='M27 19c0-1.1-.9-2-2-2h-2v2h2v2h-2v2h2v2h-2v2h2v2h-2v2h2v2h-2v2h2v2h-2v2h2v2h-2v2h2v2h-2v2h2v2h-2v2h2c1.1 0 2-.9 2-2V19zm-4-2v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm-4-28v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm-4-28v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm-4-28v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm-4-28v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm-4-28v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm-4-28v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm-4-28v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm-4-28v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm-4-28v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2z'/%3E%3C/g%3E%3C/svg%3E");
}

/* 排行榜Banner */
.ranking-banner {
    background: linear-gradient(135deg, #7c2d12 0%, #ea580c 50%, #fb923c 100%);
    color: #fff;
}

.ranking-banner .banner-bg {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0l28-28v2L54 40h-2zm4 0l24-24v2L58 40h-2zm4 0l20-20v2L62 40h-2zm4 0l16-16v2L66 40h-2zm4 0l12-12v2L70 40h-2zm4 0l8-8v2l-6 6h-2zm4 0l4-4v2l-2 2h-2z'/%3E%3C/g%3E%3C/svg%3E");
}

/* 列表页响应式 */
@media (max-width: 991.98px) {
    .list-banner {
        padding: 40px 0;
    }
    
    .list-banner .banner-content {
        flex-wrap: wrap;
        text-align: center;
        justify-content: center;
    }
    
    .list-banner .banner-icon {
        font-size: 3rem;
    }
    
    .list-banner .banner-text h1 {
        font-size: 1.5rem;
    }
    
    .list-banner .banner-stats {
        width: 100%;
        justify-content: center;
        margin-top: 16px;
    }
}

@media (max-width: 575.98px) {
    .list-banner {
        padding: 30px 0;
    }
    
    .list-banner .banner-icon {
        display: none;
    }
    
    .list-banner .banner-stat {
        padding: 12px 16px;
    }
    
    .list-banner .stat-num {
        font-size: 1.25rem;
    }
}

/* ==================== 列表页整体美化 ==================== */

/* 筛选侧边栏美化 */
.filter-sidebar {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.filter-sidebar .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.filter-sidebar .card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-sidebar .card-header h3::before {
    content: '🔍';
    font-size: 1.1rem;
}

.filter-sidebar .card-body {
    padding: 20px;
}

.filter-sidebar .filter-group {
    margin-bottom: 16px;
}

.filter-sidebar .filter-group:last-of-type {
    margin-bottom: 20px;
}

.filter-sidebar label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.filter-sidebar .form-control,
.filter-sidebar select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background: #fff;
}

.filter-sidebar .form-control:focus,
.filter-sidebar select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-sidebar .btn-secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.filter-sidebar .btn-secondary:hover {
    background: #e2e8f0;
    color: #374151;
}

/* 列表项卡片美化 */
.hospital-list-item,
.doctor-list-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.hospital-list-item:hover,
.doctor-list-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.12);
    transform: translateY(-2px);
}

.hospital-list-item .card-body,
.doctor-list-item .card-body {
    padding: 24px;
}

.hospital-list-item .hospital-name a,
.doctor-list-item .doctor-name a {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hospital-list-item .hospital-name a:hover,
.doctor-list-item .doctor-name a:hover {
    color: #3b82f6;
}

.hospital-list-item .badge,
.doctor-list-item .badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.hospital-list-item .badge-primary,
.doctor-list-item .badge-primary {
    background: #dbeafe;
    color: #1e40af;
}

.hospital-list-item .badge-secondary,
.doctor-list-item .badge-secondary {
    background: #f1f5f9;
    color: #475569;
}

.hospital-list-item .rating-stars,
.doctor-list-item .rating-stars {
    color: #f59e0b;
    font-size: 0.9rem;
}

.hospital-list-item .hospital-address,
.doctor-list-item .doctor-hospital {
    color: #64748b;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hospital-list-item .hospital-procedures,
.doctor-list-item .doctor-specialty {
    font-size: 0.875rem;
    color: #374151;
}

.hospital-list-item .btn-primary,
.doctor-list-item .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.hospital-list-item .btn-primary:hover,
.doctor-list-item .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.hospital-list-item .btn-outline-secondary,
.doctor-list-item .btn-outline-secondary {
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.hospital-list-item .btn-outline-secondary:hover,
.doctor-list-item .btn-outline-secondary:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #f8fafc;
}

/* 列表标题美化 */
.list-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.list-title-bar h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.list-title-bar .badge {
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* 分页美化 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #374151;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #fff;
}

.pagination li a:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #f8fafc;
}

.pagination li.active span {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border-color: #3b82f6;
}

.pagination li.disabled span {
    color: #94a3b8;
    cursor: not-allowed;
    background: #f8fafc;
}

/* 空状态提示美化 */
.alert-warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    color: #92400e;
    padding: 20px 24px;
    border-radius: 12px;
    font-size: 0.9375rem;
    text-align: center;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border: 1px solid #3b82f6;
    color: #1e40af;
    padding: 20px 24px;
    border-radius: 12px;
    font-size: 0.9375rem;
    text-align: center;
}

/* 表格美化 */
.table-responsive {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    color: #374151;
    font-weight: 600;
    padding: 16px;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.9375rem;
}

.table tbody td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
    font-size: 0.9375rem;
}

.table tbody tr:hover {
    background: #f8fafc;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* QA列表美化 */
.qa-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.qa-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.qa-item .card-body {
    padding: 20px;
}

.qa-item .question-title a {
    color: #1e293b;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.qa-item .question-title a:hover {
    color: #3b82f6;
}

.qa-item .answer-summary {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.6;
}

.qa-item .qa-meta {
    display: flex;
    gap: 16px;
    color: #94a3b8;
    font-size: 0.8125rem;
}

/* 排行榜卡片美化 */
.ranking-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ranking-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.ranking-card .card-header {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.ranking-card .card-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.ranking-card .card-body {
    padding: 20px;
}

.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-item .rank-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px;
    font-weight: 700;
    color: #64748b;
    font-size: 0.875rem;
}

.ranking-item:nth-child(1) .rank-number {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
}

.ranking-item:nth-child(2) .rank-number {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #fff;
}

.ranking-item:nth-child(3) .rank-number {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
}

.ranking-item .rank-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.ranking-item .rank-content h4 a {
    color: #1e293b;
    text-decoration: none;
}

.ranking-item .rank-content h4 a:hover {
    color: #3b82f6;
}

.ranking-item .rank-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: #64748b;
}

/* 分类侧边栏美化 */
.list-group-item-action {
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.list-group-item-action:hover {
    background: #f8fafc;
    color: #3b82f6;
}

.list-group-item-action.active {
    background: #dbeafe;
    color: #1e40af;
    font-weight: 600;
    border-color: #bfdbfe;
}

.list-group-item-action:last-child {
    border-bottom: none;
}

/* ==================== 手机端底部导航栏 ==================== */
/* 默认隐藏，只在手机端显示 */
.mobile-bottom-nav {
    display: none;
}

/* 手机端底部导航栏样式 */
@media (max-width: 767.98px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: #fff;
        border-top: 1px solid #e2e8f0;
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    }
    
    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 16px;
        color: #64748b;
        text-decoration: none;
        font-size: 0.75rem;
        gap: 2px;
        transition: color 0.2s ease;
    }
    
    .mobile-bottom-nav .nav-item .nav-icon {
        font-size: 1.25rem;
    }
    
    .mobile-bottom-nav .nav-item.active {
        color: #3b82f6;
    }
    
    .mobile-bottom-nav .nav-item:hover {
        color: #3b82f6;
    }
    
    /* 手机端页面底部留出空间 */
    body {
        padding-bottom: 70px;
    }
    
    .site-footer {
        margin-bottom: 60px;
    }
}

/* d-none 和 d-md-flex 工具类 */
.d-none {
    display: none !important;
}

@media (min-width: 768px) {
    .d-md-flex {
        display: flex !important;
    }
    
    .d-md-none {
        display: none !important;
    }
}

/* ==================== 调试模式标识 ==================== */
.debug-mode-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fbbf24;
    color: #1e293b;
    text-align: center;
    padding: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10000;
}

body.debug-mobile {
    padding-top: 40px;
}

/* ==================== 手术方式详情页 - 通用区块样式 ==================== */
.procedure-section {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.procedure-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-bottom: 1px solid #f1f5f9;
}

.procedure-section .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.procedure-section .section-icon {
    font-size: 1.5rem;
}

.procedure-section .section-title h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.procedure-section .section-count {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.procedure-section .section-content {
    padding: 24px;
    font-size: 0.9375rem;
    line-height: 1.8;
    color: #374151;
}

.procedure-section .section-content p {
    margin-bottom: 16px;
}

.procedure-section .section-content h3,
.procedure-section .section-content h4 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: #1e293b;
}

.procedure-section .section-content ul,
.procedure-section .section-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.procedure-section .section-content li {
    margin-bottom: 8px;
}

/* ==================== 医院卡片列表 ==================== */
.hospital-cards {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hospital-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.hospital-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.hospital-card .card-rank {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.875rem;
    color: #64748b;
}

.hospital-card:nth-child(1) .card-rank {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
}

.hospital-card:nth-child(2) .card-rank {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #fff;
}

.hospital-card:nth-child(3) .card-rank {
    background: linear-gradient(135deg, #fb923c, #ea580c);
    color: #fff;
}

.hospital-card .card-main {
    flex: 1;
    min-width: 0;
}

.hospital-card .card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.hospital-card .card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.hospital-card:hover .card-title {
    color: #3b82f6;
}

.hospital-card .card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.hospital-card .card-location svg {
    opacity: 0.6;
}

.hospital-card .card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hospital-card .card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hospital-card .card-rating .stars {
    color: #f59e0b;
    font-size: 0.875rem;
}

.hospital-card .card-rating .count {
    color: #94a3b8;
    font-size: 0.75rem;
}

.hospital-card .card-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.hospital-card .card-price .price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #3b82f6;
}

.hospital-card .card-price .unit {
    font-size: 0.75rem;
    color: #64748b;
}

.hospital-card .card-arrow {
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.hospital-card:hover .card-arrow {
    color: #3b82f6;
    transform: translateX(4px);
}

.section-footer {
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
    color: #fff;
}

/* ==================== 常见问题卡片 ==================== */
.faq-cards {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-card {
    display: block;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fff 0%, #fefefe 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.faq-card:hover {
    border-color: #8b5cf6;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.12);
    transform: translateY(-2px);
}

.faq-card .faq-q {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.faq-card .q-badge {
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.faq-card .q-text {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.5;
}

.faq-card:hover .q-text {
    color: #7c3aed;
}

.faq-card .faq-a {
    padding-left: 36px;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.6;
}

.faq-empty-state {
    padding: 48px 24px;
    text-align: center;
}

.faq-empty-state .empty-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.faq-empty-state p {
    margin: 0 0 12px;
    color: #94a3b8;
    font-size: 0.9375rem;
}

.faq-empty-state .empty-link {
    color: #3b82f6;
    font-size: 0.875rem;
    text-decoration: none;
}

.faq-empty-state .empty-link:hover {
    text-decoration: underline;
}

/* ==================== 优缺点对比 ==================== */
.pros-cons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px;
}

.pros-card,
.cons-card {
    padding: 20px;
    border-radius: 12px;
}

.pros-card {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
}

.cons-card {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
}

.pros-header,
.cons-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 0.9375rem;
}

.pros-header {
    color: #059669;
}

.cons-header {
    color: #ea580c;
}

.pros-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
}

.cons-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f97316;
    color: #fff;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
}

.pros-body,
.cons-body {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #374151;
}

/* ==================== 手机端适配 - 优缺点 ==================== */
@media (max-width: 767.98px) {
    .pros-cons-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }
    
    .pros-card,
    .cons-card {
        padding: 16px;
    }
    
    .pros-header,
    .cons-header {
        font-size: 0.875rem;
        margin-bottom: 10px;
    }
    
    .pros-body,
    .cons-body {
        font-size: 0.8125rem;
    }
}

/* ==================== 手机端适配 ==================== */
@media (max-width: 767.98px) {
    .procedure-section {
        margin-bottom: 16px;
        border-radius: 12px;
    }
    
    .procedure-section .section-header {
        padding: 16px;
    }
    
    .procedure-section .section-icon {
        font-size: 1.25rem;
    }
    
    .procedure-section .section-title h2 {
        font-size: 1rem;
    }
    
    .procedure-section .section-count {
        padding: 3px 10px;
        font-size: 0.75rem;
    }
    
    .procedure-section .section-content {
        padding: 16px;
        font-size: 0.875rem;
    }
    
    .procedure-section .section-content h3,
    .procedure-section .section-content h4 {
        margin-top: 16px;
        font-size: 1rem;
    }
    
    .hospital-cards {
        padding: 12px;
        gap: 10px;
    }
    
    .hospital-card {
        padding: 14px 16px;
        gap: 12px;
    }
    
    .hospital-card .card-rank {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 0.8125rem;
    }
    
    .hospital-card .card-title {
        font-size: 0.9375rem;
    }
    
    .hospital-card .card-location {
        font-size: 0.75rem;
    }
    
    .hospital-card .card-rating .stars {
        font-size: 0.8125rem;
    }
    
    .hospital-card .card-rating .count {
        font-size: 0.6875rem;
    }
    
    .hospital-card .card-price .price {
        font-size: 1rem;
    }
    
    .hospital-card .card-arrow svg {
        width: 18px;
        height: 18px;
    }
    
    .section-footer {
        padding: 12px 16px;
    }
    
    .view-all-btn {
        padding: 10px 20px;
        font-size: 0.8125rem;
    }
    
    .faq-cards {
        padding: 12px;
        gap: 10px;
    }
    
    .faq-card {
        padding: 14px 16px;
    }
    
    .faq-card .q-badge {
        min-width: 22px;
        height: 22px;
        font-size: 0.6875rem;
    }
    
    .faq-card .q-text {
        font-size: 0.875rem;
    }
    
    .faq-card .faq-a {
        padding-left: 34px;
        font-size: 0.75rem;
    }
    
    .faq-empty-state {
        padding: 32px 16px;
    }
    
    .faq-empty-state .empty-icon {
        font-size: 2rem;
    }
    
    .faq-empty-state p {
        font-size: 0.875rem;
    }
}

/* ==================== 手术方式列表页 - 新卡片布局 ==================== */
.procedure-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.procedure-card-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.procedure-card-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.12);
    transform: translateY(-2px);
}

.procedure-card-item .card-header-new {
    margin-bottom: 12px;
}

.procedure-card-item .card-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

.procedure-card-item:hover .card-name {
    color: #3b82f6;
}

.procedure-card-item .card-alias {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
}

.procedure-card-item .card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.procedure-card-item .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.procedure-card-item .info-label {
    font-size: 0.75rem;
    color: #94a3b8;
}

.procedure-card-item .info-value {
    font-size: 0.8125rem;
    color: #374151;
    font-weight: 500;
}

.procedure-card-item .info-value.price {
    color: #3b82f6;
    font-weight: 600;
}

.procedure-card-item .card-feature {
    flex: 1;
    font-size: 0.75rem;
    color: #10b981;
    line-height: 1.5;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
}

.procedure-card-item .card-arrow {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #cbd5e1;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.procedure-card-item:hover .card-arrow {
    color: #3b82f6;
    transform: translateX(4px);
}

/* PC端显示两列 */
@media (min-width: 768px) {
    .procedure-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .procedure-card-item {
        padding: 20px;
    }
    
    .procedure-card-item .card-name {
        font-size: 1.125rem;
    }
    
    .procedure-card-item .info-label {
        font-size: 0.8125rem;
    }
    
    .procedure-card-item .info-value {
        font-size: 0.875rem;
    }
    
    .procedure-card-item .card-feature {
        font-size: 0.8125rem;
    }
}

/* 手机端两列紧凑布局 */
@media (max-width: 767.98px) {
    .procedure-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 16px;
    }
    
    .procedure-card-item {
        padding: 12px;
        border-radius: 10px;
    }
    
    .procedure-card-item .card-header-new {
        margin-bottom: 8px;
    }
    
    .procedure-card-item .card-name {
        font-size: 0.875rem;
    }
    
    .procedure-card-item .card-alias {
        font-size: 0.6875rem;
        padding: 1px 6px;
    }
    
    .procedure-card-item .card-info {
        gap: 4px;
        margin-bottom: 8px;
    }
    
    .procedure-card-item .info-label {
        font-size: 0.6875rem;
    }
    
    .procedure-card-item .info-value {
        font-size: 0.75rem;
    }
    
    .procedure-card-item .card-feature {
        font-size: 0.6875rem;
        padding-top: 6px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .procedure-card-item .card-arrow {
        top: 12px;
        right: 12px;
        font-size: 1rem;
    }
}
/* ==================== Markdown表格样式 ==================== */
.markdown-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.markdown-table thead {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: #fff;
}

.markdown-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9375rem;
    border-bottom: 2px solid #004d99;
}

.markdown-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #333;
}

.markdown-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.markdown-table tbody tr:hover {
    background-color: #e6f0ff;
    transition: background-color 0.2s ease;
}

.markdown-table tbody tr:last-child td {
    border-bottom: none;
}

/* 移动端表格样式 */
@media (max-width: 768px) {
    .markdown-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 6px;
    }
    
    .markdown-table th,
    .markdown-table td {
        padding: 10px 12px;
        font-size: 0.8125rem;
        white-space: nowrap;
    }
}

/* ==================== AI文章FAQ样式（独立命名避免冲突） ==================== */
.ai-faq-item {
    margin: 20px 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.ai-faq-item:hover {
    border-color: #0066cc !important;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15) !important;
}

.ai-faq-question {
    padding: 18px 20px !important;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border-bottom: none !important;
}

.ai-faq-question strong {
    color: #fff !important;
    font-size: 1.125rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.ai-faq-question strong::before {
    content: "❓" !important;
    font-size: 1.25rem !important;
}

.ai-faq-answer {
    padding: 20px !important;
    background: #f8fafc !important;
}

.ai-faq-answer div[itemprop="text"] {
    color: #374151 !important;
    line-height: 1.8 !important;
    position: relative !important;
    padding-left: 50px !important;
}

.ai-faq-answer div[itemprop="text"]::before {
    content: "💡 A: " !important;
    color: #3b82f6 !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 45px !important;
}

@media (max-width: 768px) {
    .ai-faq-item {
        margin: 16px 0 !important;
    }
    
    .faq-question {
        padding: 14px 16px !important;
    }
    
    .faq-question strong {
        font-size: 1rem !important;
    }
    
    .faq-answer {
        padding: 16px !important;
    }
}
