Files
web_huangguo2_h5/app/static/css/footer.css
T
2026-09-29 15:30:33 +07:00

354 lines
5.3 KiB
CSS

/* 公共页脚 */
.site-footer {
width: 100%;
background: var(--bg-elevated);
border-top: 1px solid var(--line-soft);
}
.site-footer__inner {
width: min(100%, var(--page-width));
margin: 0 auto;
padding: 56px 0 32px;
display: flex;
flex-direction: column;
gap: 28px;
}
.site-footer__top {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 40px;
}
.site-footer__brand {
display: flex;
flex-direction: column;
gap: 16px;
}
.social {
display: flex;
gap: 10px;
}
.social__item {
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 999px;
border: 1px solid var(--line);
}
.social__item:hover {
background: rgba(255, 255, 255, 0.06);
}
.site-footer__links {
display: flex;
align-items: flex-start;
gap: 72px;
}
.footer-col {
display: flex;
flex-direction: column;
gap: 12px;
}
.footer-col h3 {
margin: 0;
font-size: 14px;
font-weight: 500;
line-height: 20px;
}
.footer-col a {
color: var(--text-muted);
font-size: 14px;
line-height: 20px;
}
.footer-col a:hover {
color: var(--text);
}
.footer-download {
display: flex;
align-items: center;
gap: 14px;
padding: 16px;
border-radius: var(--radius-lg);
background: var(--bg-panel);
border: 1px solid var(--line-soft);
}
.footer-download .qr-box img {
width: 84px;
height: 84px;
}
.footer-download__copy {
display: flex;
flex-direction: column;
gap: 6px;
}
.footer-download__copy strong {
font-size: 15px;
font-weight: 600;
line-height: 21px;
}
.footer-download__copy p {
margin: 0;
color: var(--text-dim);
font-size: 13px;
line-height: 18px;
}
.site-footer__rule {
width: 100%;
height: 1px;
margin: 0;
border: 0;
background: var(--line-soft);
}
.site-footer__legal {
display: flex;
flex-direction: column;
gap: 8px;
}
.site-footer__legal p {
margin: 0;
color: var(--text-dim);
font-size: 13px;
line-height: 20px;
}
.site-footer__mobile-adult {
display: none;
}
@media (max-width: 1280px) {
.site-footer__links {
gap: 40px;
}
}
@media (max-width: 900px) {
.site-footer__inner {
padding: 32px 16px 24px;
gap: 24px;
}
.site-footer__top {
flex-direction: column;
align-items: center;
gap: 28px;
}
.site-footer__brand {
align-items: center;
text-align: center;
}
.site-footer__links {
width: 100%;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 28px 12px;
}
.footer-col {
min-width: 0;
}
.footer-download {
grid-column: 1 / -1;
justify-self: center;
max-width: 100%;
}
.site-footer__legal {
text-align: center;
}
.site-footer__legal p {
font-size: 12px;
line-height: 18px;
}
}
@media (max-width: 768px) {
.site-footer__inner {
padding: 32px var(--h5-gutter) 24px;
gap: 18px;
align-items: center;
text-align: center;
}
.site-footer__top {
gap: 18px;
}
.site-footer__brand {
gap: 12px;
}
.site-footer__brand .brand__logo {
width: 140px;
height: 34px;
}
.site-footer__brand .block__subtitle {
font-size: 13px;
line-height: 20px;
}
.social__item {
width: 36px;
height: 36px;
}
.social__item .icon {
width: 15px;
height: 15px;
}
.site-footer__links {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
gap: 16px;
}
.footer-col h3,
.footer-download {
display: none;
}
.footer-col {
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
gap: 16px;
}
.footer-col a {
font-size: 13px;
}
.site-footer__legal {
align-items: center;
}
.site-footer__legal p {
font-size: 11px;
line-height: 16px;
text-align: center;
}
}
/* 访问地址:横向地址卡片,窄屏改为纵向堆叠 */
.footer-addrs {
display: flex;
flex-direction: column;
gap: 14px;
}
.footer-addrs__head {
display: flex;
align-items: baseline;
gap: 12px;
}
.footer-addrs__head h3 {
margin: 0;
font-size: 14px;
font-weight: 500;
line-height: 20px;
}
.footer-addrs__head p {
margin: 0;
color: var(--text-dim);
font-size: 12px;
line-height: 18px;
}
.footer-addrs__list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 10px;
}
.footer-addr {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
padding: 10px 14px;
border: 1px solid var(--line-soft);
border-left: 3px solid var(--accent);
border-radius: var(--radius-sm);
background: var(--bg-panel);
text-decoration: none;
}
.footer-addr:hover {
border-color: var(--line);
border-left-color: var(--accent-hot);
background: rgba(236, 35, 127, 0.08);
}
.footer-addr__label {
flex-shrink: 0;
color: var(--text-muted);
font-size: 12px;
line-height: 18px;
}
.footer-addr__url {
flex: 1;
min-width: 0;
color: var(--text);
font-size: 13px;
line-height: 18px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.footer-addr__go {
flex-shrink: 0;
opacity: 0.6;
}
@media (max-width: 768px) {
.footer-addrs {
width: 100%;
gap: 10px;
text-align: left;
}
.footer-addrs__head {
justify-content: space-between;
}
.footer-addrs__list {
grid-template-columns: 1fr;
gap: 8px;
}
.footer-addr {
padding: 9px 12px;
}
}