* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary-color: #64748b;
  --accent-color: #06b6d4;
  --success-color: #10b981;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --logo-blue: #1e3a8a;
  --logo-blue-sub: #1e40af;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  font-size: 0.9rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Navigation */
header {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  flex: 1;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-link:hover .logo-text,
.logo-link:hover .logo-subtext {
  color: var(--primary-color);
}

@keyframes logo-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.logo-image {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  border-radius: var(--radius-sm);
  animation: logo-rotate 2s ease-out forwards;
}

.logo-content {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--logo-blue);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.logo-subtext {
  font-size: 0.7rem;
  color: var(--logo-blue-sub);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
  background-color: rgba(37, 99, 235, 0.05);
}

.nav-links a.active {
  color: white;
  background-color: var(--primary-color);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-block;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.nav-dropdown-toggle:hover {
  color: var(--primary-color);
  background-color: rgba(37, 99, 235, 0.05);
}

.nav-dropdown-toggle.active {
  color: white;
  background-color: var(--primary-color);
}

.nav-dropdown-toggle.active:hover {
  color: white;
  background-color: var(--primary-color);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 7.5rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.35rem 0;
  z-index: 200;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 0.5rem;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.45rem 0.85rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.8rem;
  border-radius: 0;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  color: var(--primary-color);
  background-color: rgba(37, 99, 235, 0.05);
}

.nav-dropdown-menu a.active {
  color: var(--primary-color);
  background-color: rgba(37, 99, 235, 0.08);
}

/* Content Section */
.content-section {
  padding: 2rem 0;
}

.content-header {
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.content-block {
  background-color: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.content-block h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  line-height: 1.3;
}

.content-block h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.5rem 0 0.25rem 0;
  color: var(--primary-color);
  padding-left: 0.35rem;
  border-left: 3px solid var(--primary-color);
  line-height: 1.3;
}

.content-block p {
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  text-align: justify;
  text-indent: 2em;
}

.content-block ul {
  list-style: none;
  padding: 0;
}

.content-block li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.content-block li:last-child {
  border-bottom: none;
}

.content-block li::before {
  content: '✓';
  width: 1.1rem;
  height: 1.1rem;
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
}

/* Timeline Section */
.timeline-section {
  margin-top: 0;
}

.timeline-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  line-height: 1.3;
}

.timeline-container {
  position: relative;
  padding: 0.75rem 0 0.5rem 0;
}

.timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0;
  margin: 0;
}

.timeline-line {
  position: absolute;
  top: 17px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  flex: 1;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: transparent;
  border: 2px solid var(--border-color);
  transition: all 0.2s ease;
  z-index: 2;
}

.timeline-item.completed .timeline-dot {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  z-index: 4;
}

.timeline-content {
  margin-top: 0.5rem;
  text-align: center;
}

/* Figure Container */
.figure-container {
  margin: 1rem 0;
  text-align: center;
}

.project-figure {
  max-width: 60%;
  height: auto;
}

.timeline-content h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.timeline-date {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

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

.news-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.4rem;
}

.content-block .news-content {
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.6;
  flex: 1;
  text-indent: 0;
  margin-bottom: 0;
  text-align: left;
}

.news-thumb {
  width: 100%;
  margin-top: 0.5rem;
  border-radius: var(--radius-sm);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
}

/* Research Highlights */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.75rem;
}

.highlight-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  height: 120px;
}

.highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.highlight-title {
  flex: 4;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  padding: 0.6rem;
  padding-top: 1.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  position: relative;
  text-align: center;
}

.highlight-title::before {
  content: "发明专利";
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.6rem;
  padding: 0.15rem 0.3rem;
  font-weight: 500;
}

.highlight-meta {
  flex: 1;
  font-size: 0.7rem;
  color: var(--text-muted);
  background-color: var(--bg-tertiary);
  padding: 0.4rem 0.6rem;
  display: flex;
  align-items: center;
}

/* Stats Section */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--border-color);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Footer */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  margin-top: 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-section h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.footer-brand h4 {
  color: var(--logo-blue);
  margin-bottom: 0.25rem;
}

.footer-brand-sub {
  font-size: 0.7rem;
  color: var(--logo-blue-sub);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  column-gap: 2rem;
  row-gap: 0.35rem;
  list-style: none;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 0;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

/* Paper Gallery */
.paper-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.75rem;
}

.paper-item {
  position: relative;
  display: block;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.paper-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.paper-cover-container {
  position: relative;
}

.paper-cover {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.paper-label {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.6rem;
  padding: 0.15rem 0.3rem;
  font-weight: 500;
  z-index: 2;
}

.paper-info {
  padding: 0.5rem;
  background-color: var(--bg-tertiary);
  height: 5rem;
  display: flex;
  flex-direction: column;
}

.paper-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.paper-venue {
  font-size: 0.7rem;
  color: var(--primary-color);
}

/* Card Link Overlay */
.card-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  cursor: pointer;
  z-index: 10;
}

/* Standards Grid */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.standard-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  height: 120px;
}

.standard-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.standard-title {
  flex: 4;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  padding: 0.6rem;
  padding-top: 1.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  position: relative;
  text-align: center;
}

.standard-title::before {
  content: "技术标准";
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.6rem;
  padding: 0.15rem 0.3rem;
  font-weight: 500;
}

.standard-meta {
  flex: 1;
  font-size: 0.7rem;
  color: var(--text-muted);
  background-color: var(--bg-tertiary);
  padding: 0.4rem 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}


}

/* Talent Grid */
.talent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.talent-grid + .paper-gallery {
  margin-top: 1rem;
}

.talent-card {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent-color);
  transition: all 0.2s ease;
}

.talent-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.talent-icon {
  font-size: 1.5rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.talent-content h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.talent-content p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Team Page */
.team-unit {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.25rem;
  background-color: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.team-unit-logo {
  width: 180px;
  max-height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.team-unit-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.team-unit-content p {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin: 0;
}

.team-unit-content p + p {
  margin-top: 0.75rem;
}

.team-unit-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  color: white;
  background-color: var(--primary-color);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.team-participants {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.team-subsection-title {
  margin-top: 1.5rem;
}

.team-page-section,
.page-section {
  scroll-margin-top: 5rem;
}

.team-page-section:first-of-type {
  margin-top: 0.5rem;
}

.innovation-category {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.innovation-page .content-block > h3 {
  color: var(--primary-color);
  background-color: rgba(37, 99, 235, 0.08);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border-bottom: none;
  display: block;
  margin: -0.25rem -0.25rem 0.75rem;
}

.page-section + .page-section {
  margin-top: 0.5rem;
}

.team-unit-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 1rem 0 0.75rem;
  padding-left: 0.35rem;
  border-left: 3px solid var(--primary-color);
}

.team-participants-single {
  grid-template-columns: 1fr;
}

.team-participant {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  background-color: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.team-participant.team-leader {
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
}

.team-participant-logo {
  height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.team-participant h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.team-participant p {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin: 0;
}

.team-participant p + p {
  margin-top: 0.75rem;
}

.team-leader-photo {
  width: 120px;
  height: 160px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.team-leader-content {
  flex: 1;
  min-width: 0;
}

.team-leader-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.team-leader-content h4 a {
  color: inherit;
  text-decoration: none;
}

.team-leader-content h4 a:hover {
  color: var(--primary-color);
}

.team-participants-leaders {
  grid-template-columns: 1fr;
}

.team-student-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}

.team-student-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.team-student-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.team-student-name {
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 640px) {
  .team-unit {
    flex-direction: column;
    gap: 1rem;
  }

  .team-unit-logo {
    width: 100%;
    max-height: 60px;
  }

  .team-participant.team-leader {
    flex-direction: column;
    align-items: center;
  }

  .team-leader-photo {
    width: 100px;
    height: 133px;
  }
}

.footer-section li {
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.footer-section a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .logo {
    text-align: center;
  }

  .nav-links {
    gap: 1rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .timeline-content h4 {
    font-size: 0.65rem;
  }

  .timeline-date {
    font-size: 0.55rem;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    gap: 0.5rem;
  }

  .nav-links a {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
  }

  .nav-dropdown-toggle {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
  }

  .nav-dropdown-menu {
    left: auto;
    right: 0;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* Prototype System */
html:has(body.proto-page) {
  scroll-behavior: smooth;
}

.proto-page {
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.proto-page header {
  position: sticky;
  top: 0;
  flex-shrink: 0;
  z-index: 100;
}

.proto-topology {
  height: calc(100dvh - var(--proto-header-h, 4.75rem));
  max-height: calc(100dvh - var(--proto-header-h, 4.75rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.proto-topology > .container.content-section {
  flex: 1;
  min-height: 0;
  height: 100%;
  padding: 1rem 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.proto-topology > .proto-content-section {
  flex: 1;
  min-height: 0;
}

.proto-topology .proto-body {
  flex: 1;
  min-height: 0;
  margin-bottom: 0;
}

.proto-results {
  flex: none;
}

.proto-results-body {
  overflow: visible;
}

.proto-content-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

#results {
  scroll-margin-top: 5rem;
}

#topology {
  scroll-margin-top: 5rem;
}

.proto-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.proto-dashboard {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(13rem, 1fr) minmax(0, 2fr) minmax(13rem, 1fr);
  gap: 0.75rem;
  min-height: 0;
}

.proto-panel {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.proto-panel h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.proto-badge {
  font-size: 0.65rem;
  color: var(--primary-color);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.proto-left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
}

.proto-traffic-chart {
  flex: 1;
  min-height: 6rem;
  position: relative;
}

.proto-traffic-chart svg {
  width: 100%;
  height: 100%;
}

.proto-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.proto-stat-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  text-align: center;
}

.proto-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.proto-stat-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.proto-top5-list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.proto-top5-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.7rem;
}

.proto-top5-rank {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.proto-top5-name {
  width: 2.5rem;
  flex-shrink: 0;
  color: var(--text-primary);
}

.proto-top5-spark {
  flex: 1;
  height: 1.5rem;
}

.proto-top5-spark svg {
  width: 100%;
  height: 100%;
}

.proto-top5-val {
  width: 3rem;
  text-align: right;
  color: var(--success-color);
  font-weight: 600;
}

.proto-center {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.proto-map-wrap {
  flex: 1;
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.proto-body .proto-map-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  padding: 0.6rem 0.75rem 0.4rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-primary);
  flex-shrink: 0;
  margin: 0;
  line-height: 1.4;
  display: block;
}

.proto-map-canvas {
  flex: 1;
  min-height: 0;
  position: relative;
}

.proto-map-canvas svg,
.proto-map-wrap > svg {
  width: 100%;
  height: 100%;
}

.proto-legend {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  font-size: 0.65rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.proto-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.proto-legend-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.proto-legend-line {
  width: 1.5rem;
  height: 2px;
}

.proto-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
}

.proto-node-detail {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.proto-node-detail #node-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.proto-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.75rem;
}

.proto-detail-label {
  color: var(--text-secondary);
}

.proto-detail-value {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  max-width: 60%;
}

.proto-node-image {
  width: 100%;
  flex: 1;
  min-height: 9rem;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
  border: 1px solid var(--border-color);
}

.proto-link-info {
  font-size: 0.7rem;
  color: var(--text-secondary);
  padding: 0.5rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.proto-results-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.proto-result-item {
  flex-shrink: 0;
}

.proto-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.proto-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  background: var(--bg-primary);
}

.proto-data-table th,
.proto-data-table td {
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.5rem;
  text-align: center;
  vertical-align: middle;
}

.proto-data-table thead th {
  background: var(--bg-tertiary);
  font-weight: 600;
  color: var(--text-primary);
}

.proto-data-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
}

.proto-data-table .proto-row-highlight {
  background: rgba(37, 99, 235, 0.08);
}

.proto-data-table .proto-row-ours {
  background: rgba(16, 185, 129, 0.1);
  font-weight: 600;
}

.proto-data-table .proto-row-ours td:first-child {
  color: var(--primary-color);
}

@media (max-width: 1024px) {
  .proto-dashboard {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    overflow-y: auto;
  }

  .proto-left {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .proto-left .proto-panel {
    flex: 1;
    min-width: 14rem;
  }

  .proto-map-wrap {
    min-height: 16rem;
  }
}

@media (max-width: 768px) {
  .proto-left {
    flex-direction: column;
  }
}
