Files
2026-07-03 20:34:27 +08:00

184 lines
3.3 KiB
CSS

/**
* Support CTA floor — reusable module (Not found what you're looking for?)
*
* Usage:
* <link href="../assets/css/modules/support-cta.css" rel="stylesheet">
* <link href="../assets/css/aifo-btn.css" rel="stylesheet">
* <div id="support-cta-module"></div>
* <script src="/js/support-cta-module.js"></script>
*/
.aifo-support-cta {
padding: 0 0 80px;
}
.aifo-support-cta__panel {
position: relative;
overflow: hidden;
border-radius: 20px;
border: 1px solid rgba(255, 255, 255, 0.06);
background: #0e0e0e;
padding: 48px 32px;
}
@media (max-width: 767px) {
.aifo-support-cta__panel {
background: linear-gradient(165deg, #18130f 0%, #101010 48%, #0e0e0e 100%);
}
.aifo-support-cta__panel::before,
.aifo-support-cta__panel::after {
content: "";
position: absolute;
pointer-events: none;
z-index: 0;
}
.aifo-support-cta__panel::before {
top: -24px;
left: 50%;
width: min(92%, 320px);
height: 48px;
transform: translateX(-50%);
border-radius: 999px;
background: #f9a215;
opacity: 0.35;
filter: blur(44px);
}
.aifo-support-cta__panel::after {
top: 8px;
right: -48px;
width: 180px;
height: 180px;
border-radius: 50%;
background: #f98715;
opacity: 0.22;
filter: blur(56px);
}
}
@media (min-width: 768px) {
.aifo-support-cta__panel {
padding: 48px 64px;
}
}
.aifo-support-cta__content {
position: relative;
z-index: 1;
max-width: 605px;
display: flex;
flex-direction: column;
gap: 40px;
}
.aifo-support-cta__title {
margin: 0;
font-size: clamp(28px, 4vw, 36px);
line-height: 1.35;
font-weight: 700;
letter-spacing: -0.36px;
color: #fff;
}
.aifo-support-cta__desc {
margin: 0;
font-size: clamp(16px, 2.2vw, 24px);
line-height: 1.35;
font-weight: 300;
letter-spacing: -0.24px;
color: #ccc;
}
.aifo-support-cta__actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
}
.aifo-support-cta .aifo-btn {
min-width: 225px;
border-radius: 12px;
font-size: 20px;
}
.aifo-support-cta__email-btn {
background: #231f20;
border-color: #666;
}
.aifo-support-cta__email-btn:hover,
.aifo-support-cta__email-btn:focus-visible {
background: #2a2627;
}
.aifo-support-cta__arrow-icon {
flex-shrink: 0;
display: block;
width: 16px;
height: 16px;
transition: transform 0.25s ease-out;
}
.aifo-support-cta__email-btn:hover .aifo-support-cta__arrow-icon,
.aifo-support-cta__email-btn:focus-visible .aifo-support-cta__arrow-icon {
transform: translateX(5px);
}
.aifo-support-cta__visual {
display: none;
position: absolute;
right: 32px;
top: 50%;
transform: translateY(-50%);
pointer-events: none;
}
@media (min-width: 768px) {
.aifo-support-cta__visual {
display: block;
}
}
.aifo-support-cta__img {
display: block;
width: 327px;
height: auto;
object-fit: contain;
}
@media (max-width: 991px) {
.aifo-support-cta__panel {
text-align: center;
}
.aifo-support-cta__content {
max-width: none;
}
.aifo-support-cta__actions {
justify-content: center;
}
}
@media (max-width: 768px) {
.aifo-support-cta {
padding-bottom: 56px;
}
.aifo-support-cta__actions {
flex-direction: column;
align-items: center;
}
.aifo-support-cta__actions .aifo-btn {
width: 100%;
max-width: 280px;
}
.aifo-support-cta__panel {
padding: 32px 20px;
}
}