/* PET-CT预约网站样式 */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --success-color: #198754;
    --danger-color: #dc3545;
    --text-color: #2d3748;
    --text-muted: #718096;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 文本选中样式 */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* 基础文本优化 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #1a202c;
}

p {
    margin-bottom: 1rem;
}

small, .small {
    font-size: 0.875rem;
}

/* 链接样式优化 */
a {
    transition: color 0.2s ease;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.85), rgba(0, 0, 0, 0.6)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%230066cc" width="1200" height="600"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 50px 0;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Stats Section */
.stats-section {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-card .stat-label {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* Section Styles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Hospital Card */
.hospital-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.hospital-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.hospital-card .card-img-top {
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hospital-card .card-img-top i {
    font-size: 4rem;
    color: var(--primary-color);
}

.hospital-card .badge-level {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

.hospital-card .price {
    color: var(--danger-color);
    font-weight: 700;
    font-size: 1.3rem;
}

/* Feature Icons */
.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
}

/* News Card */
.news-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.news-card .card-body {
    padding: 25px;
}

.news-card .category-badge {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Booking Form */
.booking-form {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.booking-form .form-control,
.booking-form .form-select {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.booking-form .form-control:focus,
.booking-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* 文章内容排版 */
.article-content {
    font-size: 1rem;
    line-height: 1.9;
    color: #374151;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f7fafc;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4a5568;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.article-content th,
.article-content td {
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.article-content th {
    background: #f7fafc;
    font-weight: 600;
}

.article-content pre {
    background: #f7fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.9rem;
}

/* Breadcrumb */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), #0b5ed7);
    color: white;
    padding: 40px 0;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
}

/* Sidebar */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.sidebar-widget h5 {
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

/* Province Filter：所有屏幕尺寸统一 flex 布局 */
.province-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

/* Pagination：根据屏幕宽度自动换行 */
.pagination {
    flex-wrap: wrap;
    row-gap: 6px;
}

.pagination .page-link {
    border-radius: 8px;
    margin: 0 3px;
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
footer {
    font-size: 0.9rem;
}

footer a {
    text-decoration: none;
    transition: all 0.2s ease;
}

footer a:hover {
    color: white !important;
}

/* 页脚图标盒子 */
.footer-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

/* 页脚链接列表 */
.footer-links {
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: #9ca3af;
    font-size: 0.9rem;
    display: inline-block;
}

.footer-links li a:hover {
    color: white;
    transform: translateX(3px);
}

/* 页脚联系方式 */
.footer-contact li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #9ca3af;
}

.footer-contact li i {
    width: 20px;
    margin-right: 10px;
    font-size: 1rem;
}

.footer-contact li span {
    font-size: 0.9rem;
}

/* 5列布局 */
@media (min-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    /* 移动端字体优化 */
    body {
        font-size: 14px;
    }
    h1, h2, h3 {
        line-height: 1.25;
    }
    h2 {
        font-size: 1.25rem;
    }

    /* Hero */
    .hero-section {
        padding: 40px 0;
    }
    .hero-section h1 {
        font-size: 1.5rem;
        letter-spacing: -0.02em;
    }
    .hero-section .lead {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    .hero-section .d-flex {
        flex-direction: column;
    }
    .hero-section .d-flex .form-control {
        margin-bottom: 10px;
    }
    .hero-section .d-flex .btn {
        width: 100%;
    }

    /* Section */
    .section-title {
        margin-bottom: 30px;
    }
    .section-title h2 {
        font-size: 1.5rem;
    }

    /* Stat Card */
    .stat-card {
        margin-bottom: 15px;
        padding: 20px;
    }
    .stat-card .stat-number {
        font-size: 1.8rem;
    }

    /* Hospital Card */
    .hospital-card .card-img-top {
        height: 120px;
    }
    .hospital-card .card-img-top i {
        font-size: 2.5rem;
    }

    /* Province Filter Buttons：移动端缩小间距和字号 */
    .province-filter {
        gap: 6px;
    }
    .province-filter .btn {
        flex-shrink: 0;
        font-size: 0.8rem;
        padding: 4px 12px;
    }

    /* Booking Form */
    .booking-form {
        padding: 20px;
    }

    /* Page Header */
    .page-header {
        padding: 25px 0;
        margin-bottom: 25px;
    }
    .page-header h1 {
        font-size: 1.4rem;
    }

    /* Sidebar */
    .sidebar-widget {
        padding: 15px;
    }

    /* Admin */
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: -250px;
        z-index: 1050;
        width: 250px;
        transition: left 0.3s;
    }
    .admin-sidebar.show {
        left: 0;
    }
    .admin-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
    }
    .admin-overlay.show {
        display: block;
    }
    .admin-mobile-toggle {
        display: block !important;
    }

    /* Footer */
    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-lg-3 {
        margin-bottom: 20px;
    }
    footer h5, footer h6 {
        margin-bottom: 10px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.3rem;
    }
    .booking-form {
        padding: 15px;
    }
    .hospital-card .price {
        font-size: 1rem;
    }
    .pagination .page-link {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

/* Admin Styles */
.admin-sidebar {
    min-height: 100vh;
    background: #1e293b;
    padding-top: 20px;
}

.admin-sidebar .nav-link {
    color: #94a3b8;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 2px 10px;
    transition: all 0.3s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.1);
}

.admin-sidebar .nav-link i {
    width: 24px;
    margin-right: 10px;
}

.admin-content {
    background: #f1f5f9;
    min-height: 100vh;
}

.admin-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.admin-stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-stat-card .icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.status-pending { color: #f59e0b; }
.status-confirmed { color: #10b981; }
.status-completed { color: #3b82f6; }
.status-cancelled { color: #ef4444; }

.table-responsive {
    border-radius: 12px;
    overflow: hidden;
}

.table th {
    font-weight: 600;
    background: #f8fafc;
}
