:root {
  --ustc-blue: #003d7d;
  --ustc-blue-light: #1565c0;
  --ustc-blue-lighter: #1e88e5;
  --ustc-gold: #c5a028;
  --bg-light: #f5f8fc;
  --text-primary: #333;
  --text-secondary: #616161;
  --border-color: #e0e6ed;
  --card-shadow: 0 2px 12px rgba(0, 61, 125, 0.08);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text-primary);
  background: var(--bg-light);
  line-height: 1.8;
  font-size: 15px;
}

a {
  color: var(--ustc-blue-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--ustc-blue);
}

.site-header {
  background: linear-gradient(135deg, var(--ustc-blue) 0%, var(--ustc-blue-light) 100%);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.logo-text h1 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.logo-text p {
  font-size: 12px;
  opacity: 0.85;
}

.banner {
  position: relative;
  height: clamp(180px, 20vw, 240px);
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 46, 105, 0.84) 0%,
    rgba(0, 46, 105, 0.55) 45%,
    rgba(0, 46, 105, 0.12) 75%,
    rgba(0, 46, 105, 0.03) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 calc((100% - 1200px) / 2 + 24px);
  color: #fff;
  text-align: left;
}

.banner-overlay h2 {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Source Han Serif", "Songti SC", "SimSun", serif;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(0, 20, 60, 0.3);
  max-width: 680px;
  font-size: clamp(24px, 2.8vw, 38px);
}

.hero-line1 {
  display: block;
}

.hero-line2 {
  display: block;
}

.hero-accent {
  width: 48px;
  height: 3px;
  background: var(--ustc-gold);
  margin-top: 12px;
  border-radius: 2px;
}

.hero-subtitle {
  margin-top: 10px;
  font-size: clamp(12px, 1.3vw, 16px);
  font-weight: 400;
  opacity: 0.85;
  letter-spacing: 0.3px;
}

.hero-meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: clamp(12px, 1.2vw, 15px);
  color: rgba(255, 255, 255, 0.85);
}

.hero-meta-item svg {
  color: var(--ustc-gold);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.hero-meta-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.35);
  margin: 0 4px;
}

.container {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}

.banner + .container {
  margin-top: 28px;
}

.sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
}

.sidebar-section {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.sidebar-section h3 {
  background: var(--ustc-blue);
  color: #fff;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
}

.sidebar-section ul {
  list-style: none;
}

.sidebar-section li {
  border-bottom: 1px solid var(--border-color);
}

.sidebar-section li:last-child {
  border-bottom: none;
}

.sidebar-section li a {
  display: block;
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s;
}

.sidebar-section li a:hover,
.sidebar-section li a.active {
  background: #edf5ff;
  color: var(--ustc-blue-light);
  padding-left: 20px;
}

.quick-info {
  padding: 12px 16px;
}

.quick-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.quick-info strong {
  display: inline-block;
  color: var(--ustc-blue);
  margin-right: 8px;
  font-size: 12px;
}

.content {
  min-width: 0;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding: 8px 0;
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--ustc-blue-light);
}

.info-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  margin-bottom: 12px;
  overflow: hidden;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #edf5ff 0%, #f8fbff 100%);
  border-bottom: 1px solid var(--border-color);
  font-size: 17px;
  font-weight: 600;
  color: var(--ustc-blue);
}

.section-title .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--ustc-blue);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid var(--ustc-gold);
}

.info-grid {
  padding: 14px 20px;
}

.info-item {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 14px;
  color: var(--text-secondary);
}

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

.info-item .label {
  color: var(--ustc-blue);
  font-weight: 600;
}

.card-body {
  padding: 14px 20px 10px;
}

.card-body p {
  margin-bottom: 12px;
  color: var(--text-secondary);
  text-align: justify;
}

.content-img {
  width: 100%;
  max-width: 100%;
  border-radius: 6px;
  margin: 16px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.schedule-img {
  border-radius: 12px;
}

.course-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: 15px;
  border: 1px solid #4a6fa5;
}

.course-table th,
.course-table td {
  border: 1px solid #4a6fa5;
  padding: 14px 16px;
  text-align: center;
  vertical-align: middle;
}

.course-table th {
  background: #d6e4f0;
  font-size: 16px;
  font-weight: 700;
  color: #1a3a5c;
}

.course-table th:first-child {
  width: 54%;
}

.course-table tbody tr:nth-child(odd) {
  background: #edf4fb;
}

.course-table tbody tr:nth-child(even) {
  background: #f6faff;
}

.course-table td {
  line-height: 1.6;
  color: var(--text-primary);
}

.speaker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
}

.speaker-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 26px 14px;
  box-shadow: 0 1px 8px rgba(0, 40, 100, 0.04);
  border: 1px solid #edf2f7;
}

.speaker-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.speaker-avatar {
  width: 102px;
  height: 102px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e4ecf4;
  flex-shrink: 0;
}

.speaker-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.35;
}

.speaker-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

.speaker-role {
  font-size: 13px;
  color: #6b8db5;
  font-weight: 400;
  margin: 0;
}

.speaker-inst {
  font-size: 12.5px;
  color: #8a9bb0;
  margin: 0;
}

.speaker-talk-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ustc-blue);
  margin-bottom: 16px;
  line-height: 1.4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.speaker-section {
  margin-bottom: 8px;
}

.speaker-section:last-child {
  margin-bottom: 0;
}

.speaker-section-label {
  font-size: 11px;
  font-weight: 600;
  color: #7a9ec0;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 5px;
  padding-bottom: 3px;
  border-bottom: 1px solid #edf2f7;
}

.speaker-text {
  font-size: 13.5px;
  line-height: 1.75;
  color: #404040;
  text-align: justify;
  margin: 0 !important;
}

.qrcode-area {
  text-align: center;
  margin: 16px 0;
}

.qrcode {
  width: 160px;
  height: 160px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.info-list {
  padding-left: 20px;
  margin: 12px 0;
}

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

.info-list.numbered {
  list-style: decimal;
}

.note {
  font-size: 12px;
  color: #999;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.hotel-card {
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(25, 118, 210, 0.05) 0%, rgba(30, 136, 229, 0.05) 100%);
  border-radius: 12px;
  border: 1px solid rgba(42, 165, 245, 0.2);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hotel-info {
  flex: 1;
}

.hotel-info h4 {
  font-size: 15px;
  color: var(--ustc-blue);
  margin-bottom: 6px;
}

.hotel-name {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.hotel-price {
  font-size: 13px;
  color: var(--text-secondary);
}

.hotel-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(42, 165, 245, 0.3);
}

.map-container {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid var(--border-color);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.site-footer {
  background: var(--ustc-blue);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 24px;
  margin-top: 40px;
}

.footer-inner p {
  font-size: 13px;
  margin-bottom: 4px;
}

.mobile-nav {
  display: none;
}

.hamburger {
  display: none;
}

.mobile-dropdown {
  display: none;
}

.schedule-topics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.topic-item {
  padding: 16px;
  background: var(--bg-light);
  border-radius: 8px;
  border-left: 3px solid var(--ustc-blue-light);
}

.topic-header {
  font-weight: 600;
  color: var(--ustc-blue);
  margin-bottom: 6px;
  font-size: 14px;
}

.topic-item p {
  font-size: 13px;
  margin-bottom: 0;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.schedule-table th {
  background: var(--ustc-blue);
  color: #fff;
  padding: 10px 16px;
  text-align: center;
  font-weight: 500;
}

.schedule-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
}

.schedule-table tr:hover td {
  background: #f8fbff;
}

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

.contact-item {
  padding: 16px;
  background: var(--bg-light);
  border-radius: 8px;
}

.contact-item h4 {
  color: var(--ustc-blue);
  margin-bottom: 8px;
  font-size: 15px;
}

.contact-item p {
  font-size: 14px;
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .header-inner {
    padding: 10px 16px;
  }

  .logo {
    width: 36px;
    height: 36px;
  }

  .logo-text h1 {
    font-size: 14px;
  }

  .logo-text p {
    font-size: 10px;
  }

  .banner {
    height: clamp(140px, 32vw, 180px);
  }

  .banner-overlay {
    padding: 0 16px;
  }

  .hero-accent {
    width: 36px;
    height: 2.5px;
    margin-top: 8px;
  }

  .hero-subtitle {
    font-size: 12px;
    margin-top: 8px;
  }

  .hero-meta {
    margin-top: 8px;
    gap: 4px;
  }

  .hero-meta-item {
    font-size: 11px;
  }

  .hero-meta-item svg {
    width: 12px;
    height: 12px;
  }

  .hero-meta-sep {
    height: 10px;
  }

  .container {
    grid-template-columns: 1fr;
    padding: 0 16px;
    margin: 16px auto;
    gap: 16px;
  }

  .sidebar {
    display: none;
  }

  .content {
    padding-bottom: 24px;
  }

  .mobile-nav {
    display: none;
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: auto;
    cursor: pointer;
    border: none;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
  }

  .hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    position: relative;
  }

  .hamburger span::before,
  .hamburger span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: #fff;
  }

  .hamburger span::before { top: -6px; }
  .hamburger span::after { top: 6px; }

  .mobile-dropdown {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 99;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-bottom: 2px solid var(--ustc-blue);
  }

  .mobile-dropdown.open {
    display: block;
  }

  .mobile-dropdown a {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-dropdown a:last-child {
    border-bottom: none;
  }

  .mobile-dropdown a.active {
    color: var(--ustc-blue);
    font-weight: 500;
    background: #edf5ff;
  }

  .sidebar-section {
    margin-bottom: 0;
  }

  .sidebar-section h3 {
    padding: 10px 14px;
    font-size: 14px;
  }

  .sidebar-section li a {
    padding: 9px 14px;
    font-size: 13px;
  }

  .quick-info {
    padding: 10px 14px;
  }

  .info-card {
    margin-bottom: 14px;
    border-radius: 6px;
  }

  .section-title {
    padding: 12px 16px;
    font-size: 15px;
    gap: 8px;
  }

  .section-title .num {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .info-grid {
    padding: 14px 16px;
  }

  .info-item {
    font-size: 13px;
    padding: 7px 0;
  }

  .card-body {
    padding: 14px 16px;
  }

  .card-body p {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .info-list {
    padding-left: 16px;
  }

  .info-list li {
    font-size: 13px;
  }

  .qrcode {
    width: 130px;
    height: 130px;
  }

  .hotel-card {
    flex-direction: column;
    text-align: center;
    padding: 14px;
  }

  .hotel-img {
    width: 56px;
    height: 56px;
  }

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

  .contact-item {
    padding: 12px;
  }

  .site-footer {
    padding: 20px 16px;
    margin-top: 24px;
  }

  .footer-inner p {
    font-size: 11px;
  }

  .breadcrumb {
    font-size: 12px;
    margin-bottom: 12px;
  }
}
