跳转到内容
打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

Template:Index2026/styles.css:修订间差异

模板页面
Yzystudio留言 | 贡献
无编辑摘要
Yzystudio留言 | 贡献
无编辑摘要
第1行: 第1行:
/* ============================================================
/* ============================================================
   一支烟工作室 · 主页样式(修复遮罩 + 链接占位)
   一支烟工作室 · TemplateStyles 完整重置版
  已移除不受支持的 pointer-events 属性
  整体替换旧 CSS,包括之前追加的补丁
   ============================================================ */
   ============================================================ */


.hp-bg {
/* 基础尺寸与背景 */
   position: fixed;
.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;
  width: 100%;
  height: 100%;
   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::before {
 
   content: '';
/* 适配 Wiki 图片语法生成的包装层 */
   position: absolute;
.hp-page .hp-bg p,
   top: 0;
.hp-page .hp-bg span,
   left: 0;
.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%;
   background: rgba(0, 0, 0, 0.25);
   max-width: none;
  object-fit: cover;
  object-position: center;
}
}
.hp-bg::after {
 
   content: '';
/* 背景遮罩位于正文下方 */
.hp-page .hp-bg::before {
   content: "";
   position: absolute;
   position: absolute;
   top: 0;
   top: 0;
  right: 0;
  bottom: 0;
   left: 0;
   left: 0;
   width: 100%;
   z-index: 1;
  height: 100%;
   background: rgba(10, 12, 18, 0.28);
   background: rgba(10, 12, 18, 0.15);
}
 
.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: 2;
   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;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: #f5f7fa;
  min-height: 100vh;
}
}


.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;
  padding: 6px 0 10px;
}
}
.hp-header-logo {
 
.hp-page .hp-header-logo {
  display: block;
  width: 80%;
   max-width: 340px;
   max-width: 340px;
   width: 80%;
   margin: 0 auto 10px;
  height: auto;
   overflow: hidden;
   display: block;
  margin: 0 auto 6px;
   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);
  transition: transform 0.2s ease;
}
}
.hp-header-logo:hover {
 
   transform: scale(1.01);
.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;
  opacity: 1;
   text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-top: 2px;
  font-weight: 400;
   text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
}


.hp-welcome {
/* 欢迎区域 */
  background: rgba(45, 48, 56, 0.75);
.hp-page .hp-welcome {
  border-radius: 28px;
  padding: 24px 30px 22px;
  width: 100%;
  max-width: 820px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(240, 210, 170, 0.25);
  border: 1px solid rgba(240, 210, 170, 0.20);
  transition: all 0.25s;
   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 20px;
   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 {
 
  display: flex;
.hp-page .hp-welcome-text {
  align-items: center;
  gap: 12px;
   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;
  margin: 0;
  letter-spacing: 0.5px;
}
}
.hp-welcome-text h2 span {
 
  font-size: 1.6rem;
.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;
  color: #e0e6ee;
  opacity: 0.9;
}
}
.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: 14px;
   gap: 12px;
   flex-shrink: 0;
   max-width: 100%;
  flex-wrap: wrap;
}
}
.hp-welcome-actions .hp-btn {
 
   background: #f0d5b0;
.hp-page .hp-btn {
  border: none;
   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;
  font-size: 0.95rem;
  color: #1c1f26;
   cursor: pointer;
   cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
  border: 1px solid #f0d5b0;
}
}
.hp-welcome-actions .hp-btn:hover {
 
.hp-page .hp-btn:hover {
   background: #fae3c5;
   background: #fae3c5;
   transform: scale(1.02);
   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;
  color: #c0cbd8;
   cursor: pointer;
   cursor: pointer;
}
}
.hp-welcome-actions label input[type="checkbox"] {
 
.hp-page .hp-welcome-actions input[type="checkbox"] {
   width: 16px;
   width: 16px;
   height: 16px;
   height: 16px;
   cursor: pointer;
   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 {
   background: rgba(48, 52, 62, 0.85);
   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;
   padding: 28px 24px 24px;
   background: rgba(48, 52, 62, 0.94);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(240, 210, 170, 0.15);
  border: 1px solid rgba(240, 210, 170, 0.10);
   color: #f0f3f7;
   color: #f0f3f7;
   display: flex;
   overflow-wrap: break-word;
   flex-direction: column;
   box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.3);
   transition: box-shadow 0.3s ease, background 0.3s ease, transform 0.2s ease;
   transition: background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
}
.hp-card::before,
 
.hp-card::after {
.hp-page .hp-card:hover {
  display: none !important;
   background: rgba(60, 65, 78, 0.98);
  content: none !important;
   box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.45);
}
.hp-card:hover {
   background: rgba(65, 70, 85, 0.92);
   box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(240, 210, 170, 0.30);
   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;
   font-size: 1.3rem;
   line-height: 1.5;
   letter-spacing: 0.5px;
   letter-spacing: 0.5px;
   color: #fff4e5;
   color: #fff4e5;
  margin: 0 0 12px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(240, 210, 170, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  word-break: normal;
   overflow-wrap: break-word;
   overflow-wrap: break-word;
}
}
.hp-card h3 .hp-icon {
 
.hp-page .hp-icon {
  flex-shrink: 0;
   font-size: 1.4rem;
   font-size: 1.4rem;
  flex-shrink: 0;
}
}
.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;
  margin: 0 0 6px 0;
}
}
.hp-card .hp-stats {
 
.hp-page .hp-stats {
   display: block;
   display: block;
   margin: 8px 0 6px 0;
   margin: 8px 0 6px;
   font-size: 0.95rem;
   font-size: 0.95rem;
   color: #d0d8e0;
   color: #d0d8e0;
}
}
.hp-card .hp-stats strong {
 
.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 span {
 
   background: rgba(240, 210, 170, 0.12);
.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;
  border: 1px solid rgba(240, 210, 170, 0.15);
  color: #f0e3d0;
}
}
.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: 4px 0;
  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 a {
 
   color: #f0d5b0;
.hp-page .hp-link-list > p {
   text-decoration: none;
   margin: 0;
   border-bottom: 1px dashed rgba(200, 170, 140, 0.25);
}
   transition: 0.2s;
 
.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;
   display: inline-block;
   border-bottom: 1px dashed rgba(200, 170, 140, 0.35);
  width: fit-content;
   font-size: 0.95rem;
   font-size: 0.95rem;
  white-space: normal;
}
}
.hp-link-list a:hover {
 
  color: #fff0dd;
.hp-page .hp-link-list a:hover {
   border-bottom-color: #f0d5b0;
   border-bottom-color: #f0d5b0;
  padding-left: 6px;
}
}
.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;
  padding: 0;
  margin: 4px 0 10px;
}
}
.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.08);
   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;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
}
.hp-recent-list li:last-child {
 
   border-bottom: none;
.hp-page .hp-recent-list li:last-child {
   border-bottom: 0;
}
}
.hp-recent-list .hp-rc-title {
 
.hp-page .hp-rc-title {
  min-width: 0;
   font-weight: 500;
   font-weight: 500;
   color: #fff4e5;
   color: #fff4e5;
}
}
.hp-recent-list .hp-rc-user {
 
   color: #b0bcc8;
.hp-page .hp-rc-user {
   color: #b9c5d1;
   font-size: 0.82rem;
   font-size: 0.82rem;
}
}
.hp-recent-list .hp-rc-time {
 
  color: #b0bcc8;
.hp-page .hp-rc-time {
  font-size: 0.75rem;
   margin-left: auto;
   margin-left: auto;
   white-space: nowrap;
   white-space: nowrap;
  color: #b9c5d1;
  font-size: 0.75rem;
}
}
.hp-recent-list .hp-rc-comment {
 
  color: #b0bcc8;
.hp-page .hp-rc-comment {
  font-size: 0.82rem;
  opacity: 0.7;
   width: 100%;
   width: 100%;
   padding-left: 4px;
   padding-left: 4px;
  color: #b9c5d1;
  font-size: 0.82rem;
}
}
.hp-recent-empty {
 
   color: #b0bcc8;
.hp-page .hp-recent-empty,
.hp-page .hp-loading {
   padding: 8px 0;
   font-size: 0.92rem;
   font-size: 0.92rem;
   opacity: 0.6;
   color: #b9c5d1;
  padding: 8px 0;
}
}
.hp-more-link {
 
  margin-top: 10px;
.hp-page .hp-loading::after {
  font-size: 0.88rem;
   content: "...";
}
.hp-more-link a {
  color: #f0d5b0;
  text-decoration: none;
  border-bottom: 1px dotted rgba(200, 170, 140, 0.4);
  transition: 0.2s;
}
.hp-more-link a:hover {
  color: #fff0dd;
  border-bottom-color: #f0d5b0;
}
.hp-footer {
  margin: 30px 0 6px;
  opacity: 0.5;
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: #d0d8e0;
  text-align: center;
  width: 100%;
}
.hp-loading {
  color: #b0bcc8;
  font-size: 0.9rem;
  opacity: 0.6;
  padding: 6px 0;
}
.hp-loading::after {
   content: '...';
  animation: hp-dots 1.2s steps(3, end) infinite;
}
@keyframes hp-dots {
  0% { content: ''; }
  33% { content: '.'; }
  66% { content: '..'; }
  100% { 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;
   background: transparent;
   border: 0;
   box-shadow: none;
   background: #30343e;
  border: none;
}
}
.hp-card-featured::before,
 
.hp-card-featured::after {
.hp-page .hp-card-featured:hover {
   display: none !important;
   background: #30343e;
  content: none !important;
}
}
.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;
   border-radius: 28px;
   color: #fff4e5;
  overflow: hidden;
   text-decoration: none;
   box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.4);
  transition: all 0.3s;
}
}
.hp-card-featured a:hover {
 
   transform: scale(1.01);
.hp-page .hp-card-featured img {
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5);
   display: block;
}
.hp-card-featured img {
   width: 100%;
   width: 100%;
   height: auto;
   max-width: 100%;
  display: block;
   height: 200px;
   max-height: 200px;
   object-fit: cover;
   object-fit: cover;
}
}
.hp-card-featured .hp-featured-overlay {
 
.hp-page .hp-featured-overlay {
   position: absolute;
   position: absolute;
   top: 0;
   top: 0;
  right: 0;
  bottom: 0;
   left: 0;
   left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
   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-card-featured .hp-featured-overlay h3 {
 
.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-shadow: 0 4px 20px rgba(0,0,0,0.4);
  letter-spacing: 4px;
  margin: 0;
  border-bottom: none;
  padding-bottom: 0;
   text-align: center;
   text-align: center;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
}
.hp-card-featured .hp-featured-overlay h3 small {
 
.hp-page .hp-featured-overlay h3 small {
  margin: 0;
   font-size: 1rem;
   font-size: 1rem;
   font-weight: 300;
   font-weight: 400;
  opacity: 0.9;
  margin-left: 16px;
   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 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;
    text-align: center;
     padding: 20px;
     padding: 20px;
   }
   }
   .hp-welcome-text {
 
     flex-direction: column;
   .hp-page .hp-welcome-text {
     gap: 4px;
     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-card-featured .hp-featured-overlay h3 {
 
   .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-container {
 
     padding: 12px 12px 40px;
  .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-welcome-text h2 {
 
     font-size: 1.15rem;
   .hp-page .hp-recent-list li {
     font-size: 0.85rem;
  }
 
  .hp-page .hp-rc-time {
    width: 100%;
    margin-left: 0;
   }
   }
   .hp-header-logo {
 
     width: 90%;
   .hp-page .hp-card-featured {
     padding: 0;
   }
   }
   .hp-recent-list li {
 
     font-size: 0.85rem;
   .hp-page .hp-card-featured img {
     height: 180px;
   }
   }
   .hp-recent-list .hp-rc-time {
 
     margin-left: 0;
   .hp-page .hp-featured-overlay {
    width: 100%;
     padding: 12px;
   }
   }
   .hp-card-featured .hp-featured-overlay h3 {
 
   .hp-page .hp-featured-overlay h3 {
    flex-direction: column;
     font-size: 1.3rem;
     font-size: 1.3rem;
     flex-direction: column;
     letter-spacing: 2px;
   }
   }
   .hp-card-featured .hp-featured-overlay h3 small {
 
    margin-left: 0;
   .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;
  }
}