模板:Mainpage/styles.css:修订间差异
来自星砂岛百科
更多操作
new page |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
.main-page-wrapper { | .main-page-wrapper { | ||
margin: 0 auto; | margin: 0 auto; | ||
display: flex; | display: flex; | ||
2026年3月1日 (日) 23:51的版本
.main-page-wrapper {
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 24px;
color: inherit;
}
.glass-panel {
background-color: var(--ts-glass-bg);
backdrop-filter: blur(10px);
border: 1px solid var(--color-border-subtle);
border-radius: var(--border-radius--large, 12px);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
overflow: hidden;
}
.panel-title {
margin: 0 0 16px 0;
color: var(--color-primary);
font-size: 1.5em;
border-bottom: var(--ts-panel-title-border);
padding-bottom: 10px;
padding-top: 10px;
text-align: center;
}
.hero-section {
display: flex;
align-items: center;
gap: 30px;
padding: 40px;
}
.hero-text {
flex: 1;
}
.hero-text h1,
.hero-text h2 {
margin: 0 0 16px 0;
color: var(--color-primary);
font-size: 2.8em;
font-weight: bold;
border: none;
}
.hero-text p {
font-size: 1.1em;
line-height: 1.6;
margin-bottom: 20px;
}
.hero-image {
flex: 1;
max-width: 500px;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.hero-image p {
margin: 0;
}
.hero-image img {
width: 100%;
height: auto;
display: block;
border-radius: 12px;
}
.main-page-nav-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
gap: 16px;
}
.nav-card {
padding: 0;
transition: all 0.3s ease;
display: flex;
flex-direction: column;
align-items: stretch;
}
.nav-card p {
margin: 0;
display: flex;
flex-direction: column;
height: 100%;
}
.nav-card:hover {
transform: translateY(-5px);
border-color: var(--color-primary);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.nav-card a {
color: var(--color-primary);
font-size: 1.1em;
font-weight: 600;
text-decoration: none;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
padding: 10px;
width: 100%;
box-sizing: border-box;
}
.nav-card a:first-child {
padding-top: 20px;
padding-bottom: 5px;
}
.nav-card a:last-child {
padding-top: 5px;
padding-bottom: 20px;
}
.nav-card img {
width: 50px;
height: 50px;
object-fit: contain;
transition: filter 0.3s ease;
display: block;
}
.content-grid {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 24px;
align-items: stretch;
}
.content-column {
display: flex;
flex-direction: column;
gap: 24px;
height: 100%;
}
.content-column > :last-child {
flex-grow: 1;
}
.content-box {
padding: 0px 24px 24px;
}
.spotlight-content {
display: flex;
gap: 20px;
align-items: center;
}
.spotlight-img {
flex: 0 0 150px;
border-radius: 50%;
border: 3px solid var(--color-primary);
overflow: hidden;
}
.spotlight-img img {
width: 100%;
height: auto;
display: block;
}
.spotlight-text {
flex: 1;
}
.news-list {
list-style: none;
padding: 0;
margin: 0;
}
.news-list li {
padding: 12px 0;
border-bottom: var(--ts-list-border-dashed);
}
.news-list li:last-child {
border-bottom: none;
}
.news-date {
font-size: 0.85em;
color: var(--ts-news-date-color);
display: block;
margin-bottom: 4px;
}
.footer-banner {
padding: 30px;
text-align: center;
background: var(--ts-footer-bg);
}
@media (max-width: 900px) {
.content-grid {
grid-template-columns: 1fr;
}
.hero-section {
flex-direction: column;
text-align: center;
}
.hero-image {
max-width: 100%;
}
.spotlight-content {
flex-direction: column;
text-align: center;
}
}
.link-list {
list-style: none;
padding: 0;
margin: 0;
}
.link-list li {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 0;
border-bottom: var(--ts-list-border-dashed);
}
.link-list li:last-child {
border-bottom: none;
}
.link-meta {
font-size: 0.85em;
opacity: 0.8;
margin-left: auto;
text-align: right;
}