// FAQ 样式
.faq-page {
  min-height: 100vh;
  background: #f5f5f5;
  padding-bottom: calc(140px + env(safe-area-inset-bottom));
}

// 搜索栏
.search-bar {
  display: flex;
  align-items: center;
  padding: 24px;
  background: #fff;
  
  .search-input {
    flex: 1;
    height: 72px;
    padding: 0 24px;
    background: #f5f5f5;
    border-radius: 36px;
    font-size: 28px;
  }
  
  .search-btn {
    margin-left: 20px;
    padding: 0 32px;
    height: 72px;
    line-height: 72px;
    background: #007aff;
    color: #fff;
    border-radius: 36px;
    font-size: 28px;
    
    &::after { border: none; }
  }
}

// 分类标签
.category-scroll {
  background: #fff;
  white-space: nowrap;
  
  .category-tabs {
    display: inline-flex;
    padding: 0 16px 24px;
  }
  
  .category-tab {
    display: inline-flex;
    align-items: center;
    padding: 16px 28px;
    margin-right: 16px;
    background: #f5f5f5;
    border-radius: 32px;
    font-size: 26px;
    color: #666;
    white-space: nowrap;
    
    &.active {
      background: #007aff;
      color: #fff;
    }
  }
}

// 统计栏
.stats-bar {
  padding: 24px;
  background: #fff;
  
  .stats-text {
    font-size: 26px;
    color: #999;
  }
}

// FAQ 列表
.faq-list {
  height: calc(100vh - 450px);
  padding: 0 24px;
}

.loading, .empty {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  color: #999;
  font-size: 28px;
}

.faq-item {
  background: #fff;
  border-radius: 20px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  
  &.expanded {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }
  
  .faq-question {
    display: flex;
    align-items: center;
    padding: 28px;
    
    .question-icon {
      width: 48px;
      height: 48px;
      background: #007aff;
      color: #fff;
      font-size: 24px;
      font-weight: 700;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin-right: 16px;
    }
    
    .question-text {
      flex: 1;
      font-size: 30px;
      font-weight: 600;
      color: #333;
      line-height: 1.4;
    }
    
    .expand-icon {
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 36px;
      color: #999;
      flex-shrink: 0;
    }
  }
  
  .faq-answer {
    padding: 0 28px 28px;
    padding-left: 92px;
    
    .answer-header {
      display: flex;
      align-items: center;
      margin-bottom: 16px;
      
      .answer-icon {
        width: 40px;
        height: 40px;
        background: #34c759;
        color: #fff;
        font-size: 22px;
        font-weight: 700;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 12px;
      }
      
      .answer-label {
        font-size: 24px;
        color: #34c759;
        font-weight: 600;
      }
    }
    
    .answer-text {
      font-size: 28px;
      color: #666;
      line-height: 1.8;
      white-space: pre-wrap;
    }
    
    .answer-tags {
      display: flex;
      flex-wrap: wrap;
      margin-top: 20px;
      
      .tag {
        padding: 8px 16px;
        background: #f0f7ff;
        color: #007aff;
        font-size: 22px;
        border-radius: 8px;
        margin-right: 12px;
        margin-bottom: 12px;
      }
    }
    
    .answer-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 24px;
      padding-top: 20px;
      border-top: 1px solid #f0f0f0;
      
      .helpful-info {
        display: flex;
        
        .helpful-text {
          font-size: 24px;
          color: #34c759;
          margin-right: 16px;
        }
        
        .unhelpful-text {
          font-size: 24px;
          color: #999;
        }
      }
      
      .helpful-actions {
        display: flex;
        
        .helpful-btn {
          padding: 12px 20px;
          font-size: 22px;
          background: #f5f5f5;
          color: #666;
          border-radius: 8px;
          margin-left: 12px;
          
          &::after { border: none; }
        }
      }
    }
  }
}

// 底部提示
.footer-tip {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #eee;
  
  .tip-text {
    font-size: 28px;
    color: #666;
    margin-right: 16px;
  }
  
  .ticket-btn {
    padding: 16px 32px;
    background: #007aff;
    color: #fff;
    font-size: 28px;
    border-radius: 32px;
    
    &::after { border: none; }
  }
}
