|
|
| 第38行: |
第38行: |
|
| |
|
| /* --- Blockland Wiki 首页样式设计 --- */ | | /* --- Blockland Wiki 首页样式设计 --- */ |
|
| |
| /* 隐藏MediaWiki默认的标题和标语,让首页更干净 */
| |
| .page-Main_Page #firstHeading,
| |
| .page-Main_Page #siteSub,
| |
| .page-Main_Page #contentSub {
| |
| display: none !important;
| |
| }
| |
|
| |
| /* 首页整体容器:背景图在这里设置 */
| |
| .bl-wrapper {
| |
| /* 这里建议换成你的高清大图URL,或者保留这个渐变作为备用 */
| |
| background: linear-gradient(135deg, #e0f2fe 0%, #3b82f6 100%);
| |
| background-image: url('https://images.unsplash.com/photo-1516550893923-42d28e560348?q=80&w=2000&auto=format&fit=crop'); /* 示例背景图 */
| |
| background-size: cover;
| |
| background-position: center;
| |
| background-attachment: fixed;
| |
| padding: 40px 20px;
| |
| border-radius: 20px;
| |
| font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
| |
| color: #334155;
| |
| }
| |
|
| |
| /* 毛玻璃主容器 */
| |
| .bl-glass-container {
| |
| max-width: 1000px;
| |
| margin: 0 auto;
| |
| background: rgba(255, 255, 255, 0.65); /* 白色半透明 */
| |
| backdrop-filter: blur(16px); /* 核心:毛玻璃模糊效果 */
| |
| -webkit-backdrop-filter: blur(16px);
| |
| border: 1px solid rgba(255, 255, 255, 0.5);
| |
| border-radius: 24px;
| |
| box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
| |
| padding: 40px;
| |
| text-align: center;
| |
| }
| |
|
| |
| /* 头部 Hero 区域 */
| |
| .bl-hero h1 {
| |
| font-size: 3.5rem;
| |
| font-weight: 800;
| |
| margin: 0;
| |
| background: linear-gradient(to right, #2563eb, #06b6d4); /* 蓝色渐变文字 */
| |
| -webkit-background-clip: text;
| |
| -webkit-text-fill-color: transparent;
| |
| letter-spacing: -1px;
| |
| }
| |
|
| |
| .bl-hero p {
| |
| font-size: 1.2rem;
| |
| color: #475569;
| |
| margin-top: 10px;
| |
| margin-bottom: 30px;
| |
| }
| |
|
| |
| /* 搜索框模拟区 */
| |
| .bl-search-box {
| |
| margin-bottom: 50px;
| |
| }
| |
| .bl-search-btn {
| |
| display: inline-block;
| |
| padding: 12px 30px;
| |
| background: #2563eb;
| |
| color: white !important;
| |
| border-radius: 50px;
| |
| text-decoration: none;
| |
| font-weight: bold;
| |
| box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
| |
| transition: all 0.3s ease;
| |
| }
| |
| .bl-search-btn:hover {
| |
| transform: translateY(-2px);
| |
| box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
| |
| background: #1d4ed8;
| |
| text-decoration: none;
| |
| }
| |
|
| |
| /* 网格布局 */
| |
| .bl-grid {
| |
| display: grid;
| |
| grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
| |
| gap: 20px;
| |
| text-align: left;
| |
| }
| |
|
| |
| /* 互动卡片 */
| |
| .bl-card {
| |
| background: rgba(255, 255, 255, 0.8);
| |
| border-radius: 16px;
| |
| padding: 25px;
| |
| border: 1px solid rgba(255, 255, 255, 0.6);
| |
| box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
| |
| transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 弹性动画 */
| |
| cursor: pointer;
| |
| position: relative;
| |
| overflow: hidden;
| |
| }
| |
|
| |
| /* 卡片悬停互动特效 */
| |
| .bl-card:hover {
| |
| transform: translateY(-8px) scale(1.02);
| |
| box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
| |
| border-color: #bfdbfe;
| |
| background: #ffffff;
| |
| }
| |
|
| |
| /* 卡片装饰条 */
| |
| .bl-card::before {
| |
| content: "";
| |
| position: absolute;
| |
| top: 0;
| |
| left: 0;
| |
| width: 100%;
| |
| height: 5px;
| |
| background: linear-gradient(90deg, #3b82f6, #06b6d4);
| |
| opacity: 0;
| |
| transition: opacity 0.3s;
| |
| }
| |
| .bl-card:hover::before {
| |
| opacity: 1;
| |
| }
| |
|
| |
| /* 卡片标题和内容 */
| |
| .bl-card h3 {
| |
| margin-top: 0;
| |
| color: #1e293b;
| |
| font-size: 1.4rem;
| |
| border-bottom: none;
| |
| }
| |
| .bl-card p {
| |
| color: #64748b;
| |
| font-size: 0.95rem;
| |
| line-height: 1.5;
| |
| }
| |
|
| |
| /* 链接去下划线覆盖 */
| |
| .bl-card a {
| |
| text-decoration: none;
| |
| color: inherit;
| |
| display: block; /* 让整个卡片可点击 */
| |
| height: 100%;
| |
| }
| |