/* ============================================================
   PETCT预约网 - 前端样式表（响应式）
   ============================================================ */

/* ---------- 变量 ---------- */
:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #e8f0fe;
    --accent: #00a0e9;
    --text: #2c3e50;
    --text-light: #666;
    --text-muted: #999;
    --bg: #f5f7fa;
    --bg-white: #ffffff;
    --border: #e8eaed;
    --success: #34a853;
    --error: #ea4335;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,.12);
    --container: 1200px;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px; line-height: 1.6; color: var(--text); background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* ---------- 头部 ---------- */
.site-header {
    background: #fff; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: var(--text); }
.logo-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; padding: 4px 8px; border-radius: 6px; font-size: 14px; letter-spacing: 1px;
}
.logo-text { color: var(--primary-dark); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    padding: 8px 16px; color: var(--text); font-size: 15px; border-radius: 6px; transition: all .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: var(--primary-light); }
.main-nav .nav-phone {
    background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff !important;
    font-weight: 600; margin-left: 8px;
}
.main-nav .nav-phone:hover { opacity: .9; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav-overlay { display: none; }

/* ---------- 通用区块 ---------- */
.section { padding: 24px 0; }
.section-title {
    font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
}
.section-title::before { content: ''; width: 4px; height: 22px; background: var(--primary); border-radius: 2px; }
.section-title .more { margin-left: auto; font-size: 14px; font-weight: 400; color: var(--text-muted); }
.card-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.card-grid.cols-3 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 医院卡片（统一风格） ---------- */
.hospital-card {
    background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column;
}
.hospital-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.hospital-card .card-img {
    width: 100%; aspect-ratio: 16 / 8; overflow: hidden; background: var(--primary-light); position: relative;
}
.hospital-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.hospital-card:hover .card-img img { transform: scale(1.05); }
.hospital-card .card-tag {
    position: absolute; top: 8px; left: 8px; background: rgba(26,115,232,.9); color: #fff;
    font-size: 12px; padding: 2px 8px; border-radius: 4px;
}
.hospital-card .card-body { padding: 10px 12px; flex: 1; display: flex; flex-direction: column; }
.hospital-card .card-title {
    font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 38px; margin-bottom: 6px;
}
.hospital-card .card-info { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.hospital-card .card-price { color: var(--error); font-weight: 700; font-size: 15px; margin-top: auto; }
.hospital-card .card-price small { font-size: 11px; font-weight: 400; color: var(--text-muted); }

/* ---------- 面包屑 ---------- */
.breadcrumb { padding: 12px 0; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ---------- 省份导航条 ---------- */
.region-bar { background: #fff; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.region-bar h4 { font-size: 14px; color: var(--text-light); margin-bottom: 10px; }
.region-bar .region-links { display: flex; flex-wrap: wrap; gap: 8px 6px; }
.region-bar .region-links a {
    padding: 4px 12px; font-size: 13px; color: var(--text-light); background: var(--bg);
    border-radius: 16px; transition: all .2s;
}
.region-bar .region-links a:hover, .region-bar .region-links a.active {
    background: var(--primary); color: #fff;
}

/* ---------- 四大用途 ---------- */
.features-section { background: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.feature-item { padding: 24px 16px; border-radius: var(--radius); transition: transform .25s; }
.feature-item:hover { transform: translateY(-4px); }
.feature-item .feature-icon {
    width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 32px;
    background: var(--primary-light); color: var(--primary);
}
.feature-item h4 { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.feature-item p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* ---------- 新闻区块 ---------- */
.news-section { background: #fff; }
.news-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 2px solid var(--border); }
.news-tab-btn {
    padding: 10px 24px; font-size: 16px; color: var(--text-light); cursor: pointer;
    border: none; background: none; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s;
}
.news-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.news-tab-panel { display: none; }
.news-tab-panel.active { display: block; }
.news-tab-panel .news-featured { display: flex; gap: 20px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.news-tab-panel .news-featured img { width: 200px; height: 130px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.news-tab-panel .news-featured .news-info h4 { font-size: 16px; margin-bottom: 8px; line-height: 1.5; }
.news-tab-panel .news-featured .news-info h4 a { color: var(--text); }
.news-tab-panel .news-featured .news-info h4 a:hover { color: var(--primary); }
.news-tab-panel .news-featured .news-info p { font-size: 13px; color: var(--text-muted); }
.news-list-compact li { padding: 8px 0; border-bottom: 1px dashed var(--border); display: flex; align-items: center; }
.news-list-compact li::before { content: ''; width: 4px; height: 4px; background: var(--primary); border-radius: 50%; margin-right: 10px; flex-shrink: 0; }
.news-list-compact li a { color: var(--text-light); font-size: 14px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-list-compact li a:hover { color: var(--primary); }
.news-list-compact li .date { color: var(--text-muted); font-size: 12px; flex-shrink: 0; margin-left: 10px; }

/* ---------- 医院详情页 ---------- */
.hospital-detail { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.detail-main { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }

/* 预约表单 */
.booking-form-wrapper {
    background: linear-gradient(135deg, var(--primary-light), #f0f6ff);
    border: 1px solid #c5dafc; border-radius: var(--radius); padding: 24px; margin-bottom: 24px;
}
.booking-form-wrapper h3 { font-size: 20px; color: var(--primary-dark); margin-bottom: 4px; }
.booking-form-wrapper .booking-desc { font-size: 13px; color: var(--text-light); margin-bottom: 16px; }
.booking-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.booking-form .form-group { display: flex; flex-direction: column; }
.booking-form .form-group.full { grid-column: 1 / -1; }
.booking-form label { font-size: 13px; color: var(--text-light); margin-bottom: 4px; font-weight: 500; }
.booking-form label .req { color: var(--error); }
.booking-form input, .booking-form select, .booking-form textarea {
    padding: 10px 12px; border: 1px solid #c5dafc; border-radius: 6px; font-size: 14px;
    background: #fff; color: var(--text); transition: border-color .2s;
}
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,115,232,.15);
}
.booking-form textarea { resize: vertical; min-height: 70px; }
.booking-form .form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.btn-submit {
    background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border: none;
    padding: 12px 40px; border-radius: 6px; font-size: 16px; font-weight: 600; cursor: pointer; transition: opacity .2s;
}
.btn-submit:hover { opacity: .9; }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.form-msg { font-size: 14px; }
.form-msg.success { color: var(--success); }
.form-msg.error { color: var(--error); }

/* 医院信息卡 */
.hospital-info-card { display: flex; gap: 20px; padding: 20px; }
.hospital-info-card .hospital-img { width: 280px; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; background: var(--primary-light); }
.hospital-info-card .hospital-img img { width: 100%; height: 100%; object-fit: cover; }
.hospital-info-card .hospital-meta { flex: 1; }
.hospital-info-card .hospital-meta h1 { font-size: 22px; color: var(--text); margin-bottom: 14px; line-height: 1.4; }
.hospital-info-card .hospital-meta .meta-row { display: flex; padding: 6px 0; font-size: 14px; border-bottom: 1px dashed var(--border); }
.hospital-info-card .hospital-meta .meta-row .meta-label { width: 80px; color: var(--text-muted); flex-shrink: 0; }
.hospital-info-card .hospital-meta .meta-row .meta-value { color: var(--text); }
.hospital-info-card .hospital-meta .meta-row .meta-value.price { color: var(--error); font-weight: 700; font-size: 18px; }
.btn-book-now {
    display: inline-block; margin-top: 14px; background: var(--error); color: #fff; padding: 10px 28px;
    border-radius: 6px; font-size: 15px; font-weight: 600; transition: opacity .2s;
}
.btn-book-now:hover { opacity: .9; color: #fff; }

/* 详情内容区 */
.detail-content { padding: 0 20px 20px; }
.detail-section { margin-bottom: 28px; }
.detail-section h2 {
    font-size: 18px; font-weight: 600; color: var(--text); padding-bottom: 10px;
    border-bottom: 2px solid var(--primary); margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.detail-section h2::before { content: ''; width: 4px; height: 18px; background: var(--primary); border-radius: 2px; }
.detail-section .content-text { font-size: 14px; color: var(--text-light); line-height: 1.9; }
.detail-section .content-text p { margin-bottom: 12px; }
.detail-section .content-text img { max-width: 100%; border-radius: var(--radius); margin: 14px 0; }

/* 详情页 Tab */
.detail-tabs {
    display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 0;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.detail-tabs::-webkit-scrollbar { height: 3px; }
.detail-tabs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.detail-tab {
    padding: 12px 22px; font-size: 15px; color: var(--text-light); cursor: pointer;
    border: none; background: none; border-bottom: 2px solid transparent; margin-bottom: -2px;
    transition: all .2s; white-space: nowrap; flex-shrink: 0;
}
.detail-tab:hover { color: var(--primary); }
.detail-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.detail-panels { background: #fff; border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius) var(--radius); }
.detail-panel { display: none; }
.detail-panel.active { display: block; }
.detail-panel .content-text { padding: 20px 22px; }

/* 须知内容排版优化 */
.formatted-text { font-size: 14px; color: var(--text); line-height: 2; }
.formatted-text br + br + br { display: none; }
.formatted-text br + br { display: block; margin-top: 8px; content: ""; }
.formatted-text p { margin-bottom: 10px; }
.formatted-text strong, .formatted-text b { color: var(--text); font-weight: 600; }
.formatted-text ul, .formatted-text ol { margin: 8px 0 12px 20px; }
.formatted-text li { margin-bottom: 6px; line-height: 1.8; }
.formatted-text img { max-width: 100%; border-radius: var(--radius); margin: 12px 0; }

/* 须知分条列表 */
.notice-list { list-style: none; margin: 0 0 16px 0; padding: 0; counter-reset: none; }
.notice-list > li { margin-bottom: 14px; line-height: 2; padding-left: 0; }
.notice-list .item-num { display: inline-block; font-weight: 700; color: var(--primary); margin-right: 4px; }
.notice-sublist { list-style: none; margin: 8px 0 12px 0; padding-left: 24px; }
.notice-sublist > li { margin-bottom: 8px; line-height: 1.9; }
.notice-sublist .item-letter { display: inline-block; font-weight: 600; color: var(--primary); margin-right: 4px; }
.notice-sublist .item-diamond { color: var(--primary); margin-right: 4px; font-size: 12px; }
.notice-text { margin-bottom: 8px; font-weight: 500; color: var(--text); }

/* Q&A 问答格式 */
.notice-qa { display: flex; flex-direction: column; gap: 16px; }
.notice-qa .qa-item { background: #f8f9fa; border-radius: 8px; padding: 14px 16px; border-left: 3px solid var(--primary); }
.notice-qa .qa-q { font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.7; }
.notice-qa .qa-a { color: var(--text-light); line-height: 1.9; }
.notice-qa .qa-label { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 4px; font-size: 12px; font-weight: 700; margin-right: 8px; vertical-align: middle; }
.notice-qa .qa-q .qa-label { background: var(--primary); color: #fff; }
.notice-qa .qa-a .qa-label { background: #e2e8f0; color: var(--text); }

/* 详情侧栏 */
.detail-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.sidebar-box h4 { font-size: 16px; font-weight: 600; margin-bottom: 14px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.sidebar-box h4::before { content: ''; width: 4px; height: 16px; background: var(--primary); border-radius: 2px; }
.recommend-card { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.recommend-card:last-child { border-bottom: none; }
.recommend-card img { width: 70px; height: 50px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.recommend-card .rec-info { flex: 1; min-width: 0; }
.recommend-card .rec-info h5 { font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recommend-card .rec-info .rec-price { font-size: 13px; color: var(--error); font-weight: 600; margin-top: 4px; }
.sidebar-contact { text-align: center; }
.sidebar-contact .phone-big { font-size: 24px; font-weight: 700; color: var(--primary); margin: 10px 0; }

/* ---------- 新闻列表 ---------- */
.news-list-page .news-item {
    display: flex; gap: 18px; padding: 18px; background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); margin-bottom: 16px; transition: box-shadow .2s;
}
.news-list-page .news-item:hover { box-shadow: var(--shadow-hover); }
.news-list-page .news-item img { width: 180px; height: 120px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.news-list-page .news-item .news-content { flex: 1; }
.news-list-page .news-item .news-content h3 { font-size: 17px; margin-bottom: 8px; }
.news-list-page .news-item .news-content h3 a { color: var(--text); }
.news-list-page .news-item .news-content h3 a:hover { color: var(--primary); }
.news-list-page .news-item .news-content p { font-size: 13px; color: var(--text-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-list-page .news-item .news-content .news-meta { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* 新闻详情 */
.news-detail { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.news-detail h1 { font-size: 24px; color: var(--text); margin-bottom: 12px; line-height: 1.5; }
.news-detail .news-meta { font-size: 13px; color: var(--text-muted); padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.news-detail .news-body { font-size: 15px; color: var(--text); line-height: 2; }
.news-detail .news-body p { margin-bottom: 16px; }

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: 8px 14px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px;
    color: var(--text-light); background: #fff; transition: all .2s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- 底部 ---------- */
.site-footer { background: #2c3e50; color: #bdc3c7; padding: 32px 0 20px; margin-top: 40px; }
.footer-regions { margin-bottom: 24px; }
.footer-regions h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-regions .region-links { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.footer-regions .region-links a {
    color: #bdc3c7; font-size: 12px; padding: 2px 8px; border-radius: 4px; transition: all .2s;
}
.footer-regions .region-links a:hover { color: #fff; background: rgba(255,255,255,.1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 12px; }
.footer-links a { color: #bdc3c7; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-info { font-size: 13px; color: #95a5a6; line-height: 1.8; }
.footer-info a { color: #bdc3c7; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 992px) {
    .card-grid { grid-template-columns: repeat(4, 1fr); }
    .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .hospital-detail { grid-template-columns: 1fr; }
    .detail-sidebar { order: 2; }
}

@media (max-width: 768px) {
    .container { padding: 0 12px; }

    /* 导航折叠 */
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; top: 64px; right: -100%; width: 260px; height: calc(100vh - 64px);
        background: #fff; flex-direction: column; align-items: stretch; padding: 16px; gap: 0;
        box-shadow: -2px 0 12px rgba(0,0,0,.1); transition: right .3s; z-index: 99; overflow-y: auto;
    }
    .main-nav.open { right: 0; }
    .main-nav a { padding: 14px 16px; border-bottom: 1px solid var(--border); border-radius: 0; }
    .main-nav .nav-phone { margin: 12px 0 0; text-align: center; border-radius: 6px; }
    .mobile-nav-overlay { display: block; position: fixed; top: 64px; left: 0; width: 100%; height: calc(100vh - 64px); background: rgba(0,0,0,.4); z-index: 98; opacity: 0; visibility: hidden; transition: .3s; }
    .mobile-nav-overlay.show { opacity: 1; visibility: visible; }

    .card-grid, .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .features-grid { grid-template-columns: 1fr; gap: 12px; }
    .section-title { font-size: 18px; }

    /* 省份筛选横向滚动（平板也启用） */
    .region-bar .region-links { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
    .region-bar .region-links a { flex-shrink: 0; white-space: nowrap; }
    .region-bar .region-links::-webkit-scrollbar { height: 4px; }
    .region-bar .region-links::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

    /* 医院详情 */
    .hospital-info-card { flex-direction: column; padding: 16px; }
    .hospital-info-card .hospital-img { width: 100%; }
    .hospital-info-card .hospital-meta h1 { font-size: 18px; }

    /* 预约表单移动端单列 */
    .booking-form-wrapper { padding: 16px; }
    .booking-form { grid-template-columns: 1fr; }

    /* 新闻 */
    .news-tab-panel .news-featured { flex-direction: column; }
    .news-tab-panel .news-featured img { width: 100%; height: 160px; }
    .news-list-page .news-item { flex-direction: column; }
    .news-list-page .news-item img { width: 100%; height: 160px; }
    .news-detail { padding: 16px; }
    .news-detail h1 { font-size: 20px; }

    .detail-content { padding: 0 16px 16px; }
    .detail-tab { padding: 10px 16px; font-size: 14px; }
    .detail-panels { border-radius: 0 0 var(--radius) var(--radius); }
    .detail-panel .content-text { padding: 16px; }
    .formatted-text { font-size: 13px; line-height: 1.9; }
    .footer-links { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 480px) {
    .card-grid, .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .logo-text { font-size: 16px; }
    .booking-form .form-actions { flex-direction: column; align-items: stretch; }
    .btn-submit { width: 100%; }

    /* 小屏优化 */
    body { font-size: 14px; }
    .section { padding: 16px 0; }
    .section-title { font-size: 16px; margin-bottom: 14px; }
    .header-inner { height: 56px; }
    .main-nav { top: 56px; height: calc(100vh - 56px); }
    .mobile-nav-overlay { top: 56px; }

    /* 2列卡片紧凑布局 */
    .hospital-card .card-body { padding: 8px 10px; }
    .hospital-card .card-title { font-size: 13px; min-height: 36px; line-height: 1.35; margin-bottom: 4px; }
    .hospital-card .card-info { font-size: 11px; margin-bottom: 2px; }
    .hospital-card .card-price { font-size: 14px; }
    .hospital-card .card-price small { font-size: 10px; }
    .hospital-card .card-tag { font-size: 10px; padding: 1px 6px; top: 6px; left: 6px; }

    .hospital-info-card .hospital-meta h1 { font-size: 17px; }
    .hospital-info-card .hospital-meta .meta-row { font-size: 13px; }
    .hospital-info-card .hospital-meta .meta-row .meta-label { width: 70px; }
    .detail-tab { padding: 8px 14px; font-size: 13px; }
    .detail-section h2 { font-size: 16px; }
    .detail-section .content-text { font-size: 13px; line-height: 1.8; }
    .formatted-text { font-size: 13px; line-height: 1.8; }
    .notice-list > li { margin-bottom: 10px; line-height: 1.8; }
    .notice-sublist { padding-left: 16px; }
    .notice-qa .qa-item { padding: 12px 14px; }
    .notice-qa .qa-q { font-size: 14px; }
    .notice-qa .qa-a { font-size: 13px; }
    .news-list-page .news-item .news-content h3 { font-size: 15px; }
    .news-detail h1 { font-size: 18px; }
    .news-detail .news-body { font-size: 14px; line-height: 1.8; }
    .pagination a, .pagination span { padding: 6px 12px; font-size: 13px; }
    .footer-regions h4 { font-size: 14px; }
    .footer-regions .region-links a { font-size: 11px; padding: 2px 6px; }
    .sidebar-contact .phone-big { font-size: 20px; }
    .recommend-card img { width: 60px; height: 44px; }
    .recommend-card .rec-info h5 { font-size: 12px; }

    /* 省份筛选横向滚动 */
    .region-bar { padding: 12px 14px; margin-bottom: 14px; }
    .region-bar h4 { font-size: 12px; margin-bottom: 8px; }
    .region-bar .region-links { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 6px; padding-bottom: 4px; }
    .region-bar .region-links a { flex-shrink: 0; font-size: 12px; padding: 4px 10px; white-space: nowrap; }
}

/* 超小屏（320px）- 保持2列但更紧凑 */
@media (max-width: 360px) {
    .container { padding: 0 10px; }
    .logo-icon { font-size: 12px; padding: 3px 6px; }
    .logo-text { font-size: 14px; }
    .card-grid, .card-grid.cols-3 { gap: 8px; }
    .hospital-card .card-body { padding: 6px 8px; }
    .hospital-card .card-title { font-size: 12px; min-height: 32px; }
    .hospital-card .card-info { font-size: 10px; }
    .hospital-card .card-price { font-size: 13px; }
    .hospital-card .card-price small { font-size: 9px; }
    .hospital-info-card { padding: 12px; }
    .hospital-info-card .hospital-meta h1 { font-size: 16px; }
    .booking-form-wrapper { padding: 12px; }
    .booking-form input, .booking-form select, .booking-form textarea { font-size: 13px; padding: 8px 10px; }
    .region-bar .region-links a { font-size: 11px; padding: 3px 8px; }
}

/* 触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .hospital-card:hover { transform: none; box-shadow: var(--shadow); }
    .hospital-card:hover .card-img img { transform: none; }
    .feature-item:hover { transform: none; }
    a, button { -webkit-tap-highlight-color: transparent; }
}

/* 大屏优化 */
@media (min-width: 1400px) {
    :root { --container: 1360px; }
    body { font-size: 16px; }
    .card-grid { gap: 18px; }
    .hospital-card .card-title { font-size: 15px; }
}

/* 图片懒加载占位 */
img[loading="lazy"] { background: var(--primary-light); }
img.lazy-placeholder { filter: blur(8px); transition: filter .3s; }
img.lazy-placeholder.loaded { filter: none; }
