Files
talk-pro/src/styles/download.css
2026-05-18 14:39:56 +08:00

330 lines
5.8 KiB
CSS

.download-cta {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 400px;
overflow: hidden;
background: #fff;
border-top: 1px solid #eec8b8;
}
.download-cta__pattern {
position: absolute;
top: 50%;
left: 50%;
width: 1920px;
max-width: none;
height: 923px;
pointer-events: none;
transform: translate(-50%, -50%);
}
.download-cta__inner {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
max-width: 1280px;
gap: 32px;
margin: 0 auto;
padding: 60px 16px;
}
.download-cta__content {
display: flex;
order: 2;
flex: 1;
flex-direction: column;
align-items: center;
justify-content: center;
min-width: 0;
gap: 36px;
overflow: clip;
text-align: center;
}
.download-cta__copy {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
gap: 16px;
}
.download-cta__heading {
--download-heading-title-size: 32px;
display: flex;
flex-wrap: nowrap;
align-items: center;
flex-shrink: 0;
gap: 20px;
max-width: 100%;
}
.download-cta__title {
position: relative;
top: -4px;
margin: 0;
flex-shrink: 0;
font-size: var(--download-heading-title-size);
font-weight: 700;
line-height: 1.2;
letter-spacing: var(--ls-32);
color: #1a1a1a;
white-space: nowrap;
}
.download-cta__logo-frame {
position: relative;
flex-shrink: 0;
width: calc(var(--download-heading-title-size) * 3.9167);
height: calc(var(--download-heading-title-size) * 1.5);
}
.download-cta__logo {
position: absolute;
inset: 0;
display: block;
width: 100%;
max-width: none;
height: 100%;
}
.download-cta__description {
max-width: 542px;
margin: 0;
font-size: 16px;
font-weight: 400;
line-height: 1.5;
letter-spacing: var(--ls-16);
color: #7a726d;
text-align: center;
}
.store-badges {
display: flex;
flex-direction: column;
flex-wrap: nowrap;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 100%;
gap: 16px;
overflow: clip;
}
.store-badge {
display: flex;
align-items: center;
flex-shrink: 0;
width: 260px;
max-width: 100%;
height: 70px;
gap: 8px;
padding: 12px 16px;
overflow: clip;
border-radius: 20px;
}
.store-badge--android {
background: #f28a4b;
border: 1px solid #c5834e;
}
.store-badge--ios {
background: #383838;
border: 1px solid #141414;
}
.store-badge__icon {
display: block;
flex-shrink: 0;
width: 44px;
height: 44px;
}
.store-badge__icon-frame {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 44px;
height: 44px;
background: #151515;
border-radius: 12px;
}
.store-badge__apple-icon {
display: block;
width: 22px;
height: 27px;
}
.store-badge--android .store-badge__icon-frame {
background: #d55f31;
}
.store-badge__android-icon {
display: block;
width: 28px;
height: 28px;
}
.store-badge__copy {
display: flex;
flex-direction: column;
align-items: flex-start;
flex-shrink: 0;
gap: 3px;
overflow: clip;
white-space: nowrap;
}
.store-badge__platform {
margin: 0;
font-size: 13px;
font-weight: 600;
line-height: normal;
letter-spacing: var(--ls-13);
}
.store-badge--android .store-badge__platform {
color: #ffd6bc;
}
.store-badge--ios .store-badge__platform {
color: #ccc;
}
.store-badge__label {
margin: 0;
font-size: 15px;
font-weight: 600;
line-height: normal;
letter-spacing: var(--ls-15);
color: #fff;
}
.download-cta__phone {
position: relative;
display: block;
order: 1;
flex-shrink: 0;
width: 240px;
height: 292px;
}
@media (min-width: 577px) {
.download-cta__phone {
width: min(418px, calc(100vw - 32px));
height: auto;
aspect-ratio: 418 / 510;
}
}
.download-cta__phone-crop {
position: absolute;
inset: 0;
overflow: hidden;
pointer-events: none;
}
.download-cta__phone-image {
position: absolute;
top: -18.05%;
left: 3.8%;
width: 92.43%;
max-width: none;
height: 136.1%;
}
@media (max-width: 397px) {
.download-cta__heading {
--download-heading-title-size: clamp(24px, 8vw, 32px);
gap: clamp(8px, 2.5vw, 12px);
}
.download-cta__title {
line-height: 1;
}
}
@media (max-width: 569px) {
.store-badge {
width: min(100%, calc(100vw - 32px));
}
}
@media (min-width: 570px) {
.download-cta__heading {
--download-heading-title-size: 40px;
}
.download-cta__title {
letter-spacing: var(--ls-40);
}
.download-cta__description {
font-size: 18px;
letter-spacing: var(--ls-18);
}
.store-badges {
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
}
}
@media (min-width: 1024px) {
.download-cta {
height: 600px;
}
.download-cta__inner {
flex-direction: row;
gap: 0;
padding: 0 24px;
}
.download-cta__content {
order: 1;
align-items: flex-start;
text-align: left;
}
.download-cta__copy {
align-items: flex-start;
}
.download-cta__description {
text-align: left;
}
.store-badges {
justify-content: flex-start;
}
.download-cta__heading {
--download-heading-title-size: 48px;
}
.download-cta__title {
letter-spacing: var(--ls-48);
}
.download-cta__phone {
order: 2;
width: 418px;
}
}
@media (min-width: 1280px) {
.download-cta__inner {
padding: 0;
}
}