/* ===== 全局重置 & 基础 ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
            background: #F5F7FA;
            color: #1e2a3a;
            line-height: 1.6;
        }
        a {
            text-decoration: none;
            color: inherit;
        }
        ul {
            list-style: none;
        }
        .container {
            max-width: 1240px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* ============================================================
                   头部区域 (与首页完全一致)
                   ============================================================ */

        /* ---- 第一层：Logo + 登录/注册 ---- */
        .header-top {
            background: #ffffff;
            border-bottom: 1px solid #eef1f6;
            padding: 14px 0 12px;
        }
        .header-top .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            position: relative;
        }
        .header-logo {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .header-logo .brand {
            font-size: 26px;
            font-weight: 700;
            color: #08C7A3;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }
        .header-logo .brand i {
            font-size: 28px;
        }
        .header-logo .brand .slogan {
            font-weight: 300;
            color: #4a5a6e;
            font-size: 16px;
            margin-left: 4px;
        }
        .header-logo .brand .domain {
            font-weight: 400;
            color: #8a9aa8;
            font-size: 14px;
            margin-left: 4px;
        }
        .header-logo .sub-title {
            font-size: 14px;
            color: #6a7a8e;
            letter-spacing: 2px;
            font-weight: 400;
            margin-top: 2px;
        }
        .header-logo .sub-title span {
            background: #E6F9F4;
            padding: 0 12px;
            border-radius: 10px;
            color: #08C7A3;
            font-weight: 500;
        }
        .header-auth {
            display: flex;
            align-items: center;
            gap: 18px;
            font-size: 15px;
            font-weight: 500;
            position: absolute;
            right: 20px;
        }
        .header-auth a {
            color: #4a5a6e;
            transition: color 0.2s;
        }
        .header-auth a:hover {
            color: #08C7A3;
        }
        .header-auth .login-btn {
            background: #08C7A3;
            color: #fff;
            padding: 6px 22px;
            border-radius: 24px;
            font-weight: 500;
            transition: background 0.2s;
        }
        .header-auth .login-btn:hover {
            background: #06A889;
            color: #fff;
        }
        .header-auth .register-btn {
            color: #08C7A3;
            font-weight: 500;
        }
        .header-auth .register-btn:hover {
            color: #06A889;
        }
        .header-auth .divider {
            color: #d0d8e0;
        }

        /* ---- 第二层：搜索栏 (可切换) ---- */
        .header-search {
            background: #ffffff;
            border-bottom: 1px solid #eef1f6;
            padding: 12px 0;
        }
        .header-search .container {
            display: flex;
            align-items: center;
            gap: 0;
            max-width: 720px;
            margin: 0 auto;
            background: #f0f2f5;
            border-radius: 30px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            padding: 0;
        }
        .header-search .search-select {
            border: none;
            background: transparent;
            padding: 12px 10px 12px 20px;
            font-size: 14px;
            color: #1e2a3a;
            outline: none;
            cursor: pointer;
            font-weight: 500;
            min-width: 80px;
            border-right: 1px solid #dce3ec;
            flex-shrink: 0;
        }
        .header-search .search-select option {
            font-weight: 400;
        }
        .header-search .search-input {
            flex: 1;
            border: none;
            background: transparent;
            padding: 12px 16px;
            font-size: 14px;
            outline: none;
            color: #1e2a3a;
            min-width: 80px;
        }
        .header-search .search-input::placeholder {
            color: #aab8c8;
        }
        .header-search .search-submit {
            background: #08C7A3;
            color: #fff;
            border: none;
            padding: 12px 30px;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.2s;
            border-radius: 0 30px 30px 0;
            flex-shrink: 0;
        }
        .header-search .search-submit:hover {
            background: #06A889;
        }

        /* ---- 第三层：导航菜单 ---- */
        .header-nav {
            background: #ffffff;
            border-bottom: 1px solid #eef1f6;
            padding: 6px 0;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
        }
        .header-nav .container {
            display: flex;
            flex-wrap: wrap;
            gap: 6px 22px;
            align-items: center;
        }
        .header-nav a {
            font-size: 15px;
            font-weight: 500;
            color: #2c3e50;
            padding: 8px 0;
            border-bottom: 2px solid transparent;
            transition: all 0.2s;
            white-space: nowrap;
        }
        .header-nav a:hover,
        .header-nav a.active {
            color: #08C7A3;
            border-bottom-color: #08C7A3;
        }
        .header-nav a.active {
            font-weight: 600;
        }
        .header-nav .nav-tag {
            background: #ff6b6b;
            color: #fff;
            font-size: 10px;
            padding: 0 8px;
            border-radius: 10px;
            font-weight: 500;
            margin-left: -8px;
            vertical-align: top;
        }

        /* ============================================================
                   医院搜索主体
                   ============================================================ */

        .search-main {
            padding: 28px 0 40px;
        }

        /* ---- 筛选条件 (自定义下拉样式) ---- */
        .filter-bar {
            background: #ffffff;
            border-radius: 16px;
            padding: 14px 20px;
            margin-bottom: 28px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
            border: 1px solid #edf0f5;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 10px 16px;
        }

        .filter-bar .filter-label {
            font-size: 14px;
            color: #6a7a8e;
            font-weight: 500;
            white-space: nowrap;
            flex-shrink: 0;
        }

        /* ---- 自定义下拉组件 ---- */
        .custom-dropdown {
            position: relative;
            flex-shrink: 0;
            user-select: none;
        }

        .dropdown-trigger {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 14px 6px 16px;
            border-radius: 24px;
            border: 1.5px solid #e8ecf1;
            background: #ffffff;
            font-size: 14px;
            font-weight: 500;
            color: #1e2a3a;
            cursor: pointer;
            transition: all 0.25s;
            white-space: nowrap;
            min-height: 38px;
            font-family: inherit;
        }
        .dropdown-trigger:hover {
            border-color: #08C7A3;
            background: #f8fcfb;
        }
        .dropdown-trigger .trigger-label {
            color: #1e2a3a;
        }
        .dropdown-trigger .trigger-arrow {
            color: #8a9aa8;
            font-size: 12px;
            margin-left: 2px;
            transition: transform 0.3s;
        }
        .dropdown-trigger.open .trigger-arrow {
            transform: rotate(180deg);
        }
        .dropdown-trigger.open {
            border-color: #08C7A3;
            box-shadow: 0 0 0 3px rgba(8, 199, 163, 0.12);
        }

        /* 下拉面板 */
        .dropdown-panel {
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            min-width: 100%;
            width: auto;
            background: #ffffff;
            border-radius: 12px;
            border: 1px solid #e8ecf1;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
            padding: 6px 0;
            z-index: 100;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-8px) scale(0.96);
            transition: all 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
            pointer-events: none;
            max-height: 240px;
            overflow-y: auto;
        }
        .dropdown-panel.open {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
            pointer-events: auto;
        }
        .dropdown-panel .option-item {
            padding: 8px 18px;
            font-size: 14px;
            color: #1e2a3a;
            cursor: pointer;
            transition: background 0.15s;
            white-space: nowrap;
            font-weight: 450;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }
        .dropdown-panel .option-item:hover {
            background: #f0f7f5;
        }
        .dropdown-panel .option-item.active {
            background: #E6F9F4;
            color: #08C7A3;
            font-weight: 500;
        }
        /* ★★★ 关键：勾选标记默认隐藏，仅 active 时显示 ★★★ */
        .dropdown-panel .option-item .opt-check {
            display: none;
            color: #08C7A3;
            font-size: 13px;
            flex-shrink: 0;
        }
        .dropdown-panel .option-item.active .opt-check {
            display: inline-flex;
            align-items: center;
        }

        /* 可挂号特殊样式 */
        .custom-dropdown.appointment .dropdown-trigger {
            border-color: #e8ecf1;
        }
        .custom-dropdown.appointment .dropdown-trigger.active-trigger {
            border-color: #08C7A3;
            background: #f0f7f5;
        }

        /* ---- 搜索结果统计 ---- */
        .result-stats {
            font-size: 14px;
            color: #6a7a8e;
            margin-bottom: 18px;
            padding: 0 4px;
        }
        .result-stats strong {
            color: #1e2a3a;
            font-weight: 600;
        }

        /* ---- 医院列表 ---- */
        .hospital-list {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
        }

        .hospital-card {
            background: #ffffff;
            border-radius: 14px;
            padding: 24px 28px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
            border: 1px solid #edf0f5;
            transition: all 0.25s;
            display: flex;
            flex-direction: column;
            gap: 10px;
            cursor: pointer;
        }
        .hospital-card:hover {
            box-shadow: 0 8px 28px rgba(8, 199, 163, 0.08);
            border-color: #d0e8e0;
            transform: translateY(-2px);
        }
        .hospital-card .top-row {
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
        }
        .hospital-card .logo-placeholder {
            width: 64px;
            height: 64px;
            background: linear-gradient(145deg, #eef3fc, #dce6f5);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 16px;
            color: #08C7A3;
            flex-shrink: 0;
        }
        .hospital-card .hospital-info {
            flex: 1;
            min-width: 180px;
        }
        .hospital-card .hospital-name {
            font-size: 20px;
            font-weight: 700;
            color: #1e2a3a;
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        .hospital-card .badge-group {
            display: flex;
            flex-wrap: wrap;
            gap: 6px 10px;
            margin-top: 4px;
        }
        .hospital-card .badge-group span {
            display: inline-block;
            padding: 2px 14px;
            border-radius: 12px;
            font-weight: 500;
            font-size: 12px;
        }
        .hospital-card .badge-group span:first-child {
            background: #08C7A3;
            color: #ffffff;
        }
        .hospital-card .badge-group span:last-child {
            background: #E6F9F4;
            color: #08C7A3;
        }
        .hospital-card .badge-group span:only-child {
            background: #E6F9F4;
            color: #08C7A3;
        }

        .hospital-card .info-row {
            font-size: 14px;
            color: #5a6a7e;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .hospital-card .info-row i {
            color: #8a9aa8;
            width: 18px;
            text-align: center;
        }
        .hospital-card .info-row .phone {
            color: #1e2a3a;
            font-weight: 500;
        }
        .hospital-card .info-row .address {
            color: #5a6a7e;
        }

        /* ---- 空状态 ---- */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #8a9aa8;
        }
        .empty-state i {
            font-size: 48px;
            color: #dce3ec;
            margin-bottom: 16px;
        }
        .empty-state p {
            font-size: 16px;
        }
        
        

        /* ============================================================
                   响应式
                   ============================================================ */

        @media (max-width: 1024px) {
            .filter-bar {
                padding: 12px 16px;
                gap: 8px 12px;
            }
            .dropdown-trigger {
                font-size: 13px;
                padding: 5px 12px 5px 14px;
                min-height: 34px;
            }
            .dropdown-panel .option-item {
                font-size: 13px;
                padding: 7px 14px;
            }
        }

        @media (max-width: 768px) {
            .header-top .container {
                flex-direction: column;
                align-items: stretch;
                gap: 8px;
            }
            .header-auth {
                justify-content: flex-end;
                flex-direction: column;
                gap: 0;
                position: absolute;
            }
            .header-auth .divider {
                display: none;
            }
            .header-search .container {
                max-width: 100%;
                border-radius: 24px;
                margin: 0 20px;
            }
            .header-search .search-select {
                padding: 10px 8px 10px 14px;
                font-size: 13px;
                min-width: 70px;
            }
            .header-search .search-submit {
                padding: 10px 18px;
                font-size: 14px;
            }
            .header-nav .container {
                gap: 4px 14px;
            }
            .header-nav a {
                font-size: 13px;
            }

            .search-main {
                padding: 18px 0 30px;
            }

            .filter-bar {
                padding: 12px 14px;
                gap: 8px 10px;
                border-radius: 12px;
                justify-content: space-around;
            }
            .filter-bar .filter-label {
                display:none;
                font-size: 13px;
            }

            .dropdown-trigger {
                font-size: 13px;
                padding: 5px 12px 5px 14px;
                min-height: 32px;
                border-radius: 20px;
                gap: 4px;
            }
            .dropdown-trigger .trigger-arrow {
                font-size: 11px;
            }

            .dropdown-panel {
                min-width: 120px;
                max-height: 180px;
            }
            .dropdown-panel .option-item {
                font-size: 13px;
                padding: 7px 14px;
            }

            .hospital-card {
                padding: 18px 16px;
            }
            .hospital-card .top-row {
                gap: 12px;
            }
            .hospital-card .logo-placeholder {
                width: 52px;
                height: 52px;
                font-size: 14px;
            }
            .hospital-card .hospital-name {
                font-size: 17px;
            }
            .hospital-card .badge-group span {
                font-size: 11px;
                padding: 1px 10px;
            }
            .hospital-card .info-row {
                font-size: 13px;
            }

            .result-stats {
                font-size: 13px;
            }
        }

        @media (max-width: 480px) {
            .header-logo .brand {
                font-size: 20px;
            }
            .header-logo .sub-title {
                font-size: 12px;
            }
            .header-nav a {
                font-size: 12px;
                padding: 6px 0;
            }
            .header-nav .container {
                gap: 2px 10px;
            }
            .header-search .search-select {
                min-width: 56px;
                font-size: 12px;
                padding: 8px 6px 8px 10px;
            }
            .header-search .search-input {
                font-size: 13px;
                padding: 10px 12px;
            }
            .header-search .search-submit {
                padding: 10px 14px;
                font-size: 13px;
            }

            .filter-bar {
                padding: 10px 12px;
                gap: 6px 8px;
            }
            .filter-bar .filter-label {
                font-size: 12px;
                width: 100%;
                margin-bottom: 2px;
            }
            .dropdown-trigger {
                font-size: 12px;
                padding: 4px 10px 4px 12px;
                min-height: 28px;
                border-radius: 16px;
                gap: 3px;
            }
            .dropdown-trigger .trigger-arrow {
                font-size: 10px;
            }

            .dropdown-panel {
                min-width: 100px;
                max-height: 160px;
            }
            .dropdown-panel .option-item {
                font-size: 12px;
                padding: 6px 12px;
            }

            .hospital-card .top-row {
                align-items: flex-start;
            }
            .hospital-card .logo-placeholder {
                width: 48px;
                height: 48px;
                font-size: 13px;
            }
            .hospital-card .hospital-name {
                font-size: 16px;
            }
        }

        .hidden {
            display: none !important;
        }