跳转到内容
打开/关闭搜索
搜索
打开/关闭菜单
一支烟工作室Wiki
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
打开/关闭外观设置菜单
无法加载外观设置。请检查您的网络连接并重试。
重试
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
创建账号
登录
查看“︁Template:Index2026/styles.css”︁的源代码
模板页面
查看
阅读
查看源代码
查看历史
Related pages
模板
讨论
更多操作
更多
工具
链入页面
相关更改
页面信息
←
Template:Index2026/styles.css
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您没有权限编辑
Template
命名空间内的页面。
您必须确认您的电子邮件地址才能编辑页面。请通过
参数设置
设置并确认您的电子邮件地址。
您可以查看和复制此页面的源代码。
/* ============================================================ 一支烟工作室 · TemplateStyles 完整重置版 已移除不受支持的 pointer-events 属性 整体替换旧 CSS,包括之前追加的补丁 ============================================================ */ /* 基础尺寸与背景 */ .hp-page, .hp-page *, .hp-page *::before, .hp-page *::after { box-sizing: border-box; } .hp-page { position: relative; z-index: 0; width: 100%; min-width: 0; overflow: hidden; background: #20242d; color: #f5f7fa; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; line-height: 1.7; } .hp-page .hp-bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; overflow: hidden; background-size: cover; background-position: center; background-repeat: no-repeat; } /* 适配 Wiki 图片语法生成的包装层 */ .hp-page .hp-bg p, .hp-page .hp-bg span, .hp-page .hp-bg a { display: block; width: 100%; height: 100%; margin: 0; padding: 0; } .hp-page .hp-bg img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; } /* 背景遮罩位于正文下方 */ .hp-page .hp-bg::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; background: rgba(10, 12, 18, 0.28); } .hp-page .hp-bg::after, .hp-page .hp-card::before, .hp-page .hp-card::after { content: none; display: none; } .hp-page .hp-container { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 28px; width: 100%; max-width: 1260px; min-width: 0; min-height: 100vh; margin: 0 auto; padding: 20px 16px 60px; } .hp-page .hp-container > *, .hp-page .hp-grid > * { min-width: 0; } /* 通用链接 */ .hp-page a, .hp-page a:visited { color: #f0d5b0; text-decoration: none; overflow-wrap: break-word; } .hp-page a:hover { color: #fff0dd; } /* 保留未创建页面的红链提示 */ .hp-page a.new, .hp-page a.new:visited { color: #ffb7b0; } .hp-page a:focus, .hp-page .hp-btn:focus { outline: 2px solid #f0d5b0; outline-offset: 3px; } /* 页头 */ .hp-page .hp-header { width: 100%; padding: 6px 0 10px; text-align: center; } .hp-page .hp-header-logo { display: block; width: 80%; max-width: 340px; margin: 0 auto 10px; overflow: hidden; border-radius: 18px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3); } .hp-page .hp-header-logo p, .hp-page .hp-header-logo span { display: block; margin: 0; padding: 0; line-height: 0; } .hp-page .hp-header-logo img { display: block; width: 100%; max-width: 100%; height: auto; } .hp-page .hp-header-sub { margin-top: 2px; font-size: 0.95rem; font-weight: 400; letter-spacing: 6px; color: #f0d5b0; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); } /* 欢迎区域 */ .hp-page .hp-welcome { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 20px; width: 100%; max-width: 820px; padding: 24px 30px; border: 1px solid rgba(240, 210, 170, 0.2); border-radius: 28px; background: rgba(45, 48, 56, 0.92); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.4); } .hp-page .hp-welcome.hidden { display: none; } .hp-page .hp-welcome-text { flex: 1 1 300px; min-width: 0; overflow-wrap: break-word; } .hp-page .hp-welcome-text h2 { margin: 0 0 12px; padding: 0; border: 0; font-family: inherit; font-size: 1.4rem; font-weight: 500; line-height: 1.5; color: #fff4e5; } .hp-page .hp-welcome-text h2 span { margin-right: 4px; } .hp-page .hp-welcome-text p { margin: 0 0 8px; color: #e0e6ee; font-size: 0.95rem; } .hp-page .hp-welcome-list { margin: 0; padding: 0 0 0 1.4em; list-style: disc; color: #e0e6ee; font-size: 0.95rem; } .hp-page .hp-welcome-list li { margin: 6px 0; } .hp-page .hp-welcome-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; max-width: 100%; } .hp-page .hp-btn { display: inline-block; padding: 8px 26px; border: 1px solid #f0d5b0; border-radius: 60px; background: #f0d5b0; color: #1c1f26; font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; } .hp-page .hp-btn:hover { background: #fae3c5; color: #1c1f26; } .hp-page .hp-btn a { color: inherit; } .hp-page .hp-welcome-actions label { display: flex; align-items: center; gap: 6px; color: #c0cbd8; font-size: 0.85rem; cursor: pointer; } .hp-page .hp-welcome-actions input[type="checkbox"] { width: 16px; height: 16px; margin: 0; } /* 网格与常规卡片 */ .hp-page .hp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: stretch; width: 100%; max-width: 1200px; margin: 6px 0 10px; } .hp-page .hp-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 28px 24px 24px; border: 1px solid rgba(240, 210, 170, 0.15); border-radius: 28px; background: rgba(48, 52, 62, 0.94); color: #f0f3f7; overflow-wrap: break-word; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.3); transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; } .hp-page .hp-card:hover { background: rgba(60, 65, 78, 0.98); box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.45); transform: translateY(-2px); } .hp-page .hp-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 0 0 10px; border: 0; border-bottom: 2px solid rgba(240, 210, 170, 0.25); font-family: inherit; font-size: 1.3rem; font-weight: 600; line-height: 1.5; letter-spacing: 0.5px; color: #fff4e5; overflow-wrap: break-word; } .hp-page .hp-icon { flex-shrink: 0; font-size: 1.4rem; } .hp-page .hp-card p { margin: 0 0 8px; font-size: 0.98rem; line-height: 1.7; color: #e0e6ee; } .hp-page .hp-stats { display: block; margin: 8px 0 6px; font-size: 0.95rem; color: #d0d8e0; } .hp-page .hp-stats strong { color: #f0d5b0; font-weight: 600; } /* 标签 */ .hp-page .hp-badge-list, .hp-page .hp-badge-list > p { display: flex; flex-wrap: wrap; gap: 8px 12px; } .hp-page .hp-badge-list { margin-top: 8px; } .hp-page .hp-badge-list > p { margin: 0; min-width: 0; } .hp-page .hp-badge-list span { max-width: 100%; padding: 4px 16px; border: 1px solid rgba(240, 210, 170, 0.15); border-radius: 40px; background: rgba(240, 210, 170, 0.12); color: #f0e3d0; font-size: 0.82rem; } /* 链接列表 */ .hp-page .hp-link-list, .hp-page .hp-link-list > p { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; } .hp-page .hp-link-list { margin: 4px 0 6px; } .hp-page .hp-link-list > p { margin: 0; } .hp-page .hp-link-list > div { max-width: 100%; } .hp-page .hp-link-list a { display: inline-block; max-width: 100%; padding: 3px 0; border-bottom: 1px dashed rgba(200, 170, 140, 0.35); font-size: 0.95rem; white-space: normal; } .hp-page .hp-link-list a:hover { border-bottom-color: #f0d5b0; } .hp-page .hp-more-link { margin-top: 12px; font-size: 0.88rem; } .hp-page .hp-more-link a { border-bottom: 1px dotted rgba(200, 170, 140, 0.4); } /* 最近更改 */ .hp-page .hp-recent-list { margin: 4px 0 10px; padding: 0; list-style: none; } .hp-page .hp-recent-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; padding: 6px 0; border-bottom: 1px solid rgba(200, 180, 150, 0.12); font-size: 0.92rem; line-height: 1.5; color: #e0e6ee; } .hp-page .hp-recent-list li:last-child { border-bottom: 0; } .hp-page .hp-rc-title { min-width: 0; font-weight: 500; color: #fff4e5; } .hp-page .hp-rc-user { color: #b9c5d1; font-size: 0.82rem; } .hp-page .hp-rc-time { margin-left: auto; white-space: nowrap; color: #b9c5d1; font-size: 0.75rem; } .hp-page .hp-rc-comment { width: 100%; padding-left: 4px; color: #b9c5d1; font-size: 0.82rem; } .hp-page .hp-recent-empty, .hp-page .hp-loading { padding: 8px 0; font-size: 0.92rem; color: #b9c5d1; } .hp-page .hp-loading::after { content: "..."; } /* 项目横幅 */ .hp-page .hp-card-featured { position: relative; display: block; grid-column: 1 / -1; min-height: 160px; padding: 0; overflow: hidden; border: 0; background: #30343e; } .hp-page .hp-card-featured:hover { background: #30343e; } .hp-page .hp-card-featured > p { margin: 0; } .hp-page .hp-card-featured a { display: block; position: relative; color: #fff4e5; text-decoration: none; } .hp-page .hp-card-featured img { display: block; width: 100%; max-width: 100%; height: 200px; object-fit: cover; } .hp-page .hp-featured-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, 0.15); } .hp-page .hp-featured-overlay h3 { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; max-width: 100%; margin: 0; padding: 0; border: 0; font-size: 2.2rem; font-weight: 500; line-height: 1.4; letter-spacing: 4px; color: #fff4e5; text-align: center; text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); } .hp-page .hp-featured-overlay h3 small { margin: 0; font-size: 1rem; font-weight: 400; letter-spacing: 2px; } /* 页脚 */ .hp-page .hp-footer { width: 100%; margin: 20px 0 6px; font-size: 0.85rem; letter-spacing: 3px; color: #c2ccd7; text-align: center; } /* 平板 */ @media (max-width: 1024px) { .hp-page .hp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } } @media (max-width: 820px) { .hp-page .hp-grid { gap: 20px; } .hp-page .hp-welcome { flex-direction: column; align-items: stretch; padding: 20px; } .hp-page .hp-welcome-text { flex: 0 1 auto; width: 100%; } .hp-page .hp-welcome-actions { justify-content: center; } .hp-page .hp-card h3 { font-size: 1.15rem; } .hp-page .hp-featured-overlay h3 { font-size: 1.6rem; } } /* 手机 */ @media (max-width: 560px) { .hp-page .hp-container { gap: 20px; padding: 16px 12px 40px; } .hp-page .hp-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } .hp-page .hp-header-logo { width: 90%; max-width: 300px; } .hp-page .hp-header-sub { font-size: 0.82rem; letter-spacing: 3px; } .hp-page .hp-welcome { padding: 20px 18px; border-radius: 22px; } .hp-page .hp-welcome-text h2 { font-size: 1.15rem; } .hp-page .hp-welcome-list { font-size: 0.9rem; } .hp-page .hp-card { padding: 22px 18px 18px; border-radius: 22px; } .hp-page .hp-card h3 { font-size: 1.1rem; } .hp-page .hp-card p { font-size: 0.92rem; } .hp-page .hp-recent-list li { font-size: 0.85rem; } .hp-page .hp-rc-time { width: 100%; margin-left: 0; } .hp-page .hp-card-featured { padding: 0; } .hp-page .hp-card-featured img { height: 180px; } .hp-page .hp-featured-overlay { padding: 12px; } .hp-page .hp-featured-overlay h3 { flex-direction: column; font-size: 1.3rem; letter-spacing: 2px; } .hp-page .hp-featured-overlay h3 small { font-size: 0.9rem; } .hp-page .hp-footer { font-size: 0.78rem; letter-spacing: 1px; } } /* 减少动态效果 */ @media (prefers-reduced-motion: reduce) { .hp-page .hp-card { transition: none; } .hp-page .hp-card:hover { transform: none; } } /* 最近更改:独占整行 */ .hp-page .hp-card-recent { grid-column: 1 / -1; width: 100%; min-width: 0; } /* 保留原生最近更改列表的排版 */ .hp-page .hp-card-recent .hp-recent-content { width: 100%; min-width: 0; overflow-x: auto; font-size: 0.92rem; line-height: 1.7; } .hp-page .hp-card-recent .mw-changeslist { margin: 0; } .hp-page .hp-card-recent .mw-changeslist ul { margin-top: 8px; margin-bottom: 12px; } .hp-page .hp-card-recent .mw-changeslist li { margin-bottom: 6px; } /* 日期标题 */ .hp-page .hp-card-recent .hp-recent-content h4 { margin: 14px 0 8px; padding: 0 0 6px; border-bottom: 1px solid rgba(240, 210, 170, 0.15); font-family: inherit; font-size: 1rem; font-weight: 600; color: #fff4e5; } @media (max-width: 560px) { .hp-page .hp-card-recent .hp-recent-content { font-size: 0.85rem; } }
返回
Template:Index2026/styles.css
。
查看“︁Template:Index2026/styles.css”︁的源代码
模板页面