/* 通用列表/详情页样式 */

.news-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  transition: var(--transition);
}

.news-card:hover {
  box-shadow: var(--shadow-hover);
}

.news-card .cover {
  width: 200px;
  height: 130px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-light), #e8eaf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
}

.news-card .info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-card h3 a {
  color: var(--text);
}

.news-card h3 a:hover {
  color: var(--primary);
}

.news-card .summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-card .meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

.api-card {
  padding: 24px;
}

.api-card .api-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.api-card .api-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.api-card h4 {
  font-size: 16px;
}

.api-card h4 a {
  color: var(--text);
}

.api-card h4 a:hover {
  color: var(--primary);
}

.api-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
  height: 42px;
  overflow: hidden;
}

.api-card .api-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.model-card {
  padding: 24px;
  position: relative;
}

.model-card .rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.model-card .rank-badge.top {
  background: var(--accent);
  color: #fff;
}

.model-card .model-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.model-card .model-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.model-card h4 {
  font-size: 17px;
  margin-bottom: 4px;
}

.model-card h4 a {
  color: var(--text);
}

.model-card .company {
  font-size: 13px;
  color: var(--text-muted);
}

.model-card .model-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
  height: 42px;
  overflow: hidden;
}

.model-card .model-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.major-card {
  padding: 24px;
}

.major-card .major-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.major-card h4 {
  font-size: 17px;
}

.major-card h4 a {
  color: var(--text);
}

.major-card h4 a:hover {
  color: var(--primary);
}

.major-card .degree {
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 10px;
  border-radius: 4px;
}

.major-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.major-card .major-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.tech-card {
  padding: 20px;
}

.tech-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.tech-card h4 a {
  color: var(--text);
}

.tech-card h4 a:hover {
  color: var(--primary);
}

.tech-card .summary {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
  height: 42px;
  overflow: hidden;
}

.tech-card .meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.detail-sidebar .related-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.detail-sidebar .related-item a {
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.detail-sidebar .related-item a:hover {
  color: var(--primary);
}

.major-detail-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0;
}

.info-block {
  background: var(--bg-section);
  border-radius: var(--radius);
  padding: 20px;
}

.info-block h4 {
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--primary);
}

.info-block ul {
  list-style: disc;
  padding-left: 20px;
}

.info-block li {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
}

.timeline-item .time {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.timeline-item .title {
  font-size: 14px;
}

.timeline-item .title a {
  color: var(--text);
}

.timeline-item .title a:hover {
  color: var(--primary);
}

.model-detail-header {
  display: flex;
  gap: 24px;
  padding: 30px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.model-detail-logo {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  flex-shrink: 0;
}

.model-detail-info h1 {
  font-size: 26px;
  margin-bottom: 8px;
}

.model-detail-info .company {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.model-detail-info .tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.model-detail-info .desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.model-detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* ========== Search Page ========== */
.search-page-form {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.search-page-form input {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
}

.search-page-form input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-light);
}

.search-type-tabs {
  margin-bottom: 24px;
}

.search-result-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.search-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  background: var(--bg-section);
  border-radius: var(--radius-lg);
}

.search-group {
  margin-bottom: 28px;
}

.search-group-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
}

.search-result-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.search-result-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

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

.search-result-item a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.search-result-item a:hover {
  color: var(--primary);
}

.search-result-item p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
