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

:root {
  --primary: #1e3a5f;
  --primary-light: #2e5a8a;
  --accent: #c9783e;
  --accent-light: #e8a86a;
  --bg: #f5f3ef;
  --bg-alt: #ebe7e1;
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.loading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  color: var(--text-light);
  font-size: 1.1rem;
  gap: 16px;
}

.loading::before {
  content: '';
  width: 36px;
  height: 36px;
  border: 3px solid var(--bg);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ==================== Navbar ==================== */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(26, 42, 74, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  gap: 16px;
}

.nav-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-brand:hover {
  color: var(--accent-light);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.92rem;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: var(--accent);
  font-weight: 600;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .nav-right { gap: 8px; }
  .login-btn { display: none; }
  .nav-toggle {
    display: flex !important;
    flex-shrink: 0;
  }
}

.login-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.login-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.user-badge {
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 5px;
}

.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
  flex-shrink: 0;
}

/* ==================== Hero ==================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: 95%;
  object-fit: contain;
  object-position: center;
  z-index: 0;
  filter: brightness(1.05) saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    rgba(8, 18, 36, 0.92) 0%,
    rgba(8, 18, 36, 0.62) 25%,
    rgba(8, 18, 36, 0.18) 55%,
    rgba(8, 18, 36, 0.05) 75%,
    rgba(8, 18, 36, 0.25) 93%,
    rgba(8, 18, 36, 0.40) 100%);
}

.hero-grid,
.hero-dots,
.hero-flow {
  position: relative;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 120, 62, 0.12) 0%, transparent 70%);
  top: -300px;
  right: -200px;
}

.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 168, 106, 0.08) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

.hero-dots {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
}

@keyframes floatDot {
  0%, 100% { transform: translateY(0); opacity: 0.15; }
  50% { transform: translateY(-20px); opacity: 0.3; }
}

.hero-content {
  text-align: left;
  color: var(--white);
  position: relative;
  z-index: 2;
  padding: 24px;
  max-width: 680px;
  margin-left: 5%;
}

.hero-content h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: 3px;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-content p {
  font-size: 1.15rem;
  opacity: 0.95;
  letter-spacing: 1px;
  max-width: 820px;
  margin: 12px 0 0 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65), 0 0 18px rgba(8, 18, 36, 0.45);
}

/* ==================== Page Header ==================== */

.page-header {
  background: linear-gradient(135deg, #1e3a5f 0%, #2a5080 40%, #3a6a9a 100%);
  padding: 120px 24px 60px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 120, 62, 0.1) 0%, transparent 70%);
  top: -150px;
  right: -100px;
}

.page-header .section-container h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-header .section-container p {
  opacity: 0.7;
  font-size: 1rem;
}

.back-link {
  display: inline-block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 16px;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--white);
}

/* ==================== Sections ==================== */

.section {
  padding: 80px 24px;
}

.section-alt {
  background: var(--bg-alt);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 48px;
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ==================== Research Cards ==================== */

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

.research-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.research-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border-color: var(--accent);
}

.research-card .icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.research-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.research-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ==================== Profile Cards ==================== */

.profiles-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  align-items: start;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.profile-card:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 28px rgba(0,0,0,0.1);
  border-color: var(--accent);
}

.profile-card--heguowei {
  grid-template-columns: 160px 1fr;
}

.profile-card--heguowei .profile-avatar {
  width: 160px;
  height: 210px;
}

.profile-card--heguowei .profile-avatar img {
  object-position: center 5%;
}

.profile-avatar {
  width: 130px;
  height: 130px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.profile-header h3 {
  font-size: 1.2rem;
  color: var(--primary);
}

.profile-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 0.72rem;
  padding: 2px 10px;
  border-radius: 10px;
  font-weight: 500;
}

.profile-card .title {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.contact-row {
  display: flex;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.prof-detail-header .contact-row {
  font-size: 1.05rem;
  color: var(--white);
  opacity: 0.9;
  margin-top: 12px;
}

.prof-detail-header .contact-row strong {
  color: var(--accent-light);
}

.bio-excerpt {
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-more {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
}

/* ==================== Professor Detail ==================== */

.prof-detail-header {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 8px;
}

.prof-detail-avatar {
  width: 160px;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
  border: 3px solid rgba(255,255,255,0.2);
}

.prof-detail-avatar--lg {
  width: 180px;
  height: 240px;
}

.prof-detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.prof-detail-avatar--lg img {
  object-position: center 5%;
}

.detail-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--bg);
  padding-bottom: 4px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  border-radius: 6px 6px 0 0;
  font-weight: 500;
}

.tab-btn:hover {
  color: var(--primary);
  background: var(--bg);
}

.tab-btn.active {
  color: var(--white);
  background: var(--primary);
}

.detail-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  line-height: 1.8;
}

/* ==================== Publications ==================== */

.pub-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.pub-controls input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.92rem;
  background: var(--white);
}

.pub-controls select {
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  background: var(--white);
}

.pub-controls input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(44, 74, 124, 0.1);
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pub-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 3px solid var(--accent);
}

.pub-item:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.pub-item .authors {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.pub-item .title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.pub-item .journal {
  color: var(--accent);
  font-size: 0.88rem;
}

.pub-item .year {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 12px;
  margin-top: 8px;
}

/* ==================== File Center ==================== */

.file-upload-area,
.file-browser,
.notice {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.file-upload-area h3,
.file-browser h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg);
}

.notice {
  text-align: center;
  padding: 48px;
  color: var(--text-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--bg);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(44, 74, 124, 0.1);
}

.btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.upload-progress {
  margin-top: 16px;
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: #ddd;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s;
}

.file-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.file-controls select {
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  background: var(--bg);
}

.file-group {
  margin-bottom: 24px;
}

.file-group h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 12px;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 6px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg);
  border-radius: 6px;
  margin-bottom: 6px;
  transition: var(--transition);
  gap: 12px;
}

.file-item:hover {
  background: var(--bg-alt);
}

.file-item .file-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.file-item .file-name {
  font-size: 0.92rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-item .file-meta {
  font-size: 0.8rem;
  color: var(--text-light);
}

.file-item .file-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.file-item .file-actions a,
.file-item .file-actions button {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}

.file-item .download-btn {
  background: var(--primary);
  color: var(--white);
}

.file-item .download-btn:hover {
  background: var(--primary-light);
}

.file-item .delete-btn {
  background: #e74c3c;
  color: var(--white);
}

.file-item .delete-btn:hover {
  background: #c0392b;
}

/* ==================== Modal ==================== */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 600px;
  width: 90%;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.login-modal {
  max-width: 400px;
}

.lightbox-modal {
  max-width: 90vw;
  width: 90vw;
  height: 85vh;
  max-height: 85vh;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-zoom-wrap {
  max-width: 100%;
  max-height: 85vh;
  overflow: hidden;
  border-radius: 8px;
  cursor: zoom-in;
  background: #fff;
}

.lightbox-zoom-wrap .lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  border-radius: 8px;
  transform-origin: center center;
  transition: transform 0.25s ease;
  will-change: transform;
}

.lightbox-zoom-wrap .lightbox-img.zoomed {
  transform: scale(var(--zoom, 1.5));
  cursor: zoom-out;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
  background: none;
  border: none;
}

.modal-close:hover {
  color: var(--text);
}

.modal-content h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 24px;
}

/* ==================== Footer ==================== */

.footer {
  text-align: center;
  padding: 32px;
  color: var(--text-light);
  font-size: 0.85rem;
  border-top: 1px solid #ddd;
}

/* ==================== Add Publication ==================== */

.add-pub-area {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  border: 2px dashed var(--accent-light);
}

.add-pub-area h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg);
}

.pub-del-btn {
  background: none;
  border: 1px solid #e74c3c;
  color: #e74c3c;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  margin-top: 8px;
  transition: var(--transition);
  margin-left: 8px;
}

.pub-del-btn:hover {
  background: #e74c3c;
  color: var(--white);
}

.pub-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.pub-tag {
  display: inline-block;
  background: var(--bg);
  color: var(--primary);
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.pub-tag:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.dir-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 6px;
  margin-top: 4px;
}

.dir-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--transition);
}

.dir-checkbox:hover {
  background: var(--bg);
}

.dir-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

/* ==================== Gallery ==================== */

.gallery-upload-area {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  border: 2px dashed var(--accent-light);
}

.gallery-upload-area h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: #000;
}

.gallery-item video {
  object-fit: contain;
  background: #111;
}

.gallery-item-info {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gallery-item-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-item-author {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 2px;
}

.gallery-item-meta {
  font-size: 0.78rem;
  color: var(--text-light);
}

.gallery-del-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(231, 76, 60, 0.9);
  color: var(--white);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  opacity: 0;
}

.gallery-item:hover .gallery-del-btn {
  opacity: 1;
}

.gallery-del-btn:hover {
  background: #c0392b;
  transform: scale(1.1);
}

.pub-year-group {
  margin-bottom: 32px;
}

.pub-year-more {
  display: inline-block;
  margin: 8px 0 18px 0;
  padding: 6px 14px;
  border: 1px dashed var(--accent);
  border-radius: 20px;
  color: var(--accent);
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}
.pub-year-more:hover {
  background: rgba(201, 120, 62, 0.08);
}
.pub-year-header {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  position: relative;
}

.pub-year-header::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.import-export-bar {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--bg);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.pub-edit-btn {
  background: none;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  margin-top: 8px;
  margin-left: 4px;
  transition: var(--transition);
}

.pub-edit-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* ==================== Search Highlight ==================== */

.pub-item .title mark {
  background: #fce96a;
  color: #1e3a5f;
  padding: 0 2px;
  border-radius: 2px;
}

.pub-item .title {
  cursor: pointer;
  transition: color var(--transition);
}

.pub-item .title:hover {
  color: var(--accent);
}

/* ==================== Detail Modal ==================== */

.pub-detail-field {
  margin-bottom: 16px;
}

.pub-detail-field .label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pub-detail-field .value {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
}

.pub-detail-bib {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 16px;
  border-radius: 8px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  margin-top: 12px;
  max-height: 200px;
  overflow-y: auto;
}

/* ==================== Pagination ==================== */

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

.pub-stats {
  font-size: 0.85rem;
  color: var(--text-light);
}

.pub-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pub-page-btn {
  background: var(--white);
  border: 1px solid #ddd;
  color: var(--text);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.pub-page-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.pub-page-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.pub-page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.pub-page-size {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.85rem;
  background: var(--white);
  margin-left: 8px;
}

/* ==================== Charts ==================== */

.pub-charts {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.pub-charts h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.chart-col h4 {
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 600;
}

.chart-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 0.82rem;
}

.chart-bar .label {
  width: 50px;
  text-align: right;
  color: var(--text-light);
  flex-shrink: 0;
}

.chart-bar .bar-track {
  flex: 1;
  height: 20px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}

.chart-bar .bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.chart-bar .count {
  width: 32px;
  font-size: 0.82rem;
  color: var(--text-light);
  flex-shrink: 0;
}

/* ==================== BibTeX Button ==================== */

.btn-bibtex {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-bibtex:hover {
  background: var(--accent);
  color: var(--white);
}

/* ==================== DOI Link ==================== */

.pub-doi {
  display: inline-block;
  font-size: 0.75rem;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  margin-left: 6px;
  transition: var(--transition);
}

.pub-doi:hover {
  background: var(--primary);
}

/* ==================== Member Section ==================== */

.members-section {
  margin-top: 48px;
}

.members-category {
  margin-bottom: 32px;
}

.members-category h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-light);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.member-card {
  background: var(--white);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: var(--transition);
}

.member-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.member-card .member-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
}

.member-card .member-title {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ==================== Members (Rich Cards & Preview Wall) ==================== */

.member-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.member-preview-card {
  background: var(--white);
  border-radius: 12px;
  padding: 18px 10px 14px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.04);
}

.member-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.member-preview-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  margin-top: 10px;
}

.member-preview-type {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 4px;
}

.member-preview-more {
  border: 2px dashed var(--accent-light);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 132px;
}

.member-avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 1.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 10px rgba(44,74,124,0.25);
  user-select: none;
}

.member-avatar-circle--lg {
  width: 96px;
  height: 96px;
  font-size: 2.2rem;
}

.member-preview-avatar--more {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--primary);
  font-size: 2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 2px 10px rgba(44,74,124,0.15);
  user-select: none;
}

.member-card--rich {
  text-align: center;
  padding: 20px 14px 14px;
}

.member-card--rich .member-avatar-circle {
  width: 64px;
  height: 64px;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.member-card--rich .member-name {
  margin-top: 6px;
}

.member-sub {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 6px;
  line-height: 1.5;
}

.member-sub--thesis {
  font-style: italic;
  color: #888;
}

.member-admin-btns {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.members-grid--rich {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

/* Member Detail */

.member-detail-head {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--accent-light);
  flex-wrap: wrap;
}

.member-detail-avatar .member-avatar-circle {
  width: 110px;
  height: 110px;
  font-size: 2.6rem;
}

.member-detail-headinfo {
  flex: 1;
  min-width: 240px;
}

.member-detail-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.member-detail-type {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 12px;
  border-radius: 20px;
}

.member-detail-title {
  color: var(--text-light);
  margin-top: 6px;
  font-size: 1.0rem;
}

.member-detail-line {
  margin-top: 8px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.6;
  word-break: break-all;
}

.member-detail-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  min-width: 64px;
  display: inline-block;
}

.member-detail-label--block {
  display: block;
  margin-bottom: 8px;
}

.member-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px 24px;
}

.member-info-item {
  background: var(--bg);
  border-radius: 10px;
  padding: 14px 16px;
  line-height: 1.7;
  font-size: 0.92rem;
}

.member-info-item--wide {
  grid-column: 1 / -1;
}

.member-info-item .member-detail-label {
  display: block;
  margin-bottom: 6px;
}

.member-edit-avatar-row {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.member-edit-avatar-row .member-avatar-circle {
  margin: 0;
}

/* ==================== Contact Section ==================== */

.contact-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-top: 48px;
}

.contact-section h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-section .contact-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-info-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-info-item .icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 8px;
}

.contact-info-item .info-label {
  font-size: 0.8rem;
  color: var(--text-light);
}

.contact-info-item .info-value {
  font-size: 0.92rem;
  color: var(--text);
}

.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  transition: var(--transition);
  background: var(--bg);
}

.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(44, 74, 124, 0.1);
}

/* ==================== Skeleton Loading ==================== */

.skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, var(--bg-alt) 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  height: 80px;
  margin-bottom: 12px;
}

.skeleton-chart {
  height: 24px;
  margin-bottom: 8px;
}

/* ==================== Professor Edit ==================== */

.prof-edit-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  line-height: 1.7;
  resize: vertical;
  min-height: 120px;
  background: var(--bg);
  transition: var(--transition);
}

.prof-edit-form textarea:focus,
.prof-edit-form input:focus,
.prof-edit-form select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(44, 74, 124, 0.1);
}

.prof-edit-form .form-group {
  margin-bottom: 20px;
}

.prof-edit-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.prof-edit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==================== Private Files ==================== */

.private-files-area {
  margin-top: 24px;
}

.private-files-area .file-item {
  background: var(--bg);
}

.private-upload-form {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.private-upload-form input[type="file"] {
  flex: 1;
  min-width: 150px;
  padding: 8px;
  font-size: 0.88rem;
}

.private-section-label {
  font-size: 0.85rem;
  color: #e74c3c;
  font-weight: 500;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #fde8e8;
  border-radius: 6px;
  display: inline-block;
}

/* ==================== Responsive ==================== */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--primary);
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .nav-brand {
    font-size: 0.85rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .page-header {
    padding: 100px 16px 40px;
  }

  .page-header .section-container h1 {
    font-size: 1.5rem;
  }

  .prof-detail-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-card {
    grid-template-columns: 100px 1fr;
    gap: 16px;
    padding: 16px 18px;
  }

  .profile-card--heguowei {
    grid-template-columns: 120px 1fr;
  }

  .profile-card--heguowei .profile-avatar {
    width: 120px;
    height: 160px;
  }

  .profile-card--heguowei .profile-avatar img {
    object-position: center 5%;
  }

  .profile-avatar {
    width: 100px;
    height: 100px;
    font-size: 1.6rem;
  }

  .profile-header h3 {
    font-size: 1rem;
  }

  .contact-row {
    flex-direction: column;
    gap: 4px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .file-controls {
    flex-direction: column;
  }

  .file-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .file-item .file-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .pub-controls {
    flex-direction: column;
  }

  .detail-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }

  .tab-btn {
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .detail-card {
    padding: 24px 20px;
  }

  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .section-title {
    text-align: center;
  }

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

  .chart-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .members-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .members-grid--rich {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .member-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 12px;
  }

  .member-detail-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .member-detail-headinfo {
    min-width: 100%;
  }

  .member-detail-name {
    justify-content: center;
  }

  .contact-section {
    padding: 24px 20px;
  }

  .pub-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-content {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.3rem !important;
    letter-spacing: 1px;
  }
}
@media (max-width: 480px) {
  .nav-brand {
    font-size: 0.75rem;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-content h1 {
    font-size: 1.4rem;
  }

  .hero-content p {
    font-size: 0.82rem;
  }

  .profile-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-card--heguowei {
    grid-template-columns: 1fr;
  }

  .profile-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }

  .profile-card--heguowei .profile-avatar {
    width: 120px;
    height: 160px;
    margin: 0 auto;
  }

  .profile-header {
    justify-content: center;
  }

  .contact-row {
    align-items: center;
  }

  .pub-item {
    padding: 16px 18px;
  }

  .pub-item .title {
    font-size: 0.92rem;
  }

  .pub-controls input,
  .pub-controls select {
    font-size: 0.85rem;
  }

  .detail-card {
    padding: 16px;
  }

  .chart-bar .label {
    width: 36px;
    font-size: 0.75rem;
  }

  .chart-bar .bar-track {
    height: 16px;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .pub-footer {
    gap: 8px;
  }

  .pub-page-btn {
    padding: 4px 10px;
    font-size: 0.8rem;
  }

  .pub-charts {
    padding: 16px;
  }

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

  .gallery-item img,
  .gallery-item video {
    height: 160px;
  }

  .members-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

/* ==================== 最新动态 ==================== */

.notice-section {
  background: var(--white);
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.notice-item {
  display: flex;
  gap: 20px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 18px 24px;
  cursor: pointer;
  border: 1px solid transparent;
  border-left: 4px solid var(--accent);
  transition: var(--transition);
}

.notice-item:hover {
  background: #fff;
  box-shadow: var(--shadow);
  border-left-color: var(--primary);
  transform: translateX(4px);
}

.notice-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 8px 12px;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  flex-shrink: 0;
  height: fit-content;
}

.notice-day {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.1;
}

.notice-month {
  font-size: 0.72rem;
  opacity: 0.85;
  margin-top: 2px;
}

.notice-body {
  flex: 1;
  min-width: 0;
}

.notice-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.notice-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  color: var(--white);
  flex-shrink: 0;
}

.notice-tag--notice { background: var(--accent); }
.notice-tag--paper { background: #2e5a8a; }
.notice-tag--honor { background: #9b6ab0; }
.notice-tag--news { background: #4a9aaa; }

.notice-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 200px;
}

@media (max-width: 768px) {
  .notice-item {
    padding: 14px 16px;
    gap: 14px;
  }
  .notice-title {
    min-width: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    word-break: break-word;
  }
  .notice-date {
    min-width: 48px;
    padding: 6px 10px;
  }
  .notice-day { font-size: 1.2rem; }
  .notice-head { gap: 8px; }
}

.notice-toggle {
  color: var(--text-light);
  font-size: 0.85rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.notice-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
  margin-top: 0;
}

.notice-content.open {
  max-height: 300px;
  opacity: 1;
  margin-top: 10px;
}

/* ==================== Hero 流体动效 ==================== */

.hero-flow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-flow-line {
  position: absolute;
  width: 200px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(232,168,106,0.6), transparent);
  animation: flowLine 8s linear infinite;
  opacity: 0;
}

@keyframes flowLine {
  0% { transform: translateX(-30vw) translateY(0) rotate(8deg); opacity: 0; }
  10% { opacity: 0.7; }
  60% { opacity: 0.7; }
  100% { transform: translateX(130vw) translateY(-40px) rotate(8deg); opacity: 0; }
}

/* 标题字体升级 */
.section-title {
  font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  letter-spacing: 2px;
}

.hero-content h1 {
  font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  letter-spacing: 6px;
}

/* ==================== Hero 增强（移动端适配） ==================== */

@media (max-width: 768px) {
.hero {
  min-height: 100vh;
  padding: 60px 24px 60px;
  align-items: center;
  justify-content: center;
}

.hero-video {
  object-fit: cover;
  object-position: center;
}

.hero-content {
  text-align: center;
  max-width: 100%;
  margin-left: 0;
}

.hero-overlay {
  background: linear-gradient(180deg,
    rgba(8, 18, 36, 0.85) 0%,
    rgba(8, 18, 36, 0.50) 25%,
    rgba(8, 18, 36, 0.20) 55%,
    rgba(8, 18, 36, 0.03) 85%,
    rgba(8, 18, 36, 0) 100%);
}

.hero-content p {
  margin: 12px auto 0 auto;
}

.hero-actions {
  justify-content: center;
}
}

.hero-grid {
  opacity: 0.5;
}

.hero-flow-line {
  opacity: 0;
  box-shadow: 0 0 12px rgba(232,168,106,0.4);
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn-hero {
  box-shadow: 0 4px 20px rgba(201,120,62,0.45);
  background: var(--accent);
  border: none;
  color: var(--white);
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(201,120,62,0.35);
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,120,62,0.45);
  background: #d9854d;
}

.btn-hero--ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.4);
  box-shadow: none;
}

.btn-hero--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.hero-scroll {
  position: absolute;
  bottom: 20px;
  right: 32px;
  left: auto;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 5;
  text-decoration: none;
}

.hero-scroll .scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.45);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
  background: rgba(255,255,255,0.05);
}

.hero-scroll .scroll-mouse span {
  width: 3px;
  height: 7px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: scrollHint 1.8s ease-in-out infinite;
}

.hero-scroll .scroll-text {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 3px;
  white-space: nowrap;
}

.hero-scroll span {
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: scrollHint 1.8s ease-in-out infinite;
}

@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.5rem !important;
    letter-spacing: 2px;
    word-break: keep-all;
    line-height: 1.35;
    padding: 0 12px;
  }
  .hero-content p {
    font-size: 0.82rem !important;
    padding: 0 16px;
    line-height: 1.6;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
  }
  .btn-hero {
    width: 100%;
    max-width: 280px;
    padding: 11px 20px;
    font-size: 0.9rem;
  }
  .hero-scroll { display: none; }
}

/* ==================== 最新动态双栏 ==================== */
.dual-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  max-width: 1100px;
  margin: 0 auto;
}

.dual-col {
  min-width: 0;
}

.dual-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(30,58,95,0.12);
}

.dual-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.dual-dot--accent {
  background: var(--accent);
}

.notice-list--home .notice-item {
  padding: 14px 12px;
}

.latest-pubs {
  display: flex;
  flex-direction: column;
}

.paper-item {
  display: flex;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px dashed rgba(30,58,95,0.12);
  transition: background 0.2s ease;
}

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

.paper-item:hover {
  background: rgba(201,120,62,0.07);
}

.paper-year {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(201,120,62,0.14);
  padding: 2px 12px;
  border-radius: 12px;
  height: fit-content;
  margin-top: 2px;
}

.paper-info {
  min-width: 0;
}

.paper-title {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.paper-meta {
  font-size: 0.78rem;
  color: rgba(51,51,51,0.55);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.paper-empty {
  color: rgba(51,51,51,0.4);
  font-size: 0.9rem;
  padding: 14px;
}

@media (max-width: 768px) {
  .dual-column {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .paper-title { font-size: 0.88rem; }
}

/* ==================== 画廊分区 Tab ==================== */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.gallery-tab {
  background: #fff;
  border: 2px solid rgba(30,58,95,0.15);
  color: var(--primary);
  padding: 10px 28px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.gallery-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.gallery-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ==================== 加入我们 ==================== */
.join-tabs {
  margin-top: 8px;
}

.join-post-area {
  background: #fff;
  border: 1px solid rgba(30,58,95,0.1);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 2px 12px rgba(30,58,95,0.06);
}

.join-post-area h3 {
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 1.05rem;
}

.join-post-area textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
}

.join-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.join-card {
  background: #fff;
  border: 1px solid rgba(30,58,95,0.1);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(30,58,95,0.06);
  transition: box-shadow 0.25s ease;
}

.join-card:hover {
  box-shadow: 0 6px 24px rgba(30,58,95,0.1);
}

.join-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.join-card-head h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin: 0;
  line-height: 1.5;
}

.join-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 14px 0;
  font-size: 0.85rem;
  color: rgba(51,51,51,0.7);
}

.join-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.join-card-content {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.8;
  border-top: 1px dashed rgba(30,58,95,0.12);
  padding-top: 14px;
  white-space: pre-wrap;
}

@media (max-width: 768px) {
  .gallery-tab { padding: 8px 18px; font-size: 0.88rem; }
  .join-card { padding: 18px; }
  .join-card-meta { gap: 10px; }
}

/* ==================== 画廊 PDF 壁报卡片 ==================== */
.gallery-pdf {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #f8f6f2 0%, #efeae2 100%);
  border: 1px solid rgba(30,58,95,0.08);
  text-decoration: none;
  transition: all 0.25s ease;
}

.gallery-pdf:hover {
  background: linear-gradient(160deg, #f3efe8 0%, #e8e1d5 100%);
  border-color: var(--accent);
}

.gallery-pdf-icon {
  font-size: 3rem;
  filter: drop-shadow(0 4px 10px rgba(201,120,62,0.25));
}

.gallery-pdf-hint {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 1px;
}

.gallery-grid--poster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.gallery-grid--poster .gallery-item img {
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  background: #fff;
}

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

/* 画廊图片 hover 放大提示 */
.gallery-item img {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item:hover img {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}


/* ============ 成员主页 tab 增强（导师式页面） ============ */

.member-file-list {
  display: flex; flex-direction: column; gap: 8px;
}
.member-file-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--white);
  border: 1px solid #e5e0d8; border-radius: 8px;
}
.member-visual-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.member-visual-item {
  background: var(--white); border: 1px solid #e5e0d8;
  border-radius: 10px; padding: 10px; text-align: center;
}
.member-visual-name {
  font-size: 0.82rem; color: var(--text-light);
  margin-top: 6px; word-break: break-all;
}
.member-upload-area {
  background: var(--bg);
}
