/* 首页结构的唯一入口。字体、颜色和本地插画由皮肤 home.css 提供。 */
.nv-home {
display: flow-root;
}
.nv-home .mw-heading {
display: contents;
}
.nv-home h2,
.nv-home h3 {
margin: 0;
padding: 0;
border: 0;
}
.nv-home p:empty {
display: none;
}
.nv-home-hero {
position: relative;
display: flex;
align-items: center;
aspect-ratio: 3 / 1;
min-height: 300px;
overflow: hidden;
}
.nv-home-hero::before {
content: "";
position: absolute;
inset: 0;
}
.nv-home-hero__text {
position: relative;
width: 40%;
padding-left: 5.5%;
}
.nv-home-title {
white-space: nowrap;
}
.nv-home-pretitle {
margin-top: 14px;
}
.nv-home-dateline {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4px 10px;
margin-top: 34px;
}
.nv-home-dateline span::before {
content: "";
display: inline-block;
width: 7px;
height: 7px;
margin-right: 10px;
vertical-align: 0.1em;
}
.nv-home-stats {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
margin: 0 0 48px;
border-bottom: 1px solid var(--nv-rule);
}
.nv-home-stats > div {
display: flex;
align-items: center;
justify-content: center;
gap: 14px;
padding: 20px 10px 18px;
}
.nv-home-stats > div + div {
border-left: 1px solid var(--nv-rule);
}
.nv-home-stats .nv-icon {
width: 30px;
height: 30px;
}
.nv-home-stats b {
display: block;
}
.nv-home-stats span:not(.nv-icon) {
display: block;
}
.nv-home-columns {
display: grid;
grid-template-columns: minmax(0, 1fr) 330px;
gap: 48px;
align-items: start;
}
.nv-home-heading {
display: flex;
align-items: baseline;
justify-content: space-between;
margin-bottom: 16px;
}
.nv-home .nv-home-section-title {
display: block;
margin: 0;
padding: 0;
border: 0;
}
.nv-home .nv-home-section-title::before {
content: "";
display: inline-block;
width: 8px;
height: 8px;
margin-right: 12px;
vertical-align: 0.15em;
}
.nv-home-lead {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.nv-home-lead > div {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: 14px;
padding: 30px 14px 24px;
}
.nv-home-lead > div + div {
border-left: 1px solid rgb(239 230 211 / 0.12);
}
.nv-home-lead .nv-icon {
width: 46px;
height: 46px;
}
.nv-home-lead a::after,
.nv-home-nav a::after {
content: "";
position: absolute;
inset: 0;
}
.nv-home-nav {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
border-left: 1px solid var(--nv-rule);
}
.nv-home-nav > div {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
padding: 26px 8px 20px;
border-right: 1px solid var(--nv-rule);
border-bottom: 1px solid var(--nv-rule);
}
.nv-home-nav .nv-icon {
width: 38px;
height: 38px;
}
.nv-home-right {
display: flex;
flex-direction: column;
gap: 34px;
}
.nv-home .nv-home-ai {
display: flex;
align-items: center;
gap: 16px;
padding: 20px 22px;
outline: 1px dashed var(--nv-rule);
outline-offset: -1px;
}
.nv-home-ai-mark {
flex: none;
width: 40px;
height: 40px;
}
.nv-home-ai-label {
flex: 1;
}
.nv-home-ai-label small {
display: block;
}
.nv-home-feed {
padding: 14px 0 12px;
border-top: 1px solid var(--nv-rule);
}
.nv-home .nv-home-feed h3 {
display: block;
margin: 0 0 6px;
}
.nv-home-feed ul {
margin: 0;
padding: 0;
list-style: none;
}
.nv-home .nv-home-feed li:not(.nv-home-edit) {
margin: 0;
padding: 3px 0;
}
.nv-home-feed-row > a {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.nv-home-empty {
margin: 0;
}
.nv-home-contribute {
display: flex;
align-items: baseline;
justify-content: space-between;
padding-top: 14px;
border-top: 1px solid var(--nv-rule);
}
@media (max-width: 1150px) {
.nv-home-columns {
grid-template-columns: minmax(0, 1fr);
}
.nv-home-hero__text {
width: 44%;
}
}
@media (max-width: 680px) {
.nv-home-hero {
flex-direction: column;
align-items: stretch;
aspect-ratio: auto;
min-height: 0;
}
.nv-home-hero::before {
position: relative;
inset: auto;
order: 2;
height: 150px;
}
.nv-home-hero__text {
width: auto;
padding: 30px 22px 22px;
}
.nv-home-dateline {
margin-top: 18px;
}
.nv-home-stats {
grid-template-columns: repeat(2, minmax(0, 1fr));
margin-bottom: 36px;
}
.nv-home-stats > div:nth-child(3) {
border-left: 0;
}
.nv-home-stats > div:nth-child(n + 3) {
border-top: 1px solid var(--nv-rule);
}
.nv-home-lead > div {
padding: 20px 6px 16px;
gap: 10px;
}
.nv-home-lead .nv-icon {
width: 34px;
height: 34px;
}
.nv-home-nav {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.nv-home-nav > div {
flex-direction: row;
justify-content: flex-start;
gap: 12px;
padding: 14px 14px;
}
.nv-home-nav .nv-icon {
width: 30px;
height: 30px;
}
}
.nv-home .nv-home-feed-title {
display: flex;
justify-content: space-between;
align-items: baseline;
}
.nv-home .nv-home-feed-row {
display: flex;
justify-content: space-between;
gap: 10px;
}
.nv-home .nv-home-edit-filters {
display: flex;
gap: 8px;
align-items: center;
margin: 6px 0;
}
.nv-home .nv-home-edit-filter {
border: 0;
padding: 0;
}
.nv-home .nv-home-feed .nv-home-edit {
display: grid;
grid-template-columns: 24px 38px minmax(0, 1fr) auto;
align-items: center;
gap: 8px;
padding: 8px 0;
border-top: 1px solid var(--nv-rule);
}
.nv-home .nv-home-edit-avatar {
display: grid;
place-items: center;
width: 24px;
height: 24px;
overflow: hidden;
}
.nv-home .nv-home-edit-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.nv-home .nv-home-contribute > div > span {
margin: 0 6px;
}
.nv-home .nv-home-edit-title {
min-width: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.nv-home .nv-home-edit-delta {
white-space: nowrap;
}