
/* ==========================================
   基础样式与全站纯白适配
   ========================================== */
.san-ace-faq-section {
    padding: 100px 0;
    background-color: #ffffff; /* 严格白色调性 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
}

.faq-container {
    max-width: 900px; /* FAQ 采用窄版居中排版更显精致专业 */
    margin: 0 auto;
    padding: 0 30px;
}

/* 头部样式 */
.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-tagline {
    color: #004B87; /* 品牌工业蓝 */
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 12px;
}

.faq-header h2 {
    color: #0F172A;
    font-size: 34px;
    font-weight: 700;
    margin: 0;
}

.faq-header-line {
    width: 45px;
    height: 3px;
    background-color: #C1272E; /* 标志红 */
    margin: 20px auto 0 auto;
}

/* ==========================================
   风琴折叠卡片核心样式
   ========================================== */
.faq-accordion-group {
    display: flex;
    flex-direction: column;
    gap: 16px; /* 卡片之间的间距 */
}

/* 单个 FAQ 容器 */
.faq-item {
    background-color: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 💥 Hover 态：未展开时，鼠标悬停边框微微加深 */
.faq-item:hover {
    border-color: #CBD5E1;
}

/* 点击触发区（头部问句行） */
.faq-trigger {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
    user-select: none;
    gap: 20px;
}

/* 激活时左侧出现的垂直标志红线 */
.faq-active-bar {
    position: absolute;
    left: 0; top: 0;
    width: 4px; height: 100%;
    background-color: #C1272E;
    transform: scaleY(0); /* 默认隐藏缩短 */
    transition: transform 0.3s ease;
}

/* 问题字样 */
.faq-question {
    font-size: 16px;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.4;
    transition: color 0.3s ease;
}

/* 展开箭头 */
.faq-arrow {
    color: #94A3B8;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

/* ==========================================
   💥 点击激活状态下的样式切换（核心高亮）
   ========================================== */
.faq-item.is-open {
    border-color: #CBD5E1;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.03);
}

/* 激活时展开左边红条 */
.faq-item.is-open .faq-active-bar {
    transform: scaleY(1);
}

/* 激活时问题文字变成品牌红 */
.faq-item.is-open .faq-question {
    color: #C1272E;
}

/* 激活时箭头翻转并变红 */
.faq-item.is-open .faq-arrow {
    transform: rotate(180deg);
    color: #C1272E;
}

/* ==========================================
   隐藏的内容平滑展开区
   ========================================== */
.faq-content {
    max-height: 0; /* 默认关闭高度 */
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-content-inner {
    padding: 0 30px 24px 30px; /* 侧边距与触发区对齐 */
}

.faq-content-inner p {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}


/* ==========================================
   屏幕与移动端自适应
   ========================================== */
@media (max-width: 1023px) {
    .faq-container { padding: 0 20px; }
    .faq-header h2 { font-size: 28px; }
    .faq-trigger { padding: 20px 24px; }
    .faq-content-inner { padding: 0 24px 20px 24px; }
}

@media (max-width: 767px) {
    .san-ace-faq-section { padding: 60px 0; }
    .faq-header { margin-bottom: 40px; }
    .faq-header h2 { font-size: 24px; }
    .faq-question { font-size: 14px; }
    .faq-content-inner p { font-size: 13px; }
}
