Template:Index2026/styles.css:修订间差异
模板页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
/* ============================================================ | /* ============================================================ | ||
一支烟工作室 · | 一支烟工作室 · TemplateStyles 完整重置版 | ||
已移除不受支持的 pointer-events 属性 | |||
整体替换旧 CSS,包括之前追加的补丁 | |||
============================================================ */ | ============================================================ */ | ||
.hp-bg { | /* 基础尺寸与背景 */ | ||
position: | .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; | top: 0; | ||
right: 0; | |||
bottom: 0; | |||
left: 0; | left: 0; | ||
z-index: 0; | z-index: 0; | ||
overflow: hidden; | |||
background-size: cover; | background-size: cover; | ||
background-position: center; | background-position: center; | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
} | } | ||
.hp-bg:: | |||
/* 适配 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%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
max-width: none; | |||
object-fit: cover; | |||
object-position: center; | |||
} | } | ||
.hp-bg:: | |||
content: | /* 背景遮罩位于正文下方 */ | ||
.hp-page .hp-bg::before { | |||
content: ""; | |||
position: absolute; | position: absolute; | ||
top: 0; | top: 0; | ||
right: 0; | |||
bottom: 0; | |||
left: 0; | left: 0; | ||
z-index: 1; | |||
background: rgba(10, 12, 18, 0.28); | |||
background: rgba(10, 12, 18, 0. | } | ||
.hp-page .hp-bg::after, | |||
.hp-page .hp-card::before, | |||
.hp-page .hp-card::after { | |||
content: none; | |||
display: none; | |||
} | } | ||
.hp-container { | .hp-page .hp-container { | ||
position: relative; | position: relative; | ||
z-index: | z-index: 1; | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
align-items: center; | align-items: center; | ||
gap: 28px; | gap: 28px; | ||
width: 100%; | |||
max-width: 1260px; | max-width: 1260px; | ||
min-width: 0; | |||
min-height: 100vh; | |||
margin: 0 auto; | margin: 0 auto; | ||
padding: 20px 16px 60px; | padding: 20px 16px 60px; | ||
} | } | ||
.hp-header { | .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%; | width: 100%; | ||
padding: 6px 0 10px; | |||
text-align: center; | text-align: center; | ||
} | } | ||
.hp-header-logo { | |||
.hp-page .hp-header-logo { | |||
display: block; | |||
width: 80%; | |||
max-width: 340px; | max-width: 340px; | ||
margin: 0 auto 10px; | |||
overflow: hidden; | |||
border-radius: 18px; | border-radius: 18px; | ||
box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3); | box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3); | ||
} | } | ||
.hp-header-logo: | |||
.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-header-sub { | |||
.hp-page .hp-header-sub { | |||
margin-top: 2px; | |||
font-size: 0.95rem; | font-size: 0.95rem; | ||
font-weight: 400; | |||
letter-spacing: 6px; | letter-spacing: 6px; | ||
color: #f0d5b0; | color: #f0d5b0; | ||
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); | |||
text-shadow: 0 2px 10px rgba(0,0,0,0.3); | |||
} | } | ||
.hp-welcome { | /* 欢迎区域 */ | ||
.hp-page .hp-welcome { | |||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
align-items: center; | align-items: center; | ||
justify-content: space-between; | justify-content: space-between; | ||
gap: 12px | 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-welcome.hidden { | |||
.hp-page .hp-welcome.hidden { | |||
display: none; | display: none; | ||
} | } | ||
.hp-welcome-text { | |||
.hp-page .hp-welcome-text { | |||
flex: 1 1 300px; | flex: 1 1 300px; | ||
min-width: 0; | |||
overflow-wrap: break-word; | |||
} | } | ||
.hp-welcome-text h2 { | |||
.hp-page .hp-welcome-text h2 { | |||
margin: 0 0 12px; | |||
padding: 0; | |||
border: 0; | |||
font-family: inherit; | |||
font-size: 1.4rem; | font-size: 1.4rem; | ||
font-weight: 500; | font-weight: 500; | ||
line-height: 1.5; | |||
color: #fff4e5; | color: #fff4e5; | ||
} | } | ||
.hp-welcome-text h2 span { | |||
.hp-page .hp-welcome-text h2 span { | |||
margin-right: 4px; | margin-right: 4px; | ||
} | } | ||
.hp-welcome-text p { | |||
.hp-page .hp-welcome-text p { | |||
margin: 0 0 8px; | |||
color: #e0e6ee; | |||
font-size: 0.95rem; | |||
} | |||
.hp-page .hp-welcome-list { | |||
margin: 0; | margin: 0; | ||
padding: 0 0 0 1.4em; | |||
list-style: disc; | |||
color: #e0e6ee; | |||
font-size: 0.95rem; | font-size: 0.95rem; | ||
} | } | ||
.hp-welcome-actions { | |||
.hp-page .hp-welcome-list li { | |||
margin: 6px 0; | |||
} | |||
.hp-page .hp-welcome-actions { | |||
display: flex; | display: flex; | ||
flex-wrap: wrap; | |||
align-items: center; | align-items: center; | ||
gap: | gap: 12px; | ||
max-width: 100%; | |||
} | } | ||
.hp- | |||
.hp-page .hp-btn { | |||
display: inline-block; | |||
padding: 8px 26px; | padding: 8px 26px; | ||
border: 1px solid #f0d5b0; | |||
border-radius: 60px; | border-radius: 60px; | ||
background: #f0d5b0; | |||
color: #1c1f26; | |||
font: inherit; | |||
font-size: 0.95rem; | |||
font-weight: 600; | font-weight: 600; | ||
cursor: pointer; | cursor: pointer; | ||
} | } | ||
.hp- | |||
.hp-page .hp-btn:hover { | |||
background: #fae3c5; | background: #fae3c5; | ||
color: #1c1f26; | |||
} | |||
.hp-page .hp-btn a { | |||
color: inherit; | |||
} | } | ||
.hp-welcome-actions label { | |||
.hp-page .hp-welcome-actions label { | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
gap: 6px; | gap: 6px; | ||
color: #c0cbd8; | |||
font-size: 0.85rem; | font-size: 0.85rem; | ||
cursor: pointer; | cursor: pointer; | ||
} | } | ||
.hp-welcome-actions | |||
.hp-page .hp-welcome-actions input[type="checkbox"] { | |||
width: 16px; | width: 16px; | ||
height: 16px; | height: 16px; | ||
margin: 0; | |||
} | } | ||
.hp-grid { | /* 网格与常规卡片 */ | ||
.hp-page .hp-grid { | |||
display: grid; | display: grid; | ||
grid-template-columns: repeat(3, 1fr); | grid-template-columns: repeat(3, minmax(0, 1fr)); | ||
gap: 28px; | gap: 28px; | ||
align-items: stretch; | |||
width: 100%; | width: 100%; | ||
max-width: 1200px; | max-width: 1200px; | ||
| 第164行: | 第278行: | ||
} | } | ||
.hp-card { | .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; | border-radius: 28px; | ||
background: rgba(48, 52, 62, 0.94); | |||
color: #f0f3f7; | color: #f0f3f7; | ||
overflow-wrap: break-word; | |||
box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.3); | |||
transition: | transition: background 0.2s ease, | ||
box-shadow 0.2s ease, | |||
transform 0.2s ease; | |||
} | } | ||
.hp- | .hp-page .hp-card:hover { | ||
background: rgba(60, 65, 78, 0.98); | |||
box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.45); | |||
.hp-card:hover { | |||
background: rgba(65, | |||
box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0. | |||
transform: translateY(-2px); | transform: translateY(-2px); | ||
} | } | ||
.hp-card h3 { | |||
.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; | font-weight: 600; | ||
line-height: 1.5; | |||
letter-spacing: 0.5px; | letter-spacing: 0.5px; | ||
color: #fff4e5; | color: #fff4e5; | ||
overflow-wrap: break-word; | overflow-wrap: break-word; | ||
} | } | ||
.hp- | |||
.hp-page .hp-icon { | |||
flex-shrink: 0; | |||
font-size: 1.4rem; | font-size: 1.4rem; | ||
} | } | ||
.hp-card p { | |||
.hp-page .hp-card p { | |||
margin: 0 0 8px; | |||
font-size: 0.98rem; | font-size: 0.98rem; | ||
line-height: 1.7; | line-height: 1.7; | ||
color: #e0e6ee; | color: #e0e6ee; | ||
} | } | ||
.hp- | |||
.hp-page .hp-stats { | |||
display: block; | display: block; | ||
margin: 8px 0 6px | margin: 8px 0 6px; | ||
font-size: 0.95rem; | font-size: 0.95rem; | ||
color: #d0d8e0; | color: #d0d8e0; | ||
} | } | ||
.hp- | |||
.hp-page .hp-stats strong { | |||
color: #f0d5b0; | color: #f0d5b0; | ||
font-weight: 600; | font-weight: 600; | ||
} | } | ||
.hp-badge-list { | |||
/* 标签 */ | |||
.hp-page .hp-badge-list, | |||
.hp-page .hp-badge-list > p { | |||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: 8px 12px; | gap: 8px 12px; | ||
} | |||
.hp-page .hp-badge-list { | |||
margin-top: 8px; | margin-top: 8px; | ||
} | } | ||
.hp-badge-list | |||
.hp-page .hp-badge-list > p { | |||
margin: 0; | |||
min-width: 0; | |||
} | |||
.hp-page .hp-badge-list span { | |||
max-width: 100%; | |||
padding: 4px 16px; | padding: 4px 16px; | ||
border: 1px solid rgba(240, 210, 170, 0.15); | |||
border-radius: 40px; | border-radius: 40px; | ||
background: rgba(240, 210, 170, 0.12); | |||
color: #f0e3d0; | |||
font-size: 0.82rem; | font-size: 0.82rem; | ||
} | } | ||
.hp-link-list { | |||
/* 链接列表 */ | |||
.hp-page .hp-link-list, | |||
.hp-page .hp-link-list > p { | |||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
gap: | align-items: flex-start; | ||
gap: 6px; | |||
min-width: 0; | |||
} | |||
.hp-page .hp-link-list { | |||
margin: 4px 0 6px; | margin: 4px 0 6px; | ||
} | } | ||
.hp-link-list | |||
.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; | padding: 3px 0; | ||
border-bottom: 1px dashed rgba(200, 170, 140, 0.35); | |||
font-size: 0.95rem; | font-size: 0.95rem; | ||
white-space: normal; | |||
} | } | ||
.hp-link-list a:hover { | |||
.hp-page .hp-link-list a:hover { | |||
border-bottom-color: #f0d5b0; | border-bottom-color: #f0d5b0; | ||
} | } | ||
.hp-recent-list { | |||
.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; | list-style: none; | ||
} | } | ||
.hp-recent-list li { | |||
.hp-page .hp-recent-list li { | |||
display: flex; | |||
flex-wrap: wrap; | |||
align-items: baseline; | |||
gap: 4px 10px; | |||
margin: 0; | |||
padding: 6px 0; | padding: 6px 0; | ||
border-bottom: 1px solid rgba(200, 180, 150, 0. | border-bottom: 1px solid rgba(200, 180, 150, 0.12); | ||
font-size: 0.92rem; | font-size: 0.92rem; | ||
line-height: 1.5; | line-height: 1.5; | ||
color: #e0e6ee; | color: #e0e6ee; | ||
} | } | ||
.hp-recent-list li:last-child { | |||
border-bottom: | .hp-page .hp-recent-list li:last-child { | ||
border-bottom: 0; | |||
} | } | ||
.hp- | |||
.hp-page .hp-rc-title { | |||
min-width: 0; | |||
font-weight: 500; | font-weight: 500; | ||
color: #fff4e5; | color: #fff4e5; | ||
} | } | ||
.hp- | |||
color: # | .hp-page .hp-rc-user { | ||
color: #b9c5d1; | |||
font-size: 0.82rem; | font-size: 0.82rem; | ||
} | } | ||
.hp- | |||
.hp-page .hp-rc-time { | |||
margin-left: auto; | margin-left: auto; | ||
white-space: nowrap; | white-space: nowrap; | ||
color: #b9c5d1; | |||
font-size: 0.75rem; | |||
} | } | ||
.hp- | |||
.hp-page .hp-rc-comment { | |||
width: 100%; | width: 100%; | ||
padding-left: 4px; | padding-left: 4px; | ||
color: #b9c5d1; | |||
font-size: 0.82rem; | |||
} | } | ||
.hp-recent-empty { | |||
.hp-page .hp-recent-empty, | |||
.hp-page .hp-loading { | |||
padding: 8px 0; | |||
font-size: 0.92rem; | font-size: 0.92rem; | ||
color: #b9c5d1; | |||
} | } | ||
.hp-page .hp-loading::after { | |||
content: "..."; | |||
.hp- | |||
.hp-loading::after { | |||
content: | |||
} | } | ||
.hp-card-featured { | /* 项目横幅 */ | ||
.hp-page .hp-card-featured { | |||
position: relative; | |||
display: block; | |||
grid-column: 1 / -1; | grid-column: 1 / -1; | ||
min-height: 160px; | |||
padding: 0; | padding: 0; | ||
overflow: hidden; | overflow: hidden; | ||
border: 0; | |||
background: #30343e; | |||
} | } | ||
.hp- | |||
.hp-card-featured: | .hp-page .hp-card-featured:hover { | ||
background: #30343e; | |||
} | } | ||
.hp-card-featured a { | |||
.hp-page .hp-card-featured > p { | |||
margin: 0; | |||
} | |||
.hp-page .hp-card-featured a { | |||
display: block; | display: block; | ||
position: relative; | position: relative; | ||
color: #fff4e5; | |||
text-decoration: none; | |||
} | } | ||
.hp-card-featured | |||
.hp-page .hp-card-featured img { | |||
display: block; | |||
width: 100%; | width: 100%; | ||
max-width: 100%; | |||
height: 200px; | |||
object-fit: cover; | object-fit: cover; | ||
} | } | ||
.hp- | |||
.hp-page .hp-featured-overlay { | |||
position: absolute; | position: absolute; | ||
top: 0; | top: 0; | ||
right: 0; | |||
bottom: 0; | |||
left: 0; | left: 0; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
padding: 20px; | padding: 20px; | ||
background: rgba(0, 0, 0, 0.15); | |||
} | } | ||
.hp- | |||
.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-size: 2.2rem; | ||
font-weight: 500; | font-weight: 500; | ||
line-height: 1.4; | |||
letter-spacing: 4px; | |||
color: #fff4e5; | color: #fff4e5; | ||
text-align: center; | text-align: center; | ||
text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); | |||
} | } | ||
.hp- | |||
.hp-page .hp-featured-overlay h3 small { | |||
margin: 0; | |||
font-size: 1rem; | font-size: 1rem; | ||
font-weight: | font-weight: 400; | ||
letter-spacing: 2px; | 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) { | @media (max-width: 1024px) { | ||
.hp-grid { | .hp-page .hp-grid { | ||
grid-template-columns: 1fr | grid-template-columns: repeat(2, minmax(0, 1fr)); | ||
gap: 24px; | gap: 24px; | ||
} | } | ||
} | } | ||
@media (max-width: 820px) { | @media (max-width: 820px) { | ||
.hp-grid { | .hp-page .hp-grid { | ||
gap: 20px; | gap: 20px; | ||
} | } | ||
.hp-welcome { | |||
.hp-page .hp-welcome { | |||
flex-direction: column; | flex-direction: column; | ||
align-items: stretch; | align-items: stretch; | ||
padding: 20px; | padding: 20px; | ||
} | } | ||
.hp-welcome-text { | |||
flex | .hp-page .hp-welcome-text { | ||
flex: 0 1 auto; | |||
width: 100%; | |||
} | } | ||
.hp-welcome-actions { | |||
.hp-page .hp-welcome-actions { | |||
justify-content: center; | justify-content: center; | ||
} | } | ||
.hp-card h3 { | |||
.hp-page .hp-card h3 { | |||
font-size: 1.15rem; | font-size: 1.15rem; | ||
} | } | ||
.hp- | |||
.hp-page .hp-featured-overlay h3 { | |||
font-size: 1.6rem; | font-size: 1.6rem; | ||
} | } | ||
} | } | ||
/* 手机 */ | |||
@media (max-width: 560px) { | @media (max-width: 560px) { | ||
.hp-grid { | .hp-page .hp-container { | ||
grid-template-columns: 1fr; | gap: 20px; | ||
padding: 16px 12px 40px; | |||
} | |||
.hp-page .hp-grid { | |||
grid-template-columns: minmax(0, 1fr); | |||
gap: 16px; | gap: 16px; | ||
} | } | ||
.hp- | |||
padding: | .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-card { | |||
.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; | padding: 22px 18px 18px; | ||
border-radius: 22px; | border-radius: 22px; | ||
} | } | ||
.hp-card h3 { | |||
.hp-page .hp-card h3 { | |||
font-size: 1.1rem; | font-size: 1.1rem; | ||
} | } | ||
.hp-card p { | |||
.hp-page .hp-card p { | |||
font-size: 0.92rem; | font-size: 0.92rem; | ||
} | } | ||
.hp- | |||
font-size: | .hp-page .hp-recent-list li { | ||
font-size: 0.85rem; | |||
} | |||
.hp-page .hp-rc-time { | |||
width: 100%; | |||
margin-left: 0; | |||
} | } | ||
.hp- | |||
.hp-page .hp-card-featured { | |||
padding: 0; | |||
} | } | ||
.hp- | |||
.hp-page .hp-card-featured img { | |||
height: 180px; | |||
} | } | ||
.hp- | |||
.hp-page .hp-featured-overlay { | |||
padding: 12px; | |||
} | } | ||
.hp- | |||
.hp-page .hp-featured-overlay h3 { | |||
flex-direction: column; | |||
font-size: 1.3rem; | font-size: 1.3rem; | ||
letter-spacing: 2px; | |||
} | } | ||
.hp- | |||
.hp-page .hp-featured-overlay h3 small { | |||
font-size: 0.9rem; | 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; | |||
} | } | ||
} | } | ||
2026年9月7日 (一) 06:41的版本
/* ============================================================
一支烟工作室 · 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;
}
}