.container.main-content {
    padding-bottom: 30px;
}

.jy-header {
    background: linear-gradient(135deg, #a8e6cf, #ffffff);
    border-radius: 15px;
    padding: 15px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: calc(var(--unified-max-width) - 40px);
    margin-left: auto;
    margin-right: auto;
}

.jy-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.jy-header-dot {
    width: 12px;
    height: 12px;
    background-color: #4a9d4a;
    border-radius: 50%;
}

.jy-header-title {
    font-size: 24px;
    color: #333;
    font-weight: normal;
}

.jy-header-subtitle {
    font-size: 18px;
    color: #4a9d4a;
    margin-left: 20px;
    border-bottom: 2px solid #4a9d4a;
    padding-bottom: 2px;
}

.jy-header-tabs {
    display: flex;
    gap: 20px;
}

.jy-header-tabs .tab-item {
    font-size: 16px;
    color: #4a9d4a;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background-color: rgba(74, 157, 74, 0.1);
}

.jy-header-tabs .tab-item:hover {
    color: #fff;
    background-color: #4a9d4a;
}

.jy-header-tabs .tab-item.active {
    color: #fff;
    background-color: #4a9d4a;
}

.jy-header-more {
    display: flex;
    align-items: center;
    color: #4a9d4a;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
}

.jy-header-more::after {
    content: "≫";
    margin-left: 10px;
    font-size: 20px;
}

/* 筛选面板样式 */
.filter-panel {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-section {
    margin-bottom: 15px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-size: 16px;
    color: #333;
    margin-right: 15px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    transition: max-height 0.3s ease;
}

.filter-tags.collapsed {
    max-height: 72px;
    overflow: hidden;
    position: relative;
}

.filter-tags.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
}

.filter-tags.expanded {
    max-height: none;
}

.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s;
}

.filter-toggle-btn:hover {
    background: #e8e8e8;
}

.filter-toggle-btn .arrow::before {
    content: '▼';
    font-size: 12px;
}

.filter-toggle-btn.expanded .arrow::before {
    content: '▲';
}

.filter-toggle-btn::before {
    font-size: 13px;
    content: '展开';
}

.filter-toggle-btn.expanded::before {
    content: '收起';
}

.filter-section-university {
    position: relative;
}

.filter-tag {
    font-size: 14px;
    color: #666;
    background-color: white;
    padding: 3px 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border-radius: 4px;
}

.filter-tag:hover {
    color: #52c41a;
}

.filter-tag.active {
    color: #52c41a;
    background-color: #f6ffed;
}

.search-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.search-section input {
    width: 300px;
    padding: 8px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 14px;
}

.search-section button {
    padding: 8px 20px;
    background-color: #52c41a;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.search-section button:hover {
    background-color: #3d9c14;
}

/* 空状态 */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 0;
    color: #666;
}

/* 卡片网格布局 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: calc(var(--unified-max-width) - 40px);
    margin: 0 auto;
}

/* 单个卡片样式 */
.teacher-card {
    width: 100%;
    height: 280px;
    min-height: 280px;
    max-height: 280px;
    background: #f0f0f0;
    border-radius: 16px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-self: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.teacher-card .diagonal-banner {
    position: absolute;
    top: 10px;
    right: -25px;
    background-color: #52c41a;
    color: white;
    font-size: 10px;
    padding: 3px 30px;
    transform: rotate(45deg);
    z-index: 1;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.teacher-avatar {
    width: 70px;
    height: 70px;
    background-color: #b8d4d4;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-info {
    flex: 1;
    min-width: 0;
}

.name-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.teacher-name {
    font-size: 16px;
    font-weight: normal;
    color: #333;
}

.teacher-id {
    font-size: 12px;
    color: #4a9d4a;
}

.school-info {
    font-size: 12px;
    color: #4a9d4a;
    margin-top: 6px;
    line-height: 1.2;
}

.tags {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: white;
    font-weight: normal;
}

.tag.orange {
    background-color: #ff9800;
}

.tag.teal {
    background-color: #00bcd4;
}

.location-section {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 6px;
}

.location-icon {
    width: 10px;
    height: 10px;
    font-size: 9px;
}

.location-text {
    font-size: 12px;
    color: #333;
    line-height: 1.2;
}

.subject-section {
    margin-bottom: 6px;
}

.subject-text {
    font-size: 14px;
    color: #333;
    line-height: 1.2;
}

.description {
    font-size: 14px;
    color: #333;
    line-height: 1.5 !important;
    margin-bottom: 10px;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-height: 4.5em !important;
    word-break: break-word;
}

.detail-button {
    display: block;
    width: 100%;
    padding: 5px;
    background-color: #4a4a4a;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: auto;
    flex-shrink: 0;
    text-align: center;
    text-decoration: none;
}

.detail-button:hover {
    background-color: #333;
}

@media (max-width: 900px) {
    .jy-header {
        max-width: calc(100% - 40px);
        padding: 15px 20px;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .step {
        width: 100%;
    }
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: calc(100% - 40px);
    }
    
    .filter-tags {
        gap: 8px;
    }
    
    .search-section input {
        width: 200px;
    }
}

@media (max-width: 580px) {
    .jy-header {
        max-width: calc(100% - 30px);
        padding: 12px 15px;
    }
    
    .jy-header-title {
        font-size: 20px;
    }
    
    .jy-header-subtitle {
        font-size: 16px;
    }
    
    .jy-header-more {
        font-size: 14px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 280px;
    }
    
    .teacher-card {
        padding: 12px;
        min-height: 200px;
    }
    
    .teacher-avatar {
        width: 50px;
        height: 65px;
    }
    
    .teacher-name {
        font-size: 14px;
    }
    
    .name-section {
        gap: 6px;
    }
    
    .search-section {
        flex-wrap: wrap;
    }
    
    .search-section input {
        width: 100%;
    }
    
    .pagination {
        overflow-x: auto;
    }
}