/* --- Global & Reset --- */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

a {
    color: #0073aa;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #005177;
    text-decoration: underline;
}

.container {
    margin: 0 auto;
    padding: 0 15px 0px 15px; /* 顶部为0，其他保持不变 */
    /* max-width 将在媒体查询中设置 */
}

/* --- Header --- */
.site-header {
    /* background-color: #ff6b9c; */ /* REMOVED background from main header container */
    padding-top: 0; /* Reset padding */
    padding-bottom: 0;
    /* border-bottom: 1px solid #eee; */ 
    margin-bottom: 0; 
}

.site-branding {
    text-align: center; 
    background-color: #ff6b9c; 
    padding: 0.5em 15px; /* 稍微调整默认 padding */
    position: relative; 
    display: flex; /* 使用 Flexbox 布局 */
    align-items: center; /* 垂直居中 */
    justify-content: space-between; /* 两侧按钮推到边缘 */
}

/* PC端特别处理，确保标题在PC端居中 */
@media (min-width: 769px) {
    .site-branding {
        justify-content: center; /* PC端改为居中 */
    }
    
    .site-branding-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* 电脑端隐藏 .site-branding 内的图标 */
    .site-branding .header-icon-left,
    .site-branding .header-icon-right {
        visibility: hidden; /* 改用visibility而非display:none，保持占位 */
        opacity: 0;
    }
}

/* Logo 和标题容器 - 让它们可以作为一个整体居中 */
.site-branding-center {
    display: flex;
    align-items: center;
    justify-content: center; /* 内部元素居中 */
}

.custom-logo-link {
    line-height: 0; /* 移除图片链接可能带来的额外空间 */
}

.custom-logo {
    max-height: 45px; /* 调整 Logo 最大高度 */
    width: auto;
    margin-right: 10px; /* Logo 和标题间距 */
    vertical-align: middle; /* 确保垂直对齐 */
}

.site-title {
    margin: 0; /* 移除默认 margin */
    white-space: nowrap; /* 防止标题换行 */
}

.site-title a {
    /* 样式微调 */
    color: #fff; 
    font-size: clamp(1.2em, 3.5vw, 1.8em); /* 调整字体大小 */
    text-decoration: none;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Remove site description style if it exists */
/* .site-description { ... } */

/* --- Header Filter Styling --- */
.header-filters {
    margin: 15px auto;
    background: linear-gradient(to right, #fff9fb, #fff5f8);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    max-width: 96%; /* 统一宽度 */
}

/* --- Filter Form and Search Bar Styling --- */
.filter-form {
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* max-width已在全局容器中设置 */
}

.filter-form form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.filter-section {
    flex: 1;
    min-width: 150px;
    max-width: 250px; /* 略微增加宽度 */
    display: flex;
    align-items: center;
}

.search-container {
    flex: 1; /* 增加占比 */
    min-width: 250px; /* 增加最小宽度 */
    max-width: 450px; /* 增加最大宽度 */
    display: flex;
    position: relative;
    margin-left: auto;
}

/* 统一下拉框样式 */
.filter-form select {
    height: 40px;
    padding: 0 10px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    flex: 1;
    margin-left: 10px;
    max-width: none; /* 移除限制 */
    width: 100%; /* 充满容器 */
    box-sizing: border-box; /* 确保边框计算在宽度内 */
}

/* 确保两个下拉框一致性 */
#region-filter, #service-filter {
    height: 40px; /* 固定高度 */
    width: 100%; /* 固定宽度占比 */
    box-sizing: border-box;
    font-size: 14px;
    padding: 0 10px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    background-color: white;
}

.filter-label {
    white-space: nowrap;
    font-weight: bold;
    color: #555;
    min-width: 40px; /* 确保标签宽度一致 */
    text-align: right; /* 右对齐文本，使下拉框对齐 */
    padding-right: 10px; /* 给文本右侧添加一些空间 */
}

.filter-form select:focus {
    outline: none;
    border-color: #ff6b9d;
    box-shadow: 0 0 8px rgba(255, 107, 157, 0.2);
}

.search-field {
    height: 38px;
    padding: 0 12px;
    border: 1px solid #ffcad4;
    border-radius: 20px 0 0 20px;
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    flex: 1;
    box-shadow: 0 1px 3px rgba(255, 107, 157, 0.1);
    transition: all 0.3s ease;
}

.search-field:focus {
    outline: none;
    border-color: #ff6b9d;
    box-shadow: 0 0 5px rgba(255, 107, 157, 0.2);
    background-color: #fff;
}

.search-submit {
    height: 38px;
    padding: 0 15px;
    background: linear-gradient(to right, #ff6b9d, #ff8eb3);
    color: white;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(255, 107, 157, 0.2);
}

.search-submit:hover {
    background: linear-gradient(to right, #ff5a90, #ff7da6);
    box-shadow: 0 3px 8px rgba(255, 107, 157, 0.3);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .filter-form {
        margin-bottom: 10px;
        padding: 12px;
    }
    
    .filter-form form {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .filter-section, .search-container {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
    
    .filter-section {
        margin-bottom: 5px;
    }
    
    .filter-form select,
    #region-filter, 
    #service-filter {
        height: 44px;
        font-size: 15px;
        max-width: none;
        padding: 0 15px;
        border-radius: 8px;
        margin-left: 5px;
    }
    
    .filter-label {
        font-size: 15px;
        min-width: 40px;
    }
    
    .search-container {
        margin-top: 5px;
    }
    
    .search-field {
        height: 44px;
        font-size: 15px;
        border-radius: 8px 0 0 8px;
        padding: 0 15px;
    }
    
    .search-submit {
        height: 44px;
        font-size: 15px;
        padding: 0 18px;
        border-radius: 0 8px 8px 0;
    }
    
    /* 显示并调整导航菜单 */
    .main-navigation {
        padding: 8px; /* 减小内边距 */
        margin-bottom: 5px; /* 从10px减小到5px */
        border-radius: 8px; /* 减小圆角 */
        /* 其他样式保持 */
    }

    .primary-menu {
        padding: 0 4px; /* 减小容器内边距 */
        gap: 5px; /* 减小菜单项间距 */
        row-gap: 6px;
        /* justify-content: center; 保持居中 */
    }

    .primary-menu a {
        padding: 5px 10px 5px 24px; /* 调整左内边距与装饰元素对齐 */
        font-size: 0.8em; /* 减小字体大小 */
        border-radius: 10px; /* 减小圆角 */
        box-shadow: 0 1px 3px rgba(255, 107, 156, 0.08); /* 更轻的阴影 */
        /* 其他样式保持 */
    }
    
    .primary-menu li::before {
        left: 10px; /* 移动端微调装饰元素位置 */
        width: 4px; /* 移动端缩小装饰元素 */
        height: 4px;
    }

    /* 简化悬停和当前项效果 */
    .primary-menu a:hover {
        transform: translateY(-1px) scale(1.01); /* 效果更微妙 */
        box-shadow: 0 2px 5px rgba(255, 107, 156, 0.12);
        /* 其他样式保持 */
    }
    .primary-menu .current-menu-item a,
    .primary-menu .current-category-ancestor a {
        box-shadow: 0 2px 4px rgba(255, 107, 156, 0.15);
        /* 其他样式保持 */
    }
    
    /* 显示手机按钮 */
    .mobile-header-button {
        display: flex; /* 使用 flex 居中图标 */
        align-items: center;
        justify-content: center;
        padding: 0; /* 移除内边距 */
        background: none; /* 去掉背景 */
        color: white; /* 图标颜色 */
        border: none;
        box-shadow: none;
        width: 30px; /* 调整按钮大小 */
        height: 30px;
        position: static; /* 不再需要绝对定位 */
        transform: none; /* 移除 transform */
    }
    .mobile-header-button i {
        font-size: 20px; /* 调整图标大小 */
    }
    .mobile-header-button:hover {
        background: none;
        transform: scale(1.1); /* 简单悬停效果 */
        color: #ffe4e9; /* 悬停颜色 */
    }
    
    /* 隐藏电脑端图标 (如果之前在 site-branding 中还存在) */
    .site-branding .header-icon-left,
    .site-branding .header-icon-right {
        display: none; 
    }
    
    /* 调整 Logo 和标题大小 */
    .custom-logo {
        max-height: 35px; 
        margin-right: 8px;
    }
    .site-title a {
        font-size: clamp(1.1em, 3vw, 1.5em);
    }
    
    /* Filter form and Nav remain hidden as before */
}

/* 移动端自适应优化 */
@media (max-width: 480px) {
    .filter-form {
        padding: 10px;
    }
    
    .filter-section {
        display: grid;
        grid-template-columns: 40px 1fr;
        align-items: center;
    }
    
    .filter-label {
        font-size: 14px;
    }
    
    .filter-form select,
    .search-field,
    .search-submit,
    .filter-button {
        height: 42px;
        font-size: 14px;
    }
    
    .search-container {
        display: grid;
        grid-template-columns: 1fr auto;
    }
}

/* 导航菜单样式 - 主题色协调版 */
.main-navigation {
    background: rgba(255,240,245,0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 0;
    border-radius: 18px;
    margin: 0 auto 5px; /* 从15px减小到5px */
    /* max-width 将在媒体查询中设置，覆盖之前的 96% */
    max-width: none; /* 先移除百分比宽度 */
    width: 100%; /* 让它先尝试撑满父容器 */
    box-sizing: border-box; /*.包含 padding 和 border */
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 107, 156, 0.15);
    overflow: visible;
}

.main-navigation:before {
    content: "";
    position: absolute;
    top: -2px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 156, 0.9), transparent);
    border-radius: 50%;
    opacity: 0.8;
    filter: blur(1px);
}

.main-navigation:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 156, 0.4), transparent);
    opacity: 0.7;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0 15px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    row-gap: 12px;
}

.primary-menu li {
    margin: 0;
    position: relative;
    z-index: 1;
}

/* 菱形装饰元素样式 - 所有按钮统一 */
.primary-menu li::before {
    content: "";
    position: absolute;
    left: 13px; /* 水平位置保持不变 */
    top: 50%; /* 从顶部50%开始 */
    width: 5px;
    height: 5px;
    transform: translateY(-50%) rotate(45deg);
    margin-top: 0; /* 确保没有额外的边距影响 */
    opacity: 0.8;
    z-index: 5;
    background: linear-gradient(135deg, #ff6b9c, #ffb0d0);
    border-radius: 1px;
    box-shadow: 0 0 3px rgba(255, 107, 156, 0.3);
    transition: all 0.3s ease;
    pointer-events: none;
    /* 下面是新增属性，确保在各种浏览器中正确渲染 */
    -webkit-transform: translateY(-50%) rotate(45deg);
    -moz-transform: translateY(-50%) rotate(45deg);
    -ms-transform: translateY(-50%) rotate(45deg);
    display: block; /* 确保显示方式一致 */
}

/* 优化导航文字的垂直对齐 */
.primary-menu a {
    display: inline-flex; /* 改为inline-flex以便更好控制内部对齐 */
    align-items: center; /* 垂直居中对齐内容 */
    padding: 8px 16px 8px 26px;
    line-height: 1.2; /* 设置合适的行高 */
    color: #ff6b9c;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 107, 156, 0.1);
    box-shadow: 
        0 3px 8px rgba(255, 107, 156, 0.12),
        0 1px 3px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
    font-family: 'Microsoft YaHei', 'Arial', sans-serif;
    font-size: 0.95em;
}

/* 背景渐变效果 */
.primary-menu a:before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    background: linear-gradient(135deg, #ff6b9c, #ff96b7, #ff7cb0);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

/* 高光效果 */
.primary-menu a:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.3));
    opacity: 0.8;
    z-index: -1;
    transition: all 0.35s ease;
}

/* 统一的悬停效果 */
.primary-menu li:hover::before {
    opacity: 1;
    transform: translateY(-50%) rotate(135deg);
    width: 6px;
    height: 6px;
    background: #fff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

/* 当前菜单项的装饰效果 */
.primary-menu .current-menu-item::before,
.primary-menu .current-category-ancestor::before {
    background: #fff;
    opacity: 1;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) rotate(135deg);
    width: 6px;
    height: 6px;
}

/* 菜单发光效果 */
.primary-menu a:hover {
    color: #fff;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 
        0 8px 15px rgba(255, 107, 156, 0.2),
        0 3px 8px rgba(255, 107, 156, 0.1),
        0 0 20px rgba(255, 107, 156, 0.08),
        0 0 30px rgba(255, 107, 156, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-decoration: none;
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.15),
        0 0 10px rgba(255, 255, 255, 0.3);
}

.primary-menu a:hover:before {
    opacity: 1;
}

.primary-menu a:hover:after {
    opacity: 0.15;
}

/* 边框发光动画 */
@keyframes borderGlow {
    0% { box-shadow: 0 0 0 rgba(255, 107, 156, 0); }
    50% { box-shadow: 0 0 6px rgba(255, 107, 156, 0.4); }
    100% { box-shadow: 0 0 0 rgba(255, 107, 156, 0); }
}

/* 当前页面/分类链接样式 */
.primary-menu .current-menu-item a,
.primary-menu .current-category-ancestor a { 
    color: #fff;
    background: linear-gradient(45deg, #ff6b9c, #ff8aa3, #ff6b9c);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 5px 12px rgba(255, 107, 156, 0.25),
        0 0 15px rgba(255, 107, 156, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.15),
        0 0 8px rgba(255, 255, 255, 0.2);
    position: relative;
    font-weight: 700;
}

.primary-menu .current-menu-item a:after,
.primary-menu .current-category-ancestor a:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    opacity: 1;
    z-index: -1;
}

/* 脉动光晕效果 - 当前活动项 */
@keyframes glow {
    0% { 
        box-shadow: 
            0 5px 12px rgba(255, 107, 156, 0.25), 
            0 0 15px rgba(255, 107, 156, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% { 
        box-shadow: 
            0 5px 15px rgba(255, 107, 156, 0.35), 
            0 0 20px rgba(255, 107, 156, 0.25),
            0 0 30px rgba(255, 107, 156, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    100% { 
        box-shadow: 
            0 5px 12px rgba(255, 107, 156, 0.25), 
            0 0 15px rgba(255, 107, 156, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

/* 光线线条动画 */
@keyframes lightBeam {
    0% { width: 0; opacity: 0; }
    50% { width: 90%; opacity: 0.6; }
    100% { width: 0; opacity: 0; }
}

/* 应用光晕动画 */
.primary-menu .current-menu-item a,
.primary-menu .current-category-ancestor a {
    animation: glow 2.5s infinite;
}

/* 自适应布局 */
@media (max-width: 1200px) {
    .primary-menu {
        padding: 0 10px;
    }
}

/* 平板端适配 */
@media (max-width: 992px) {
    .main-navigation {
        padding: 10px 0;
        border-radius: 15px;
        margin-bottom: 10px; /* 从20px减小到10px */
    }
    
    .primary-menu {
        gap: 8px;
        row-gap: 10px;
    }
    
    .primary-menu a {
        padding: 7px 14px 7px 26px; /* 保持左内边距一致 */
        font-size: 0.9em;
    }
    
    .primary-menu li::before {
        left: 11px; /* 平板端调整装饰元素位置 */
    }
}

@media (min-width: 769px) { /* 确保电脑端按钮不显示 */
     .mobile-header-button {
        display: none;
    }
}

/* --- Desktop Width Control --- */
@media (min-width: 993px) { 
    /* 容器默认居中 */
    .container,
    .technician-container,
    .main-navigation,
    .filter-form { 
        max-width: 1800px; 
        margin-left: auto; 
        margin-right: auto; 
        /* 移除可能导致布局问题的text-align */
    }
    
    /* 确保 technician-container 的 2200px 被覆盖 */
    .technician-container {
        max-width: 1800px !important; 
        /* 移除或重置可能干扰的样式 */
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box;
    }
    
    /* 导航栏有固定宽度和内边距 */
    .main-navigation {
        padding-left: 15px; 
        padding-right: 15px; 
        box-sizing: border-box; 
    }
}

/* --- Technician Grid Layout --- */
.technician-grid-wrapper {
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    width: 100%;
    display: block;
    /* 移除可能影响下方容器的边距 */
    margin-bottom: 0; 
}

.technician-grid {
    display: grid;
    gap: 10px;
    margin-top: 5px;
    /* 移除底部边距，让分页容器紧随其后 */
    margin-bottom: 0; 
}

/* 移动端样式（小屏幕）- 2列布局 */
@media (max-width: 575.98px) {
    .technician-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        width: 100%;
    }
}

/* 平板样式（中屏幕）- 4列布局 */
@media (min-width: 576px) and (max-width: 767.98px) {
    .technician-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        width: 100%;
    }
}

/* 小型电脑屏幕 - 5列布局 */
@media (min-width: 768px) and (max-width: 991.98px) {
    .technician-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
        width: 100%;
    }
}

/* 大屏幕显示器 - 10列固定宽度，inline-grid 居中 */
@media (min-width: 992px) {
    /* 恢复容器默认行为 */
    .container.technician-container {
        max-width: 1800px;
        padding-left: 15px;
        padding-right: 15px;
        text-align: left;
        margin: 0 auto;
    }
    
    /* 网格容器设置 - 使用 text-align 居中 */
    .technician-grid-wrapper {
        width: 100%;
        text-align: center;
        display: block;
        padding: 0;
        margin: 0;
    }

    /* 网格设置 - 作为 inline-grid */
    .technician-grid {
        display: inline-grid;
        grid-template-columns: repeat(10, 160px);
        gap: 10px;
        margin: 5px 0;
        text-align: left;
    }
}

/* --- Standalone Pagination Section --- */
.pagination-container {
    width: 100%;
    padding: 25px 0;
    margin: 40px 0 0 0;
    background: linear-gradient(135deg, #fff9fb, #fff5f8);
    /* border-top: 1px solid #ffe4ec; */ /* 移除边框 */
    box-shadow: 0 -3px 10px rgba(255, 107, 156, 0.1);
    clear: both;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* 内部导航元素 - 在容器内居中 */
.pagination-container .navigation.pagination {
    max-width: 1200px; /* 限制内容最大宽度 */
    width: auto; /* 让宽度自适应内容 */
    margin: 0; /* 移除 auto 外边距，因为父容器已居中 */
    padding: 0 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* 重置可能继承的样式 */
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    clear: none;
}

/* 链接容器 (保持不变) */
.pagination-container .nav-links {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
    width: auto;
    max-width: 100%;
}

/* --- 页码按钮样式 (保持不变) --- */
/* ... (existing .page-numbers styles from lines 899-993) ... */
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    background: #fff;
    color: #ff6b9c;
    border: 1px solid #ff6b9c;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85em;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(255, 107, 156, 0.1);
    position: relative;
}

.page-numbers.current {
    background: #ff6b9c;
    color: #fff;
    border-color: #ff6b9c;
    box-shadow: 0 2px 6px rgba(255, 107, 156, 0.2);
}

.page-numbers.prev,
.page-numbers.next {
    background: #ff6b9c;
    color: #fff;
    padding: 0 12px;
    font-weight: 500;
    position: relative;
}

.page-numbers.dots {
    border: none;
    box-shadow: none;
    background: transparent;
    color: #ff6b9c;
    pointer-events: none;
    padding: 0 5px;
    min-width: 24px;
}

.page-numbers:hover:not(.current):not(.dots) {
    background: #ff6b9c;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(255, 107, 156, 0.2);
}

/* 点击效果 */
.page-numbers:not(.dots):active {
    transform: scale(0.97);
    box-shadow: 0 1px 2px rgba(255, 107, 156, 0.15); /* 点击时阴影变小 */
    transition: transform 0.1s ease, box-shadow 0.1s ease; /* 点击效果快速响应 */
}

.page-numbers.prev:before,
.page-numbers.next:after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: relative;
    top: 1px;
    font-size: 0.9em;
}

.page-numbers.prev:before {
    content: "\f104";
    margin-right: 6px;
}

.page-numbers.next:after {
    content: "\f105";
    margin-left: 6px;
}

/* 移除上一页/下一页按钮悬停时的下划线 */
.page-numbers.prev:hover,
.page-numbers.next:hover {
    text-decoration: none !important; /* 强制移除下划线 */
}

/* --- 分页响应式调整 --- */
/* PC端页码显示规则 (显示更多页码) */
@media (min-width: 992px) {
    .pagination-container .nav-links {
        gap: 8px;
    }
    
    .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 0.9em;
    }

    /* 默认隐藏所有数字页码 */
    .page-numbers:not(.prev):not(.next):not(.current):not(.dots) {
        display: none;
    }
    
    /* 显示: 当前页, 前后各3页, 第一页, 最后一页, 省略号 */
    .page-numbers.current,
    .page-numbers.dots,
    .page-numbers.current + .page-numbers:not(.dots),
    .page-numbers.current + .page-numbers + .page-numbers:not(.dots),
    .page-numbers.current + .page-numbers + .page-numbers + .page-numbers:not(.dots),
    /* CSS没有前置兄弟选择器，用JS处理或接受WordPress默认行为 */
    /* 为了简化，我们依赖WordPress生成足够的链接，并显示它们 */
    /* 更好的方法是调整 astra_the_posts_pagination_args filter */
    .page-numbers:nth-last-child(n+1):nth-last-child(-n+4) /* 显示倒数3个 */,
    .page-numbers:nth-child(n+1):nth-child(-n+4) /* 显示正数3个 */,
    /* 显示第一页和最后一页 */
    .page-numbers:first-of-type:not(.prev),
    .page-numbers:last-of-type:not(.next) {
        display: inline-flex;
    }
    /* 确保当前页的前一个也显示 */
    .page-numbers.current:not(:first-of-type) {
        /* 如何选择前一个兄弟？CSS没有直接方法 */
        /* 依赖上面的 nth-child/nth-last-child 规则 */
    }
}

/* 移动端页码显示规则 (目标显示5个左右) */
@media (max-width: 768px) {
    .pagination-container {
        padding: 20px 0;
        margin-top: 30px;
    }
    
    .pagination-container .navigation.pagination {
        padding: 0 10px;
    }

    .pagination-container .nav-links {
        gap: 4px;
        padding: 0 5px;
    }

    .page-numbers {
        min-width: 28px;
        height: 28px;
        padding: 0 8px;
        font-size: 0.8em;
    }

    .page-numbers.prev,
    .page-numbers.next {
        padding: 0 10px;
    }
    
    /* 默认隐藏所有数字页码 */
    .page-numbers:not(.prev):not(.next):not(.current):not(.dots) {
        display: none;
    }
    
    /* 显示: 当前页, 前后各2页, 省略号 */
    .page-numbers.current,
    .page-numbers.dots,
    .page-numbers.current + .page-numbers:not(.dots),
    .page-numbers.current + .page-numbers + .page-numbers:not(.dots),
    /* 依赖WordPress生成相邻页码，仅显示当前及后2个 */
    /* 理论上还需要显示前2个，但CSS选择器限制 */
    .page-numbers.current + .page-numbers:not(.next),
    .page-numbers.current + .page-numbers + .page-numbers:not(.next),
    .page-numbers.current - .page-numbers:not(.prev),
    .page-numbers.current - .page-numbers - .page-numbers:not(.prev) {
        display: inline-flex;
    }
}

/* 超小屏幕适配 */
@media (max-width: 375px) {
    .pagination-container .nav-links {
        gap: 3px;
    }
    
    .page-numbers {
        min-width: 26px;
        height: 26px;
        padding: 0 6px;
        font-size: 0.75em;
    }
}

/* --- Technician Card Styling --- */
.technician-card {
     background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.technician-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 107, 156, 0.15);
}

.technician-inner {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.technician-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 100%; /* 正方形比例 1:1 */
    border-radius: 5px; /* 轻微圆角 */
    margin-bottom: 8px;
}

.technician-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持比例裁剪 */
    display: block;
    transition: transform 0.3s ease;
}

.technician-card:hover .technician-image img {
    transform: scale(1.05);
}

.technician-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* 卡片认证文字标签样式 */
/* 共享标签基础样式 */
.icon-certified,
.icon-wp-sticky {
    position: absolute;
    z-index: 2;
    padding: 2px 5px; /* 减小内边距 */
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); /* 减小阴影 */
    font-size: 10px; /* 减小字体 */
    font-weight: bold;
    color: white;
    text-align: center;
    line-height: 1.3;
    transition: all 0.3s ease;
    min-width: 30px; /* 减小最小宽度 */
}

/* 认证标签 */
.icon-certified {
    top: 5px;
    left: 5px;
    background-color: rgba(76, 209, 55, 0.8); /* 绿色背景 */
}

.icon-certified:before {
    content: "认证"; /* 改为"认证" */
}

/* WordPress 置顶标签 */
.icon-wp-sticky {
    top: 5px;
    right: 5px; /* 定位到右上角 */
    background-color: rgba(255, 77, 121, 0.8); /* 粉色背景 */
}

.icon-wp-sticky:before {
    content: "置顶"; /* 文字改为 "置顶" */
}

/* 鼠标悬停效果 */
.technician-card:hover .icon-certified {
    background-color: rgba(68, 189, 50, 0.9);
    transform: translateY(-1px);
}

.technician-card:hover .icon-wp-sticky {
    background-color: rgba(255, 61, 100, 0.9);
    transform: translateY(-1px);
}

/* 卡片标题样式优化 */
.technician-title {
    margin: 0 0 6px 0;
    line-height: 1.2;
    font-weight: normal;
    position: relative;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 0.78em;
    overflow: hidden;
}

.technician-title a {
    color: #444;
    text-decoration: none;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    display: inline-flex; /* 改为inline-flex使内容对齐 */
    align-items: center; /* 垂直居中对齐 */
    transition: all 0.3s ease;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    padding-left: 0; /* 移除左内边距，不再需要 */
    font-weight: 500;
    letter-spacing: 0.2px;
}

.technician-title a:before {
    content: "";
    position: static; /* 改为static而非absolute */
    width: 5px;
    height: 5px;
    background: linear-gradient(135deg, #ff6b8b, #ff5a79);
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: inline-block; /* 作为内联块显示 */
    margin-right: 7px; /* 添加右侧边距与文字分开 */
    flex-shrink: 0; /* 防止弹性布局中被压缩 */
}

.technician-card:hover .technician-title a {
    color: #ff5a79;
    transform: translateX(2px);
}

.technician-card:hover .technician-title a:before {
    width: 6px;
    height: 6px;
    opacity: 1;
    box-shadow: 0 0 4px rgba(255, 107, 156, 0.5);
}

/* 统一卡片信息样式 - 增大字体，减小间距，统一居中 */
.technician-id-number,
.technician-age,
.technician-price,
.technician-region {
    margin: 4px 0; 
    font-size: 0.9em; 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.technician-id-number:before,
.technician-age:before,
.technician-price:before,
.technician-region:before {
    margin-right: 4px; 
    font-size: 0.95em; 
    font-weight: 600; /* 确保标签字体粗细 */
    position: static; /* 确保使用 flex 布局定位 */
    transform: none; /* 移除可能存在的 transform */
}

.technician-id-number span,
.technician-age span,
.technician-price span,
.technician-region span {
    padding: 4px 8px; 
    font-weight: 600;
    max-width: calc(100% - 55px); /* 调整宽度以适应标签 */
    border-radius: 3px;
    display: inline-block;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-sizing: border-box;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

/* 编号 */
.technician-id-number:before { content: "编号:"; color: #ff4d79; }
.technician-id-number span { background: #fff9fb; color: #ff4d79; }
.technician-card:hover .technician-id-number span { color: #ff3366; background: #fff2f6; font-weight: 700; }

/* 年龄 */
.technician-age:before { content: "年龄:"; color: #4cd137; }
.technician-age span { background: #f0fff0; color: #4cd137; }
.technician-card:hover .technician-age span { color: #44bd32; background: #e8ffe8; font-weight: 700; }

/* 价格 */
.technician-price:before { content: "价格:"; color: #e84393; }
.technician-price span { background: #fff9fd; color: #e84393; }
.technician-card:hover .technician-price span { color: #d63031; background: #ffecf6; font-weight: 700; }

/* 地区 */
.technician-region {
    font-size: 0.85em; /* 地区字体稍小 */
}
.technician-region:before { 
    content: "地区:"; 
    color: #00a8ff; 
    font-size: 1em; /* 与父元素字体一致 */
    font-weight: 600;
}
.technician-region span { 
    background: #f0f9ff; 
    color: #00a8ff; 
    max-width: calc(100% - 45px); 
    font-weight: 600;
}
.technician-card:hover .technician-region span { color: #0097e6; background: #e6f7ff; font-weight: 700;}


/* 价格下方额外信息样式 - 换行居中 + 新颜色 */
.technician-extra-details {
    margin: 8px 0 5px 0;
    display: block; 
}

.technician-extra-details .detail-item {
    display: block; 
    margin-left: auto; 
    margin-right: auto; 
    margin-bottom: 5px; 
    padding: 4px 10px; 
    border-radius: 4px;
    font-size: 0.78em; 
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    width: fit-content; 
    border: 2px solid transparent; 
    text-align: center; 
}
.technician-extra-details .detail-item:last-child {
    margin-bottom: 0;
}
.technician-extra-details .detail-item:hover {
    opacity: 0.95;
    transform: scale(1.02);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.technician-extra-details .detail-height {
    background-color: #e0f2f7; /* Light Cyan */
    border-color: #4dd0e1; /* Cyan */
    color: #006064; /* Dark Cyan */
}
.technician-extra-details .detail-weight {
    background-color: #fff3e0; /* Light Orange */
    border-color: #ffb74d; /* Orange */
    color: #e65100; /* Dark Orange */
}
.technician-extra-details .detail-bust {
    background-color: #f3e5f5; /* Light Purple */
    border-color: #ba68c8; /* Purple */
    color: #4a148c; /* Dark Purple */
}

/* --- Tags and Service Types --- */
.technician-tags-container {
    margin-top: auto; /* Pushes tags to the bottom */
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px; /* Consistent gap */
    justify-content: center;
    align-items: center;
}

.technician-service-types,
.technician-post-tags {
    display: contents; /* Important for flex layout */
}

.service-type-tag,
.post-tag {
    display: inline-block;
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 10px;
    background-color: #fce4ec; /* Light pink background */
    color: #c2185b; /* Dark pink text */
    border: 1px solid #f8bbd0;
    white-space: nowrap;
}

/* Differentiate service types slightly */
.service-type-tag {
    background-color: #e1f5fe; /* Light blue background */
    color: #0277bd; /* Dark blue text */
    border-color: #b3e5fc;
}

.post-tag:before { /* Remove the black dot */
    display: none;
}

/* --- Mobile Adjustments for Cards and Grid --- */
@media (max-width: 576px) {
    .technician-inner {
        padding: 8px;
    }
    /* Tags/Service Types font size */
    .service-type-tag,
    .post-tag {
        font-size: 0.65em;
        padding: 1px 5px;
    }
    
    /* Info items */
    .technician-id-number,
    .technician-age,
    .technician-price,
    .technician-region {
        font-size: 0.85em; 
        margin: 3px 0; 
    }
    .technician-id-number span,
    .technician-age span,
    .technician-price span,
    .technician-region span {
        padding: 3px 6px;
    }
    .technician-region {
        font-size: 0.8em; /* 保持地区稍小 */
    }

    /* Extra details */
    .technician-extra-details .detail-item {
        font-size: 0.72em;
        padding: 3px 8px;
        margin-bottom: 4px;
    }
    /* Title */
     .technician-title {
        font-size: 0.7em;
        margin-bottom: 4px;
        padding-bottom: 3px;
    }
    .technician-title a {
        padding-left: 10px;
    }
    .technician-title a:before {
        width: 4px;
        height: 4px;
    }
    /* Icons */
    .icon-certified,
    .icon-wp-sticky {
        font-size: 9px; /* 更小的字体 */
        padding: 1px 3px; /* 更小的内边距 */
        top: 3px;
        min-width: 26px; /* 更小的最小宽度 */
    }
    .icon-certified {
        left: 3px;
    }
    .icon-wp-sticky {
        right: 3px;
    }
}

/* 未找到结果页面样式 - 正方形美化版 + 完全居中 */
.no-results-found {
    /* 固定尺寸设置 */
    width: min(90%, 500px);
    height: auto; /* 改为自适应高度 */
    min-height: min(90vh, 500px);
    
    /* 居中显示 */
    position: relative;
    margin: 80px auto 50px; /* 顶部增加间距，避开导航 */
    
    /* 内部样式美化 */
    padding: clamp(20px, 5vw, 40px);
    text-align: center;
    background: linear-gradient(135deg, #fff8fa, #fff0f5);
    border: 1px solid #ffccd5;
    border-radius: 18px;
    box-shadow: 
        0 10px 30px rgba(255, 107, 156, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
    
    /* 内容垂直居中 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* 溢出处理 */
    overflow: visible; /* 改为可见，避免内容被截断 */
}

/* 顶部装饰线 */
.no-results-found:before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 156, 0.8), transparent);
    border-radius: 2px;
}

/* 底部装饰线 */
.no-results-found:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 156, 0.4), transparent);
    border-radius: 2px;
}

.no-results-found h2 {
    font-size: clamp(1.4em, 3.5vw, 1.8em);
    margin-bottom: 1em;
    color: #ff4d79;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.9);
    position: relative;
    padding-bottom: 12px;
}

/* 标题下划线 */
.no-results-found h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff8eb3, #ff4d79, #ff8eb3);
    border-radius: 3px;
}

.no-results-found p {
    font-size: clamp(0.9em, 2.2vw, 1em);
    margin-bottom: 1.5em;
    color: #665;
    line-height: 1.6;
    max-width: 90%;
}

.no-results-found .search-suggestions {
    margin-bottom: 1.8em;
    text-align: left;
    width: 100%;
    max-width: 85%;
    background-color: rgba(255, 255, 255, 0.6);
    padding: clamp(12px, 3vw, 18px);
    border-radius: 12px;
    border: 1px solid #ffe4e9;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.03);
}

.no-results-found .search-suggestions h3 {
    font-size: clamp(0.95em, 2.5vw, 1.1em);
    color: #ff6b9c;
    margin-bottom: 0.8em;
    text-align: center;
    border-bottom: 1px solid #ffdde3;
    padding-bottom: 0.6em;
}

.no-results-found .search-suggestions ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.no-results-found .search-suggestions li {
    margin-bottom: 0.65em;
    color: #555;
    font-size: clamp(0.8em, 2vw, 0.9em);
    position: relative;
    padding-left: 1.6em;
    line-height: 1.4;
}

.no-results-found .search-suggestions li:before {
    content: "\f0da";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.2em;
    color: #ff6b9c;
    font-size: 1em;
}

.no-results-found .button.return-home {
    display: inline-block;
    padding: clamp(8px, 2vw, 10px) clamp(20px, 4vw, 25px);
    background: linear-gradient(135deg, #ff6b8b, #ff4d79);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: clamp(0.9em, 2.5vw, 1em);
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 77, 121, 0.3);
    border: none;
    outline: none;
}

.no-results-found .button.return-home:hover {
    background: linear-gradient(135deg, #ff5a79, #ff3366);
    box-shadow: 0 6px 15px rgba(255, 51, 102, 0.4);
    transform: translateY(-2px) scale(1.03);
}

/* 移动端适配 */
@media (max-width: 576px) {
    .no-results-found {
        width: 90%;
        height: auto;
        min-height: 450px;
        position: relative;
        margin: 30px auto;
        padding: 20px 15px;
        overflow: visible; /* 确保在移动端也不会隐藏内容 */
        left: 0;
        right: 0;
    }
    
    .no-results-found .search-suggestions {
        max-width: 95%;
        padding: 15px;
        margin: 0 auto 1.5em;
    }
    
    .no-results-found .search-suggestions li {
        padding-left: 1.5em;
        font-size: 0.85em;
        margin-bottom: 0.6em;
    }
    
    .no-results-found h2 {
        font-size: 1.4em;
        padding-bottom: 10px;
    }
    
    .no-results-found p {
        font-size: 0.9em;
        margin-bottom: 1.2em;
    }
}

/* --- Footer --- */
/* ... (footer styles) ... */

/* --- 内容页样式 (Single Technician Page) --- */
.technician-single {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin: 5px auto;
    max-width: 1200px;
    box-shadow: 0 5px 20px rgba(255, 107, 156, 0.1);
}

.technician-single .entry-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ffecf1;
    position: relative;
}

.technician-single .entry-header:after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 30%;
    right: 30%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 156, 0.7), transparent);
    border-radius: 3px;
}

.technician-single .entry-title {
    color: #ff4d79;
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.9);
}

.technician-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.meta-id, .meta-price, .meta-certified, .meta-sticky {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    color: #666;
    background: #f8f8f8;
    border: 1px solid #eee;
}

.meta-id {
    background-color: #fff9fb;
    color: #ff4d79;
    border-color: #ffccd5;
}

.meta-price {
    background-color: #fff9fd;
    color: #e84393;
    border-color: #fad7eb;
}

.meta-certified {
    background-color: #f0fff0;
    color: #4cd137;
    border-color: #c3f3c3;
}

.meta-sticky {
    background-color: #fff8e8;
    color: #ff9f1a;
    border-color: #ffe0b2;
}

/* 内容区域样式 */
.technician-single .entry-content {
    font-size: 1.05em;
    line-height: 1.7;
    color: #444;
}

.technician-single .entry-content h2 {
    color: #ff6b9c;
    font-size: 1.5em;
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ffecf1;
    position: relative;
    text-align: center;
}

.technician-single .entry-content h2:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 60px;
    height: 2px;
    background: #ff6b9c;
    transform: translateX(-50%);
}

.technician-details-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    background: #fafafe; /* 网格容器背景 */
    padding: 15px;
    border-radius: 12px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.03);
    border: 1px solid #f4f4f8;
}

.detail-item {
    background: linear-gradient(135deg, #fff, #fcfcff); /* 改为轻微渐变背景 */
    padding: 12px 15px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    border-left: 3px solid #ff6b9c;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
}

/* 给每种信息添加不同的背景渐变 */
.detail-item-age { 
    border-left-color: #4cd137; 
    background: linear-gradient(135deg, #f5fff5, #edfff0);
}
.detail-item-height { 
    border-left-color: #00a8ff; 
    background: linear-gradient(135deg, #f0f9ff, #e6f7ff);
}
.detail-item-weight { 
    border-left-color: #ffb142; 
    background: linear-gradient(135deg, #fff9f0, #fff5e6);
}
.detail-item-bust { 
    border-left-color: #e84393; 
    background: linear-gradient(135deg, #fff0f9, #ffecf6);
}
.detail-item-region { 
    border-left-color: #5f27cd; 
    background: linear-gradient(135deg, #f5f0ff, #f0ebff);
}
.detail-item-services { 
    border-left-color: #ff6b6b; 
    background: linear-gradient(135deg, #fff5f5, #ffeeee);
}

.detail-item-services a {
    color: #ff6b6b;
    text-decoration: none;
    transition: all 0.2s ease;
}

.detail-item-services a:hover {
    color: #ff4d4d;
    text-decoration: underline;
}

/* 统一内容页所有图片的基础样式 - 增强PC端样式权重 */
.technician-single .entry-content img,
.technician-single .entry-content .wp-block-image img,
.technician-single .entry-content figure img,
.technician-single .entry-content p img,
.technician-single .entry-content a img,
.technician-single .entry-content > img {
    width: 700px !important; /* 固定宽度 */
    max-width: 100% !important; /* 但不超过容器 */
    height: auto !important; /* 自动高度保持比例 */
    border-radius: 10px !important; /* 强制添加圆角 */
    margin: 20px auto !important; /* 统一边距并居中 */
    display: block !important; /* 块级显示确保居中 */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1) !important; /* 统一阴影 */
    object-fit: contain !important; /* 确保图片完整显示不裁剪 */
    background-color: #ffffff !important; /* 纯白背景消除透明区域 */
    border: 1px solid #f0f0f0 !important; /* 细边框增强边界感 */
}

/* 图片容器样式 - 确保不影响图片本身样式 */
.technician-single .entry-content .wp-block-image,
.technician-single .entry-content figure,
.technician-single .entry-content p:has(img) {
    max-width: 100% !important;
    width: 100% !important;
    margin: 10px auto !important;
    text-align: center !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.technician-single .entry-content hr {
    margin: 30px 0;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffccd5, transparent);
}

/* 添加视频居中样式 */
.technician-single .entry-content video,
.technician-single .entry-content iframe {
    width: 100%; /* 强制宽度为100% */
    max-width: 800px; /* PC端限制最大宽度 */
    height: auto;
    border-radius: 8px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16/9; /* 保持视频比例 */
}

/* 添加WordPress视频块居中 */
.technician-single .entry-content .wp-block-video,
.technician-single .entry-content .wp-block-embed {
    text-align: center;
    margin: 20px auto;
    max-width: 800px; /* 限制最大宽度 */
    width: 100%;
}

/* 图片组/画廊样式 */
.technician-single .entry-content .gallery,
.technician-single .entry-content .wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px auto;
    max-width: 1000px;
}

.technician-single .entry-content .gallery-item img,
.technician-single .entry-content .blocks-gallery-item img {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
}

/* 响应式调整 - 增强移动端样式权重 */
@media (max-width: 768px) {
    .technician-single {
        padding:8px;
        margin: 0px auto;
        border-radius: 10px;
    }
    
    .technician-single .entry-title {
        font-size: 1.5em;
    }
    
    .technician-meta {
        gap: 10px;
    }
    
    .meta-id, .meta-price, .meta-certified, .meta-sticky {
        padding: 4px 10px;
        font-size: 0.85em;
    }
    
    .technician-details-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .technician-single .entry-content h2 {
        font-size: 1.3em;
    }
    
    /* 移动端图片样式 - 强化选择器权重并确保样式生效 */
    body .technician-single .entry-content img,
    body .technician-single .entry-content .wp-block-image img,
    body .technician-single .entry-content figure img,
    body .technician-single .entry-content p img,
    body .technician-single .entry-content a img,
    body .technician-single .entry-content > img,
    body .technician-single .entry-content figure.wp-block-image img,
    body .technician-single .entry-content .wp-block-image figure img {
        width: 95% !important; /* 宽度固定为容器的95% */
        max-width: 450px !important; /* 限制最大宽度 */
        height: auto !important; /* 保持图片比例 */
        max-height: none !important; /* 移除最大高度限制确保显示完整 */
        margin: 15px auto !important; /* 上下15px，左右auto实现居中 */
        border-radius: 10px !important; /* 确保移动端也有圆角 */
        -webkit-border-radius: 10px !important; /* Safari兼容 */
        -moz-border-radius: 10px !important; /* Firefox兼容 */
        background-color: #ffffff !important; /* 强制白色背景消除透明 */
        border: 1px solid #f0f0f0 !important; /* 确保有边框 */
        box-shadow: 0 3px 8px rgba(0,0,0,0.08) !important; /* 移动端阴影稍微减弱 */
        object-fit: contain !important; /* 确保图片完整显示 */
        display: block !important; /* 强制块级显示 */
        aspect-ratio: auto !important; /* 确保图片不被拉伸 */
        transform: none !important; /* 移除可能影响的变换 */
        overflow: hidden !important; /* 确保内容遵循圆角边界 */
        position: relative !important; /* 确保定位正常 */
        z-index: 1 !important; /* 提升层级以确保样式生效 */
        clip-path: inset(0 0 0 0 round 10px) !important; /* 强制圆角裁剪 */
    }
    
    /* 图片容器样式 - 确保不影响图片本身样式 */
    body .technician-single .entry-content .wp-block-image,
    body .technician-single .entry-content figure,
    body .technician-single .entry-content p:has(img) {
        max-width: 100% !important;
        width: 100% !important;
        margin: 10px auto !important;
        text-align: center !important;
        background: none !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        overflow: visible !important; /* 确保容器不裁剪图片圆角 */
    }
    
    /* 移动端视频样式调整 */
    .technician-single .entry-content video,
    .technician-single .entry-content iframe {
        max-width: 100%; /* 移动端占满宽度 */
        margin: 15px auto;
    }
    
    /* 移动端画廊样式调整 */
    .technician-single .entry-content .gallery,
    .technician-single .entry-content .wp-block-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .technician-single .entry-content .gallery-item img,
    .technician-single .entry-content .blocks-gallery-item img {
        max-height: 250px;
    }
}

/* 搜索结果页面数量和匹配类型样式 */
.search-result-text {
    font-size: 1.1em;
    color: #444;
    display: block;
    margin-bottom: 8px;
}

.result-count {
    font-weight: bold;
    color: #ff4d79;
    font-size: 1.2em;
    margin: 0 3px;
}

.search-match-types {
    margin-top: 8px;
    padding: 5px 10px;
    background-color: #fff8fa;
    border-radius: 20px;
    border: 1px dashed #ffccd5;
    display: inline-block;
    font-size: 0.9em;
    color: #666;
}

.match-type-highlight {
    color: #ff4d79;
    font-weight: bold;
}

/* 筛选条件美化 */
.filter-explanation {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
    justify-content: center;
    align-items: center;
}

.filter-item {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(255, 107, 156, 0.1);
    border: 1px solid #ffe0e8;
    font-size: 0.85em;
    color: #555;
    transition: all 0.3s ease;
}

.filter-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 156, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.filter-label {
    color: #777;
    font-weight: 600;
    margin-right: 5px;
}

/* 美化各类筛选标签 */
.filter-highlight {
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    position: relative;
}

/* 关键词标签 */
.filter-highlight.keyword {
    background: linear-gradient(135deg, #fff0f5, #ffecf6);
    color: #e84393;
    border: 1px solid #ffd6eb;
}

/* 地区标签 - 更美观的样式 */
.filter-highlight.region {
    background: linear-gradient(135deg, #e6f7ff, #f0f9ff);
    color: #0099e6;
    border: 1px solid #bae7ff;
    position: relative;
    padding-left: 24px;
    overflow: hidden;
}

.filter-highlight.region:before {
    content: "\f3c5"; /* 地图标记图标 */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #00a8ff;
    font-size: 0.9em;
}

/* 服务标签 - 更美观的样式 */
.filter-highlight.service {
    background: linear-gradient(135deg, #f0fff0, #e8ffe8);
    color: #4cd137;
    border: 1px solid #c3f3c3;
    position: relative;
    padding-left: 24px;
    overflow: hidden;
}

.filter-highlight.service:before {
    content: "\f0ad"; /* 工具图标 */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #4cd137;
    font-size: 0.9em;
}

/* 搜索结果页面标题区域样式 - 完全居中整齐 */
.search-header {
    background: linear-gradient(135deg, #fff9fb, #fff5f8);
    padding: 25px 20px;
    margin-bottom: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(255, 107, 156, 0.15);
    text-align: center;
    border: 1px solid #ffe4ec;
    position: relative;
    overflow: hidden;
    max-width: 96%;
    margin-left: auto;
    margin-right: auto;
}

.search-header:before {
    content: "";
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 156, 0.8), transparent);
    border-radius: 3px;
}

/* 搜索结果标题文字完全居中 */
.filter-search-title {
    margin: 0 0 15px 0;
    font-size: 1.5em;
    color: #ff6b9c;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
    text-align: center !important;
    display: block;
    width: 100%;
}

/* 搜索结果数量样式统一并居中 */
.search-result-text {
    font-size: 1.15em;
    color: #666;
    display: block;
    margin-bottom: 12px;
    text-align: center !important;
    font-weight: 500;
    line-height: 1.5;
    width: 100%;
}

.result-count {
    font-weight: bold;
    color: #ff4d79;
    font-size: 1.3em;
    margin: 0 5px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.result-count:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff4d79, transparent);
    opacity: 0.5;
    border-radius: 2px;
}

/* 匹配类型信息美化并确保居中 */
.search-match-types {
    margin: 12px auto;
    padding: 8px 20px;
    background-color: #fff8fa;
    border-radius: 30px;
    border: 1px dashed #ffccd5;
    display: block;
    font-size: 0.95em;
    color: #777;
    box-shadow: 0 3px 10px rgba(255, 107, 156, 0.08);
    text-align: center;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.match-type-highlight {
    color: #ff4d79;
    font-weight: bold;
    position: relative;
    padding: 0 2px;
    display: inline-block;
}

.match-type-highlight:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 77, 121, 0.15);
    border-radius: 2px;
    z-index: -1;
}

/* 筛选条件完全居中 */
.filter-explanation {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px auto;
    justify-content: center;
    align-items: center;
    max-width: 90%;
    text-align: center;
    width: 100%;
}

.filter-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 15px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 3px 12px rgba(255, 107, 156, 0.12);
    border: 1px solid #ffe0e8;
    font-size: 0.9em;
    color: #555;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    margin: 0 auto;
}

.filter-item:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff8eb3, #ff6b9c);
    opacity: 0.8;
}

.filter-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 156, 0.2);
    background: rgba(255, 255, 255, 1);
}

.filter-label {
    color: #888;
    font-weight: 600;
    margin-right: 8px;
    text-align: center;
}

/* 美化各类筛选标签并统一样式 */
.filter-highlight {
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 15px;
    position: relative;
    letter-spacing: 0.3px;
    text-align: center;
    display: inline-block;
    vertical-align: middle;
}

/* 移动端适配 - 确保在小屏幕上也能居中美观 */
@media (max-width: 768px) {
    /* 搜索结果标题区域 */
    .search-header {
        padding: 20px 15px;
        margin-bottom: 20px;
        max-width: 98%;
    }
    
    .search-result-text {
        font-size: 1em;
        line-height: 1.4;
        margin-bottom: 10px;
    }
    
    .result-count {
        font-size: 1.2em;
        display: inline-block;
        vertical-align: middle;
    }
    
    .search-match-types {
        font-size: 0.85em;
        padding: 6px 15px;
        margin: 10px auto;
        max-width: 85%;
        display: block;
    }
    
    .filter-search-title {
        font-size: 1.3em;
        margin-bottom: 12px;
    }
    
    /* 筛选条件响应式 */
    .filter-explanation {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        max-width: 95%;
    }
    
    .filter-item {
        width: 90%;
        justify-content: center;
        font-size: 0.85em;
        padding: 8px 12px;
        margin: 0 auto;
    }
}

/* 更新导航地区下的筛选标题样式，与搜索结果标题保持一致 */
.filter-header {
    background: linear-gradient(135deg, #fff9fb, #fff5f8);
    padding: 25px 20px;
    margin-bottom: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(255, 107, 156, 0.15);
    text-align: center;
    border: 1px solid #ffe4ec;
    position: relative;
    overflow: hidden;
    max-width: 96%;
    margin-left: auto;
    margin-right: auto;
}

.filter-header:before {
    content: "";
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 156, 0.8), transparent);
    border-radius: 3px;
}

.filter-type {
    color: #777;
    font-weight: 600;
    margin-right: 8px;
    display: inline-block;
    position: relative;
}

.filter-name {
    color: #0099e6;
    font-weight: bold;
    font-size: 1.2em;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin: 0 3px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
    background: linear-gradient(135deg, rgba(230, 247, 255, 0.8), rgba(204, 235, 255, 0.7));
    border: 1px solid #bae7ff;
    border-radius: 22px;
    padding: 2px 15px;
    box-shadow: 
        0 2px 8px rgba(0, 153, 230, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 -2px 0 rgba(0, 0, 0, 0.04) inset;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    overflow: hidden;
}

.filter-name:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
    border-radius: 22px 22px 0 0;
    pointer-events: none;
}

.filter-name:hover {
    background: linear-gradient(135deg, rgba(204, 235, 255, 0.9), rgba(179, 219, 255, 0.8));
    box-shadow: 
        0 3px 12px rgba(0, 153, 230, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.7) inset,
        0 -2px 0 rgba(0, 0, 0, 0.07) inset;
    transform: translateY(-2px);
    padding: 2px 18px;
    color: #0077cc;
}

.filter-name:active {
    transform: translateY(0);
    box-shadow: 
        0 1px 4px rgba(0, 153, 230, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 1px 0 rgba(0, 0, 0, 0.03) inset;
    transition: all 0.1s ease;
}

.filter-name:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 153, 230, 0.7), transparent);
    opacity: 0.5;
    border-radius: 2px;
    pointer-events: none;
}

/* 添加动画效果 */
@keyframes slight-glow {
    0% { box-shadow: 0 2px 8px rgba(0, 153, 230, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 -2px 0 rgba(0, 0, 0, 0.04) inset; }
    50% { box-shadow: 0 2px 12px rgba(0, 153, 230, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.6) inset, 0 -2px 0 rgba(0, 0, 0, 0.04) inset; }
    100% { box-shadow: 0 2px 8px rgba(0, 153, 230, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 -2px 0 rgba(0, 0, 0, 0.04) inset; }
}

.filter-header:hover .filter-name {
    animation: slight-glow 2s infinite;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .filter-name {
        font-size: 1.05em;
        padding: 1px 12px;
        border-radius: 18px;
        letter-spacing: 0.3px;
    }
    
    .filter-name:hover {
        padding: 1px 14px;
    }
    
    .filter-name:before {
        border-radius: 18px 18px 0 0;
    }
}

/* 将"地区："和地区名称一起放在椭圆形框内 */
.filter-header .filter-search-title {
    color: #666;
    font-size: 1.15em;
    line-height: 1.6;
    margin-bottom: 8px;
    position: relative;
}

/* 修改整体包含地区文本的显示样式 */
.filter-header .filter-search-title span {
    background: #ffffff;
    border: 1px solid #bae7ff;
    border-radius: 25px;
    padding: 2px 12px;
    display: inline-block;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 153, 230, 0.15);
}

/* 删除整体span的图标 */
.filter-header .filter-search-title span:before {
    display: none;
}

/* 修改.filter-type样式，现在添加图标 */
.filter-type {
    font-weight: 600;
    color: #777;
    margin-right: 3px;
    font-size: 0.9em;
    position: relative;
    padding-left: 20px; /* 为图标留出空间 */
    display: inline-block;
}

/* 给filter-type添加图标 */
.filter-type:before {
    content: "\f3c5"; /* 地图标记图标 */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #0099e6;
    font-size: 0.95em;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .filter-header .filter-search-title span {
        font-size: 1em;
        padding: 2px 10px;
        border-radius: 20px;
    }
    
    .filter-type {
        font-size: 0.85em;
        padding-left: 18px;
    }
    
    .filter-type:before {
        font-size: 0.9em;
    }
    
    .filter-name {
        font-size: 1em;
    }
}

/* 纯城市名称椭圆形样式 */
.city-name {
    color: #8e44ad;
    font-weight: bold;
    font-size: 1.1em;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin: 0 3px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
    background: #ffffff;
    border: 1px solid #ff6b9c;
    border-radius: 25px;
    padding: 2px 28px 2px 28px;
    box-shadow: 0 2px 8px rgba(255, 107, 156, 0.15);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    overflow: hidden;
    line-height: 1.4;
}

/* 为城市名称添加定位图标 */
.city-name:before {
    content: "\f3c5"; /* 地图标记图标 */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #8e44ad;
    font-size: 0.85em;
}

/* 城市名称悬停效果 */
.city-name:hover {
    background: #f9f0ff;
    box-shadow: 0 3px 12px rgba(255, 107, 156, 0.25);
    transform: translateY(-2px);
    padding: 2px 30px 2px 30px;
    color: #9b59b6;
}

/* "正在查看...的技师"文本样式 */
.filter-header .filter-search-title {
    color: #ff6b9c;
    font-size: 1.15em;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* 城市名称移动端适配 */
@media (max-width: 768px) {
    .city-name {
        font-size: 1em;
        padding: 1px 26px 1px 26px;
        border-radius: 20px;
        letter-spacing: 0.2px;
    }
    
    .city-name:hover {
        padding: 1px 28px 1px 28px;
    }
    
    .city-name:before {
        left: 8px;
        font-size: 0.8em;
    }
}

/* --- Footer Styles --- */
.site-footer {
    background: #ff6b9c;
    color: #fff;
    padding: 15px 0;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -2px 8px rgba(255, 107, 156, 0.15);
}

.site-footer .site-info {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer .footer-copyright {
    font-size: 0.9em;
    opacity: 0.8;
    position: relative;
    padding-left: 0;  /* 移除左侧padding，因为不再需要为图标留空间 */
}

.site-footer .footer-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    opacity: 0.9;
}

.site-footer a:hover {
    opacity: 1;
}

.site-footer .sep {
    opacity: 0.5;
}

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

    .site-footer .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .site-footer .footer-copyright {
        padding-left: 0;
    }
    
    /* 删除移动端的版权图标样式
    .site-footer .footer-copyright:before {
        position: static;
        margin-right: 6px;
    }
    */
    
    .site-footer .footer-links {
        justify-content: center;
    }
}

/* --- Load More Button --- */
.load-more-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
}

/* 添加无结果容器特殊样式 */
.technician-grid-wrapper.no-results-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.load-more-button {
    background: linear-gradient(135deg, #ff6b9c, #ff4f88);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 107, 156, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    position: relative;
    overflow: hidden;
}

.load-more-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 156, 0.4);
}

.load-more-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(255, 107, 156, 0.3);
}

.load-more-button i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.load-more-button:hover i {
    transform: translateY(2px);
}

/* 加载中状态 */
.load-more-button.loading {
    background: #f0f0f0;
    color: #888;
    pointer-events: none;
}

/* 全部加载完状态 */
.load-more-button.all-loaded {
    background: #e9e9e9;
    color: #777;
    cursor: default;
}

.load-more-button.all-loaded:hover {
    transform: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 加载动画 */
.loading-spinner {
    margin: 20px auto;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-spinner.visible {
    opacity: 1;
}

.spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(255, 107, 156, 0.1);
    border-top-color: #ff6b9c;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    will-change: transform;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 无更多内容和加载错误提示 */
.no-more-posts, 
.load-error {
    text-align: center;
    padding: 15px 20px;
    margin: 20px auto;
    border-radius: 8px;
    font-size: 0.95em;
    max-width: 300px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.no-more-posts {
    background-color: #f5f5f5;
    color: #777;
    border: 1px solid #e0e0e0;
}

.load-error {
    background-color: #fff4f4;
    color: #e53935;
    border: 1px solid #ffcdd2;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .load-more-button {
        padding: 10px 25px;
        font-size: 15px;
        min-width: 160px;
    }
    
    .no-more-posts, 
    .load-error {
        padding: 12px 15px;
        font-size: 0.9em;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .load-more-button {
        padding: 8px 20px;
        font-size: 14px;
        min-width: 140px;
    }
    
    .no-more-posts, 
    .load-error {
        padding: 10px;
        font-size: 0.85em;
        max-width: 220px;
    }
}

/* --- 回到顶部按钮 --- */
.scroll-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(255, 107, 156, 0.9), rgba(255, 87, 136, 0.9));
    border-radius: 50%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.scroll-to-top i {
    font-size: 20px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, rgba(255, 107, 156, 1), rgba(255, 87, 136, 1));
    box-shadow: 0 4px 12px rgba(255, 107, 156, 0.4);
    transform: translateY(-3px);
}

/* 移动设备上的回到顶部按钮 */
@media (max-width: 768px) {
    .scroll-to-top {
        right: 10px;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        opacity: 0.8;
    }
    
    .scroll-to-top:hover {
        transform: translateY(-50%) scale(1.1);
        opacity: 1;
    }
    
    .scroll-to-top i {
        font-size: 18px;
    }
}

/* --- 调试信息样式 --- */
.debug-info {
    margin: 15px auto;
    padding: 10px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    font-size: 0.85em;
    text-align: center;
    max-width: 250px;
}

/* 未找到技师匹配结果 - 独立样式 */
.not-found-technician-container {
    width: 100%;
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.not-found-technician-content {
    width: 100%;
    background: linear-gradient(135deg, #fff8fa, #fff0f5);
    border: 1px solid #ffccd5;
    border-radius: 18px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 
        0 10px 30px rgba(255, 107, 156, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.05);
}

.not-found-technician-title {
    font-size: 24px;
    color: #ff4d79;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.not-found-technician-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff8eb3, #ff4d79, #ff8eb3);
    border-radius: 3px;
}

.not-found-technician-message {
    font-size: 16px;
    color: #665;
    margin-bottom: 30px;
    line-height: 1.6;
}

.not-found-technician-suggestions {
    margin: 0 auto 30px;
    width: 90%;
    max-width: 450px;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #ffe4e9;
}

.not-found-technician-suggestions h3 {
    font-size: 18px;
    color: #ff6b9c;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid #ffdde3;
    padding-bottom: 10px;
}

.not-found-technician-suggestions ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.not-found-technician-suggestions li {
    margin-bottom: 0.65em;
    color: #555;
    font-size: clamp(0.8em, 2vw, 0.9em);
    position: relative;
    padding-left: 1.6em;
    line-height: 1.4;
}

.not-found-technician-suggestions li:before {
    content: "\f0da";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.2em;
    color: #ff6b9c;
    font-size: 1em;
}

.not-found-technician-home-button {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #ff6b8b, #ff4d79);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 77, 121, 0.3);
    border: none;
}

.not-found-technician-home-button:hover {
    background: linear-gradient(135deg, #ff5a79, #ff3366);
    box-shadow: 0 6px 15px rgba(255, 51, 102, 0.4);
    transform: translateY(-2px) scale(1.03);
}

@media (max-width: 576px) {
    .not-found-technician-container {
        margin: 30px auto;
    }
    
    .not-found-technician-content {
        padding: 30px 20px;
    }
    
    .not-found-technician-title {
        font-size: 20px;
    }
    
    .not-found-technician-message {
        font-size: 14px;
    }
    
    .not-found-technician-suggestions {
        width: 100%;
        padding: 15px;
    }
    
    .not-found-technician-suggestions h3 {
        font-size: 16px;
    }
    
    .not-found-technician-suggestions li {
        font-size: 13px;
    }
    
    .not-found-technician-home-button {
        font-size: 14px;
        padding: 8px 20px;
    }
}

/* 未找到技师匹配结果 - 全新设计 */
.not-found-technician-container {
    width: 100%;
    max-width: 1000px;
    margin: 50px auto;
    padding: 0;
    display: block;
    text-align: center;
}

.not-found-technician-content {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    text-align: center;
    box-shadow: none;
}

.not-found-technician-title {
    font-size: 28px;
    color: #ff4d79;
    margin-bottom: 25px;
    font-weight: normal;
    position: relative;
    display: inline-block;
    padding-bottom: 0;
}

.not-found-technician-title:after {
    display: none;
}

.not-found-technician-message {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.not-found-technician-suggestions {
    margin: 0 auto 40px;
    width: 100%;
    max-width: 600px;
    text-align: center;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
}

.not-found-technician-suggestions h3 {
    font-size: 20px;
    color: #888;
    margin-bottom: 20px;
    text-align: center;
    border: none;
    padding-bottom: 10px;
}

.not-found-technician-suggestions ul {
    display: inline-block;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    text-align: left;
}

.not-found-technician-suggestions li {
    margin-bottom: 15px;
    color: #777;
    font-size: 16px;
    position: relative;
    padding-left: 30px;
    line-height: 1.5;
    text-align: left;
}

.not-found-technician-suggestions li:before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #aaa;
    font-size: 16px;
}

.not-found-technician-home-button {
    display: inline-block;
    padding: 12px 30px;
    background: #ff6b9c;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: normal;
    transition: all 0.3s ease;
    box-shadow: none;
    border: none;
}

.not-found-technician-home-button:hover {
    background: #ff4d79;
    transform: none;
    box-shadow: none;
}

@media (max-width: 576px) {
    .not-found-technician-container {
        margin: 30px auto;
    }
    
    .not-found-technician-title {
        font-size: 22px;
    }
    
    .not-found-technician-message {
        font-size: 16px;
    }
    
    .not-found-technician-suggestions {
        width: 100%;
    }
    
    .not-found-technician-suggestions h3 {
        font-size: 18px;
    }
    
    .not-found-technician-suggestions li {
        font-size: 15px;
    }
}

/* 未找到技师匹配结果 - 正方形居中设计 */
.not-found-technician-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.not-found-technician-content {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #fff8fa, #fff0f5);
    border: 1px solid #ffccd5;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(255, 107, 156, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.not-found-technician-title {
    font-size: 22px;
    color: #ff4d79;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
    text-align: center;
}

.not-found-technician-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #ff8eb3;
    border-radius: 1px;
}

.not-found-technician-message {
    font-size: 14px;
    color: #665;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: center;
}

.not-found-technician-suggestions {
    margin: 0 auto 20px;
    width: 90%;
    text-align: center;
    padding: 0;
}

.not-found-technician-suggestions h3 {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
    text-align: center;
    padding-bottom: 5px;
    border-bottom: 1px dashed #ffccd5;
}

.not-found-technician-suggestions ul {
    list-style: none;
    padding-left: 0;
    margin: 0 auto;
    text-align: left;
}

.not-found-technician-suggestions li {
    margin-bottom: 8px;
    color: #777;
    font-size: 12px;
    position: relative;
    padding-left: 18px;
    line-height: 1.5;
    text-align: left;
}

.not-found-technician-suggestions li:before {
    content: "\f0da";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #ff6b9c;
    font-size: 12px;
}

.not-found-technician-home-button {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #ff6b8b, #ff4d79);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(255, 77, 121, 0.3);
    border: none;
}

.not-found-technician-home-button:hover {
    background: linear-gradient(135deg, #ff5a79, #ff3366);
    box-shadow: 0 4px 10px rgba(255, 51, 102, 0.4);
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .not-found-technician-container {
        margin: 30px auto;
    }
    
    .not-found-technician-content {
        width: 300px;
        height: 300px;
        padding: 20px;
    }
    
    .not-found-technician-title {
        font-size: 18px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    
    .not-found-technician-message {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .not-found-technician-suggestions {
        margin-bottom: 15px;
    }
    
    .not-found-technician-suggestions h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .not-found-technician-suggestions li {
        font-size: 11px;
        margin-bottom: 6px;
        padding-left: 15px;
    }
    
    .not-found-technician-suggestions li:before {
        font-size: 10px;
    }
    
    .not-found-technician-home-button {
        font-size: 12px;
        padding: 6px 16px;
    }
}

/* 未找到技师匹配结果 - 网页级居中设计 */
.not-found-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 500px;
    margin: 0 auto;
    padding: 50px 0;
}

.not-found-page-content {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #fff8fa, #fff0f5);
    border: 1px solid #ffccd5;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(255, 107, 156, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.not-found-page-title {
    font-size: 28px;
    color: #ff4d79;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(255, 107, 156, 0.2);
    animation: fadeInDown 0.8s ease-out;
}

.not-found-page-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 142, 179, 0), #ff8eb3, rgba(255, 142, 179, 0));
    border-radius: 3px;
    animation: widthGrow 1s ease-out forwards;
}

@keyframes widthGrow {
    from { width: 0; }
    to { width: 60px; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.not-found-page-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.7;
    text-align: center;
    font-weight: 400;
    animation: fadeIn 1s ease-out 0.3s both;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.not-found-page-suggestions h3 {
    font-size: 18px;
    color: #ff6b9c;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px dashed #ffccd5;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: fadeIn 1s ease-out 0.5s both;
}

.not-found-page-suggestions li {
    margin-bottom: 10px;
    color: #666;
    font-size: 15px;
    position: relative;
    padding-left: 22px;
    line-height: 1.6;
    text-align: left;
    transition: all 0.3s ease;
    animation: fadeInRight 0.7s ease-out calc(0.6s + var(--i, 0) * 0.1s) both;
}

.not-found-page-suggestions li:nth-child(1) { --i: 1; }
.not-found-page-suggestions li:nth-child(2) { --i: 2; }
.not-found-page-suggestions li:nth-child(3) { --i: 3; }
.not-found-page-suggestions li:nth-child(4) { --i: 4; }

.not-found-page-suggestions li:hover {
    color: #ff4d79;
    transform: translateX(3px);
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.not-found-page-suggestions li:before {
    content: "\f0a4";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #ff6b9c;
    font-size: 14px;
    transition: all 0.3s ease;
}

.not-found-page-suggestions li:hover:before {
    color: #ff4d79;
    transform: translateX(2px);
}

.not-found-page-suggestions ul {
    list-style: none;
    padding-left: 0;
    margin: 0 auto;
    text-align: left;
}

.not-found-page-home-button {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #ff6b8b, #ff4d79);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(255, 77, 121, 0.3);
    border: none;
}

.not-found-page-home-button:hover {
    background: linear-gradient(135deg, #ff5a79, #ff3366);
    box-shadow: 0 4px 10px rgba(255, 51, 102, 0.4);
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .not-found-page-container {
        min-height: 400px;
        padding: 30px 0;
    }
    
    .not-found-page-content {
        width: 300px;
        height: 300px;
        padding: 20px;
    }
    
    .not-found-page-title {
        font-size: 18px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    
    .not-found-page-message {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .not-found-page-suggestions {
        margin-bottom: 15px;
    }
    
    .not-found-page-suggestions h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .not-found-page-suggestions li {
        font-size: 11px;
        margin-bottom: 6px;
        padding-left: 15px;
    }
    
    .not-found-page-suggestions li:before {
        font-size: 10px;
    }
    
    .not-found-page-home-button {
        font-size: 12px;
        padding: 6px 16px;
    }
}

.not-found-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 500px;
    margin: 0 auto;
    padding: 50px 0;
}

.not-found-page-content {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #fff8fa, #fff0f5);
    border: 1px solid #ffd0db;
    border-radius: 15px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 
        0 15px 35px rgba(255, 107, 156, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    animation: fadeScale 0.8s ease-out;
    transform-style: preserve-3d;
}

.not-found-page-content:before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.not-found-page-suggestions {
    margin: 0 auto 25px;
    width: 90%;
    text-align: center;
    padding: 0;
    position: relative;
    z-index: 2;
}

.not-found-page-home-button {
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(135deg, #ff6b8b, #ff4d79);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 77, 121, 0.3);
    border: none;
    position: relative;
    overflow: visible;
    z-index: 2;
    animation: fadeIn 1s ease-out 1s both;
    min-width: 120px;
    text-align: center;
    white-space: nowrap;
}

.not-found-page-home-button:hover {
    background: linear-gradient(135deg, #ff5a79, #ff3366);
    box-shadow: 0 6px 15px rgba(255, 51, 102, 0.4);
    transform: translateY(-3px) scale(1.05);
}

.not-found-page-home-button:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    transition: all 0.6s ease;
    z-index: 1;
}

.not-found-page-home-button:hover:before {
    left: 100%;
}

.not-found-page-home-button span {
    position: relative;
    z-index: 2;
    display: inline-block;
}

@media (max-width: 576px) {
    .not-found-page-container {
        min-height: 400px;
        padding: 30px 0;
    }
    
    .not-found-page-content {
        width: 320px;
        height: 320px;
        padding: 25px 20px;
    }
}

.not-found-page-message .highlight {
    color: #ff4d79;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding: 0 3px;
}

.not-found-page-message .highlight:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 77, 121, 0.15);
    border-radius: 4px;
    z-index: -1;
}

/* 骨架屏加载效果 */
.skeleton-wave {
    background: linear-gradient(90deg, 
        rgba(255, 235, 240, 0.6) 25%, 
        rgba(255, 245, 250, 0.9) 37%, 
        rgba(255, 235, 240, 0.6) 63%);
    background-size: 400% 100%;
    animation: skeleton-wave 1.5s ease-in-out infinite;
}

@keyframes skeleton-wave {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

.technician-card-skeleton {
    min-height: 300px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.technician-image-skeleton {
    height: 180px;
    width: 100%;
    border-radius: 10px 10px 0 0;
}

.technician-info-skeleton {
    padding: 10px;
}

.technician-title-skeleton {
    height: 20px;
    width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
}

.technician-detail-skeleton {
    height: 16px;
    width: 80%;
    border-radius: 5px;
    margin-bottom: 8px;
}

.technician-tag-skeleton {
    height: 20px;
    width: 70%;
    border-radius: 5px;
    margin-top: 8px;
}

/* 扩展现有骨架屏样式 */
.loading-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 20px 0;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ff6b9c, #ff4f88);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 79, 136, 0.3);
    z-index: 999;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 79, 136, 0.4);
}

.back-to-top i {
    font-size: 20px;
}

/* 进度指示器 */
.loading-progress {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 20px;
    text-align: center;
}

.progress-text {
    font-size: 14px;
    color: #777;
    margin-bottom: 8px;
    display: block;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b9c, #ff4f88);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* 增强的移动端顶部按钮触摸交互 - 2024-09-12更新 */
.mobile-header-button {
    /* 基础样式增强 */
    cursor: pointer;
    touch-action: manipulation; 
    will-change: transform, background-color;
    transition: transform 0.15s ease-out, background-color 0.15s ease-out;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: rgba(255,255,255,0.1);
    user-select: none;
    outline: none;
}

/* 触摸反馈样式 */
.button-touch-active, 
.mobile-header-button:active {
    transform: scale(0.92) !important;
    background-color: rgba(255,255,255,0.18) !important;
}

/* 点击涟漪效果 */
.mobile-header-button:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 70%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10,10);
    opacity: 0;
    transition: transform 0.5s, opacity 0.8s;
}

.mobile-header-button:active:after {
    transform: scale(0,0);
    opacity: 0.35;
    transition: 0s;
}

/* 确保所有图标元素不会干扰点击 */
.mobile-header-button i,
.mobile-header-button svg,
.mobile-header-button path {
    pointer-events: none;
    position: relative;
    z-index: 2;
}

/* 确保按钮有足够的点击区域 */
@media (max-width: 767px) {
    .mobile-header-button {
        min-width: 44px;
        min-height: 44px;
        margin: 0 5px;
        padding: 8px;
    }
    
    .site-branding {
        padding: 8px 12px;
    }
}

/* 触摸涟漪效果样式 */
.touch-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    background-color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 0;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 点击时的立即反馈效果 */
.mobile-header-button:active i,
.mobile-header-button:active svg {
    transform: scale(0.9);
    transition: transform 0.1s ease-out;
}

/* --- 公告区域样式 --- */
.announcement-container {
    /* 背景颜色现在通过内联样式动态设置 */
    color: #fff;
    padding: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 99;
    display: flex !important; /* 改为flex布局 */
    align-items: center !important; /* 垂直居中 */
    justify-content: center !important; /* 水平居中 */
    height: 32px !important; /* 固定高度 */
    min-height: 32px !important; /* 设置最小高度 */
    max-height: 32px !important; /* 设置最大高度 */
    opacity: 1 !important; /* 确保不透明度始终为1 */
    visibility: visible !important; /* 确保可见性 */
    will-change: transform; /* 优化性能 */
    -webkit-backface-visibility: hidden; /* 提高移动端渲染性能 */
    backface-visibility: hidden;
    width: 100% !important; /* 确保宽度为100% */
    border-radius: 0 0 10px 10px; /* 只在底部添加圆角 */
    margin: 0 !important; /* 移除所有边距 */
    left: 0;
    right: 0;
    top: 0;
}

.announcement-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 确保内容两端对齐 */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* 移除上下内边距 */
    position: relative;
    height: 100%;
    width: 100%;
    box-sizing: border-box; /* 确保边框和内边距包含在宽度内 */
    overflow: hidden; /* 确保内容不会溢出 */
}

.announcement-icon {
    flex: 0 0 20px;
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    height: 20px;
    width: 20px;
    min-width: 20px; /* 添加最大宽度限制 */
    margin-right: 10px;
    font-size: 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    animation: pulse 2s infinite;
    padding: 0; /* 移除内边距 */
    position: static; /* 使用静态定位 */
}

.announcement-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    margin: 0; /* 移除外边距 */
    padding: 0; /* 移除内边距 */
}

.announcement-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: flex-start; /* 左对齐内容 */
    height: 100%;
    line-height: 1;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.announcement-marquee {
    white-space: nowrap;
    animation: marquee 18s linear infinite !important;
    font-size: 13px; /* 更小的字体 */
    font-weight: 400; /* 减小字体粗细 */
    letter-spacing: 0.3px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
    display: inline-block;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    margin-right: 50px;
    line-height: 1;
    padding-left: 100%;  /* 确保文字开始时在容器之外 */
}

.announcement-close {
    flex: 0 0 20px;
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    height: 20px;
    width: 20px;
    min-width: 20px;
    max-width: 20px; /* 添加最大宽度限制 */
    margin-left: 10px;
    cursor: pointer;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    z-index: 999; /* 降低z-index避免覆盖其他元素 */
    transition: all 0.3s ease;
    overflow: hidden; /* 确保内容不会溢出 */
    box-sizing: border-box; /* 确保边框和内边距包含在宽度内 */
    padding: 0; /* 移除内边距 */
    position: static; /* 使用静态定位 */
}

.announcement-close i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 12px;
    color: white;
    text-shadow: 0 0 2px rgba(0,0,0,0.3);
    line-height: 1;
    pointer-events: none;
    text-align: center; /* 文本居中 */
    box-sizing: border-box; /* 确保边框和内边距包含在宽度内 */
    margin: 0; /* 移除外边距 */
    padding: 0; /* 移除内边距 */
}

.announcement-close:hover {
    background: rgba(255,255,255,0.4); /* 更明显的悬停效果 */
    transform: scale(1.1); /* 悬停时略微放大 */
}

.announcement-close:active {
    background: rgba(255,255,255,0.5); /* 点击时更明显的效果 */
    transform: scale(0.95); /* 点击时略微缩小 */
}

@media (max-width: 768px) {
    .announcement-container {
        /* 高度将由主题设置和内联样式控制 */
        align-items: center !important;
    }
    
    .announcement-wrapper {
        padding: 0 12px;
        align-items: center;
    }
    
    .announcement-icon {
        flex: 0 0 22px; /* 增加尺寸以匹配关闭按钮 */
        height: 22px;
        width: 22px;
        min-width: 22px;
        max-width: 22px;
        font-size: 12px; /* 增加图标大小 */
        margin-right: 10px; /* 增加右侧间距 */
    }
    
    .announcement-close {
        /* 尺寸将由主题设置和内联样式控制 */
        background: rgba(255,255,255,0.25); /* 更明显的背景色 */
        border-radius: 50%;
    }
    
    .announcement-close i {
        font-size: 14px; /* 增加关闭图标大小 */
    }
    
    .announcement-marquee {
        font-size: 13px; /* 增加字体大小，更容易阅读 */
        animation-duration: 15s !important;
        line-height: 1.2; /* 添加行高以适应更高的容器 */
    }
}

/* 简化动画效果，提高性能 */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@-webkit-keyframes marquee {
    0% {
        -webkit-transform: translateX(0);
    }
    100% {
        -webkit-transform: translateX(-100%);
    }
}

/* 简化脉动动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@-webkit-keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* 当公告被关闭时隐藏 */
body.announcement-closed .announcement-container {
    display: none !important;
}

/* 强化公告隐藏样式 */
.announcement-container.hidden,
.announcement-container.announcement-closed,
body.announcement-closed .announcement-container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    max-height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    z-index: -9999 !important;
    pointer-events: none !important;
}