/* === 常见问题页面专用样式 === */
:root {
  --max: 1100px;
  --radius: 12px;
  --tb-primary: linear-gradient(135deg, #456df0 0%, #a06ce8 35%, #fc60aa 70%, #ff456c 100%);
  --tb-dark: #111;
  --tb-gray: #1a1a1a;
  --tb-light: #333;
  --tb-white: #fff;
  --header-gradient: linear-gradient(135deg, #456df0 0%, #ff456c 75%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif;
  line-height: 1.6;
  background-color: var(--tb-dark);
  color: var(--tb-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px;
}

/* 头部样式 */
header {
  background: var(--header-gradient);
  color: var(--tb-white);
  padding: clamp(30px, 5vw, 50px) 20px;
  text-align: center;
  margin-bottom: 30px;
}

.back-home a {
  color: var(--tb-white);
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 15px;
}

/* 服务介绍区域 */
.service-intro {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin: 20px auto;
  text-align: center;
}

.service-intro h1 {
  margin-bottom: 15px;
}

.service-intro-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* FAQ分类区域 */
.faq-categories {
  margin: 50px 0;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  justify-content: center;
}

.category-tabs button {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  color: #ccc;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
}

.category-tabs button.tab-active,
.category-tabs button:hover {
  background: var(--tb-primary);
  color: white;
}

/* FAQ内容区域 */
.faq-content {
  max-width: 900px;
  margin: 0 auto;
}

.faq-group {
  margin-bottom: 40px;
}

.faq-group h3 {
  color: var(--tb-white);
  margin-bottom: 20px;
  font-size: 1.3em;
  padding-left: 15px;
  border-left: 4px solid var(--tb-primary);
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 15px;
  transition: background-color 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-item h4 {
  color: var(--tb-white);
  margin-bottom: 10px;
  font-size: 1.1em;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.faq-item h4:after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  color: #456df0;
}

.faq-item p {
  color: #ccc;
  line-height: 1.6;
  margin-top: 10px;
}

/* 联系按钮区域 */
.contact-section {
  text-align: center;
  margin: 50px 0;
}

.contact-section h2 {
  margin-bottom: 15px;
  color: var(--tb-white);
}

.contact-section p {
  color: #ccc;
  margin-bottom: 25px;
}

.contact-btn {
  background: var(--tb-primary);
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 80, 0, 0.35);
  transition: opacity 0.3s, transform 0.3s;
  display: inline-block;
}

.contact-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* 页脚 */
footer {
  background-color: var(--tb-gray);
  color: #aaa;
  padding: 20px;
  text-align: center;
  margin-top: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .category-tabs {
    justify-content: flex-start;
  }
  
  .category-tabs button {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .faq-item {
    padding: 15px;
  }
  
  .faq-item h4 {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .category-tabs {
    flex-direction: column;
  }
  
  .category-tabs button {
    width: 100%;
    text-align: center;
  }
}