:root {
  --primary-color: #007AFF;
  --secondary-color: #34C759;
  --dark-color: #1C1C1E;
  --light-color: #F2F2F7;
  --gray-color: #8E8E93;
  --accent-color: #FF9500;
  --border-radius: 18px;
  --box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --backdrop-filter: blur(25px);
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  min-height: 100%;
  width: 100%;
}

html {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  color: var(--dark-color);
  background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
  min-height: 100vh;
  padding: 40px 15px !important;
  margin: 0;
  line-height: 1.6;
  overflow-x: hidden;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

#main {
  flex: 1;
  padding: 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#main.container-fluid {
  padding: 0 !important;
  margin: 0 !important;
}

.row.justify-content-center {
  margin: 0 !important;
  padding: 0 !important;
}

.col-12.col-lg-10.col-xl-8 {
  padding: 0 !important;
}

.profile-card {
  margin-top: 0 !important;
  margin-bottom: 15px;
}

.content-navigation {
  margin-bottom: 15px;
}

.content-card {
  transform: translateY(0);
  margin-bottom: 15px;
}

.footer-apple-style {
  margin-top: 10px;
  margin-bottom: 0 !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* 头部名片区域 */
.profile-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: var(--backdrop-filter);
  -webkit-backdrop-filter: var(--backdrop-filter);
  border-radius: var(--border-radius);
  padding: 30px;
  margin: 20px 0 20px 0;
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
  animation: fadeInUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
  transform: rotate(30deg);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.profile-card:hover::before {
  opacity: 1;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

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

.avatar-container {
  flex-shrink: 0;
}

.avatar {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background-image: url(../images/5e5638551f8f7.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 3px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  animation: pulse 2s infinite;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.avatar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3);
}

.avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 5px;
  background: linear-gradient(45deg, #007AFF, #34C759);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: block;
  line-height: 1.2;
  margin: 0;
}

.profile-slogan {
  font-size: 15px;
  color: var(--gray-color);
  margin: 5px 0 0 0;
  font-style: italic;
  min-height: 20px;
  display: block;
  position: relative;
}

.profile-slogan::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 16px;
  background-color: var(--primary-color);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s infinite;
}

.profile-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.profile-actions .btn {
  border-radius: 50px;
  padding: 10px 22px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-size: 14px;
  min-width: auto;
  margin: 0;
}

.profile-actions .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.5s ease;
  z-index: -1;
}

.profile-actions .btn:hover::before {
  width: 100%;
}

.profile-actions .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.profile-actions .btn:active {
  transform: translateY(1px);
}

.profile-actions .btn-primary {
  background: linear-gradient(45deg, var(--primary-color), #0a84ff);
  color: white;
}

.profile-actions .btn-secondary {
  background: linear-gradient(45deg, #8e8e93, #a9a9a9);
  color: white;
}

.profile-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.profile-details {
  flex: 1;
  min-width: 0;
}

.profile-desc, .profile-edu {
  font-size: 14px;
  color: var(--gray-color);
  margin: 0 0 5px 0;
  line-height: 1.4;
  font-weight: 500;
}

.profile-desc i, .profile-edu i {
  margin-right: 8px;
  color: var(--primary-color);
  width: 16px;
  text-align: center;
}

.social-section {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.social-text {
  color: var(--gray-color);
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 500;
}

.profile-social {
  display: flex;
  gap: 15px;
  margin-left: auto;
  flex-shrink: 0;
  align-self: center;
}

.profile-social a {
  color: var(--dark-color);
  font-size: 18px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-decoration: none;
  border: none;
}

.profile-social a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--primary-color);
  transition: width 0.4s ease;
  z-index: -1;
}

.profile-social a:hover::before {
  width: 100%;
}

.profile-social a:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.profile-social a:focus,
.profile-social a:active,
.profile-social a:visited {
  text-decoration: none;
  outline: none;
}

/* 内容导航栏 */
.content-navigation {
  margin-bottom: 20px;
  animation: fadeIn 0.8s ease-out 0.3s both;
}

.nav-tabs {
  border: none;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.nav-tabs .nav-link {
  border: none;
  border-radius: 50px;
  padding: 12px 25px;
  margin: 0;
  color: var(--gray-color);
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: var(--backdrop-filter);
  -webkit-backdrop-filter: var(--backdrop-filter);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  z-index: 1;
  overflow: hidden;
  font-size: 15px;
}

.nav-tabs .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), #0a84ff);
  transition: width 0.5s ease;
  z-index: -1;
}

.nav-tabs .nav-link:hover::before {
  width: 100%;
}

.nav-tabs .nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.nav-tabs .nav-link.active {
  background: linear-gradient(45deg, var(--primary-color), #0a84ff);
  color: white;
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.25);
}

.nav-tabs .nav-link.active::before {
  display: none;
}

/* 内容区域 */
.content-section {
  margin-bottom: 20px;
}

.content-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: var(--backdrop-filter);
  -webkit-backdrop-filter: var(--backdrop-filter);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: auto;
}

.content-card .content-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
}

.content-card .content-body {
  flex: 1;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.content-card h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 25px;
  color: var(--dark-color);
  position: relative;
  padding-bottom: 15px;
  display: inline-block;
}

.content-card h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #0a84ff);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.content-card h2:hover::after {
  width: 100px;
}

.content-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 25px 0 15px 0;
  color: var(--dark-color);
  position: relative;
  padding-left: 15px;
}

.content-card h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 6px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 3px;
}

.content-card p {
  margin-bottom: 15px;
  color: #333;
  line-height: 1.8;
}

.content-card ul {
  padding-left: 25px;
  list-style: none;
}

.content-card li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 15px;
}

.content-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
  transition: var(--transition);
}

.introduce-list {
  margin-bottom: 20px;
}

.introduce-list li {
  margin-bottom: 15px;
  padding-left: 20px;
  position: relative;
  transition: var(--transition);
}

.introduce-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
  transition: var(--transition);
}

.introduce-list li:hover::before {
  transform: scale(1.3);
  background: #0a84ff;
}

/* 个人介绍页面的引言框样式 */
.content-body blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 12px 18px;
  margin: 10px 0 0 0;
  background: linear-gradient(90deg, rgba(0, 122, 255, 0.08), transparent);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  clear: both;
}

.content-body blockquote::before {
  content: '"';
  position: absolute;
  top: -15px;
  left: 8px;
  font-size: 60px;
  color: rgba(0, 122, 255, 0.1);
  font-family: Georgia, serif;
}

.content-body blockquote:hover {
  background: linear-gradient(90deg, rgba(0, 122, 255, 0.12), transparent);
  transform: translateX(3px);
}

.content-body blockquote p {
  font-style: italic;
  margin: 0;
  color: var(--dark-color);
  font-weight: 500;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

strike {
  color: #ff3b30;
  text-decoration: line-through;
}

/* 认知思考模块样式 */
.thinking-content {
  padding: 0;
}

.thinking-section {
  margin-bottom: 25px;
  position: relative;
  padding: 0;
}

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

.thinking-section h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 0;
  color: var(--dark-color);
  position: relative;
  padding-left: 18px;
  display: inline-block;
}

.thinking-section h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 8px;
  height: 22px;
  background: linear-gradient(to bottom, var(--primary-color), #34C759);
  border-radius: 4px;
}

.thinking-section p {
  margin-bottom: 15px;
  color: #333;
  line-height: 1.8;
  font-size: 16px;
}

.thinking-list {
  padding-left: 25px;
  list-style: none;
  margin-bottom: 20px;
}

.thinking-list li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 20px;
  line-height: 1.7;
}

.thinking-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
  transition: var(--transition);
}

.thinking-list li:hover::before {
  transform: scale(1.3);
  background: #0a84ff;
}

.thinking-section blockquote {
  border-left: 4px solid var(--accent-color);
  padding: 15px 20px;
  margin: 20px 0;
  background: linear-gradient(90deg, rgba(255, 149, 0, 0.08), transparent);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.thinking-section blockquote::before {
  content: '"';
  position: absolute;
  top: -15px;
  left: 8px;
  font-size: 60px;
  color: rgba(255, 149, 0, 0.1);
  font-family: Georgia, serif;
}

.thinking-section blockquote:hover {
  background: linear-gradient(90deg, rgba(255, 149, 0, 0.12), transparent);
  transform: translateX(3px);
}

.thinking-section blockquote p {
  font-style: italic;
  margin: 0;
  color: var(--dark-color);
  font-weight: 500;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

/* 水平时间轴样式 */
.horizontal-timeline-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 5px 110px 15px 110px;
}

.horizontal-timeline {
  display: flex;
  gap: 30px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding: 30px 5px 30px 5px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.horizontal-timeline::-webkit-scrollbar {
  display: none;
}

.horizontal-timeline .timeline-item {
  flex: 0 0 auto;
  width: 340px;
  padding: 30px;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  scroll-snap-align: start;
  opacity: 1;
  transform: translateX(0);
  animation: none;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.horizontal-timeline .timeline-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.85);
}

.horizontal-timeline .timeline-item::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  border: 4px solid var(--primary-color);
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1;
}

.horizontal-timeline .timeline-item:hover::before {
  transform: translateX(-50%) scale(1.3);
  background: var(--primary-color);
  box-shadow: 0 0 0 6px rgba(0, 122, 255, 0.3);
}

.horizontal-timeline .timeline-item h3 {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 15px;
  padding: 8px;
  background: rgba(0, 122, 255, 0.1);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.horizontal-timeline .timeline-item:hover h3 {
  transform: scale(1.05);
  background: rgba(0, 122, 255, 0.2);
}

.horizontal-timeline .timeline-item h3::before {
  display: none;
}

.timeline-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--primary-color);
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

.timeline-nav-button:hover {
  background: linear-gradient(45deg, var(--primary-color), #0a84ff);
  color: white;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3);
  opacity: 1;
}

.timeline-nav-button:active {
  transform: translateY(-50%) scale(1.05);
}

.timeline-nav-button.left {
  left: 40px;
}

.timeline-nav-button.right {
  right: 40px;
}

/* 按年份分类的活动样式 */
.yearly-activities-timeline {
  position: relative;
  padding-left: 45px;
  margin-top: 5px;
}

.timeline-line {
  position: absolute;
  left: 45px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary-color), #34C759);
  border-radius: 3px;
  z-index: 1;
}

.year-section {
  position: relative;
  margin-bottom: 25px;
  display: flex;
}

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

.year-marker {
  position: relative;
  flex-shrink: 0;
  width: 60px;
  margin-left: -60px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.year-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 5px solid var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.2);
  margin-bottom: 8px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  position: relative;
  z-index: 3;
}

.year-section:hover .year-dot {
  transform: scale(1.3);
  background: var(--primary-color);
  box-shadow: 0 0 0 6px rgba(0, 122, 255, 0.3);
}

.year-label {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark-color);
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  padding: 6px 15px;
  border-radius: 30px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 3;
}

.year-content {
  flex: 1;
  padding-left: 30px;
}

.year-marker::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 100%;
  width: 10px;
  height: 2px;
  background: var(--primary-color);
  z-index: 2;
}

.activity-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.activity-item {
  padding: 25px;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.activity-item:nth-child(1) { animation-delay: 0.1s; }
.activity-item:nth-child(2) { animation-delay: 0.2s; }
.activity-item:nth-child(3) { animation-delay: 0.3s; }
.activity-item:nth-child(4) { animation-delay: 0.4s; }
.activity-item:nth-child(5) { animation-delay: 0.5s; }
.activity-item:nth-child(6) { animation-delay: 0.6s; }
.activity-item:nth-child(7) { animation-delay: 0.7s; }
.activity-item:nth-child(8) { animation-delay: 0.8s; }
.activity-item:nth-child(9) { animation-delay: 0.9s; }
.activity-item:nth-child(10) { animation-delay: 1.0s; }
.activity-item:nth-child(11) { animation-delay: 1.1s; }
.activity-item:nth-child(12) { animation-delay: 1.2s; }
.activity-item:nth-child(13) { animation-delay: 1.3s; }

.activity-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #34C759);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.activity-item:hover::before {
  transform: scaleX(1);
}

.activity-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.activity-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark-color);
  display: inline-block;
  padding: 3px 12px;
  background: rgba(0, 122, 255, 0.05);
  border-radius: 50px;
}

.activity-item p {
  margin-bottom: 0;
  color: #555;
  font-size: 15px;
  line-height: 1.7;
}

.year-section .activity-list {
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.year-section .activity-item {
  opacity: 1;
  transform: translateY(0);
  animation: none;
  padding: 20px;
}

.year-section .activity-item h4 {
  font-size: 15px;
  margin-bottom: 8px;
  background: rgba(52, 199, 89, 0.1);
}

/* 联系方式样式 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 25px;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }
.contact-item:nth-child(4) { animation-delay: 0.4s; }
.contact-item:nth-child(5) { animation-delay: 0.5s; }
.contact-item:nth-child(6) { animation-delay: 0.6s; }
.contact-item:nth-child(7) { animation-delay: 0.7s; }
.contact-item:nth-child(8) { animation-delay: 0.8s; }
.contact-item:nth-child(9) { animation-delay: 0.9s; }

.contact-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(0, 122, 255, 0.1), rgba(52, 199, 89, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-icon i {
  font-size: 24px;
  color: var(--primary-color);
  transition: var(--transition);
}

.contact-item:hover .contact-icon {
  transform: rotate(10deg) scale(1.1);
  background: linear-gradient(45deg, var(--primary-color), #34C759);
}

.contact-item:hover .contact-icon i {
  color: white;
}

.contact-details h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.contact-details p {
  margin-bottom: 5px;
  color: #555;
  font-weight: 600;
  font-size: 16px;
}

.contact-username {
  font-size: 14px;
  color: var(--gray-color);
  font-weight: 500;
}

/* 返回顶部按钮 */
.back-to-top {
  position: absolute;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid rgba(0, 0, 0, 0.04);
  border-radius: 14px;
  color: #1d1d1f;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.08);
  transition: 
    opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
    visibility 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px) scale(0.9);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.back-to-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), #0a84ff);
  transition: width 0.5s ease;
  z-index: -1;
  border-radius: 14px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}

.back-to-top:hover::before {
  width: 100%;
}

.back-to-top:hover {
  color: white;
  transform: translateX(-3px) scale(1.05);
  box-shadow: 
    0 4px 12px rgba(0, 122, 255, 0.25),
    0 2px 4px rgba(0, 122, 255, 0.15);
  border-color: rgba(0, 122, 255, 0.2);
}

.back-to-top:active {
  transform: translateX(-1px) scale(0.98);
  transition-duration: 0.1s;
}

.back-to-top i {
  transition: transform 0.2s ease;
  position: relative;
  z-index: 1;
}

.back-to-top:hover i {
  transform: translateY(-1px);
}

/* 动画效果 */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 122, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 122, 255, 0);
  }
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes scrollbarPulse {
  0% {
    opacity: 0.5;
    width: 60px;
  }
  50% {
    opacity: 1;
    width: 80px;
  }
  100% {
    opacity: 0.5;
    width: 60px;
  }
}

/* 响应式设计 */

/* 响应式优化 */
@media (max-width: 767px) {
  body {
    padding: 0;
  }
  
  .col-12.col-lg-10.col-xl-8 {
    padding-top: 5px;
    padding-bottom: 5px;
  }
  
  .profile-card {
    margin-top: 5px;
    margin-bottom: 10px;
    padding: 20px 15px;
  }
  
  .content-navigation {
    margin-bottom: 10px;
  }
  
  .content-card {
    margin-bottom: 10px;
    padding: 20px 15px;
  }
  
  .footer-apple-style {
    margin-top: 5px;
    padding-bottom: 5px;
  }
  
  .thinking-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .thinking-section p {
    font-size: 15px;
    line-height: 1.7;
  }
  
  .thinking-list li {
    margin-bottom: 12px;
  }
  
  .thinking-section blockquote {
    padding: 12px 15px;
    margin: 15px 0;
  }
}

/* 平板设备优化 */
@media (max-width: 1024px) and (min-width: 768px) {
  .profile-content {
    gap: 20px;
  }
  
  .social-section {
    margin-left: 0;
    align-items: center;
    width: 100%;
    margin-top: 15px;
  }
  
  .profile-social {
    gap: 12px;
    margin-left: 0;
    justify-content: center;
  }
  
  .profile-social a {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
}

/* 桌面端样式 */
@media (min-width: 768px) {
  .profile-header {
    margin-bottom: 25px;
  }
  
  .avatar {
    width: 80px;
    height: 80px;
  }
  
  .profile-name {
    font-size: 30px;
  }
  
  .profile-slogan {
    font-size: 16px;
  }
  
  .profile-actions .btn {
    padding: 10px 25px;
    font-size: 15px;
  }
  
  .profile-content {
    gap: 30px;
  }
  
  .profile-details {
    flex: 1;
  }
  
  .profile-social a {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
  
  /* 桌面端滚动指示器 */
  .horizontal-timeline-container::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: rgba(0, 122, 255, 0.2);
    border-radius: 3px;
    animation: scrollbarPulse 2s infinite;
  }
}

/* 手机端样式 */
@media (max-width: 767px) {
  body {
    padding: 15px;
  }
  
  /* 项目参与模块手机端优化 */
  .content-card .yearly-activities-timeline {
    margin-left: 0;
    padding-left: 40px;
    width: 100%;
    box-sizing: border-box;
    padding-top: 10px;
  }
  
  .timeline-line {
    left: 45px;
  }
  
  .year-marker {
    width: 50px;
    margin-left: -50px;
    position: absolute;
    left: 0;
    top: 5px;
  }
  
  .year-label {
    font-size: 14px;
    padding: 4px 10px;
    white-space: nowrap;
    width: auto;
  }
  
  .year-section {
    position: relative;
    padding-left: 5px;
  }
  
  .year-content {
    padding-left: 15px;
  }
  
  .activity-item {
    padding: 15px;
    width: 92%;
    margin-right: 0;
    margin-left: 0;
    box-sizing: border-box;
    max-width: 92%;
  }
  
  .profile-card {
    padding: 25px 20px;
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .avatar {
    width: 70px;
    height: 70px;
  }
  
  .profile-info {
    width: 100%;
  }
  
  .profile-name {
    font-size: 26px;
  }
  
  .profile-slogan {
    font-size: 15px;
  }
  
  .profile-actions {
    width: 100%;
    justify-content: center;
  }
  
  .profile-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .profile-details {
    width: 100%;
  }
  
  .social-section {
    width: 100%;
    align-items: center;
    margin-left: 0;
  }
  
  .social-text {
    text-align: center;
    margin-bottom: 12px;
  }
  
  .profile-social {
    justify-content: flex-start;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    gap: 12px;
  }
  
  .profile-social::-webkit-scrollbar {
    display: none;
  }
  
  .profile-social a {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  
  /* 手机设备滚动指示器 */
  .social-section::after {
    content: '← 左右滑动查看更多 →';
    display: block;
    text-align: center;
    font-size: 12px;
    color: var(--gray-color);
    margin-top: 8px;
    opacity: 0.7;
    font-weight: 500;
  }
  
  .content-card {
    padding: 25px 20px;
    min-height: auto !important;
  }
  
  .content-card h2 {
    font-size: 24px;
  }
  
  .nav-tabs .nav-link {
    padding: 10px 20px;
    font-size: 15px;
    margin: 5px;
  }
  
  /* 手机端从业经历时间轴优化 */
  .horizontal-timeline-container {
    padding: 10px 0 5px 0 !important;
    position: relative;
    overflow: visible !important;
  }
  
  /* 隐藏左右导航按钮 */
  .timeline-nav-button {
    display: none;
  }
  
  /* 启用水平滚动 */
  .horizontal-timeline {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 15px 15px 15px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    gap: 20px;
    margin-bottom: 0;
  }
  
  .horizontal-timeline::-webkit-scrollbar {
    display: none;
  }
  
  .horizontal-timeline .timeline-item {
    flex-shrink: 0;
    width: 280px;
    padding: 20px;
    scroll-snap-align: start;
  }
  
  .horizontal-timeline .timeline-item h3 {
    font-size: 16px;
    margin-top: 15px;
    margin-bottom: 12px;
    padding: 6px;
  }
  
  .horizontal-timeline .timeline-item p {
    font-size: 14px;
    line-height: 1.6;
  }
  
  /* 添加滑动提示 - 紧贴时间轴底部 */
  .horizontal-timeline-container::after {
    content: '← 左右滑动查看更多 →';
    position: absolute;
    bottom: -15px !important;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--gray-color);
    opacity: 0.7;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    animation: none !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 10;
  }
  
  .activity-list {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-item {
    padding: 20px;
  }
  
  .contact-icon {
    width: 50px;
    height: 50px;
  }
  
  .contact-icon i {
    font-size: 20px;
  }
  
  .back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 15px;
    border-radius: 12px;
    transform: translateY(20px) scale(0.9);
  }
  
  .back-to-top.visible {
    transform: translateY(0) scale(1);
  }
  
  .back-to-top:hover {
    transform: translateY(-2px) scale(1.02);
  }
  
  .back-to-top:active {
    transform: translateY(-1px) scale(0.98);
  }
}

/* 小屏手机优化 */
@media (max-width: 480px) {
  .profile-actions {
    flex-direction: row;
    width: 100%;
    gap: 10px;
    justify-content: center;
  }
  
  .profile-actions .btn {
    flex: 1;
    max-width: 120px;
    margin-bottom: 0;
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .profile-social {
    gap: 12px;
  }
  
  .profile-social a {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .nav-tabs .nav-link {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
