/* 头部样式 */
.shell-page-header {
  background-color: #fff;
  padding: 130px 0 0;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.shell-page-header::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, #fff, transparent);
  z-index: -1;
}

.shell-page-header .content {
  text-align: center;
}

.shell-page-header h1 {
  color: #155bd5;
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: 600;
}

.shell-page-header p {
  color: #6c757d;
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 代码块样式 */
.shell-code-block,
.code-block {
  background: #7e7f8a;
  color: #fff;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px auto;
  position: relative;
  overflow: hidden;
}

.shell-code-block {
  max-width: 700px;
}

.shell-code-block code,
.code-block code {
  font-family: 'Fira Code', monospace;
  font-size: 1.5rem;
  color: #fff;
  margin-right: 15px;
  width: 100%;
}

.shell-code-block::before,
.code-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-color);
}

/* 按钮样式 */
.btn-copy {
  background: #155bd5;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 8px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  min-width: 50px;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.btn-copy:hover {
  background: #155bd5;
  border-color: #155bd5;
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-copy.copied {
  background: #4CAF50;
  border-color: #4CAF50;
  color: white;
}

/* 使用方法卡片样式 */
.usage-guide {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.usage-guide .card {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.usage-guide .card:hover {
  transform: translateY(-5px);
}

.usage-guide .card-body {
  padding: 2rem;
}

/* 步骤标题样式 */
.step-title {
  position: relative;
  color: var(--primary-color);
  font-weight: 600;
  margin: 2rem 0 1rem;
  display: flex;
  align-items: center;
  font-size: 1.2rem;
}

.step-title:first-child {
  margin-top: 0;
}

.step-title .text-muted {
  font-size: 0.9rem;
  font-weight: normal;
}

/* 手风琴样式 */
.accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px !important;
  margin-bottom: 10px;
  overflow: hidden;
}

/* 添加浮动效果 */
.accordion-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  /* border-color: #155bd5; */
}

.accordion-button {
  padding: 1.2rem;
  font-weight: 500;
  background: #fff;
  border: none;
}

.accordion-button:not(.collapsed) {
  background: rgba(21, 91, 213, 0.05);
  color: var(--primary-color);
}

/* 添加下拉箭头样式 */
.accordion-button::after {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: auto;
  content: "";
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 1.25rem;
  transition: transform 0.3s ease;
}

/* 添加展开时箭头旋转效果 */
.accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230c63e4'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* 功能列表样式 */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.feature-list li {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.feature-list li:hover {
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.feature-list i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* 标签页导航样式 */
.feature-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

.feature-tab {
  font-size: 1.2rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
}

/* 添加浮动效果 */
.feature-tab:hover {
  color: #333;
  background: #f5f5f5;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: #155bd5;
}

.feature-tab.active {
  color: #fff;
  background: #155bd5;
}

/* 功能网格布局 */
.feature-section {
  max-width: 1200px;
  margin: 0 auto;
  display: none;
}

.feature-section.active {
  display: block;
}

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

.feature-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  height: 100%;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 添加浮动效果 */
.feature-item:hover {
  /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px); */
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: #155bd5;
}

.feature-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.feature-item p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
  line-height: 1.6;
  flex-grow: 1;
}

/* 工具使用说明样式 */
.tools-guide {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.tools-guide .alert {
  border: none;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}

/* 添加浮动效果 */
.tools-guide .alert:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tools-guide .alert-heading {
  color: #155bd5;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.tools-guide ol {
  margin: 0;
  padding-left: 1.2rem;
}

.tools-guide li {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #555;
}

.tools-guide li:last-child {
  margin-bottom: 0;
}

/* 响应式调整 */
@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {

  .usage-guide .card-body,
  .tools-guide .alert {
    padding: 1.5rem;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-section {
    padding: 1rem;
  }

  .feature-tab {
    font-size: 1rem;
    padding: 6px 12px;
  }

  .shell-code-block,
  .code-block {
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    padding: 1rem;
  }

  .shell-code-block code,
  .code-block code {
    font-size: 1rem;
    width: 100%;
    word-break: break-all;
  }

  .btn-copy {
    width: auto;
    min-width: 50px;
    flex-shrink: 0;
    padding: 8px 12px;
  }

  .step-title {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
