:root {
  --primary-color: #4361ee;
  --secondary-color: #3f37c9;
  --accent-color: #4895ef;
  --text-color: #2b2d42;
  --light-gray: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
  background-color: var(--light-gray);
  color: var(--text-color);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color:#291f1f;
}

.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow);
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 22px;
  color: var(--primary-color);
  text-decoration: none;
}

.logo img {
  height: 60px;
  margin-right: 10px;
}

.auth-buttons {
  display: flex;
  gap: 15px;
}

.auth-button {
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-btn {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.login-btn:hover {
  background-color: rgba(67, 97, 238, 0.1);
}

.register-btn {
  background-color: var(--primary-color);
  border: 2px solid var(--primary-color);
  color: var(--white);
}

.register-btn:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

@media (max-width: 768px) {
  .navbar {
    padding: 10px 5%;
  }

  .logo {
    font-size: 18px;
  }

  .logo img {
    height: 30px;
  }

  .auth-button {
    padding: 6px 15px;
    font-size: 14px;
  }
}

.user-menu {
  position: relative;
  display: inline-block;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
}

.user-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: var(--white);
  min-width: 160px;
  box-shadow: var(--shadow);
  border-radius: 8px;
  z-index: 1001;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.user-menu:hover .dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-content a {
  color: var(--text-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: all 0.3s;
}

.dropdown-content a:hover {
  background-color: var(--light-gray);
  color: var(--primary-color);
  padding-left: 20px;
}

.dropdown-content a i {
  margin-right: 8px;
  width: 20px;
  text-align: center;
  transition: all 0.3s;
}

.dropdown-content a:hover i {
  transform: scale(1.2);
}

.logout-btn {
  color: #ff4757 !important;
  border-top: 1px solid #eee;
}

.logout-btn:hover {
  background-color: rgba(255, 71, 87, 0.1) !important;
}

/* 移动端保持点击触发 */
@media (max-width: 768px) {
  .dropdown-content {
    display: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .dropdown-content.show {
    display: block !important;
  }
}



/* Header Section */
.hero {
  height: 550px;
  display: flex;
  align-items: center;
  padding: 0 5%;
  position: relative;
}

.profile-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.profile-left {
  width: 280px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--white);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.profile-avatar:hover {
  transform: scale(1.05);
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 10px;
}

.verified-badge {
  display: flex;
  align-items: center;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  margin-top: 10px;
}

.verified-badge i {
  margin-right: 5px;
  font-size: 12px;
}

.profile-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 30px;
}

.social-icons {
  display: flex;
  gap: 20px;
}

.social-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  font-size: 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.social-icon:hover {
  transform: translateY(-5px);
  background-color: var(--white);
}

.wechat:hover {
  color: #07C160;
}

.qq:hover {
  color: #12B7F5;
}

.qr-dropdown {
  position: absolute;
  top: 60px;
  right: 0;
  background-color: var(--white);
  padding: 15px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 10;
  width: 180px;
  text-align: center;
}

.qr-dropdown img {
  width: 150px;
  height: 150px;
  margin-bottom: 10px;
  border: 1px solid #eee;
}

.qr-dropdown p {
  font-size: 12px;
  color: #666;
}

.social-icon:hover .qr-dropdown {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Content Section */
.content {
  padding: 30px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 30px;
  color: var(--text-color);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
}

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

.gallery-item {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.gallery-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-info {
  padding: 20px;
}

.gallery-title {
  font-size: 14px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.gallery-date {
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
}

.gallery-date i {
  margin-right: 5px;
  font-size: 12px;
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
}

.page-numbers {
  display: flex;
  list-style: none;
  gap: 8px;
}

.page-numbers li {
  margin: 0 2px;
}

.page-numbers a,
.pagination-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--white);
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.page-numbers a:hover,
.pagination-arrow:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.page-numbers .current {
  background-color: var(--primary-color);
  color: var(--white);
}

.pagination-arrow {
  margin: 0 10px;
}

.pagination-arrow.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f0f0f0;
}

.pagination-arrow.disabled:hover {
  background-color: #f0f0f0;
  color: var(--text-color);
  transform: none;
}


/* Footer Section */
.footer {
  background-color: var(--text-color);
  color: var(--white);
  text-align: center;
  padding: 30px;
  margin-top: 10px;
}

.footer p {
  opacity: 0.8;
  font-size: 14px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    padding: 30px 10px;
  }

  .content {
    padding: 30px 10px;
  }

  .profile-container {
    flex-direction: column;
  }

  .profile-left {
    width: 100%;
    margin-bottom: 30px;
  }

  .profile-right {
    justify-content: center;
    padding-top: 0;
  }

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

  .page-numbers a,
  .pagination-arrow {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
  }

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

  .social-icons {
    gap: 15px;
  }

  .social-icon {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .page-numbers {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pagination {
    flex-direction: column;
    gap: 15px;
  }

  .pagination-arrows {
    display: flex;
    gap: 10px;
  }
}



.social-icons {
  gap: 15px; /* 调整图标间距 */
}


.share-notification {
  position: fixed;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
}

.share-notification.show {
  opacity: 1;
}

.share:hover {
  color: #1877f2; /* Facebook blue for share icon */
}



/* 关注按钮样式 */
#followButton {
  position: relative;
  cursor: pointer;
  transition: all 0.3s;
}

#followButton:hover {
  transform: scale(1.1);
}

#followIcon {
  color: #ccc; /* 默认未关注状态 */
  transition: all 0.3s;
}

#followIcon.following {
  color: #ff4757; /* 已关注状态 */
  animation: pulse 0.5s;
}

/* 关注通知样式 */
.follow-notification {
  position: fixed;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.follow-notification.show {
  opacity: 1;
}

/* 心跳动画 */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

