无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
<!-- | <!-- 这个<style>代码块是所有美化的核心,它自带了字体、颜色、布局、动画效果 --> | ||
< | <style> | ||
/* 导入一个更现代、更具设计感的免费字体 */ | |||
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap'); | |||
/* --- 颜色和全局样式定义 --- */ | |||
:root { | |||
--bg-color: #121212; /* 深邃的背景色 */ | |||
--primary-color: #00aaff; /* 明亮的蓝色,用于交互和高亮 */ | |||
--card-color: #1e1e1e; /* 卡片背景色,比主背景稍亮 */ | |||
--text-color: #e0e0e0; /* 主要文字颜色,柔和不刺眼 */ | |||
--text-muted: #888; /* 次要文字颜色 */ | |||
--border-color: #333; /* 边框颜色 */ | |||
} | |||
/* --- 整体容器 --- */ | |||
.blockland-container { | |||
font-family: 'Montserrat', sans-serif; | |||
background-color: var(--bg-color); | |||
color: var(--text-color); | |||
margin: -24px -24px -24px -24px; /* 撑满整个内容区 */ | |||
padding: 0; | |||
} | |||
/* --- 顶部“英雄”横幅 --- */ | |||
.hero-section { | |||
background-image: linear-gradient(rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 1)), url('https://images.unsplash.com/photo-1579546929518-9e396f3cc809?q=80&w=1920'); /* 您可以替换成自己世界的图片URL */ | |||
background-size: cover; | |||
background-position: center; | |||
padding: 100px 40px; | |||
text-align: center; | |||
border-bottom: 2px solid var(--primary-color); | |||
} | |||
.hero-section h1 { | |||
font-size: 4em; | |||
font-weight: 700; | |||
color: #fff; | |||
margin: 0; | |||
text-shadow: 0 0 15px rgba(0, 170, 255, 0.5); | |||
} | |||
.hero-section p { | |||
font-size: 1.2em; | |||
color: var(--text-muted); | |||
margin-top: 10px; | |||
} | |||
/* --- 超级搜索框 --- */ | |||
.search-container { | |||
margin-top: 30px; | |||
} | |||
.search-form { display: flex; max-width: 600px; margin: auto; border: 2px solid var(--primary-color); border-radius: 50px; overflow: hidden; background: var(--card-color); } | |||
.search-input { flex-grow: 1; border: none; background: transparent; padding: 15px 25px; font-size: 1.1em; color: var(--text-color); outline: none; } | |||
.search-button { border: none; background: var(--primary-color); color: #fff; padding: 0 30px; font-size: 1.1em; font-weight: bold; cursor: pointer; transition: background-color 0.2s; } | |||
.search-button:hover { background-color: #0088cc; } | |||
/* --- 主内容网格布局 --- */ | |||
.main-grid { | |||
display: grid; | |||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); | |||
gap: 30px; | |||
padding: 40px; | |||
} | |||
/* --- 卡片样式 --- */ | |||
.b-card { | |||
background-color: var(--card-color); | |||
border: 1px solid var(--border-color); | |||
border-radius: 8px; | |||
padding: 25px; | |||
transition: transform 0.2s, box-shadow 0.2s; | |||
} | |||
.b-card:hover { | |||
transform: translateY(-5px); | |||
box-shadow: 0 10px 20px rgba(0, 170, 255, 0.1); | |||
} | |||
.b-card h2 { | |||
font-size: 1.5em; | |||
font-weight: 700; | |||
margin-top: 0; | |||
margin-bottom: 20px; | |||
color: #fff; | |||
border-bottom: 1px solid var(--border-color); | |||
padding-bottom: 15px; | |||
} | |||
.b-card a { color: var(--primary-color); text-decoration: none; font-weight: 500; | |||
2025年11月17日 (一) 10:29的版本
<style> /* 导入一个更现代、更具设计感的免费字体 */ @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');
/* --- 颜色和全局样式定义 --- */
- root {
--bg-color: #121212; /* 深邃的背景色 */ --primary-color: #00aaff; /* 明亮的蓝色,用于交互和高亮 */ --card-color: #1e1e1e; /* 卡片背景色,比主背景稍亮 */ --text-color: #e0e0e0; /* 主要文字颜色,柔和不刺眼 */ --text-muted: #888; /* 次要文字颜色 */ --border-color: #333; /* 边框颜色 */
}
/* --- 整体容器 --- */ .blockland-container {
font-family: 'Montserrat', sans-serif; background-color: var(--bg-color); color: var(--text-color); margin: -24px -24px -24px -24px; /* 撑满整个内容区 */ padding: 0;
}
/* --- 顶部“英雄”横幅 --- */ .hero-section {
background-image: linear-gradient(rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 1)), url('https://images.unsplash.com/photo-1579546929518-9e396f3cc809?q=80&w=1920'); /* 您可以替换成自己世界的图片URL */
background-size: cover;
background-position: center;
padding: 100px 40px;
text-align: center;
border-bottom: 2px solid var(--primary-color);
} .hero-section h1 {
font-size: 4em; font-weight: 700; color: #fff; margin: 0; text-shadow: 0 0 15px rgba(0, 170, 255, 0.5);
} .hero-section p {
font-size: 1.2em; color: var(--text-muted); margin-top: 10px;
}
/* --- 超级搜索框 --- */ .search-container {
margin-top: 30px;
} .search-form { display: flex; max-width: 600px; margin: auto; border: 2px solid var(--primary-color); border-radius: 50px; overflow: hidden; background: var(--card-color); } .search-input { flex-grow: 1; border: none; background: transparent; padding: 15px 25px; font-size: 1.1em; color: var(--text-color); outline: none; } .search-button { border: none; background: var(--primary-color); color: #fff; padding: 0 30px; font-size: 1.1em; font-weight: bold; cursor: pointer; transition: background-color 0.2s; } .search-button:hover { background-color: #0088cc; }
/* --- 主内容网格布局 --- */ .main-grid {
display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; padding: 40px;
}
/* --- 卡片样式 --- */ .b-card {
background-color: var(--card-color); border: 1px solid var(--border-color); border-radius: 8px; padding: 25px; transition: transform 0.2s, box-shadow 0.2s;
} .b-card:hover {
transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 170, 255, 0.1);
} .b-card h2 {
font-size: 1.5em; font-weight: 700; margin-top: 0; margin-bottom: 20px; color: #fff; border-bottom: 1px solid var(--border-color); padding-bottom: 15px;
} .b-card a { color: var(--primary-color); text-decoration: none; font-weight: 500;