/* ===== 作者和关键词页面样式 ===== */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000;
}

.page-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 作者选择区域 */
.authors-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #000;
}

.authors-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000;
}

/* 专业类型筛选 */
.profession-filter {
    margin-bottom: 1.5rem;
}

.filter-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.profession-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #000;
    border-radius: 25px;
    background: white;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profession-btn:hover,
.profession-btn.active {
    border-color: #2563eb;
    background: #2563eb;
    color: white;
    transform: none;
}

.authors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.author-tag {
    max-width: 225px;
    background: white;
    border: 2px solid #000;
    border-radius: 20px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    position: relative;
}

.author-tag:hover {
    background: #2563eb;
    color: white;
    transform: none;
    border-color: #2563eb;
}

.author-name {
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}

.author-title {
    font-size: 0.75rem;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.author-stats {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #000;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* 关键词选择区域 */
.keywords-section {
    margin-bottom: 4rem;
}

.keywords-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000;
}

.keywords-controls {
    margin-bottom: 1.5rem;
}

.sort-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.sort-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #000;
    border-radius: 25px;
    background: white;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-btn:hover,
.sort-btn.active {
    border-color: #2563eb;
    background: #2563eb;
    color: white;
    transform: none;
}

.keyword-category {
    display: none;
    margin-bottom: 2rem;
}

.keyword-category.active {
    display: block;
}

.keyword-category h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000;
}

.keywords-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.keyword-item {
    padding: 0.6rem 1.2rem;
    background: white;
    border: 2px solid #000;
    border-radius: 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.keyword-item:hover {
    background: #2563eb;
    color: white;
    transform: none;
    border-color: #2563eb;
}

.keyword-item.size-large {
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
}

.keyword-item.size-medium {
    font-size: 1rem;
    padding: 0.7rem 1.3rem;
}

.keyword-item.size-small {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

.keyword-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #000;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* 交叉关联分析 */
.cross-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.cross-group {
    background: white;
    border: 2px solid #000;
    border-radius: 12px;
    padding: 1.5rem;
}

.cross-group-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cross-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cross-connection {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}
