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

/* Banner区域 */
.banner-section {
  padding: 1.5rem 5%;
  margin-top: 1rem;
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1579033462043-0f11a7862f7d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') center/cover;
  z-index: -1;
}

.banner-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 2rem;
  z-index: 2;
}

.banner-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  animation: fadeInDown 1s ease;
}

.banner-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease;
}

/* 会员门户区域 */
.section-header {
  text-align: center;
  padding: 3rem 5% 2rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gold-yellow);
  border-radius: 2px;
}

.section-desc {
  font-size: 1.2rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  padding: 0 5% 5rem;
}

.service-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 400px;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.service-header {
  padding: 1.8rem;
  background: linear-gradient(90deg, var(--primary-blue), var(--river-blue));
  color: white;
  text-align: center;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.8rem;
  font-weight: bold;
}

.service-body {
  padding: 2rem;
}

/* OCR注册区域 */
.ocr-gate {
  position: relative;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom, #e9e5d8, #f8f6f0);
  border: 3px solid var(--gold-yellow);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.gate-arch {
  position: absolute;
  top: 0;
  width: 100%;
  height: 30px;
  background: var(--ceramic-red);
  border-radius: 50% 50% 0 0;
}

.gate-pillar {
  position: absolute;
  bottom: 0;
  width: 20px;
  height: 180px;
  background: var(--ceramic-red);
}

.gate-pillar.left {
  left: 20%;
}

.gate-pillar.right {
  right: 20%;
}

.lantern {
  position: absolute;
  top: 25px;
  width: 25px;
  height: 35px;
  background: var(--gold-yellow);
  border-radius: 50%;
  opacity: 0.4;
  transition: all 0.5s ease;
}

.lantern.left {
  left: 20%;
}

.lantern.right {
  right: 20%;
}

.lantern.active {
  opacity: 1;
  background: #ff6b6b;
  box-shadow: 0 0 20px #ff6b6b;
}

.ocr-content {
  z-index: 2;
  text-align: center;
}

.ocr-btn {
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  font-weight: bold;
}

.ocr-btn:hover {
  background: var(--river-blue);
  transform: scale(1.05);
}

.ceramic-shard {
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 3px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 1s ease;
}

/* 成就筛选区 */
.achievement-filter {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 1.2rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  
  .search-input {
    padding: 0.8rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
    
    &:focus {
      border-color: var(--primary-blue);
      box-shadow: 0 0 0 3px rgba(74, 134, 232, 0.1);
      outline: none;
    }
  }
  
  .category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    
    button {
      padding: 0.5rem 1.2rem;
      background: #f0f4f8;
      border: none;
      border-radius: 20px;
      font-size: 0.9rem;
      cursor: pointer;
      transition: all 0.3s ease;
      
      &.active, &:hover {
        background: var(--primary-blue);
        color: white;
      }
    }
  }
}

/* 成就项样式 */
.achievement-item {
  width: 220px;
  height: 260px;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  position: relative;
  
  &.user-achievement {
    border: 2px solid var(--gold-yellow);
    box-shadow: 0 8px 25px rgba(232, 195, 77, 0.3);
  }
  
  &.add-item {
    background: rgba(232, 195, 77, 0.1);
    border: 2px dashed var(--gold-yellow);
    justify-content: center;
    color: var(--gold-yellow);
    cursor: pointer;
    
    i {
      font-size: 3rem;
      margin-bottom: 1rem;
    }
    
    span {
      font-weight: bold;
    }
    
    &:hover {
      background: rgba(232, 195, 77, 0.2);
      transform: scale(1.05);
    }
  }
  
  .achievement-icon {
    width: 70px;
    height: 70px;
    background: rgba(42, 93, 170, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.2rem;
    
    i {
      font-size: 2.2rem;
      color: var(--primary-blue);
    }
  }
  
  .achievement-content {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    
    h4 {
      font-size: 1.2rem;
      color: var(--dark-charcoal);
      margin-bottom: 0.8rem;
      line-height: 1.3;
    }
    
    p {
      color: #555;
      font-size: 0.95rem;
      line-height: 1.5;
      margin-bottom: 1rem;
      flex: 1;
    }
    
    .achievement-meta {
      display: flex;
      justify-content: space-between;
      font-size: 0.85rem;
      color: #777;
      
      span {
        display: flex;
        align-items: center;
        gap: 0.3rem;
      }
    }
  }
  
  .achievement-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    
    button {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s ease;
      
      &.edit-btn {
        background: rgba(42, 93, 170, 0.1);
        color: var(--primary-blue);
        
        &:hover {
          background: var(--primary-blue);
          color: white;
        }
      }
      
      &.delete-btn {
        background: rgba(199, 62, 58, 0.1);
        color: var(--ceramic-red);
        
        &:hover {
          background: var(--ceramic-red);
          color: white;
        }
      }
    }
  }
  
  &:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    
    .achievement-actions {
      opacity: 1;
    }
  }
}

/* 成就表单样式 */
.achievement-form {
  background: white;
  border-radius: 15px;
  padding: 1.8rem;
  margin-top: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-top: 3px solid var(--gold-yellow);
  
  h4 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    
    i {
      font-size: 1.4rem;
    }
  }
  
  .form-group {
    margin-bottom: 1.5rem;
    
    label {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
      font-weight: bold;
      color: var(--primary-blue);
    }
    
    input, textarea, select {
      width: 100%;
      padding: 0.8rem 1rem;
      border: 1px solid #ddd;
      border-radius: 8px;
      font-size: 1rem;
      transition: all 0.3s ease;
      
      &:focus {
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 3px rgba(74, 134, 232, 0.1);
        outline: none;
      }
    }
    
    textarea {
      min-height: 100px;
      resize: vertical;
    }
  }
  
  .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
    
    button {
      padding: 0.8rem 1.5rem;
      border-radius: 30px;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      
      &.cancel-btn {
        background: #f8f9fa;
        border: 1px solid #ddd;
        color: #555;
        
        &:hover {
          background: #e9ecef;
        }
      }
      
      &.save-btn {
        background: var(--primary-blue);
        color: white;
        border: none;
        
        &:hover {
          background: #1d4a8d;
          transform: translateY(-2px);
        }
      }
    }
  }
}

/* 晾晒架布局优化 */
.drying-rack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  width: 100%;
  padding: 1rem;
}

/* 单位对接 */
.migration-map {
  width: 100%;
  height: 300px;
  background: linear-gradient(to bottom, #e6f7ff, #f0f8ff);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.crane {
  position: absolute;
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  color: var(--dark-charcoal);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: all 0.5s ease;
  cursor: pointer;
}

.crane:hover {
  transform: scale(1.2);
  z-index: 10;
}

.crane.hovered {
  transform: scale(1.3);
  z-index: 10;
}

.crane.main-crane {
  background: var(--gold-yellow);
  color: white;
  transform: scale(1.3);
}

/* 共创空间 */
.creative-space {
  background: linear-gradient(135deg, #f8f9fa 0%, #e6f7ff 100%);
  padding: 5rem 5%;
}

.space-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.space-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

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

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

.space-icon {
  font-size: 2rem;
}

.space-title {
  font-size: 1.5rem;
  font-weight: bold;
}

.space-body {
  padding: 2rem;
}

/* 任务筛选 */
.task-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1.2rem;
  background: rgba(232, 195, 77, 0.1);
  border-radius: 10px;
  
  .filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    
    label {
      font-weight: bold;
      color: var(--primary-blue);
    }
    
    select, input {
      padding: 0.5rem;
      border: 1px solid #ddd;
      border-radius: 5px;
      background: white;
    }
    
    input {
      width: 80px;
    }
  }
  
  .reset-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    
    &:hover {
      background: var(--river-blue);
    }
  }
}

/* 任务展示 */
.ceramic-tasks {
  min-height: 300px; /* 防止无任务时布局塌陷 */
}

/* 任务项样式优化 */
.ceramic-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
  &:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 2;
  }
  
  // 不同类型任务的颜色区分
  &.vase {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, #e6f7ff 0%, #d1e8ff 100%);
  }
  
  &.bowl {
    border-color: var(--gold-yellow);
    background: linear-gradient(135deg, #fff9db 0%, #fff3b0 100%);
  }

  
  .task-icon {
    width: 50px;
    height: 50px;
    background: rgba(42, 93, 170, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.8rem;
    
    i {
      font-size: 1.5rem;
      color: var(--primary-blue);
    }
  }
  
  .task-content {
    h4 {
      font-size: 1.1rem;
      margin-bottom: 0.5rem;
      color: var(--dark-charcoal);
    }
    
    p {
      font-size: 0.9rem;
      margin: 0.2rem 0;
      color: #555;
      
      &.reward {
        color: var(--gold-yellow);
        font-weight: bold;
      }
      
      &.deadline {
        color: var(--ceramic-red);
      }
    }
    
    .task-status {
      display: inline-block;
      padding: 0.2rem 0.8rem;
      border-radius: 15px;
      font-size: 0.8rem;
      margin-top: 0.5rem;
      
      &.pending {
        background: rgba(74, 134, 232, 0.2);
        color: var(--primary-blue);
      }
      
      &.progress {
        background: rgba(232, 195, 77, 0.2);
        color: var(--gold-yellow);
      }
      
      &.completed {
        background: rgba(74, 107, 61, 0.2);
        color: var(--mountain-green);
      }
    }
  }
  
  .task-accept {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(74, 134, 232, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    
    i {
      color: var(--primary-blue);
    }
    
    &:hover {
      background: var(--primary-blue);
      
      i {
        color: white;
      }
    }
  }
  
  &:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  
  // 接单动画
  &.accepting {
    animation: potteryWheel 2s ease-in-out;
  }
}

@keyframes potteryWheel {
  0% { transform: rotate(0) translateY(0); }
  25% { transform: rotate(90deg) translateY(-10px); }
  50% { transform: rotate(180deg) translateY(0); }
  75% { transform: rotate(270deg) translateY(-10px); }
  100% { transform: rotate(360deg) translateY(0); }
}

/* 无任务提示 */
.no-tasks {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: #666;
  
  i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
  }
  
  .reset-btn {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
  }
}

/* 任务详情 */
.task-header {
  text-align: center;
  margin-bottom: 1.5rem;
  
  .task-icon {
    width: 80px;
    height: 80px;
    background: rgba(42, 93, 170, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem;
    
    i {
      font-size: 2.5rem;
      color: var(--primary-blue);
    }
  }
  
  h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
  }
  
  .task-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: #666;
    font-size: 0.95rem;
  }
}

.task-details {
  .detail-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .detail-item {
    flex: 1;
    background: var(--porcelain-white);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    
    i {
      font-size: 1.5rem;
      color: var(--primary-blue);
    }
    
    &.full-width {
      flex: 0 0 100%;
      margin-bottom: 1rem;
    }
    
    strong {
      display: block;
      margin-bottom: 0.3rem;
      color: var(--primary-blue);
    }
  }
  
  .task-status {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    
    &.pending {
      background: rgba(74, 134, 232, 0.2);
      color: var(--primary-blue);
    }
    
    &.progress {
      background: rgba(232, 195, 77, 0.2);
      color: var(--gold-yellow);
    }
    
    &.completed {
      background: rgba(74, 107, 61, 0.2);
      color: var(--mountain-green);
    }
  }
}

.modal-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  
  .accept-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    
    &:hover:not([disabled]) {
      background: var(--river-blue);
      transform: translateY(-3px);
    }
    
    &[disabled] {
      opacity: 0.7;
      cursor: not-allowed;
    }
  }
  
  .close-btn {
    background: #f0f0f0;
    color: #555;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    
    &:hover {
      background: #e0e0e0;
    }
  }
}

.ceramic-items {
  display: flex;
  justify-content: space-around;
  margin: 1.5rem 0;
}

.ceramic-item {
  width: 80px;
  height: 100px;
  background: #f8f6f0;
  border: 2px solid var(--gold-yellow);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ceramic-item.vase {
  height: 120px;
  border-radius: 40% 40% 10px 10px;
}

.ceramic-item.bowl {
  border-radius: 50% 50% 10px 10px;
}

.ceramic-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 奖励体系 */
.reward-system {
  padding: 5rem 5%;
  background: linear-gradient(135deg, #fff9f0 0%, #fff 100%);
}

.terrace-form {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.8rem;
  position: relative;
  padding: 1.2rem;
  background: var(--porcelain-white);
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.form-group:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: var(--primary-blue);
}

.form-input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: var(--river-blue);
  box-shadow: 0 0 0 3px rgba(74, 134, 232, 0.1);
  outline: none;
}

.ripple {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--river-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.form-input:focus ~ .ripple {
  transform: scaleX(1);
}

/* 三维荣誉墙样式 */
.pavilion-honor {
  width: 100%;
  height: 500px;
  background: linear-gradient(to bottom, #e6f7ff, #d1e8ff);
  border-radius: 15px;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  
  .pavilion-model {
    width: 320px;
    height: 320px;
    background: url('https://img.zcool.cn/community/01e8b35f4c7d8c11013e3187c926b0.png@1280w_1l_2o_100sh.png') center/contain no-repeat;
    position: relative;
    transition: transform 0.1s ease;
  }
  
  .no-awards {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--primary-blue);
    
    h3 {
      margin-bottom: 0.5rem;
    }
    
    p {
      color: #666;
    }
  }
}

.terrace-form {
  .form-group {
    margin-bottom: 0;
    padding: 1rem;
    
    label {
      display: block;
      margin-bottom: 0.5rem;
      font-weight: bold;
      color: var(--primary-blue);
    }
    
    select {
      width: 100%;
      padding: 0.8rem;
      border: 1px solid #ddd;
      border-radius: 5px;
      font-size: 1rem;
      background: white;
      appearance: none;
      background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a5daa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
      background-repeat: no-repeat;
      background-position: right 1rem center;
      background-size: 1rem;
      cursor: pointer;
      
      &:focus {
        border-color: var(--river-blue);
        box-shadow: 0 0 0 3px rgba(74, 134, 232, 0.1);
        outline: none;
      }
    }
  }
  
  .ocr-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    
    &:hover {
      transform: translateY(-3px);
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
  }
}

/* 荣誉项样式 */
.honor-item {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 2px solid var(--gold-yellow);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1;
  padding: 10px;
  box-sizing: border-box;
  position: absolute;
  text-align: center;
  
  &.gold {
    border-color: #ffd700;
    background: linear-gradient(135deg, #fff9db 0%, #ffffff 100%);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
  }
  
  &.silver {
    border-color: #c0c0c0;
    background: linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%);
    box-shadow: 0 5px 15px rgba(192, 192, 192, 0.3);
  }
  
  &.bronze {
    border-color: #cd7f32;
    background: linear-gradient(135deg, #f8e9d9 0%, #ffffff 100%);
    box-shadow: 0 5px 15px rgba(205, 127, 50, 0.3);
  }
  
  .award-name {
    font-weight: bold;
    text-align: center;
    font-size: 0.9rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
    line-height: 1.2;
  }
  
  .award-year {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--ceramic-red);
    margin-bottom: 3px;
  }
  
  .award-category {
    font-size: 0.8rem;
    color: var(--mountain-green);
    background: rgba(232, 195, 77, 0.2);
    padding: 3px 8px;
    border-radius: 10px;
    width: 100%;
  }
  
  &:hover {
    transform: scale(1.15) !important;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(232, 195, 77, 0.4);
  }
}

/* 模态框样式 */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  
  &:hover {
    color: var(--ceramic-red);
  }
}

.award-header {
  text-align: center;
  margin-bottom: 1.5rem;
  
  .award-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem;
    font-size: 2.5rem;
    
    &.gold {
      background: linear-gradient(135deg, #ffd700 0%, #ffec8b 100%);
      color: #b8860b;
    }
    
    &.silver {
      background: linear-gradient(135deg, #e6e6e6 0%, #ffffff 100%);
      color: #808080;
    }
    
    &.bronze {
      background: linear-gradient(135deg, #cd7f32 0%, #e9b384 100%);
      color: #8b4513;
    }
  }
  
  h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
  }
  
  .award-subtitle {
    color: #666;
    font-size: 1.1rem;
  }
}

.award-details {
  .detail-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .detail-item {
    flex: 1;
    background: var(--porcelain-white);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    
    i {
      font-size: 1.5rem;
      color: var(--primary-blue);
      margin-top: 0.3rem;
    }
    
    &.full-width {
      flex: 0 0 100%;
      margin-bottom: 1rem;
    }
    
    strong {
      display: block;
      margin-bottom: 0.3rem;
      color: var(--primary-blue);
    }
  }
}

.winners-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
  
  .winner-item {
    background: rgba(74, 134, 232, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    
    .winner-type {
      background: rgba(232, 195, 77, 0.3);
      padding: 0.2rem 0.5rem;
      border-radius: 10px;
      font-size: 0.8rem;
      margin-left: 0.5rem;
    }
  }
}

.modal-footer {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

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

.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 fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@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: 768px) {
  .banner-title {
    font-size: 2.5rem;
  }
  
  .banner-subtitle {
    font-size: 1.2rem;
  }
  
  .services-container {
    flex-direction: column;
    align-items: center;
  }
  
  .space-grid {
    grid-template-columns: 1fr;
  }
}
/* 新增成就项样式 */
.achievement-item {
  width: 120px;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
  position: relative;
  
  i {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }
  
  .achievement-details {
    flex: 1;
    overflow: hidden;
  }
  
  .achievement-actions {
    position: absolute;
    bottom: 5px;
    right: 5px;
    display: flex;
    gap: 5px;
    
    button {
      background: rgba(255, 255, 255, 0.8);
      border: none;
      border-radius: 50%;
      width: 25px;
      height: 25px;
      cursor: pointer;
      
      &:hover {
        background: var(--gold-yellow);
      }
    }
  }
}

.achievement-form {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  
  .form-group {
    margin-bottom: 15px;
    
    label {
      display: block;
      margin-bottom: 5px;
      font-weight: bold;
    }
    
    input, textarea, select {
      width: 100%;
      padding: 8px;
      border: 1px solid #ddd;
      border-radius: 4px;
    }
  }
  
  .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    
    button {
      padding: 8px 15px;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      
      &:first-child {
        background: var(--primary-blue);
        color: white;
      }
    }
  }
}