/* 新增的使用说明区域样式 - 适配CPS页面主题色 */
.instructions-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 30px;
  background: #1a2236; /* CPS页面次要背景色 */
  border-radius: 12px;
  border: 1px solid #2d3748; /* CPS页面边框色 */
}

.instructions-content {
  display: block;
  animation: fadeIn 0.5s ease;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 大屏幕：3列 */
  gap: 20px;
  margin: 25px 0;
}

.feature-item {
  background: #222d44; /* CPS页面卡片背景色 */
  padding: 20px;
  border-radius: 8px;
  border-left: 3px solid #4a6bff; /* CPS页面主色 */
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.feature-item h3 {
  color: #4a6bff; /* CPS页面主色 */
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.1rem;
  line-height: 1.3;
  flex-shrink: 0;
}

.feature-item p:empty {
  display: none;
}

.feature-item p {
  color: #a0aec0; /* CPS页面次要文本色 */
  line-height: 1.7 !important;
  margin-bottom: 15px;
  flex-grow: 1;
}

.feature-item p:not(:empty) {
  margin-top: 0;
  margin-bottom: 15px;
}

.feature-item .tip {
  font-size: 0.9em;
  color: #cccccc;
  line-height: 1.4;
  padding-top: 12px;
  border-top: 1px solid #2d3748; /* CPS页面边框色 */
  background: linear-gradient(90deg, rgba(74, 107, 255, 0.15), transparent); /* CPS主色渐变 */
  padding: 12px 15px;
  border-radius: 6px;
  position: relative;
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding-left: 25px;
}

.feature-item .tip:before {
  content: "💡";
  position: absolute;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  opacity: 0.8;
}

.feature-item p:empty + .tip {
  border-top: none;
  padding-top: 0;
  background: none;
  margin-top: 0;
  padding-top: 10px;
  border-top: 1px solid #2d3748; /* CPS页面边框色 */
  padding-left: 25px;
}

.feature-item p:empty + .tip:before {
  left: 8px;
}

.feature-item .tip-text {
  color: #cccccc;
  font-weight: 500;
}

.feature-item .tip a {
  color: #4a6bff; /* CPS页面主色 */
  text-decoration: none;
  font-weight: 600;
  padding: 2px 8px 2px 10px;
  border-radius: 4px;
  background: rgba(74, 107, 255, 0.15); /* 主色透明背景 */
  border: 1px solid rgba(74, 107, 255, 0.4); /* 主色边框 */
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-right: 40px;
  flex-shrink: 0;
  box-shadow: 0 0 5px rgba(74, 107, 255, 0.2); /* 主色阴影 */
  position: relative;
  overflow: hidden;
}

.feature-item .tip a:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.7s;
}

.feature-item .tip a:hover:before {
  left: 100%;
}

.feature-item .tip a:after {
  content: "➔";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  font-weight: 900;
  font-size: 1.2em;
  color: #4a6bff; /* CPS页面主色 */
  text-shadow: 
      0 0 3px rgba(74, 107, 255, 0.8),
      0 0 6px rgba(74, 107, 255, 0.6),
      0 0 9px rgba(74, 107, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 
      0 0 0 1.5px rgba(74, 107, 255, 0.4),
      0 0 8px rgba(74, 107, 255, 0.3);
  font-family: "Arial Black", "Segoe UI", sans-serif;
}

.feature-item .tip a:hover {
  text-decoration: none;
  color: #ffffff;
  background: rgba(74, 107, 255, 0.25); /* 悬停时加深 */
  border-color: rgba(74, 107, 255, 0.8); /* 悬停时加深 */
  box-shadow: 0 0 15px rgba(74, 107, 255, 0.6); /* 悬停时加强阴影 */
  transform: translateY(-2px);
}

.feature-item .tip a:hover:after {
  right: 4px;
  color: #ffffff;
  text-shadow: 
      0 0 5px rgba(255, 255, 255, 1),
      0 0 10px rgba(255, 255, 255, 0.8),
      0 0 15px rgba(255, 255, 255, 0.6);
  background: rgba(74, 107, 255, 0.4); /* 主色背景 */
  box-shadow: 
      0 0 0 2px rgba(74, 107, 255, 0.7),
      0 0 15px rgba(74, 107, 255, 0.6),
      0 0 25px rgba(74, 107, 255, 0.4);
  animation: arrow-pulse 0.5s ease-in-out;
}

@keyframes arrow-pulse {
  0%, 100% { 
      transform: translateY(-50%); 
  }
  50% { 
      transform: translateY(-50%) scale(1.4);
  }
}

.feature-item .tip a:active {
  transform: translateY(0);
  box-shadow: 0 0 6px rgba(74, 107, 255, 0.4);
}

.faq-item {
  margin-bottom: 1.5em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid #2d3748; /* CPS页面边框色 */
  line-height: 1.6;
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h3 {
  color: #4a6bff; /* CPS页面主色 */
  margin-bottom: 10px;
  font-size: 1rem;
}

/* FAQ部分样式 */
.faq-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #2d3748; /* CPS页面边框色 */
}

.faq-section h2 {
  color: #4a6bff; /* CPS页面主色 */
  margin-bottom: 25px;
  font-size: 1.4rem;
  text-align: center;
}

.faq-item p {
  color: #a0aec0; /* CPS页面次要文本色 */
  line-height: 1.7 !important;
  margin-bottom: 0.75em;
  font-size: 0.9rem;
}

/* 响应式设计 - 修复断点设置 */
@media (max-width: 1200px) {
  .instructions-section {
      max-width: 1000px;
  }
  
  .feature-grid {
      grid-template-columns: repeat(2, 1fr); /* 中等屏幕显示2列 */
  }
}

@media (max-width: 900px) {
  .instructions-section {
      padding: 20px;
  }
  
  .feature-grid {
      grid-template-columns: 1fr; /* 小屏幕显示1列 */
  }
}

@media (max-width: 600px) {
  .feature-item {
      padding: 15px;
  }
  
  .feature-item .tip {
      padding: 10px;
  }
  
  .feature-item .tip a {
      padding: 3px 10px 3px 12px;
      padding-right: 36px;
  }
  
  .feature-item .tip a:after {
      width: 22px;
      height: 22px;
      font-size: 1.1em;
      right: 6px;
  }
}

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

/* FAQ链接优化样式 */
.faq-item .faq-link-container {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.faq-item .faq-tip-text {
  color: #a0aec0; /* CPS页面次要文本色 */
  font-size: 0.85rem;
  font-style: italic;
  flex-shrink: 0;
}

.faq-item .faq-link {
  color: #4a6bff; /* CPS页面主色 */
  text-decoration: none;
  font-weight: 600;
  padding: 4px 12px 4px 14px;
  border-radius: 6px;
  background: rgba(74, 107, 255, 0.15); /* 主色透明背景 */
  border: 1px solid rgba(74, 107, 255, 0.4); /* 主色边框 */
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-right: 42px;
  font-size: 0.9rem;
  box-shadow: 0 0 8px rgba(74, 107, 255, 0.2); /* 主色阴影 */
  position: relative;
  overflow: hidden;
  line-height: 1.4;
}

.faq-item .faq-link:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.7s;
}

.faq-item .faq-link:hover:before {
  left: 100%;
}

.faq-item .faq-link:after {
  content: "➔";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  font-weight: 900;
  font-size: 1.1em;
  color: #4a6bff; /* CPS页面主色 */
  text-shadow: 
      0 0 3px rgba(74, 107, 255, 0.8),
      0 0 6px rgba(74, 107, 255, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 
      0 0 0 1.5px rgba(74, 107, 255, 0.4),
      0 0 8px rgba(74, 107, 255, 0.3);
  font-family: "Arial Black", "Segoe UI", sans-serif;
}

.faq-item .faq-link:hover {
  text-decoration: none;
  color: #ffffff;
  background: rgba(74, 107, 255, 0.25); /* 悬停时加深 */
  border-color: rgba(74, 107, 255, 0.8); /* 悬停时加深 */
  box-shadow: 0 0 15px rgba(74, 107, 255, 0.6); /* 悬停时加强阴影 */
  transform: translateY(-2px);
}

.faq-item .faq-link:hover:after {
  right: 6px;
  color: #ffffff;
  text-shadow: 
      0 0 5px rgba(255, 255, 255, 1),
      0 0 10px rgba(255, 255, 255, 0.8);
  background: rgba(74, 107, 255, 0.4); /* 主色背景 */
  box-shadow: 
      0 0 0 2px rgba(74, 107, 255, 0.7),
      0 0 15px rgba(74, 107, 255, 0.6);
  animation: arrow-pulse 0.5s ease-in-out;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .faq-section {
      margin-top: 30px;
      padding-top: 20px;
  }
  
  .faq-section h2 {
      font-size: 1.2rem;
  }
  
  .faq-item .faq-link-container {
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
  }
  
  .faq-item .faq-link {
      font-size: 0.85rem;
      padding: 3px 10px 3px 12px;
      padding-right: 38px;
  }
  
  .faq-item .faq-link:after {
      width: 20px;
      height: 20px;
      font-size: 1em;
      right: 8px;
  }
}

@media (max-width: 480px) {
  .faq-item .faq-tip-text {
      font-size: 0.8rem;
  }
  
  .faq-item .faq-link {
      width: 100%;
      justify-content: space-between;
  }
}