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

body {
  font-family: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', SimHei, Arial, Helvetica, sans-serif;
  background: linear-gradient(118.98deg, #efeeff 26.88%, #ffeadef0 97.08%);
  overflow-x: hidden;
}

/* 推荐产品标志样式 */
.sponsor-area {
  position: relative;
  margin-bottom: 20px;
}

.product-recommend-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.product-recommend-label:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.ai-news-homepage {
  display: flex;
  align-items: flex-start;
  background: linear-gradient(118.98deg, #efeeff 26.88%, #ffeadef0 97.08%);
  width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  max-width: 100vw;
  box-sizing: border-box;
}

/* 左侧导航栏 */
.left-sidebar {
  position: relative;
  width: 220px;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f6ff 0%, #f0ebff 50%, #e8dfff 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 18px;
  height: 100%;
}

.logo-section {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 25px;
  text-align: center;
}

.logo-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 146px;
  height: 146px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 50%, #8b5cf6 100%);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4), 0 0 60px rgba(139, 92, 246, 0.2);
}

.logo-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navigation {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 19px;
}

/* 联系我们标题样式 */
.contact-header {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  border-left: 3px solid #a78bfa;
}

/* 联系方式容器 */
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-left: 12px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 8px 16px;
  margin: 4px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-left: 4px solid transparent;
}

.nav-item:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.15);
  border-left-color: #a78bfa;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  border-left-color: #a78bfa;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.3);
}

.nav-icon {
  width: 24px;
  height: 24px;
  color: #000000;
  transition: color 0.3s ease;
}

.nav-text {
  color: #000000;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 28px;
  transition: color 0.3s ease;
}

.dropdown-icon {
  width: 16px;
  height: 16px;
  color: #000000;
  margin-left: auto;
  transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-icon {
  transform: rotate(180deg);
}

/* 联系方式链接样式 */
.contact-item {
  text-decoration: none;
  color: inherit;
  font-size: 0.7rem;
  padding: 6px 12px;
  margin: 2px 0;
}

.contact-item:hover {
  text-decoration: none;
  color: inherit;
}

.contact-item .nav-text {
  font-size: 0.7rem;
  font-weight: 400;
}

/* PNG图标优化样式 */
.nav-icon[src$=".png"] {
  width: 22px !important;
  height: 22px !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
  object-fit: cover !important;
  background: white;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease !important;
}

.nav-item:hover .nav-icon[src$=".png"] {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* 邮箱下拉功能样式 */
.email-dropdown {
  position: relative;
}

.dropdown-arrow {
  width: 16px;
  height: 16px;
  color: #000000;
  margin-left: auto;
  transition: transform 0.3s ease;
}

.email-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.email-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  margin-top: 4px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.email-dropdown.active .email-dropdown-content {
  display: block;
}

.email-link {
  display: block;
  color: #1a202c;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 10.5px;
  transition: background-color 0.2s ease;
  font-weight: 400;
  border: none;
  background: transparent;
}

.email-link:hover {
  background: #f7fafc;
  color: #2d3748;
}



/* 中间内容区域 */
.middle-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 35px 24px;
  min-width: 0;
  width: calc(100vw - 720px);
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 100vh;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.content-header {
  margin-bottom: 30px;
}

.site-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 47px;
  color: #333333;
  margin: 0 0 10px 0;
}

.subtitle {
  font-size: 20px;
  font-weight: 500;
  line-height: 23px;
  color: #666666;
  margin: 0;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(76, 175, 80, 0.4);
  box-shadow: 0px 8px 32px rgba(76, 175, 80, 0.15);
}

.news-card.selected {
  border-color: rgba(76, 175, 80, 0.5);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0px 8px 32px rgba(76, 175, 80, 0.2);
}

.news-image {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 9px;
  overflow: hidden;
}

.news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.news-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  color: #333333;
  margin: 0;
  flex: 1;
}

.breaking-badge {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.news-description {
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: #666666;
  margin: 0;
}

.news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.news-category {
  font-size: 12px;
  font-weight: 600;
  color: #4caf50;
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-time {
  font-size: 12px;
  font-weight: 600;
  color: #999999;
}

/* 右侧概览区域 */
.right-overview {
  position: fixed;
  top: 0;
  right: 0;
  width: 500px;
  max-width: 500px;
  height: 100vh;
  max-height: 100vh;
  flex-shrink: 0;
  padding: 35px 25px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

/* 优化右侧区域滚动条样式 */
.right-overview::-webkit-scrollbar {
  width: 8px;
}

.right-overview::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.right-overview::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.right-overview::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

/* 移除顶部渐变遮罩以避免遮掩文字内容 */
/* .right-overview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), transparent);
  pointer-events: none;
  z-index: 10;
} */

/* 移除底部渐变遮罩以防止文字被遮掩 */
/* .right-overview::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
  pointer-events: none;
  z-index: 10;
} */

/* 旧的装饰性伪元素已移除，使用新的渐变遮罩效果 */

@keyframes pulse {
    0%, 100% {
        transform: rotate(45deg) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: rotate(45deg) scale(1.1);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* 移除重复的装饰规则 - 已清理 */

/* 额外的装饰线条 */
.right-overview {
  position: relative;
}

.right-overview .decorative-lines {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(135deg, 
      rgba(102, 126, 234, 0.1) 0%, 
      rgba(118, 75, 162, 0.1) 50%, 
      rgba(79, 172, 254, 0.1) 100%);
  overflow: hidden;
}

.right-overview .decorative-lines::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.2), rgba(79, 172, 254, 0.2));
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.right-overview .decorative-lines::after {
  content: '';
  position: absolute;
  bottom: 30%;
  left: 15%;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(118, 75, 162, 0.3), rgba(102, 126, 234, 0.3));
  border-radius: 30%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes wave2 {
  0%, 100% {
    transform: translateX(0) scaleY(0.8);
    opacity: 0.4;
  }
  50% {
    transform: translateX(-3px) scaleY(1.2);
    opacity: 0.8;
  }
}

@keyframes wave3 {
  0%, 100% {
    transform: translateX(0) scaleY(1);
    opacity: 0.3;
  }
  50% {
    transform: translateX(-2px) scaleY(1.1);
    opacity: 0.6;
  }
}

@keyframes wave {
  0%, 100% {
    transform: translateX(0) scaleY(1);
    opacity: 0.6;
  }
  50% {
    transform: translateX(-5px) scaleY(1.1);
    opacity: 1;
  }
}

.overview-card {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  animation: fadeIn 0.5s ease;
  z-index: 2;
}

.overview-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.overview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overview-content {
  padding: 32px 28px;
}

.overview-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
  color: #333333;
  margin: 0 0 16px 0;
}

.overview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}

.overview-category {
  font-size: 14px;
  font-weight: 600;
  color: #4caf50;
  display: flex;
  align-items: center;
  gap: 6px;
}

.overview-date {
  font-size: 14px;
  font-weight: 500;
  color: #666666;
}

.overview-description {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #333333;
  margin: 0 0 24px 0;
}

.overview-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.overview-source {
  font-size: 14px;
  font-weight: 500;
  color: #999999;
}

.view-details-btn {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.view-details-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #66bb6a, #4caf50);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
}

/* 占位符样式 */
.overview-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

/* 为placeholder添加装饰效果 */
.overview-placeholder::before {
  content: '';
  position: absolute;
  top: 15%;
  right: 15%;
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, rgba(167, 139, 250, 0.15), rgba(196, 181, 253, 0.15));
  border-radius: 50%;
  animation: float 5s ease-in-out infinite;
  z-index: 1;
}

.overview-placeholder::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: 20%;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(79, 172, 254, 0.2));
  border-radius: 30%;
  animation: float 7s ease-in-out infinite reverse;
  z-index: 1;
}

/* 添加垂直装饰线条 */
.overview-placeholder .placeholder-content::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 10px;
  width: 2px;
  height: 80%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(167, 139, 250, 0.3) 20%,
    rgba(196, 181, 253, 0.4) 50%,
    rgba(167, 139, 250, 0.3) 80%,
    transparent
  );
  border-radius: 1px;
  animation: wave 4s ease-in-out infinite;
  z-index: 1;
}

.placeholder-content {
  position: relative;
  text-align: center;
  color: #cbd5e1;
  z-index: 2;
}

.placeholder-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 16px 0 8px 0;
  color: #666666;
}

.placeholder-content p {
  font-size: 16px;
  color: #999999;
}

/* 加载动画 */
.loading-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #4caf50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

.loading-placeholder p {
  color: #666666;
  font-size: 16px;
}

/* 分类区域样式 */
.category-section {
  margin: 24px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.category-section:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.category-section h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-item {
  margin: 16px 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.news-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.news-item h5 {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.news-item p {
  font-size: 14px;
  line-height: 1.6;
  color: #666666;
  margin: 0;
}

/* 动画效果 */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* 响应式设计 */
@media (max-width: 1400px) {
  .container {
    padding: 0 20px;
  }
  
  .overview {
    width: 350px;
  }
}

@media (max-width: 1200px) {
  .sidebar {
    width: 240px;
  }
  
  .main-content {
    margin-left: 240px;
    padding: 20px;
  }
  
  .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  
  .news-section {
    width: 100%;
  }
  
  .overview {
    width: 100%;
    position: static;
  }
  
  .right-overview {
    width: 380px;
  }
}

@media (max-width: 1024px) {
  .left-sidebar {
    width: 220px;
  }
  
  .right-overview {
    width: 320px;
  }
  
  .sidebar-content {
    padding: 40px 25px;
  }
  
  .logo-avatar {
    width: 120px;
    height: 120px;
  }
  
  .logo-text {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    box-shadow: 0 2px 10px rgba(30, 58, 138, 0.1);
  }
  
  .main-content {
    margin-left: 0;
    padding: 15px;
  }
  
  .news-card {
    padding: 15px;
  }
  
  .news-content {
    flex-direction: column;
    gap: 10px;
  }
  
  .news-image {
    width: 100%;
    height: 200px;
  }
  
  .overview-content {
    padding: 15px;
  }
  
  .ai-news-homepage {
    flex-direction: column;
  }
  
  .left-sidebar {
    width: 100%;
    min-height: auto;
  }
  
  .sidebar-content {
    flex-direction: row;
    align-items: center;
    padding: 20px;
  }
  
  .logo-section {
    margin-bottom: 0;
    margin-right: 30px;
  }
  
  .logo-avatar {
    width: 60px;
    height: 60px;
  }
  
  .logo-text {
    font-size: 24px;
  }
  
  .navigation {
    flex-direction: row;
    gap: 20px;
  }
  
  .nav-text {
    font-size: 18px;
  }
  
  .middle-content {
    max-width: 100%;
    padding: 20px;
  }
  
  .right-overview {
    width: 100%;
    min-height: auto;
    padding: 20px;
  }
  
  .contact-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    right: auto;
    width: 300px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  
  .nav-item {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .news-card {
    padding: 12px;
    margin-bottom: 12px;
    flex-direction: column;
  }
  
  .news-title {
    font-size: 16px;
    line-height: 1.4;
  }
  
  .news-description {
    font-size: 13px;
    line-height: 1.5;
  }
  
  .overview-title {
    font-size: 18px;
  }
  
  .view-details-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .news-image {
    width: 100%;
    height: 200px;
  }
  
  .site-title {
    font-size: 28px;
  }
  
  .subtitle {
    font-size: 16px;
  }
}

/* 广告位样式 */
.sponsor-area {
  position: relative;
  margin-bottom: 20px;
}

.sponsor-label {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(76, 175, 80, 0.9);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sponsor-area .detail-image {
  border-radius: 8px;
  transition: all 0.3s ease;
}

.sponsor-area:hover .detail-image {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.sponsor-area:hover .sponsor-label {
  background: rgba(76, 175, 80, 1);
  transform: scale(1.05);
}