模板:首页/styles.css
来自国漫宇宙
更多操作
/* 顶部横幅 */
.hero-banner {
background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
border-radius: 16px;
padding: 3em 2em;
margin-bottom: 2em;
text-align: center;
color: white;
}
.hero-title {
font-size: 2.8em;
font-weight: 800;
margin: 0;
text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.hero-subtitle {
font-size: 1.2em;
opacity: 0.9;
margin: 0.5em 0 1.5em;
}
.hero-search {
max-width: 500px;
margin: 0 auto;
}
.hero-search a {
color: white;
text-decoration: underline;
font-size: 1.1em;
}
/* 分类网格 */
.category-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: 1em;
margin-bottom: 2em;
}
.category-card {
background: white;
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 1.2em 0.8em;
text-align: center;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.category-card:hover {
transform: translateY(-3px);
box-shadow: 0 6px 16px rgba(124,58,237,0.15);
}
.category-icon {
font-size: 2em;
margin-bottom: 0.3em;
}
.category-card h3 {
margin: 0.3em 0;
font-size: 1.1em;
color: #1e293b;
}
.category-card p {
margin: 0;
font-size: 0.85em;
color: #64748b;
}
/* 热门作品卡片 */
.hot-works {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.2em;
margin-bottom: 2em;
}
.work-card {
background: white;
border-radius: 12px;
overflow: hidden;
border: 1px solid #e2e8f0;
transition: transform 0.2s, box-shadow 0.2s;
box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.work-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.work-card-image {
text-align: center;
background: #f8fafc;
padding: 0;
}
.work-card-image img {
width: 100%;
height: 160px;
object-fit: cover;
display: block;
}
.work-card-info {
padding: 0.8em;
}
.work-card-info h4 {
margin: 0 0 0.3em;
font-size: 1.1em;
}
.work-card-info h4 a {
color: #1e293b;
text-decoration: none;
}
.work-card-info h4 a:hover {
color: #7c3aed;
}
.work-card-info p {
font-size: 0.9em;
color: #475569;
line-height: 1.4;
margin: 0;
}
/* 新番时间表 */
.anime-schedule {
width: 100%;
border-collapse: collapse;
margin-bottom: 2em;
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.anime-schedule th {
background: #ede9fe;
color: #7c3aed;
padding: 0.8em;
text-align: left;
font-weight: 600;
}
.anime-schedule td {
padding: 0.7em 0.8em;
border-bottom: 1px solid #f1f5f9;
}
.anime-schedule tr:last-child td {
border-bottom: none;
}
/* 统计与社区 */
.stats-community {
display: flex;
flex-wrap: wrap;
gap: 2em;
align-items: center;
background: white;
border-radius: 12px;
padding: 1.5em;
margin-bottom: 2em;
box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.stats-box {
text-align: center;
flex: 1;
min-width: 100px;
}
.stat-number {
font-size: 2em;
font-weight: 800;
color: #7c3aed;
}
.stat-label {
color: #64748b;
font-size: 0.9em;
}
.community-cta {
flex: 2;
text-align: right;
}
/* 标题统一 */
.section-title {
font-size: 1.6em;
border-left: 4px solid #06b6d4;
padding-left: 0.6em;
margin-top: 1.5em;
margin-bottom: 0.8em;
}