.search-page {
    background: #f5f5f5;
    min-height: 100vh;
}

.search-header {
    background: var(--primary-color);
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f8f8f8;
    border-radius: 20px;
    padding: 8px 15px;
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 14px;
    outline: none;
}

.search-btn {
    background: #2acf8d;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    margin-left: 10px;
}

.search-tabs {
    background: #fff;
    padding: 0 20px;
    display: flex;
    border-bottom: 1px solid #f0f0f0;
}

.search-tab {
    padding: 0 0 10px;
    text-align: center;
    color: #666;
    position: relative;
    font-size: 16px;
}

.search-tab.active {
    color: var(--primary-color);
    font-weight: 600;
}

.search-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 4px;
    background: var(--primary-color);
}

.search-results {
    padding: 0 20px 20px;
}

.result-section {
    background: #fff;
    border-radius: 8px;
    margin-top: 15px;
    overflow: hidden;
}

.section-title {
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.result-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
}

.result-item:last-child {
    border-bottom: none;
}

.result-avatar {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    margin-right: 12px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

.result-info {
    flex: 1;
}

.result-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}

.result-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.4;
}

.result-tags {
    margin-top: 8px;
}

.result-tag {
    display: inline-block;
    background: #f0f8ff;
    color: #2acf8d;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 5px;
}

.no-result {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-result i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.empty-state {
    text-align: center;
    padding: 100px 20px;
    color: #999;
}

.empty-state i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.error-message {
    background: #fff3cd;
    color: #856404;
    padding: 15px 20px;
    margin: 15px 20px;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
}


.user-page {
    background: linear-gradient(135deg, #81C784 0%, #66BB6A 50%, #4CAF50 100%);
    min-height: 100vh;
    padding-bottom: 80px;
}

.user-header {
    padding: 60px 20px 40px;
    text-align: center;
    color: white;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-avatar i {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.login-prompt {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.login-desc {
    font-size: 14px;
    opacity: 0.8;
}

.user-services {
    background: white;
    margin: 0 20px 20px;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.services-title {
    font-size: 18px;
    font-weight: 800;
    color: #222222;
    margin-bottom: 20px;
    padding-left: 5px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.service-item {
    text-align: center;
    text-decoration: none;
    color: #333;
    padding: 0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.service-icon.appointments {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
}

.service-icon.patients {
    background: linear-gradient(135deg, #2196F3, #42A5F5);
}

.service-icon.favorites {
    background: linear-gradient(135deg, #FF5722, #FF7043);
}

.service-name {
    margin-top: 5px;
    font-size: 15px;
    color: #666;
    line-height: 1.2;
}

.user-menu {
    background: white;
    margin: 0 20px 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    /* border-bottom: 1px solid #f5f5f5; */
    transition: background-color 0.3s ease;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: #f8f9fa;
}

.menu-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.menu-icon.feedback {
    color: #4CAF50;
}

.menu-icon.account {
    color: #2196F3;
}

.menu-icon.agreement {
    color: #FF9800;
}

.menu-icon.privacy {
    color: #9C27B0;
}

.menu-icon.about {
    color: #607D8B;
}

.menu-text {
    flex: 1;
    font-size: 17px;
}

.menu-arrow {
    color: #bbb;
    font-size: 22px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    padding: 12px 0 8px;
    border-top: 1px solid #f0f0f0;
    z-index: 100;
}

.nav-item {
    flex: 1;
    text-align: center;
    color: #999;
    text-decoration: none;
    padding: 5px;
}

.nav-item.active {
    color: #4CAF50;
}

.nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
    display: block;
}

.nav-text {
    font-size: 11px;
    line-height: 1;
}

/* 登录状态样式 */
.logged-in .user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.logged-in .login-prompt {
    font-size: 20px;
}

.user-info {
    display: none;
}

.logged-in .user-info {
    display: block;
}

.logged-in .login-desc {
    display: none;
}

.user-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
}