/* 恩熙样式 - 三栏布局重构 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  padding: 20px;
  background-size: 3825px 1079px; /* 设置固定比例 */
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 40px);
}

/* 顶部导航栏 */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: linear-gradient(135deg, #ff69b4 0%, #ff85c0 100%);
  color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.quick-links {
  display: flex;
  gap: 20px;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 主内容区 - 三栏布局 */
.main-content {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
  width: 100%;
  background: transparent; /* 透明背景，不影响图片显示 */
}

/* 左侧边栏 */
.left-sidebar {
  width: 280px;
  background: rgba(248, 249, 250, 0.95); /* 设置不透明度为0.95，确保内容可读 */
  padding: 30px 20px;
  border-right: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  gap: 30px;
  overflow-y: auto;
  flex-shrink: 0; /* 确保侧边栏不会被挤压 */
}

.profile {
  text-align: center;
}

.profile .avatar {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin: 0 auto 20px;
}

.profile .name {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 10px;
}

.profile .title {
  color: #666;
  font-size: 0.95rem;
}

.social-links h3 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ff69b4;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.social-icon {
  width: 45px;
  height: 45px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff69b4;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background: #ff69b4;
  color: white;
}

.visit-stats h3 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ff69b4;
}

.visit-stats .stat-item {
  text-align: center;
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
}

.visit-stats .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #ff69b4;
  margin-bottom: 5px;
}

.visit-stats .stat-label {
  color: #666;
  font-size: 0.9rem;
}

/* 中间内容区 */
.middle-content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  background: #fff;
  min-width: 0; /* 确保内容区不会挤压侧边栏 */
  display: flex;
  flex-direction: column;
}

.intro-section {
  background: rgba(255, 255, 255, 0.95); /* 设置不透明度为0.95，确保内容可读 */
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.intro-section h2 {
  color: #ff69b4;
  font-size: 1.8rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.intro-section p {
  color: #555;
  margin-bottom: 15px;
  line-height: 1.7;
}

.intro-section .cp-info {
  font-size: 1.1rem;
  color: #ff69b4;
  font-weight: 600;
  margin-top: 20px;
  text-align: right;
}

.content-cards h2 {
  color: #ff69b4;
  font-size: 1.8rem;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.content-card {
  background: rgba(255, 255, 255, 0.95); /* 设置不透明度为0.95，确保内容可读 */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff69b4 0%, #ff85c0 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.content-card:hover::before {
  transform: scaleX(1);
}

.card-image {
  height: 180px;
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  border-bottom: 3px solid #ff69b4;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  color: #333;
  font-size: 1.3rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.card-meta {
  color: #999;
  font-size: 0.85rem;
  margin-bottom: 15px;
  display: block;
}

.card-content p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.card-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #999;
  font-size: 0.85rem;
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
}

.card-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 右侧边栏 */
.right-sidebar {
  width: 300px;
  background: rgba(248, 249, 250, 0.95); /* 设置不透明度为0.95，确保内容可读 */
  padding: 30px 20px;
  border-left: 1px solid #e9ecef;
  overflow-y: auto;
  max-height: calc(100vh - 120px);
  flex-shrink: 0; /* 确保侧边栏不会被挤压 */
  flex-grow: 0; /* 确保侧边栏不会自动增长 */
  flex-basis: 300px; /* 确保侧边栏有固定宽度 */
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.right-sidebar h3 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ff69b4;
}

.nav-menu {
  list-style: none;
}

.nav-menu li {
  margin-bottom: 10px;
}

.nav-menu a {
  color: #555;
  text-decoration: none;
  padding: 12px 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.nav-menu a:hover {
  background: white;
  color: #ff69b4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateX(5px);
}

.featured-section .featured-item {
  background: white;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.featured-section .featured-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.featured-section h4 {
  color: #333;
  font-size: 1rem;
  margin-bottom: 8px;
}

.featured-section p {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.5;
}

.tags-section .tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags-section .tag {
  background: white;
  color: #ff69b4;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid #ff69b4;
  transition: all 0.3s ease;
}

.tags-section .tag:hover {
  background: #ff69b4;
  color: white;
  transform: translateY(-2px);
}

/* 页脚 */
footer {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  color: #6c757d;
  font-size: 0.9rem;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #ff69b4;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff85c0;
}

/* 雪花效果样式 */
.snowflake {
  position: fixed;
  top: -10px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.8;
  z-index: 1000;
  animation: fall linear infinite;
}

@keyframes fall {
  to {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* 页面过渡动画 */
.page-transition {
  animation: pageFadeIn 0.5s ease-out forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .main-content {
    flex-direction: column;
  }

  .left-sidebar,
  .right-sidebar {
    width: 100%;
    max-height: none;
    border: none;
    border-bottom: 1px solid #e9ecef;
  }

  .right-sidebar {
    border-bottom: none;
    border-top: 1px solid #e9ecef;
  }

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

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .container {
    min-height: calc(100vh - 20px);
  }

  .top-nav {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .quick-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .middle-content {
    padding: 20px;
  }

  .intro-section {
    padding: 20px;
  }

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

  .logo h1 {
    font-size: 1.5rem;
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}
