/* 首页现代化重设样式 */
.home-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  animation: fadeIn 0.8s ease-out forwards;
}

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

/* 顶部全宽 Banner */
.hero-banner {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 60px;
  box-shadow: 0 15px 35px rgba(76, 175, 80, 0.15);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/bg2.png') center/cover no-repeat;
  z-index: 1;
  transition: transform 10s ease;
}

.hero-banner:hover .hero-bg {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(20, 60, 25, 0.9) 0%, rgba(30, 90, 40, 0.7) 40%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--white);
  max-width: 600px;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  color: #E8F5E9;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero-desc {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

.btn-hero {
  background: var(--white);
  color: var(--primary-dark);
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  text-decoration: none;
}

.btn-hero:hover {
  background: #f1f1f1;
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* 快捷服务区 (金刚区) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 20px;
  background: var(--white);
  padding: 30px 40px;
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.03);
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--white);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.service-card:hover .service-icon {
  box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

/* 各个图标的不同渐变色 */
.icon-policy { background: linear-gradient(135deg, #FF7043, #D32F2F); box-shadow: 0 8px 15px rgba(211, 47, 47, 0.2); }
.icon-weather { background: linear-gradient(135deg, #42A5F5, #1976D2); box-shadow: 0 8px 15px rgba(25, 118, 210, 0.2); }
.icon-market { background: linear-gradient(135deg, #FFA726, #F57C00); box-shadow: 0 8px 15px rgba(245, 124, 0, 0.2); }
.icon-finance { background: linear-gradient(135deg, #66BB6A, #388E3C); box-shadow: 0 8px 15px rgba(56, 142, 60, 0.2); }
.icon-patent { background: linear-gradient(135deg, #AB47BC, #7B1FA2); box-shadow: 0 8px 15px rgba(123, 31, 162, 0.2); }
.icon-guide { background: linear-gradient(135deg, #26C6DA, #0288D1); box-shadow: 0 8px 15px rgba(2, 136, 209, 0.2); }
.icon-tech { background: linear-gradient(135deg, #8D6E63, #5D4037); box-shadow: 0 8px 15px rgba(93, 64, 55, 0.2); }
.icon-more { background: linear-gradient(135deg, #BDBDBD, #757575); box-shadow: 0 8px 15px rgba(117, 117, 117, 0.2); }

.service-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* 主体分栏布局 */
.home-split-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
}

/* 模块标题 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: block;
  width: 6px;
  height: 22px;
  background-color: var(--primary-color);
  border-radius: 4px;
}

.view-more {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.view-more:hover {
  color: var(--primary-color);
}

/* 左侧：热门资讯 */
.news-feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-card {
  display: flex;
  gap: 24px;
  background: var(--white);
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
  border-color: rgba(76, 175, 80, 0.2);
}

.news-img {
  width: 220px;
  height: 140px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background-color: #f5f5f5;
}

.news-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}

.news-card:hover .news-title {
  color: var(--primary-color);
}

.news-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #999;
}

.news-tag {
  background: rgba(76, 175, 80, 0.1);
  color: var(--primary-color);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

/* 右侧侧边栏 */
.sidebar-widget {
  background: var(--white);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  margin-bottom: 30px;
}

.widget-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 公告列表 */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notice-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  group: hover;
}

.notice-date {
  background: #f5f8f5;
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  min-width: 55px;
  flex-shrink: 0;
  transition: background 0.3s;
}

.notice-item:hover .notice-date {
  background: var(--primary-color);
  color: white;
}

.notice-date .day {
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-dark);
  line-height: 1;
}

.notice-item:hover .notice-date .day {
  color: white;
}

.notice-date .month {
  font-size: 12px;
  color: var(--text-secondary);
}

.notice-item:hover .notice-date .month {
  color: rgba(255,255,255,0.8);
}

.notice-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}

.notice-item:hover .notice-text {
  color: var(--primary-color);
}

/* 市场行情小组件 */
.market-widget {
  background: linear-gradient(135deg, #fffcf5 0%, #fff 100%);
  border: 1px solid #f0f5f0;
}

.market-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-color);
}

.market-item:last-child {
  border-bottom: none;
}

.market-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.market-price {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-primary);
}

.market-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: bold;
}

.trend-up { color: #F44336; }
.trend-down { color: #4CAF50; }

/* 响应式适配 */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .home-split-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-widget {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    padding: 0 30px;
    height: 300px;
  }
  .hero-title {
    font-size: 32px;
  }
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
  }
  .news-card {
    flex-direction: column;
  }
  .news-img {
    width: 100%;
    height: 180px;
  }
}
