/* =====================================================
   手机端样式 - 完整重写 v5.0
   ===================================================== */

/* ===== 全局设置 ===== */
@media (max-width: 767px) {
    html { font-size: 14px; }
    body { 
        padding-bottom: 65px !important;
        background: #f5f7fa;
        min-height: 100vh;
        overflow-x: hidden !important;
    }
    .container { 
        padding: 0 15px; 
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* ===== 所有内容区域锁定宽度 ===== */
    section, 
    .page-header,
    .main-header,
    .main-footer,
    .mobile-bottom-nav {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* ===== 顶部导航 ===== */
    .main-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
        background: #fff !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }
    
    .header-inner {
        height: 50px !important;
        padding: 0 15px !important;
    }
    
    .logo img {
        height: 28px !important;
        width: auto !important;
    }
    
    .main-nav { display: none !important; }
    
    .header-actions {
        display: flex !important;
        align-items: center;
    }
    .header-actions .btn { display: none !important; }
    
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        color: #333 !important;
    }
    
    .mobile-menu {
        position: fixed !important;
        top: 0 !important;
        right: -280px !important;
        width: 280px !important;
        height: 100vh !important;
        background: #fff !important;
        box-shadow: -2px 0 15px rgba(0,0,0,0.15) !important;
        padding: 60px 20px 30px !important;
        transition: right 0.3s ease !important;
        z-index: 2000 !important;
        overflow-y: auto !important;
    }
    .mobile-menu.active { right: 0 !important; }
    
    .mobile-menu-close {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 22px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
    }
    
    .mobile-nav-list {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .mobile-nav-list li { margin: 0 !important; }
    .mobile-nav-list a {
        display: flex !important;
        align-items: center;
        padding: 14px 0 !important;
        font-size: 15px !important;
        border-bottom: 1px solid #eee !important;
        color: #333 !important;
        text-decoration: none !important;
    }
    .mobile-nav-list a i { width: 24px; margin-right: 10px; text-align: center; }
    .mobile-nav-list .btn {
        margin-top: 15px !important;
        width: 100% !important;
        justify-content: center !important;
        border: none !important;
    }
    
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1999;
    }
    .mobile-menu-overlay.active { display: block !important; }
    
    /* ===== 底部固定导航 - 重新设计 ===== */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: #fff !important;
        box-shadow: 0 -2px 15px rgba(0,0,0,0.1) !important;
        z-index: 999 !important;
        padding: 0 !important;
        height: 60px !important;
    }
    
    .mobile-bottom-nav .nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #888;
        text-decoration: none;
        font-size: 10px;
        padding: 8px 0;
        position: relative;
        transition: all 0.2s;
    }
    
    .mobile-bottom-nav .nav-item i {
        font-size: 20px;
        margin-bottom: 3px;
        transition: all 0.2s;
    }
    
    .mobile-bottom-nav .nav-item.active {
        color: #0066cc;
    }
    
    .mobile-bottom-nav .nav-item.active i {
        transform: scale(1.1);
    }
    
    /* 预约按钮特殊样式 */
    .mobile-bottom-nav .nav-cta {
        background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
        color: #fff !important;
    }
    
    .mobile-bottom-nav .nav-cta.active {
        background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
    }
    
    /* ===== Hero区域 ===== */
    .hero {
        margin-top: 50px !important;
        padding: 30px 0 !important;
    }
    .hero .container { display: block !important; }
    .hero-content { text-align: center; }
    .hero-image { display: none !important; }
    .hero h1 { font-size: 22px !important; margin-bottom: 10px !important; }
    .hero .highlight { font-size: 15px !important; }
    .hero-subtitle { font-size: 14px !important; margin-bottom: 20px !important; }
    .hero-cta { flex-direction: column !important; gap: 10px !important; }
    .hero-cta .btn { width: 100% !important; padding: 12px !important; }
    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 15px !important;
        background: #fff !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
    }
    .stat-item { padding: 5px !important; }
    .stat-number { font-size: 20px !important; }
    .stat-label { font-size: 11px !important; }
    .stat-sub { font-size: 9px !important; }
    
    /* ===== 页面头部Banner ===== */
    .page-header {
        margin-top: 50px !important;
        padding: 40px 15px 20px !important;
    }
    .page-header .page-icon { font-size: 28px !important; margin-bottom: 8px !important; }
    .page-header h1 { font-size: 20px !important; margin-bottom: 5px !important; }
    .page-header p { font-size: 13px !important; }
    
    /* ===== 区块通用 ===== */
    section { padding: 20px 0 !important; }
    .section-header { margin-bottom: 15px !important; }
    .section-header h2 { font-size: 16px !important; margin-bottom: 6px !important; }
    .section-header p { font-size: 12px !important; }
    .section-cta { margin-top: 15px !important; text-align: center; }
    .section-cta .btn { padding: 10px 20px !important; }
    
    /* ===== 服务卡片 ===== */
    .services-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    .service-card {
        padding: 12px !important;
        border-radius: 8px !important;
        text-align: left !important;
    }
    .service-icon { 
        font-size: 20px !important; 
        margin-bottom: 0 !important; 
        margin-right: 8px !important;
        display: inline !important;
        vertical-align: middle !important;
    }
    .service-card h3 { 
        font-size: 14px !important; 
        margin-bottom: 6px !important; 
        display: inline !important;
        vertical-align: middle !important;
    }
    .service-card p { font-size: 12px !important; margin-top: 6px !important; }
    .service-price { font-size: 14px !important; margin: 6px 0 !important; }
    .service-features { margin: 6px 0 !important; }
    .service-features li { font-size: 11px !important; padding: 3px 0 !important; }
    .service-card .btn { width: 100% !important; padding: 8px !important; margin-top: 8px !important; font-size: 13px !important; }
    
    /* ===== 医生卡片 - 重新设计 ===== */
    .doctors-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    .doctor-card {
        padding: 12px !important;
        border-radius: 8px !important;
        text-align: center !important;
    }
    .doctor-photo,
    .doctor-photo img {
        width: 70px !important;
        height: 70px !important;
        min-width: 70px !important;
        border-radius: 50% !important;
        margin: 0 auto 8px !important;
        object-fit: cover;
    }
    .doctor-photo i { font-size: 40px !important; }
    .doctor-card h3 { font-size: 15px !important; margin-bottom: 3px !important; }
    .doctor-title { font-size: 12px !important; margin-bottom: 8px !important; }
    
    /* 医生统计数据 */
    .doctor-card [style*="display: flex"][style*="justify-content: center"][style*="gap: 20px"] {
        gap: 15px !important;
        margin: 8px 0 !important;
    }
    .doctor-card [style*="font-size: 20px"] { font-size: 16px !important; }
    .doctor-card [style*="font-size: 12px"] { font-size: 11px !important; }
    
    /* 医生擅长标签 */
    .doctor-card [style*="margin-bottom: 15px"][itemprop] {
        margin-bottom: 10px !important;
    }
    .doctor-card [style*="padding: 4px 12px"] {
        padding: 3px 8px !important;
        font-size: 11px !important;
        margin: 2px !important;
    }
    
    /* 查看详情按钮 */
    .doctor-card .btn-outline {
        display: block !important;
        width: 100% !important;
        padding: 8px !important;
        font-size: 13px !important;
        border-radius: 6px !important;
        margin-top: 8px !important;
    }
    
    /* ===== 统计数据 ===== */
    .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .stat-box { padding: 12px 8px !important; border-radius: 8px !important; }
    .stat-box .stat-number { font-size: 20px !important; }
    .stat-box .stat-label { font-size: 11px !important; }
    .stat-description { font-size: 10px !important; }
    
    /* ===== 案例卡片 - 重新设计 ===== */
    .cases-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    /* 案例卡片布局 */
    .service-card[style*="position: relative"] {
        padding: 12px !important;
    }
    
    /* 案例信息上下排列 */
    .service-card[style*="position: relative"] [style*="display: flex"][style*="gap: 20px"][style*="margin-bottom: 15px"] {
        flex-direction: column !important;
        gap: 6px !important;
        margin-bottom: 10px !important;
    }
    
    .service-card[style*="position: relative"] h3 {
        font-size: 15px !important;
        margin-bottom: 8px !important;
    }
    
    .service-card[style*="position: relative"] p {
        font-size: 12px !important;
        margin-bottom: 10px !important;
    }
    
    /* 患者感言 */
    .service-card[style*="position: relative"] [style*="background: #f8f9fa"][style*="border-left"] {
        padding: 10px !important;
        margin-bottom: 10px !important;
    }
    .service-card[style*="position: relative"] [style*="font-style: italic"] {
        font-size: 12px !important;
    }
    
    /* 案例按钮 */
    .service-card[style*="position: relative"] .btn-outline {
        padding: 8px !important;
        font-size: 13px !important;
    }
    
    /* ===== CTA区块 ===== */
    .cta-section { padding: 20px 15px !important; margin-bottom: 0 !important; }
    .cta-section h2 { font-size: 16px !important; margin-bottom: 6px !important; }
    .cta-section p { font-size: 12px !important; margin-bottom: 10px !important; }
    .cta-section .btn { padding: 10px !important; font-size: 13px !important; border-radius: 20px !important; }
    
    /* CTA按钮组 */
    .cta-section [style*="display: flex"][style*="gap: 15px"][style*="justify-content: center"] {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .cta-section [style*="display: flex"][style*="gap: 15px"][style*="justify-content: center"] .btn {
        width: 100% !important;
        padding: 10px 20px !important;
    }
    
    /* ===== FAQ ===== */
    .faq-item { padding: 10px !important; margin-bottom: 6px !important; border-radius: 6px !important; }
    .faq-item h4 { font-size: 12px !important; margin-bottom: 5px !important; }
    .faq-answer { font-size: 11px !important; }
    
    /* ===== 页脚 ===== */
    .main-footer { padding: 20px 0 70px !important; }
    .footer-info { text-align: center !important; }
    .footer-info img { height: 28px !important; }
    .contact-info p { font-size: 11px !important; margin-bottom: 4px !important; justify-content: center !important; }
    .footer-bottom { padding-top: 10px !important; font-size: 10px !important; }
    
    /* 移动端隐藏页脚多余区块（保留PC端完整内容） */
    .footer-links { display: none !important; }
    .footer-services { display: none !important; }
    .footer-appointment { display: none !important; }
    
    /* ===== 服务页价格表格 ===== */
    [data-ai-citable][style*="max-width: 800px"],
    [style*="max-width: 800px"][style*="margin: 0 auto"] {
        max-width: 100% !important;
        padding: 12px !important;
        border-radius: 8px !important;
        margin: 0 !important;
    }
    
    /* 表格容器 */
    [data-ai-citable] table,
    [style*="max-width: 800px"] table {
        width: 100% !important;
        font-size: 11px !important;
        border-collapse: collapse !important;
        table-layout: fixed !important;
    }
    
    [data-ai-citable] th,
    [data-ai-citable] td,
    [style*="max-width: 800px"] th,
    [style*="max-width: 800px"] td {
        padding: 8px 4px !important;
        font-size: 11px !important;
        word-wrap: break-word !important;
    }
    
    [data-ai-citable] th:first-child,
    [data-ai-citable] td:first-child {
        width: 35% !important;
    }
    
    /* ===== 科普文章列表页 - 重新设计 ===== */
    /* 页面头部 */
    .page-header[style*="linear-gradient"],
    [style*="background: linear-gradient"][style*="padding: 70px"] {
        padding: 40px 15px 20px !important;
        margin-top: 50px !important;
    }
    .page-header[style*="linear-gradient"] h1 { font-size: 20px !important; }
    .page-header[style*="linear-gradient"] p { font-size: 13px !important; }
    .page-header[style*="linear-gradient"] [style*="display: inline-block"][style*="background: rgba"] {
        padding: 5px 12px !important;
        font-size: 12px !important;
    }
    
    /* 搜索和分类区域 */
    [style*="background: #fff"][style*="position: sticky"] {
        position: sticky !important;
        top: 50px !important;
        z-index: 100 !important;
        padding: 10px 0 !important;
    }
    
    [style*="background: #f8f9fa"][style*="padding: 15px 0"]:not([style*="padding: 60px"]) {
        padding: 10px 15px !important;
    }
    
    /* 搜索框 */
    [style*="max-width: 500px"][style*="margin: 0 auto"] {
        flex-direction: column !important;
        gap: 6px !important;
        max-width: 100% !important;
    }
    [style*="max-width: 500px"] input {
        width: 100% !important;
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
    [style*="max-width: 500px"] button {
        width: 100% !important;
        padding: 10px !important;
        font-size: 13px !important;
    }
    
    /* 分类标签 */
    [style*="overflow-x: auto"] {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        margin: 0 -15px !important;
        padding: 0 15px !important;
    }
    [style*="overflow-x: auto"]::-webkit-scrollbar { display: none !important; }
    [style*="overflow-x: auto"] a {
        flex-shrink: 0 !important;
        padding: 5px 12px !important;
        font-size: 12px !important;
        border-radius: 14px !important;
    }
    
    /* 文章列表 - 列表形式 */
    [style*="flex-direction: column"][style*="gap: 15px"] {
        gap: 8px !important;
    }
    
    /* 文章卡片 */
    a[style*="border-radius: 12px"][style*="padding: 20px"][href*="/article/"] {
        display: flex !important;
        flex-direction: column !important;
        padding: 10px 12px !important;
        border-radius: 8px !important;
        margin-bottom: 0 !important;
        border: none !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    }
    
    /* 文章卡片内容布局 */
    a[style*="border-radius: 12px"][href*="/article/"] [style*="display: flex"][style*="justify-content: space-between"] {
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    /* 分类标签 */
    a[style*="border-radius: 12px"][href*="/article/"] span[style*="background: #e8f4fc"] {
        padding: 2px 8px !important;
        font-size: 10px !important;
        border-radius: 8px !important;
        margin-bottom: 4px !important;
        display: inline-block !important;
    }
    
    /* 文章标题 */
    a[style*="border-radius: 12px"][href*="/article/"] h2,
    a[style*="border-radius: 12px"][href*="/article/"] [style*="font-size: 17px"] {
        font-size: 14px !important;
        line-height: 1.4 !important;
        margin-bottom: 4px !important;
    }
    
    /* 文章摘要 */
    a[style*="border-radius: 12px"][href*="/article/"] p,
    a[style*="border-radius: 12px"][href*="/article/"] [style*="-webkit-line-clamp"] {
        font-size: 11px !important;
        line-height: 1.4 !important;
        margin-bottom: 6px !important;
        -webkit-line-clamp: 2 !important;
        display: -webkit-box !important;
        overflow: hidden !important;
    }
    
    /* 元信息 */
    a[style*="border-radius: 12px"][href*="/article/"] [style*="font-size: 13px"][style*="color: #999"] {
        font-size: 10px !important;
        gap: 8px !important;
    }
    
    /* 隐藏箭头 */
    a[style*="border-radius: 12px"][href*="/article/"] [style*="color: #ccc"][style*="font-size: 20px"] {
        display: none !important;
    }
    
    /* 分页 */
    [style*="justify-content: center"][style*="margin-top: 30px"] {
        margin-top: 15px !important;
        gap: 4px !important;
    }
    [style*="justify-content: center"][style*="margin-top: 30px"] .btn,
    [style*="justify-content: center"][style*="margin-top: 30px"] a[class*="btn"] {
        min-width: 32px !important;
        padding: 6px 10px !important;
        font-size: 11px !important;
        border-radius: 14px !important;
    }
    
    /* ===== 文章详情页 - 固定宽度 ===== */
    /* 面包屑 */
    [style*="background: #f8f9fa"][style*="padding: 15px 0"]:not([style*="padding: 60px"]) {
        padding: 6px 0 !important;
        margin-top: 50px !important;
    }
    [style*="background: #f8f9fa"][style*="padding: 15px 0"] a,
    [style*="background: #f8f9fa"][style*="padding: 15px 0"] span {
        font-size: 10px !important;
    }
    
    /* 文章容器 - 锁定宽度 */
    article[itemscope] {
        padding: 12px !important;
        border-radius: 8px !important;
        margin: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* 文章标题 */
    article[itemscope] h1 {
        font-size: 16px !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
        word-wrap: break-word !important;
    }
    
    /* 分类标签 */
    article[itemscope] span[style*="background: #e8f4f8"] {
        padding: 2px 8px !important;
        font-size: 10px !important;
        margin-bottom: 8px !important;
    }
    
    /* 文章元信息 */
    article[itemscope] [style*="color: #666"][style*="font-size: 14px"] {
        font-size: 11px !important;
        padding-bottom: 10px !important;
        margin-bottom: 12px !important;
    }
    article[itemscope] [style*="display: flex"][style*="gap: 20px"] {
        gap: 10px !important;
        flex-wrap: wrap !important;
    }
    
    /* 作者卡片 */
    article[itemscope] [style*="background: linear-gradient"][style*="border-radius: 12px"] {
        padding: 10px !important;
        margin-bottom: 12px !important;
    }
    article[itemscope] [style*="width: 60px"][style*="height: 60px"] {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }
    article[itemscope] [style*="min-width: 200px"] { min-width: 0 !important; }
    article[itemscope] [style*="font-weight: 600"][style*="font-size: 16px"] { font-size: 13px !important; }
    article[itemscope] [style*="font-size: 13px"][style*="line-height: 1.5"] { font-size: 11px !important; }
    
    /* 文章正文 - 锁定宽度 */
    article[itemscope] [itemprop="articleBody"] {
        font-size: 13px !important;
        line-height: 1.7 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        word-wrap: break-word !important;
    }
    
    /* 正文标题 */
    article[itemscope] [itemprop="articleBody"] h2 { 
        font-size: 14px !important; 
        margin-top: 12px !important; 
        margin-bottom: 6px !important; 
    }
    article[itemscope] [itemprop="articleBody"] h3 { font-size: 13px !important; }
    article[itemscope] [itemprop="articleBody"] p { margin-bottom: 8px !important; }
    article[itemscope] [itemprop="articleBody"] ul, 
    article[itemscope] [itemprop="articleBody"] ol { 
        padding-left: 12px !important; 
        margin-bottom: 8px !important; 
    }
    article[itemscope] [itemprop="articleBody"] li { font-size: 12px !important; margin-bottom: 4px !important; }
    
    /* 正文图片 - 限制宽度 */
    article[itemscope] [itemprop="articleBody"] img {
        max-width: 100% !important;
        height: auto !important;
        margin: 8px 0 !important;
        border-radius: 4px !important;
        display: block !important;
    }
    
    /* 正文表格 - 限制宽度 */
    article[itemscope] [itemprop="articleBody"] table {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 11px !important;
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    article[itemscope] [itemprop="articleBody"] th,
    article[itemscope] [itemprop="articleBody"] td {
        padding: 6px 4px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
    }
    
    /* 审核医生卡片 */
    article[itemscope] [style*="border-top: 1px solid #eee"] {
        margin-top: 15px !important;
        padding-top: 12px !important;
    }
    article[itemscope] [style*="width: 50px"][style*="height: 50px"] {
        width: 36px !important;
        height: 36px !important;
        font-size: 14px !important;
    }
    
    /* 医院资质 */
    article[itemscope] [style*="background: #f8f9fa"][style*="font-size: 13px"] {
        font-size: 10px !important;
        padding: 8px !important;
    }
    article[itemscope] [style*="background: #f8f9fa"][style*="font-size: 13px"] [style*="gap: 15px"] {
        gap: 6px !important;
        flex-direction: column !important;
    }
    
    /* 相关文章 */
    [style*="background: #f8f9fa"][style*="padding: 40px 0"] {
        padding: 15px 0 !important;
    }
    [style*="background: #f8f9fa"][style*="padding: 40px 0"] h2 {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }
    
    /* ===== 预约页面 ===== */
    section [style*="grid-template-columns: 2fr 1fr"],
    section > .container > [style*="display: grid"][style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .service-card h2 {
        font-size: 14px !important;
        margin-bottom: 12px !important;
        padding-bottom: 8px !important;
        border-bottom: 1px solid #eee !important;
    }
    
    .service-card [style*="grid-template-columns: 1fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .service-card label {
        font-size: 12px !important;
        margin-bottom: 4px !important;
        color: #333 !important;
    }
    
    .service-card input,
    .service-card select,
    .service-card textarea {
        width: 100% !important;
        padding: 8px 10px !important;
        font-size: 13px !important;
        border: 1px solid #ddd !important;
        border-radius: 6px !important;
        background: #fff !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        box-sizing: border-box !important;
    }
    
    .service-card input:focus,
    .service-card select:focus,
    .service-card textarea:focus {
        border-color: #0066cc !important;
        outline: none !important;
    }
    
    .service-card select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 10px center !important;
        padding-right: 30px !important;
    }
    
    .service-card [style*="background: #d4edda"],
    .service-card [style*="background: #f8d7da"] {
        padding: 10px !important;
        border-radius: 6px !important;
        font-size: 12px !important;
        margin-bottom: 12px !important;
    }
    
    .service-card input[type="checkbox"] {
        width: 14px !important;
        height: 14px !important;
        margin-right: 6px !important;
    }
    
    .service-card label[style*="display: flex"][style*="align-items: center"] {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }
    
    .service-card .btn-primary {
        background: linear-gradient(135deg, #0066cc, #0052a3) !important;
        border: none !important;
        padding: 10px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        border-radius: 6px !important;
        margin-top: 12px !important;
    }
    
    .service-card h3 {
        font-size: 13px !important;
        margin-bottom: 8px !important;
        color: #333 !important;
    }
    
    .service-card [style*="font-size: 24px"] { font-size: 16px !important; }
    .service-card [style*="font-size: 14px"] { font-size: 11px !important; }
    
    .service-card ul {
        padding-left: 12px !important;
        margin: 0 !important;
    }
    .service-card ul li {
        font-size: 11px !important;
        line-height: 1.6 !important;
        color: #666 !important;
    }
    
    /* FAQ区块 */
    section[style*="background: #f8f9fa"] {
        background: #f5f7fa !important;
        padding: 15px 0 !important;
    }
    section[style*="background: #f8f9fa"] .section-header h2 { font-size: 14px !important; }
    
    .faq-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
    }
    
    .faq-item {
        background: #fff !important;
        padding: 10px !important;
        border-radius: 6px !important;
        box-shadow: 0 1px 2px rgba(0,0,0,0.06) !important;
    }
    .faq-item h4 { font-size: 12px !important; margin-bottom: 4px !important; color: #333 !important; }
    .faq-item .faq-answer { font-size: 11px !important; color: #666 !important; line-height: 1.4 !important; }
    
    /* ===== 表单 ===== */
    form { padding: 12px !important; border-radius: 8px !important; }
    .form-group { margin-bottom: 10px !important; }
    .form-group label { font-size: 12px !important; margin-bottom: 4px !important; }
    input, select, textarea {
        padding: 8px !important;
        font-size: 13px !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
    }
    textarea { min-height: 60px !important; }
    form .btn { width: 100% !important; padding: 10px !important; }
    
    /* ===== 客服浮窗 ===== */
    #customer-service-float {
        bottom: 70px !important;
        right: 10px !important;
    }
    #customer-service-float a {
        width: 36px !important;
        height: 36px !important;
    }
    #customer-service-float i { font-size: 14px !important; }
    #customer-service-float > div { display: none !important; }
    #customer-service-float button {
        width: 16px !important;
        height: 16px !important;
        font-size: 9px !important;
        top: -5px !important;
        right: -5px !important;
    }
    
    /* ===== 联系我们 ===== */
    .contact-grid,
    [style*="display: grid"][style*="gap: 30px"][style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    .contact-card { padding: 12px !important; border-radius: 8px !important; }
    .contact-card i { font-size: 20px !important; margin-bottom: 6px !important; }
    .contact-card h3 { font-size: 13px !important; }
    .contact-card p { font-size: 11px !important; }
    
    /* ===== AI核心定义区 ===== */
    [data-ai-citable][style*="padding: 30px"],
    [data-ai-citable][style*="padding: 40px"] {
        padding: 12px !important;
        border-radius: 6px !important;
        max-width: 100% !important;
    }
    [data-ai-citable] h2[style*="font-size: 20px"],
    [data-ai-citable] h2[style*="font-size: 24px"] {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }
    [data-ai-citable] p[style*="font-size: 16px"] {
        font-size: 12px !important;
        line-height: 1.6 !important;
    }
    
    /* ===== 医生详情页 ===== */
    [style*="display: flex"][style*="gap: 40px"] {
        flex-direction: column !important;
        gap: 12px !important;
    }
    [style*="width: 200px"][style*="height: 200px"],
    [style*="width: 250px"][style*="height: 250px"] {
        width: 80px !important;
        height: 80px !important;
        margin: 0 auto !important;
    }
    [style*="min-width: 300px"] { min-width: 0 !important; }
    [style*="font-size: 32px"] { font-size: 20px !important; }
    [style*="font-size: 28px"] { font-size: 18px !important; }
    
    /* ===== 服务详情页 ===== */
    [style*="grid-template-columns: 2fr 1fr"],
    [style*="grid-template-columns: 1fr 300px"] {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* ===== 医生资质说明 ===== */
    [style*="grid-template-columns: repeat(2, 1fr)"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    [style*="grid-template-columns: repeat(2, 1fr)"] > div {
        padding: 12px !important;
    }
    [style*="grid-template-columns: repeat(2, 1fr)"] h3 {
        font-size: 13px !important;
        margin-bottom: 6px !important;
    }
    [style*="grid-template-columns: repeat(2, 1fr)"] p {
        font-size: 11px !important;
        line-height: 1.5 !important;
    }
    
    /* ===== 隐藏PC元素 ===== */
    .desktop-only { display: none !important; }
}

/* ===== 小屏手机 ===== */
@media (max-width: 374px) {
    html { font-size: 13px; }
    .hero h1 { font-size: 18px !important; }
    .stat-number { font-size: 16px !important; }
    .section-header h2 { font-size: 14px !important; }
}

/* ===== 安全区域 ===== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    @media (max-width: 767px) {
        body { padding-bottom: calc(65px + env(safe-area-inset-bottom)) !important; }
        .mobile-bottom-nav { padding-bottom: calc(6px + env(safe-area-inset-bottom)) !important; }
    }
}

/* ===== 代码块样式 ===== */
@media (max-width: 767px) {
    pre {
        background: #2d2d2d !important;
        color: #f8f8f2 !important;
        padding: 15px !important;
        border-radius: 6px !important;
        overflow-x: auto !important;
        font-family: 'Consolas', 'Monaco', monospace !important;
        font-size: 12px !important;
        line-height: 1.5 !important;
        margin: 10px 0 !important;
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
    }
    
    code {
        background: rgba(0, 102, 204, 0.1) !important;
        color: #0066cc !important;
        padding: 2px 4px !important;
        border-radius: 3px !important;
        font-size: 12px !important;
    }
    
    pre code {
        background: transparent !important;
        color: inherit !important;
        padding: 0 !important;
    }
}
