/* page-home.component.scss */
:host {
  --primary-blue: #2a5daa;   /* 青花蓝 */
  --gold-yellow: #e8c34d;    /* 稻穗金 */
  --porcelain-white: #f8f9fa; /* 瓷白 */
  --dark-charcoal: #333;     /* 墨黑 */
  --mountain-green: #4a6b3d; /* 山林绿 */
  --river-blue: #4a86e8;     /* 赣江蓝 */
}

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

body {
  font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f7ff 100%);
  color: var(--dark-charcoal);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M20,20 Q40,5 60,20 T100,20 L100,80 L0,80 L0,20 Z" fill="none" stroke="%232a5daa22" stroke-width="0.5"/></svg>');
}

/* Banner区域 */
.banner-section {
  padding: 1.5rem 5%;
  margin-top: 1rem;
}

.swiper-container {
  width: 100%;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
}

.swiper-slide {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

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

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  z-index: 10;
}

.slide-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.slide-desc {
  max-width: 600px;
}

.quick-access {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.access-card {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.access-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-blue), var(--river-blue));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.access-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(42, 93, 170, 0.25);
  color: white;
}

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

.access-card:hover .access-icon {
  color: white;
  transform: scale(1.1);
}

.access-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-blue);
  transition: all 0.3s ease;
}

.access-title {
  font-weight: bold;
  font-size: 1.2rem;
}

/* 内容区域 */
.content-section {
  padding: 3rem 5%;
}

.section-title {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: 1.8rem;
  color: var(--primary-blue);
  position: relative;
  padding-left: 1rem;
}

.section-title h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--gold-yellow);
  border-radius: 2px;
}

.section-title .decor {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--gold-yellow), transparent);
  margin-left: 1rem;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.card {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

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

.card-header {
  padding: 1.5rem;
  background: var(--primary-blue);
  color: white;
  display: flex;
  align-items: center;
}

.card-header i {
  font-size: 1.5rem;
  margin-right: 0.8rem;
}

.card-body {
  padding: 1.5rem;
}

.news-item {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  display: flex;
}

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

.news-date {
  min-width: 70px;
  background: var(--porcelain-white);
  padding: 0.3rem;
  border-radius: 4px;
  text-align: center;
  margin-right: 1rem;
  font-size: 0.9rem;
  color: var(--primary-blue);
  font-weight: bold;
}

.news-title {
  font-weight: 500;
}

/* 展示区 */
.showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.showcase-card {
  flex: 1;
  min-width: 300px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.showcase-header {
  padding: 1.2rem;
  background: linear-gradient(90deg, var(--primary-blue), var(--river-blue));
  color: white;
  display: flex;
  align-items: center;
}

.showcase-body {
  padding: 1.5rem;
  height: 300px;
  display: flex;
  flex-direction: column;
}

.chart-container {
  width: 100%;
  height: 200px;
  margin-top: 1rem;
}

.ip-list {
  list-style: none;
  margin-top: 1rem;
}

.ip-list li {
  padding: 0.8rem 0;
  border-bottom: 1px dashed #eee;
  display: flex;
  align-items: center;
}

.ip-list li::before {
  content: '•';
  color: var(--gold-yellow);
  font-size: 1.5rem;
  margin-right: 0.8rem;
}

/* 协会智能体 */
.assistant-section {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.ai-assistant {
  flex: 2;
  min-width: 300px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.ai-header {
  padding: 1.2rem;
  background: linear-gradient(90deg, var(--mountain-green), #5d8c5a);
  color: white;
  display: flex;
  align-items: center;
}

.ai-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.crane-icon {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4rem;
  color: var(--mountain-green);
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dashboard {
  flex: 3;
  min-width: 300px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.dashboard-body {
  padding: 1.5rem;
  height: 300px;
}

/* 页脚 */
.footer {
  background: var(--dark-charcoal);
  color: white;
  padding: 3rem 5% 2rem;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h3 {
  color: var(--gold-yellow);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold-yellow);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--gold-yellow);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #444;
  color: #aaa;
  font-size: 0.9rem;
}

/* 动画效果 */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .swiper-container {
    height: 350px;
  }
}

@media (max-width: 992px) {
  .swiper-container {
    height: 300px;
  }
  
  .access-card {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 768px) {
  .swiper-container {
    height: 250px;
  }
  
  .access-card {
    width: 140px;
    height: 140px;
  }
  
  .card {
    min-width: 100%;
  }
  
  .slide-title {
    font-size: 1.5rem;
  }
  
  .slide-desc {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .swiper-container {
    height: 200px;
  }
  
  .access-card {
    width: 120px;
    height: 120px;
  }
  
  .access-icon {
    font-size: 2.5rem;
  }
  
  .access-title {
    font-size: 1rem;
  }
}