/* ==========================================================================
   强调色增强样式 - Enhanced Accent Color Styles
   ========================================================================== */

/* 为主要元素添加强调色装饰 */
.main-content {
  position: relative;
}

/* 增强的页面装饰条 */
.accent-border-top {
  position: relative;
}

.accent-border-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #012F63 0%, #FE667B 50%, #1a4f8a 100%);
  z-index: 10;
}

/* 强调色按钮样式 */
.btn-accent {
  background: #FE667B;
  color: white !important;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(254, 102, 123, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-accent::after {
  display: none;
}

.btn-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(254, 102, 123, 0.4);
  color: white !important;
}

.btn-accent:hover::before {
  left: 100%;
}

/* 强调色悬浮卡片 */
.floating-card {
  background: #ffffff !important; /* 强制使用白色背景 */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(1, 47, 99, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(1, 47, 99, 0.06);
  position: relative;
  overflow: hidden;
}

.floating-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FE667B 0%, #ff8599 50%, #a29bfe 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.floating-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(1, 47, 99, 0.15);
  border-color: rgba(254, 102, 123, 0.2);
}

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

/* 强调色文字效果 */
.accent-text {
  background: linear-gradient(135deg, #FE667B 0%, #ff8599 50%, #a29bfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.primary-gradient-text {
  background: linear-gradient(135deg, #012F63 0%, #1a4f8a 50%, #FE667B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* 图标样式 - 使用主色而不是强调色 */
.fas, .fab, .far {
  color: #012F63; /* 主色 */
  transition: all 0.3s ease;
}

.fas:hover, .fab:hover, .far:hover {
  color: #1a4f8a; /* 主色的浅色变体 */
  transform: scale(1.05);
}

/* Sidebar图标保持主色 */
.sidebar .fas, .sidebar .fab, .sidebar .far,
.author__urls .fas, .author__urls .fab, .author__urls .far {
  color: #012F63 !important;
}

.sidebar .fas:hover, .sidebar .fab:hover, .sidebar .far:hover,
.author__urls .fas:hover, .author__urls .fab:hover, .author__urls .far:hover {
  color: #FE667B !important; /* 悬停时使用强调色 */
}

/* 强调色分割线 */
.divider-accent {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #FE667B 50%, transparent 100%);
  margin: 2rem 0;
  border: none;
}

/* 强调色引用块 */
.quote-accent {
  background: #f8f9fa !important; /* 强制使用浅色背景 */
  border-left: 4px solid #FE667B;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(1, 47, 99, 0.08);
  position: relative;
  margin: 2rem 0;
  color: #012F63 !important; /* 确保文字颜色 */
}

.quote-accent::before {
  content: '"';
  font-size: 4rem;
  color: #FE667B;
  opacity: 0.2;
  position: absolute;
  top: -10px;
  left: 15px;
  font-family: serif;
}

/* 强调色进度条 */
.progress-accent {
  height: 8px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-accent-bar {
  height: 100%;
  background: linear-gradient(90deg, #FE667B 0%, #ff8599 100%);
  border-radius: 10px;
  transition: width 1s ease;
  position: relative;
}

.progress-accent-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* 强调色标签 */
.tag-accent {
  background: linear-gradient(135deg, #FE667B 0%, #ff8599 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin: 0.25rem;
  box-shadow: 0 2px 8px rgba(254, 102, 123, 0.3);
  transition: all 0.3s ease;
}

.tag-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(254, 102, 123, 0.4);
}

/* 强调色链接装饰 */
.link-accent {
  color: #012F63;
  text-decoration: none;
  position: relative;
  font-weight: 500;
  transition: all 0.3s ease;
}

.link-accent::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #FE667B 0%, #ff8599 100%);
  transition: width 0.3s ease;
}

.link-accent:hover {
  color: #FE667B;
}

.link-accent:hover::after {
  width: 100%;
}

/* 强调色悬浮动画 */
.hover-float {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-float:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(1, 47, 99, 0.12);
}

/* 强调色脉冲动画 */
.pulse-accent {
  animation: pulse-accent 2s infinite;
}

@keyframes pulse-accent {
  0% {
    box-shadow: 0 0 0 0 rgba(254, 102, 123, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(254, 102, 123, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(254, 102, 123, 0);
  }
}

/* 强调色渐变背景动画 */
.bg-gradient-animate {
  background: linear-gradient(-45deg, #012F63, #1a4f8a, #FE667B, #ff8599);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 移动端优化 */
@media (max-width: 768px) {
  .highlight-blocks {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .floating-card {
    margin: 1rem 0;
  }
  
  .btn-accent {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* 防止深色模式影响 - 强制浅色主题 */
@media (prefers-color-scheme: dark) {
  .floating-card, .highlight-block, .paper-box, .quote-accent {
    background: #ffffff !important;
    color: #012F63 !important;
    border-color: rgba(1, 47, 99, 0.08) !important;
  }
  
  .floating-card *, .highlight-block *, .paper-box *, .quote-accent * {
    color: #012F63 !important;
  }
  
  .floating-card a, .highlight-block a, .paper-box a, .quote-accent a {
    color: #012F63 !important;
  }
  
  .floating-card a:hover, .highlight-block a:hover, .paper-box a:hover, .quote-accent a:hover {
    color: #FE667B !important;
  }
}

/* 滚动触发动画 */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in-up.animate {
  opacity: 1;
  transform: translateY(0);
}

/* 强调色加载动画 */
.loading-accent {
  width: 40px;
  height: 40px;
  border: 3px solid #e9ecef;
  border-top: 3px solid #FE667B;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 确保所有重要元素的背景和文字颜色 */
body {
  background-color: #ffffff !important;
  color: #012F63 !important;
}

.highlight-block, .paper-box, .floating-card, blockquote, .quote-accent {
  background: #ffffff !important;
  color: #012F63 !important;
}

.highlight-block *, .paper-box *, .floating-card *, blockquote *, .quote-accent * {
  color: #012F63 !important;
}

/* 但保持按钮和标签的颜色 */
.btn-accent, .tag-accent, .badge {
  color: white !important;
}

/* 现代化的 paper-box 样式 - 优雅的学术论文展示 */
.paper-box {
  display: flex !important;
  flex-direction: row;
  background: #ffffff !important;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(1, 47, 99, 0.06), 0 2px 6px rgba(1, 47, 99, 0.04);
  border: 1px solid rgba(1, 47, 99, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  margin-bottom: 2rem;
  align-items: stretch;
  backdrop-filter: blur(10px);
}

.paper-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(1, 47, 99, 0.1), 0 4px 15px rgba(254, 102, 123, 0.08);
  border-color: rgba(254, 102, 123, 0.12);
}

.paper-box-image {
  position: relative;
  width: 240px;
  min-width: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 20px;
  box-sizing: border-box;
}

.paper-box-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(254, 102, 123, 0.02) 0%, rgba(1, 47, 99, 0.02) 100%);
  z-index: 1;
}

.paper-box-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(1, 47, 99, 0.08);
  position: relative;
  z-index: 2;
}

.paper-box:hover .paper-box-image img {
  transform: scale(1.08) rotateY(5deg);
  box-shadow: 0 8px 25px rgba(1, 47, 99, 0.12);
}

.paper-box-image .badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #FE667B 0%, #ff8599 100%);
  color: white;
  padding: 0.4em 0.8em;
  border-radius: 20px;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(254, 102, 123, 0.25);
  z-index: 10;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.paper-box-text {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.paper-box-text h3 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #012F63;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.paper-box-text p {
  margin: 0.5rem 0;
  color: #495057;
  line-height: 1.6;
  font-size: 0.95rem;
}

.paper-box-text .authors {
  font-weight: 600;
  color: #012F63;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.paper-box-text .authors strong {
  color: #FE667B;
  font-weight: 700;
}

.paper-box-text .venue {
  color: #6c757d;
  font-style: italic;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
}

.paper-box-text .links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* 响应式设计 - 移动端改为上下布局 */
@media (max-width: 768px) {
  .paper-box {
    flex-direction: column;
    margin-bottom: 1.8rem;
    border-radius: 12px;
  }
  
  .paper-box-image {
    width: 100%;
    min-width: 100%;
    height: 180px;
    padding: 16px;
  }
  
  .paper-box-image::before {
    background: linear-gradient(45deg, rgba(254, 102, 123, 0.03) 0%, rgba(1, 47, 99, 0.03) 100%);
  }
  
  .paper-box:hover .paper-box-image img {
    transform: scale(1.05) rotateY(0deg);
  }
  
  .paper-box-text {
    padding: 1.5rem;
  }
  
  .paper-box-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }
  
  .paper-box-text .links {
    gap: 0.6rem;
    margin-top: 0.8rem;
  }
}

/* 增强的按钮样式 */
.paper-box-text .btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #FE667B;
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  box-shadow: 0 3px 8px rgba(254, 102, 123, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.paper-box-text .btn-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.paper-box-text .btn-accent:hover::before {
  left: 100%;
}

.paper-box-text .btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(254, 102, 123, 0.3);
  color: white !important;
}

.paper-box-text .btn-accent:active {
  transform: translateY(0);
}

/* 脉动效果的徽章 */
.pulse-accent {
  animation: pulse-accent 2s infinite;
}

@keyframes pulse-accent {
  0% {
    box-shadow: 0 4px 12px rgba(254, 102, 123, 0.25);
  }
  50% {
    box-shadow: 0 4px 20px rgba(254, 102, 123, 0.4);
  }
  100% {
    box-shadow: 0 4px 12px rgba(254, 102, 123, 0.25);
  }
}

/* 小红书风格的网格布局 */
.blog-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 1.5rem !important;
  margin: 2rem 0 !important;
}

.blog-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(1, 47, 99, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(1, 47, 99, 0.15);
}

.blog-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card-image:hover img {
  transform: scale(1.05);
}

.blog-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #FE667B;
  color: white;
  padding: 0.4em 0.8em;
  border-radius: 20px;
  font-size: 0.75em;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(254, 102, 123, 0.3);
  z-index: 10;
}

.blog-card-content {
  padding: 1.2rem;
}

.blog-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #012F63;
  margin-bottom: 0.8rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* 统一的blog按钮样式 - 与publication按钮保持一致 */
.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: #FE667B;
  color: white !important;
  text-decoration: none !important;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(254, 102, 123, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: none;
}

/* 完全禁用全局链接的下划线效果 */
.blog-link::after {
  display: none !important;
}

.blog-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.blog-link:hover::before {
  left: 100%;
}

.blog-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(254, 102, 123, 0.3);
  color: white !important;
  text-decoration: none !important;
}

.blog-link:active {
  transform: translateY(0);
}

.blog-link i {
  font-size: 0.9em;
  transition: transform 0.3s ease;
}

.blog-link:hover i {
  transform: scale(1.1);
}



/* 响应式设计 */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1rem 0;
  }
  
  .blog-card-image {
    height: 180px;
  }
  
  .blog-card-content {
    padding: 1rem;
  }
  
  .blog-title {
    font-size: 1rem;
  }
  
  .blog-description {
    font-size: 0.85rem;
  }
  
  .blog-links {
    gap: 0.5rem;
    flex-direction: column;
  }
  
  .blog-link {
    font-size: 0.8rem;
    padding: 0.45rem 0.8rem;
    border-radius: 20px;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }
  
  .blog-link i {
    font-size: 0.85em;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
} 