打开/关闭搜索
搜索
打开/关闭菜单
30
8
13
1694
陋室
导航
首页
最近更改
随机页面
特殊页面
社群首页
新闻动态
帮助
上传文件
内容
分类树
所有页面
导入页面
活跃用户列表
界面
侧边栏
站点公告
匿名用户通知
公共样式表
公共脚本
系统消息
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
中文(简体)
个人工具
登录
查看“︁首页/style.css”︁的源代码
来自陋室
分享此页面
查看
阅读
查看源代码
查看历史
associated-pages
页面
讨论
更多操作
←
首页/style.css
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于这些用户组的用户执行:
用户
、
自动确认用户
您可以查看和复制此页面的源代码。
/* 首页样式:仅在首页生效 */ body.page-首页 .banner { height: auto; display: flex; flex-direction: column; justify-content: center; align-items: center; background: linear-gradient(135deg, #8B0000, #B22222); color: white; font-weight: bold; border-radius: 12px; padding: 12px 24px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); text-align: center; } body.page-首页 .banner-text { margin: 0; line-height: 1.4; } body.page-首页 .banner .chinese-text { font-size: 24px; font-weight: 700; } body.page-首页 .banner .english-text { font-size: 16px; font-weight: 500; opacity: 0.9; } @media screen and (min-width: 768px) { body.page-首页 .banner .chinese-text { font-size: 28px; } body.page-首页 .banner .english-text { font-size: 18px; } } @media screen and (max-width: 480px) { body.page-首页 .banner .chinese-text { font-size: 20px; } body.page-首页 .banner .english-text { font-size: 14px; } } body.page-首页 .content-box { margin: 10px; padding: 20px; border-radius: 10px; border: 1px solid #e0e0e0; transition: transform 0.3s ease, box-shadow 0.3s ease; will-change: transform; backface-visibility: hidden; } body.page-首页 .content-box:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); } body.page-首页 .content-box:focus { outline: 2px solid #0066cc; outline-offset: 2px; } body.page-首页 .content-box h2 { position: relative; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 2px solid red; } body.page-首页 .content-box p { line-height: 1.6; } body.page-首页 .flex-container { display: flex; justify-content: space-between; gap: 20px; } body.page-首页 .flex-container .content-box { flex: 1; max-width: 33.33%; box-sizing: border-box; } @media (max-width: 768px) { body.page-首页 .flex-container { flex-direction: column; gap: 15px; } body.page-首页 .flex-container .content-box { max-width: none; width: 100%; margin-bottom: 0; } body.page-首页 .banner .chinese-text, body.page-首页 .banner .english-text { text-align: center; } body.page-首页 .banner .chinese-text { font-size: 20px; } body.page-首页 .banner .english-text { font-size: 14px; } } @media (prefers-reduced-motion: reduce) { body.page-首页 .content-box { transition: none; } body.page-首页 .content-box:hover { transform: none; } } .skin-theme-clientpref-night body.page-首页 .banner { background: linear-gradient(135deg, #3a0c0c, #5a1a1a); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45); } .skin-theme-clientpref-night body.page-首页 .content-box { border-color: #2f2f2f; background-color: #1c1c1c; } .skin-theme-clientpref-night body.page-首页 .content-box:hover { box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55); } .skin-theme-clientpref-night body.page-首页 .content-box:focus { outline-color: #5ea0ff; } .skin-theme-clientpref-night body.page-首页 .content-box h2 { border-bottom-color: #b94a4a; }
返回
首页/style.css
。
查看“︁首页/style.css”︁的源代码
来自陋室