/* 全局样式 */
:host {
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "阿里巴巴普惠体", sans-serif;
  }
  
  body {
    background-color: #f8f4e8;
    background-image: url('/assets/images/paper-texture.webp');
    color: #333;
    line-height: 1.6;
  }
}

/* 自定义字体 - 修正路径 */
@font-face {
  font-family: "赣锋体";
  src: url('/assets/fonts/ganfeng.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* 主色调定义 */
:root {
  --primary-blue: #2F7DAD;  /* 天青瓷 */
  --primary-green: #5B8C5A; /* 香樟绿 */
  --primary-gold: #D4B16A; /* 庐金 */
  --secondary-gray: #6D6D6D; /* 婺源黛瓦灰 */
  --secondary-red: #C53D43;  /* 井冈山鹃红 */
  --secondary-white: #F0F0F0; /* 鄱阳湖银白 */
}

/* 智能Banner区域 */
.banner {
  height: 500px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #f8f4e8, #e8e0d0);
  
  .banner-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 3;
    max-width: 40%;
  }
  
  .banner-title {
    font-family: "赣锋体", serif;
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  }
  
  .banner-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
  }
  
  .banner-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--primary-gold);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    
    &:hover {
      background-color: #c9a055;
      transform: translateY(-3px);
      box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    }
  }
  
  .banner-bg {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 60%;
    background: url('/assets/images/jiangxi-landscape.webp') center right no-repeat;
    background-size: contain;
    opacity: 0.9;
    
    &::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: radial-gradient(circle at 70% 50%, transparent 30%, rgba(248,244,232,0.8));
    }
  }
}

/* 数智动态区 */
.dynamic-section {
  padding: 4rem 10%;
  background-color: white;
  position: relative;
  
  .section-title {
    font-family: "赣锋体", serif;
    font-size: 2.2rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    
    &::after {
      content: "";
      display: block;
      width: 80px;
      height: 3px;
      background: linear-gradient(to right, var(--primary-blue), var(--primary-green));
      margin: 1rem auto 0;
    }
  }
  
  .dynamic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    
    .dynamic-card {
      background-color: white;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
      transition: all 0.3s ease;
      position: relative;
      
      &:hover {
        transform: translateY(-10px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.12);
      }
      
      .card-img {
        height: 200px;
        background-size: cover;
        background-position: center;
        position: relative;
        
        &::after {
          content: "";
          position: absolute;
          top: 0;
          left: 0;
          right: 0;
          bottom: 0;
          background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.6));
        }
      }
      
      .card-content {
        padding: 1.5rem;
        
        .card-title {
          font-size: 1.3rem;
          color: var(--primary-blue);
          margin-bottom: 0.8rem;
        }
        
        .card-desc {
          color: var(--secondary-gray);
          margin-bottom: 1.5rem;
          font-size: 0.95rem;
        }
        
        .card-link {
          display: inline-block;
          color: var(--primary-gold);
          text-decoration: none;
          font-weight: bold;
          position: relative;
          
          &::after {
            content: "";
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 1px;
            background-color: var(--primary-gold);
            transition: transform 0.3s ease;
            transform-origin: right;
            transform: scaleX(0);
          }
          
          &:hover::after {
            transform-origin: left;
            transform: scaleX(1);
          }
        }
      }
    }
  }
}

/* 共创展示区 */
.co-creation-section {
  padding: 4rem 10%;
  background-color: #f5f9f5;
  position: relative;
  
  .co-creation-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    
    .co-creation-item {
      min-width: 300px;
      scroll-snap-align: start;
      background-color: white;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
      
      .cc-img {
        height: 180px;
        background-size: cover;
        background-position: center;
      }
      
      .cc-content {
        padding: 1.5rem;
        
        .cc-title {
          font-size: 1.2rem;
          color: var(--primary-green);
          margin-bottom: 0.5rem;
        }
        
        .cc-author {
          color: var(--secondary-gray);
          font-size: 0.9rem;
          margin-bottom: 1rem;
        }
      }
    }
  }
}

/* 协会智能体 */
.ai-section {
  padding: 4rem 10%;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
  color: white;
  text-align: center;
  
  .ai-container {
    max-width: 800px;
    margin: 0 auto;
    
    .ai-title {
      font-family: "赣锋体", serif;
      font-size: 2.5rem;
      margin-bottom: 1.5rem;
    }
    
    .ai-desc {
      margin-bottom: 2rem;
      font-size: 1.1rem;
      line-height: 1.8;
    }
    
    .ai-features {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem;
      margin-top: 3rem;
      
      .ai-feature {
        background-color: rgba(255,255,255,0.1);
        padding: 1.5rem;
        border-radius: 8px;
        backdrop-filter: blur(5px);
        transition: all 0.3s ease;
        
        &:hover {
          background-color: rgba(255,255,255,0.2);
          transform: translateY(-5px);
        }
        
        .ai-icon {
          font-size: 2.5rem;
          margin-bottom: 1rem;
          color: var(--primary-gold);
        }
        
        .ai-feature-title {
          font-size: 1.2rem;
          margin-bottom: 0.5rem;
        }
      }
    }
  }
}

/* 页脚 */
.footer {
  background-color: #2a2a2a;
  color: white;
  padding: 4rem 10% 2rem;
  
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
    
    .footer-col {
      h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        color: var(--primary-gold);
      }
      
      .footer-links {
        list-style: none;
        
        li {
          margin-bottom: 0.8rem;
          
          a {
            color: #ccc;
            text-decoration: none;
            transition: color 0.3s ease;
            
            &:hover {
              color: var(--primary-gold);
            }
          }
        }
      }
    }
  }
  
  .footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #999;
    font-size: 0.9rem;
  }
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .dynamic-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .ai-features {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .banner {
    height: auto !important;
    padding: 3rem 1rem !important;
    
    .banner-content {
      position: static !important;
      transform: none !important;
      max-width: 100% !important;
      text-align: center !important;
    }
    
    .banner-bg {
      position: relative !important;
      width: 100% !important;
      height: 300px !important;
      margin-top: 2rem !important;
    }
  }
  
  .dynamic-grid {
    grid-template-columns: 1fr !important;
  }
  
  .ai-features {
    grid-template-columns: 1fr !important;
  }
  
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
}