/* ===================== 基础重置 & 变量 ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 10px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 1.4rem;
    color: #333;
    background-color: #f5f8ff;
    overflow-x: hidden;
    width: 100%;
}

:root {
    --color-primary: #722ed1;
    --color-primary-light: #f3eefd;
    --color-secondary: #ff9d28;
    --color-text-main: #333;
    --color-text-secondary: #666;
    --color-text-tertiary: #999;
    --color-bg-white: #fff;
    --color-bg-gray: #f5f5f5;
    --color-border: #eee;
    --color-border-light: #f0f0f0;
    --color-disabled: #e0e0e0;
    --color-disabled-text: #999;
    --spacing-xs: 0.4rem;
    --spacing-sm: 0.8rem;
    --spacing-md: 1.2rem;
    --spacing-lg: 1.5rem;
    --spacing-main: 0.5rem;
    --spacing-xl: 1.5rem;
    --radius-sm: 0.4rem;
    --radius-md: 0.8rem;
    --radius-lg: 1.2rem;
    --radius-xl: 1.6rem;
    --radius-round: 999px;
    --shadow-sm: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.03);
    --shadow-md: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.08);
}

/* ===================== 搜索栏 ===================== */
#searchBar {
    background: linear-gradient(135deg, #722ed1 0%, #b37feb 100%);
    padding: 8px 12px;
    border: none;
}
#searchBar .weui-search-bar__back-btn {
    color: #fff;
}
#searchBar .weui-search-bar__form {
    background: rgba(255,255,255,0.25);
    border-radius: 20px;
}
#searchBar .weui-search-bar__input {
    color: #fff;
}
#searchBar .weui-search-bar__input::placeholder {
    color: rgba(255,255,255,0.7);
}
#searchBtn {
    background: #fff;
    color: #722ed1;
    border-radius: 16px;
    font-size: 13px;
    padding: 4px 14px;
    font-weight: 600;
}

/* ===================== 推荐标签栏 ===================== */
.recommend-tags {
    display: flex;
    gap: 10px;
    padding: 12px 15px;
    background-color: #fff;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--color-border-light);
}

.recommend-tags::-webkit-scrollbar {
    display: none;
}

.recommend-tags .tag {
    padding: 6px 16px;
    border-radius: 20px;
    background-color: #f5f5f5;
    color: #666;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.recommend-tags .tag.active {
    background: linear-gradient(135deg, #722ed1 0%, #b37feb 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(114, 46, 209, 0.25);
    border-color: transparent;
}

.recommend-tags .tag:hover {
    background-color: #eee;
    transform: translateY(-1px);
}

.recommend-tags .tag.active:hover {
    background: linear-gradient(135deg, #722ed1 0%, #b37feb 100%);
}

/* ===================== 筛选栏 ===================== */
.filter-bar {
    padding: 10px 12px !important;
    background: #fff !important;
    border-bottom: 1px solid #f0f0f0;
}
.filter-bar select.form-control {
    appearance: none;
    -webkit-appearance: none;
    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='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 26px !important;
    background-color: #f8f9fa !important;
    border: 1px solid #e8e8e8 !important;
    font-weight: 500;
    color: #555;
}
.filter-bar .btn-default {
    background: #fff;
    border: 1px solid #e8e8e8;
    color: #666;
    font-weight: 500;
}
.filter-bar .btn-default:hover {
    background: #f5f5f5;
    border-color: #ddd;
}

/* ===================== 专家列表 ===================== */
.main-content {
    padding: 0;
    background-color: #f5f6fa;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.section-mobile {
    padding: 0;
}

.experts-list-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    background-color: transparent;
    border-radius: 0;
    margin-bottom: 20px;
}

.expert-item-mobile {
    display: flex;
    align-items: center;
    padding: 14px;
    border: none;
    border-radius: 16px;
    background-color: #fff;
    transition: all 0.25s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    text-decoration: none;
    color: inherit;
}

.expert-item-mobile:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.expert-avatar-mobile {
    position: relative;
    width: 68px;
    height: 68px;
    margin-right: 14px;
    flex-shrink: 0;
}

.avatar-mobile {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.expert-info-mobile {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}

.expert-name-mobile {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.expert-name-mobile .level-tag {
    font-size: 11px;
    font-weight: 500;
    color: #722ed1;
    background: #f3eefd;
    padding: 2px 8px;
    border-radius: 10px;
}

.expert-stats-mobile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.expert-exp-name {
    font-size: 13px;
    color: #888;
    display: none;
}

.expert-rating-mobile {
    font-size: 12px;
    color: #ff9800;
    font-weight: 600;
}

.expert-exp-mobile {
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 8px;
}

.expert-skills-mobile {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.expert-price-mobile {
    font-size: 17px;
    font-weight: 700;
    color: #E20413;
    margin-top: 2px;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.price-unit-mobile {
    font-size: 12px;
    font-weight: 500;
    color: #999;
}

/* ===================== 分页控件样式 ===================== */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 12px 24px;
    font-size: 13px;
}

.pagination-container .pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-container .pagination li {
    display: inline-flex;
}

.pagination-container .pagination li a,
.pagination-container .pagination li span {
    padding: 8px 16px;
    border: 1px solid #eee;
    border-radius: 10px;
    background-color: #fff;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 13px;
}

.pagination-container .pagination li.active span {
    background: linear-gradient(135deg, #722ed1 0%, #b37feb 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(114, 46, 209, 0.2);
}

.pagination-container .pagination li a:hover {
    background-color: #f8f5ff;
    color: #722ed1;
    border-color: #d9c3f7;
}

.pagination-container .pagination li.disabled span {
    background-color: #f5f5f5;
    color: #bbb;
    cursor: not-allowed;
    border-color: #eee;
}

.pagination-info {
    color: #999;
    font-size: 12px;
    margin-top: 8px;
    width: 100%;
    text-align: center;
}

/* ===================== 底部Tab栏（保留原有） ===================== */
.tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    justify-content: space-around;
    align-items: center;
    background-color: var(--color-bg-white);
    border-top: 1px solid var(--color-border-light);
    z-index: 10;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-text-tertiary);
    font-size: 1.2rem;
    padding: var(--spacing-sm) 0;
    transition: color 0.2s ease;
}

.tab-item.active {
    color: var(--color-primary);
}

.tab-item i {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.tab-item:hover {
    color: #888;
}