.faq-toc {
background: #f9f9f9;
border: 2px solid #79c3cf;
border-radius: 12px;
padding: 25px;
margin: 30px 0;
max-width: 100%;
width: 100%;
box-sizing: border-box;
contain: layout; }
.faq-toc-title {
font-size: 1.3rem;
font-weight: 700;
color: #1a1a1a;
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 2px solid #79c3cf;
}
.faq-toc ul {
list-style: none;
padding: 0;
margin: 0;
}
.faq-toc li {
margin: 8px 0;
padding-left: 20px;
position: relative;
}
.faq-toc li::before {
content: "→";
position: absolute;
left: 0;
color: #79c3cf;
font-weight: bold;
}
.faq-toc a {
color: #333;
text-decoration: none;
transition: color 0.3s;
word-wrap: break-word;
}
.faq-toc a:hover {
color: #79c3cf;
} .faq-item {
background: #fff;
border: 1px solid #e0e0e0;
border-radius: 8px;
margin: 20px 0;
overflow: hidden;
max-width: 100%;
width: 100%;
box-sizing: border-box;
contain: layout; }
.faq-question {
background: #f9f9f9;
padding: 20px;
cursor: pointer;
font-weight: 600;
font-size: 1.1rem;
color: #1a1a1a;
display: flex;
justify-content: space-between;
align-items: center;
transition: all 0.3s;
box-sizing: border-box;
word-wrap: break-word;
}
.faq-question:hover {
background: rgba(121, 195, 207, 0.1);
color: #79c3cf;
}
.faq-icon {
font-size: 1.5rem;
font-weight: 700;
color: #79c3cf;
transition: transform 0.3s;
flex-shrink: 0;
margin-left: 15px;
min-width: 30px;
}
.faq-item.active .faq-icon {
transform: rotate(45deg);
}
.faq-answer {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease-out;
box-sizing: border-box;
width: 100%;
}
.faq-item.active .faq-answer {
max-height: 2000px;
padding: 20px;
border-top: 1px solid #e0e0e0;
}
.faq-answer p,
.faq-answer ul,
.faq-answer ol {
margin: 10px 0;
line-height: 1.6;
color: #333;
max-width: 100%;
word-wrap: break-word;
overflow-wrap: break-word;
}
.faq-answer img {
max-width: 100%;
height: auto;
} @media (max-width: 768px) {
.faq-toc {
padding: 20px;
margin: 20px 0;
}
.faq-question {
padding: 15px;
font-size: 1rem;
}
.faq-item.active .faq-answer {
padding: 15px;
}
.faq-icon {
margin-left: 10px;
min-width: 25px;
}
}