
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2c3e50;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --text-color: #333;
    --light-gray: #f1f1f1;
    --medium-gray: #7f8c8d;
    --dark-gray: #666;
}

/* 主页文本大写转换 */
body.index-page {
    text-transform: uppercase;
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    line-height: 1.6;
    color: var(--text-color);
}

/* 首页主视觉背景 */
.hero {
    width: 100%;
    min-height: 480px;
    background: url('/img/background.webp') center/cover no-repeat, url('/img/background.png') center/cover no-repeat;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: none;
    background: none;
}

/* 导航样式 */
header {
    background-color: #2c3e50 !important;
    padding: 1rem 0;
    color: white;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    width: 100%;
    gap: 3rem; /* 增加整体间距 */
}

.logo-container {
    display: flex;
    align-items: center;
    min-width: 220px;
    margin-left: 10px; /* LOGO向右移动10px */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    padding: 0;
    margin: 0 10px 0 auto; /* 调整导航位置 */
}

.site-logo {
    height: 50px;
    margin-right: 15px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
}

nav {
    display: flex;
    align-items: center;
}

.admin-container {
    display: flex;
    min-height: 100vh;
    background-color: #f8f9fa;
    flex-direction: row;
}

.left-panel {
    width: 240px;
    min-width: 240px;
    background-color: #2c3e50;
    color: white;
    border-right: 1px solid rgba(0,0,0,0.1);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.content-header {
    padding: 1.5rem 2rem;
    background-color: white;
    border-bottom: 1px solid #eee;
}

.content-body {
    flex: 1;
    padding: 2rem;
    background-color: white;
    margin: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.clinics-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1rem 2rem;
    min-height: 350px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    position: relative;
    width: 100%;
}

.clinics-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.clinic-item {
    border: 1px solid #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: #fff;
}

.clinic-item .clinic-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.clinic-item .clinic-info {
    padding: 1.2rem 1.5rem;
}

.clinic-card {
    flex: 0 0 auto;
    width: 300px;
    scroll-snap-align: start;
}

#services, .clinic-network {
    position: relative;
    background-image: image-set(url('../img/background.webp') type('image/webp'), url('../img/background.png') type('image/png'));
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
#services::before, .clinic-network::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.85);
    z-index: 0;
}
#services > *, .clinic-network > * {
    position: relative;
    z-index: 1;
}

.clinic-card {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.9);
}

.clinics-container::-webkit-scrollbar {
    height: 8px;
}

.clinics-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.clinic-card {
    display: inline-flex;
    flex-direction: column;
    min-width: 300px;
    scroll-snap-align: start;
    white-space: normal;
}

.clinics-container::-webkit-scrollbar {
    height: 8px;
}

.clinics-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.clinics-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.clinics-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.8);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    color: var(--error-color);
    text-align: center;
    padding: 20px;
    background-color: #fef2f2;
    border-radius: 4px;
    display: none;
}

.error.error-visible {
    display: block;
}

.no-results {
    text-align: center;
    color: var(--medium-gray);
    grid-column: 1 / -1;
}

.clinic-card {
    border: 1px solid white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 300px;
    scroll-snap-align: start;
    flex: 0 0 auto;
}

.clinic-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.clinic-info {
    padding: 1.5rem;
}

.clinic-info h3 {
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}
.clinic-info p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.clinic-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.clinic-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}
.clinic-slider .clinic-card {
    flex: 0 0 100%;
    min-width: 100%;
}
.clinic-prev,
.clinic-next { display: none; }
.clinic-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}
.clinic-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
}
.clinic-dot.active { background: var(--primary-color); }
@media (min-width: 768px) {
    .clinic-prev,
    .clinic-next { width: 40px; height: 40px; }
}

.clinic-info p {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.preview-box,
.bg-preview-box {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.bg-preview {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 6px;
}

.toast-container {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 0.95;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast-hide { opacity: 0; transform: translateY(8px); }
.toast-success { background: #2ea043; }
.toast-error { background: #d73a49; }
.toast-info { background: #0366d6; }

/* 医疗人员管理样式 */
.tab-buttons {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.tab-btn {
    padding: 0.5rem 1.5rem;
    background: #e0e0e0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* 医疗人员列表样式 */
#medical-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.medical-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.medical-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.medical-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.medical-info {
    padding: 1.5rem;
}

.medical-info h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.medical-info p {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.medical-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0 1.5rem 1.5rem;
}

.medical-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.medical-actions .edit-btn {
    background-color: var(--primary-color);
    color: white;
}

.medical-actions .delete-btn {
    background-color: var(--error-color);
    color: white;
}

.medical-actions button:hover {
    opacity: 0.9;
}

/* 医生展示区样式 */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.doctor-card {
    background: white;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-5px);
    
.doctor-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    transition: transform 0.3s ease;
}

.doctor-card:hover .doctor-image {
    transform: scale(1.05);
}
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.doctor-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.doctor-info {
    padding: 1.5rem;
}

.doctor-info h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.doctor-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.doctor-specialty {
    color: var(--medium-gray);
    margin-bottom: 1rem;
}

.doctor-bio {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* 新闻展示样式 */
.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.news-date {
    display: block;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-excerpt {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.news-video {
    width: 100%;
    height: 200px;
    margin-top: 1rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    padding: 0.5rem 0;
    margin-right: 10px; /* 导航栏向左移动10px */
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active-touch {
    color: var(--primary-color);
    transform: scale(0.98);
    opacity: 0.9;
}

/* 触摸反馈效果 */
button:active, 
[role="button"]:active,
.active-touch {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* 主要内容样式 */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.section {
    padding: 4rem 2rem;
    border-bottom: 1px solid #eee;
}

/* 联系方式样式 */
.contact-info {
    max-width: 800px;
    margin: 2rem auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.contact-item, .qrcode-container {
    text-align: center;
    padding: 1.5rem;
    flex: 1;
    min-width: 300px;
}

.qrcode-placeholder {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 1rem;
}

.qrcode-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border: 1px solid #eee;
    padding: 0.5rem;
    background: white;
}

.contact-item p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #2c3e50;
    color: white;
}

/* 团队切换按钮样式 */
.staff-toggle {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.staff-toggle button {
    padding: 0.5rem 1.25rem;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}
.staff-toggle .toggle-active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* 移动端菜单按钮样式 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* 导航链接激活状态 */
.nav-links a.active {
    color: var(--primary-color);
    font-weight: bold;
}

/* 管理导航链接样式 */
.admin-nav-links {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.admin-nav-links li {
    margin-bottom: 0.5rem;
}

.admin-nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.admin-nav-links a:hover {
    background-color: rgba(255,255,255,0.1);
}

.admin-nav-links a.active {
    background-color: var(--primary-color);
    color: white;
}

/* 诊所搜索框容器 - 完美居中 */
.clinic-search-wrapper {
    padding: 1rem;
    background-color: #2c3e50;
    display: flex;
    justify-content: center;
    width: 100%;
}

.clinic-search-wrapper .search-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem;
    position: relative;
}

/* 搜索框元素样式 */
#clinic-search {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
}

#search-btn {
    padding: 0.75rem 1.25rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 48px;
    min-height: 48px;
}

#search-btn:hover {
    background-color: var(--primary-dark);
}

/* 诊所网络页面样式 */
.clinic-network {
    padding: 2rem;
}

.clinics-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 769px) {
    .clinics-list {
        gap: 1rem;
    }
}

.clinic-item {
    display: block;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    margin-bottom: 1.5rem;
}

.clinic-item.highlight {
    background-color: rgba(52, 152, 219, 0.2);
    box-shadow: 0 0 0 2px var(--primary-color);
    transition: all 0.3s ease;
}
.filtered-hidden { display: none !important; }

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

.clinic-image-container {
    width: 100vw;
    height: 70vh;
    position: relative;
    overflow: hidden;
}

.clinic-image {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.clinic-image:hover {
    transform: scale(1.03);
}

.clinic-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 1.5rem;
    z-index: 10;
}

.clinic-info-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.clinic-info-overlay p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .clinic-info-overlay {
        padding: 1rem;
    }
    .clinic-info-overlay h3 {
        font-size: 1.4rem;
    }
    .clinic-info-overlay p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .clinic-item {
        padding: 1rem;
    }
    
    .clinic-image {
        max-height: 200px;
    }
    
    .clinic-name {
        font-size: 1.1rem;
    }
    
    .clinic-address, .clinic-hours {
        font-size: 0.9rem;
    }
}

.clinic-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.clinic-info {
    flex: 1;
}

.clinic-name {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.clinic-address {
    color: var(--dark-gray);
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

.clinic-hours {
    font-size: 0.9rem;
    color: var(--medium-gray);
    line-height: 1.6;
}

/* 图片展示区域样式 */
.image-showcase {
    padding: 2rem;
    background-color: #f9f9f9;
    text-align: center;
}

.showcase-container {
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 响应式设计 - 移动端 */
@media (max-width: 768px) {
    /* 医生卡片响应式调整 */
    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .doctor-card {
        margin-bottom: 1.5rem;
    }
    
    .doctor-image {
        height: 200px;
    }
    
    /* 安全区域适配 */
    @supports (padding: max(0px)) {
        body {
            padding: env(safe-area-inset-top) env(safe-area-inset-right) 
                     env(safe-area-inset-bottom) env(safe-area-inset-left);
        }
    }
    
    /* 诊所网络页面特定优化 */
    .clinic-network {
        padding: 1rem;
    }
    
    .clinic-search-wrapper {
        padding: 0.5rem;
    }
    
    .clinic-search-wrapper .search-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    #search-suggestions { box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
    
    #clinic-search, #search-btn {
        width: 100%;
        min-height: 44px;
        font-size: 1rem;
    }
    
    .clinics-list {
        margin-top: 1rem;
    }
    
    .clinic-item {
        flex-direction: column;
        padding: 1rem;
    }
    
    .clinic-image {
        width: 100%;
        height: auto;
        max-height: 200px;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .clinic-info {
        width: 100%;
        text-align: center;
    }
    
    .clinic-name {
        font-size: 1.1rem;
    }
    
    .loading {
        padding: 2rem 0;
    }
    
    .loading p {
        font-size: 1rem;
    }

    /* 字体大小优化 */
    html {
        font-size: 16px;
    }
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    
    nav {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem;
        padding-top: max(1rem, env(safe-area-inset-top));
    }
    
    .mobile-menu-btn {
        display: block;
        padding: 1rem; /* 增大触摸区域 */
        min-width: 48px;
        min-height: 48px;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        margin-top: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0.75rem 0;
    }
    
    .nav-links a {
        padding: 0.75rem 1rem;
        display: block;
        min-width: 44px;
        min-height: 44px;
    }
    
    .hero, .section {
        padding: 2rem 1rem;
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }

    /* 优化触摸目标 */
    button, [role="button"], input[type="submit"] {
        min-width: 44px;
        min-height: 44px;
    }
}

/* 响应式设计 - 平板 */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        min-height: 60vh;
    }
    
    .section {
        padding: 3rem 1.5rem;
    }

    /* 优化触摸目标 */
    button, [role="button"], input[type="submit"] {
        min-width: 44px;
        min-height: 44px;
    }
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.modal-visible {
    display: block;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 50%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.close-modal {
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--error-color);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 添加诊所按钮样式 */
#add-clinic-btn {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: 1rem;
}

#add-clinic-btn:hover {
    background-color: var(--primary-dark);
}

/* 管理后台额外样式 */
.admin-link {
    color: white !important;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.admin-link:hover {
    background-color: rgba(255,255,255,0.1);
}

#logout-btn {
    padding: 0.3rem 0.8rem;
    background-color: var(--error-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 医生卡片容器样式 */
#doctors-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    padding: 1rem;
}

.doctor-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.doctor-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.doctor-info {
    padding: 1.5rem;
}

.doctor-info h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.doctor-title {
    color: #3498db;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.doctor-specialty {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

/* 文件上传表单样式 */
.upload-form {
    max-width: 500px;
    margin: 0 auto;
}

.upload-form .form-group {
    margin: 1rem 0;
}

/* 管理后台专用样式 */
.admin-hidden {
    display: none !important;
}

.admin-nav-links {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}
#search-suggestions {
    position: fixed;
    left: 0;
    top: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: 240px;
    overflow-y: auto;
    display: none;
    z-index: 9999;
}
#search-suggestions.visible { display: block; }
.suggestion-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
}
.suggestion-item:hover { background: #f6f7f8; }
