.question-item {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.3s ease, transform 0.3s ease; /* 动画持续时间 */
    will-change: opacity, transform; /* 优化性能 */
}


/* support.html */
.support {
    position: relative;
    overflow: hidden;
}

.support-image {
    width: 100%;
    height: auto;
}

.support-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.support-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* 左半部分 */
    height: 100%;
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    padding: 20px;
    box-sizing: border-box;
}

.support-title {
    text-align: center;
    color: white; /* 根据图片调整文本颜色 */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* 添加文本阴影增强可读性 */
}

.support-title span {
    display: block;
    margin-bottom: 10px; /* 调整间距 */
}

.support-title span:first-child {
    font-size: clamp(2rem, 4vw, 4rem); /* 响应式字体 */
    font-weight: bold;
}

.support-title span:nth-child(2) {
    font-size: clamp(1rem, 2vw, 1.5rem); /* 响应式字体 */
}

.support-title span:last-child {
    font-size: clamp(1rem, 2vw, 1.5rem); /* 响应式字体 */
}

.question-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px;
    margin-bottom: 100px;
}

.question-title {
    margin-bottom: 30px;
}

.question-item {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
}

.question-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.question-content,
.question-answer {
    display: flex;
    align-items: flex-start;
    padding: 15px 20px;
    border-radius: 8px;
    width: 100%; /* 修改为100%，继承父容器宽度 */
    box-sizing: border-box; /* 确保内边距包含在宽度内 */
}

.question-content {
    background-color: #ffffff;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.question-content:hover {
    background-color: #ebf0f5;
}

.question-answer {
    max-height: 200px;
    min-height: 130px;
    background-color: #ffffff;
    display: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease, padding 0.3s ease;
    padding-top: 0;
    padding-bottom: 0;
}

.question-content img,
.question-answer img {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    flex-shrink: 0;
}

.question-content span {
    line-height: 1.6;
    font-size: 22px;
    font-weight: bold;
    color: #333; /* 默认黑色文字 */
}

.question-answer span {
    margin-left: 10px;
    line-height: 1.8;
    font-size: 22px;
    text-indent: 2em;
}

/* 折叠按钮样式 */
.toggle-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.toggle-btn::after {
    content: "\f067";
    font-family: "FontAwesome";
    color: #3498db;
}

/* 展开状态 */
.question-item.expanded .question-content {
    background-color: #f8f9fa;
    border-left: 4px solid #b95f57;
    color: #b95f57;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.question-item.expanded .question-content span {
    color: #b95f57;
}

.question-item.expanded .question-answer {
    display: flex;
    max-height: 500px;
    opacity: 1;
    padding-top: 15px;
    padding-bottom: 15px;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.question-item.expanded .toggle-btn {
    transform: translateY(-50%) rotate(45deg);
}

.question-item.expanded .toggle-btn::after {
    color: #b95f57;
}

/* 响应式调整 */
@media (max-width: 600px) {
    .question-content,
    .question-answer {
        padding: 12px 15px;
    }
    
    .question-content img,
    .question-answer img {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }
    
    .toggle-btn {
        right: 15px;
    }
}