Template:Index2026/styles.css:修订间差异
模板页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
/* ============================================================ | /* ============================================================ | ||
一支烟工作室 · | 一支烟工作室 · 主页样式(修复遮罩 + 链接占位) | ||
============================================================ */ | ============================================================ */ | ||
.hp-bg { | .hp-bg { | ||
position: fixed; | position: fixed; | ||
| 第34行: | 第33行: | ||
} | } | ||
.hp-container { | .hp-container { | ||
position: relative; | position: relative; | ||
| 第50行: | 第48行: | ||
} | } | ||
.hp-header { | .hp-header { | ||
width: 100%; | width: 100%; | ||
| 第79行: | 第76行: | ||
} | } | ||
.hp-welcome { | .hp-welcome { | ||
background: rgba(45, 48, 56, 0.75); | background: rgba(45, 48, 56, 0.75); | ||
| 第159行: | 第155行: | ||
} | } | ||
.hp-grid { | .hp-grid { | ||
display: grid; | display: grid; | ||
| 第169行: | 第164行: | ||
} | } | ||
.hp-card { | .hp-card { | ||
background: rgba(48, 52, 62, 0.85); | background: rgba(48, 52, 62, 0.85); | ||
| 第180行: | 第174行: | ||
flex-direction: column; | flex-direction: column; | ||
transition: box-shadow 0.3s ease, background 0.3s ease, transform 0.2s ease; | transition: box-shadow 0.3s ease, background 0.3s ease, transform 0.2s ease; | ||
} | |||
.hp-card::before, | |||
.hp-card::after { | |||
display: none !important; | |||
content: none !important; | |||
} | } | ||
.hp-card:hover { | .hp-card:hover { | ||
| 第186行: | 第185行: | ||
transform: translateY(-2px); | transform: translateY(-2px); | ||
} | } | ||
.hp-card h3 { | .hp-card h3 { | ||
font-weight: 600; | font-weight: 600; | ||
| 第206行: | 第203行: | ||
flex-shrink: 0; | flex-shrink: 0; | ||
} | } | ||
.hp-card p { | .hp-card p { | ||
font-size: 0.98rem; | font-size: 0.98rem; | ||
| 第214行: | 第209行: | ||
margin: 0 0 6px 0; | margin: 0 0 6px 0; | ||
} | } | ||
.hp-card .hp-stats { | .hp-card .hp-stats { | ||
display: block; | display: block; | ||
| 第226行: | 第219行: | ||
font-weight: 600; | font-weight: 600; | ||
} | } | ||
.hp-badge-list { | .hp-badge-list { | ||
display: flex; | display: flex; | ||
| 第242行: | 第233行: | ||
color: #f0e3d0; | color: #f0e3d0; | ||
} | } | ||
.hp-link-list { | .hp-link-list { | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
gap: | gap: 4px 0; | ||
margin: 4px 0 6px; | margin: 4px 0 6px; | ||
} | } | ||
| 第253行: | 第242行: | ||
color: #f0d5b0; | color: #f0d5b0; | ||
text-decoration: none; | text-decoration: none; | ||
border-bottom: 1px dashed rgba(200, 170, 140, 0. | border-bottom: 1px dashed rgba(200, 170, 140, 0.25); | ||
transition: 0.2s; | transition: 0.2s; | ||
padding: | padding: 3px 0; | ||
display: inline-block; | display: inline-block; | ||
width: fit-content; | width: fit-content; | ||
font-size: 0. | font-size: 0.95rem; | ||
} | } | ||
.hp-link-list a:hover { | .hp-link-list a:hover { | ||
| 第265行: | 第254行: | ||
padding-left: 6px; | padding-left: 6px; | ||
} | } | ||
.hp-recent-list { | .hp-recent-list { | ||
list-style: none; | list-style: none; | ||
| 第313行: | 第300行: | ||
padding: 8px 0; | padding: 8px 0; | ||
} | } | ||
.hp-more-link { | .hp-more-link { | ||
margin-top: 10px; | margin-top: 10px; | ||
| 第328行: | 第314行: | ||
border-bottom-color: #f0d5b0; | border-bottom-color: #f0d5b0; | ||
} | } | ||
.hp-footer { | .hp-footer { | ||
margin: 30px 0 6px; | margin: 30px 0 6px; | ||
| 第338行: | 第323行: | ||
width: 100%; | width: 100%; | ||
} | } | ||
.hp-loading { | .hp-loading { | ||
color: #b0bcc8; | color: #b0bcc8; | ||
| 第356行: | 第340行: | ||
} | } | ||
.hp-card-featured { | .hp-card-featured { | ||
grid-column: 1 / -1; | grid-column: 1 / -1; | ||
| 第364行: | 第347行: | ||
box-shadow: none; | box-shadow: none; | ||
border: none; | border: none; | ||
} | |||
.hp-card-featured::before, | |||
.hp-card-featured::after { | |||
display: none !important; | |||
content: none !important; | |||
} | } | ||
.hp-card-featured a { | .hp-card-featured a { | ||
| 第390行: | 第378行: | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
background: | background: rgba(0, 0, 0, 0.15); | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
| 第415行: | 第403行: | ||
} | } | ||
@media (max-width: 1024px) { | @media (max-width: 1024px) { | ||
.hp-grid { | .hp-grid { | ||
2026年9月7日 (一) 00:41的版本
/* ============================================================
一支烟工作室 · 主页样式(修复遮罩 + 链接占位)
============================================================ */
.hp-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.hp-bg::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.25);
}
.hp-bg::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(10, 12, 18, 0.15);
}
.hp-container {
position: relative;
z-index: 2;
display: flex;
flex-direction: column;
align-items: center;
gap: 28px;
max-width: 1260px;
margin: 0 auto;
padding: 20px 16px 60px;
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
color: #f5f7fa;
min-height: 100vh;
}
.hp-header {
width: 100%;
text-align: center;
padding: 6px 0 10px;
}
.hp-header-logo {
max-width: 340px;
width: 80%;
height: auto;
display: block;
margin: 0 auto 6px;
border-radius: 18px;
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-header-sub {
font-size: 0.95rem;
letter-spacing: 6px;
color: #f0d5b0;
opacity: 1;
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);
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;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 12px 20px;
}
.hp-welcome.hidden {
display: none;
}
.hp-welcome-text {
display: flex;
align-items: center;
gap: 12px;
flex: 1 1 300px;
}
.hp-welcome-text h2 {
font-size: 1.4rem;
font-weight: 500;
color: #fff4e5;
margin: 0;
letter-spacing: 0.5px;
}
.hp-welcome-text h2 span {
font-size: 1.6rem;
margin-right: 4px;
}
.hp-welcome-text p {
margin: 0;
font-size: 0.95rem;
color: #e0e6ee;
opacity: 0.9;
}
.hp-welcome-actions {
display: flex;
align-items: center;
gap: 14px;
flex-shrink: 0;
flex-wrap: wrap;
}
.hp-welcome-actions .hp-btn {
background: #f0d5b0;
border: none;
padding: 8px 26px;
border-radius: 60px;
font-weight: 600;
font-size: 0.95rem;
color: #1c1f26;
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 {
background: #fae3c5;
transform: scale(1.02);
}
.hp-welcome-actions label {
display: flex;
align-items: center;
gap: 6px;
font-size: 0.85rem;
color: #c0cbd8;
cursor: pointer;
}
.hp-welcome-actions label input[type="checkbox"] {
width: 16px;
height: 16px;
cursor: pointer;
}
.hp-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 28px;
width: 100%;
max-width: 1200px;
margin: 6px 0 10px;
}
.hp-card {
background: rgba(48, 52, 62, 0.85);
border-radius: 28px;
padding: 28px 24px 24px;
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;
display: flex;
flex-direction: column;
transition: box-shadow 0.3s ease, background 0.3s ease, transform 0.2s ease;
}
.hp-card::before,
.hp-card::after {
display: none !important;
content: none !important;
}
.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);
}
.hp-card h3 {
font-weight: 600;
font-size: 1.3rem;
letter-spacing: 0.5px;
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;
}
.hp-card h3 .hp-icon {
font-size: 1.4rem;
flex-shrink: 0;
}
.hp-card p {
font-size: 0.98rem;
line-height: 1.7;
color: #e0e6ee;
margin: 0 0 6px 0;
}
.hp-card .hp-stats {
display: block;
margin: 8px 0 6px 0;
font-size: 0.95rem;
color: #d0d8e0;
}
.hp-card .hp-stats strong {
color: #f0d5b0;
font-weight: 600;
}
.hp-badge-list {
display: flex;
flex-wrap: wrap;
gap: 8px 12px;
margin-top: 8px;
}
.hp-badge-list span {
background: rgba(240, 210, 170, 0.12);
padding: 4px 16px;
border-radius: 40px;
font-size: 0.82rem;
border: 1px solid rgba(240, 210, 170, 0.15);
color: #f0e3d0;
}
.hp-link-list {
display: flex;
flex-direction: column;
gap: 4px 0;
margin: 4px 0 6px;
}
.hp-link-list a {
color: #f0d5b0;
text-decoration: none;
border-bottom: 1px dashed rgba(200, 170, 140, 0.25);
transition: 0.2s;
padding: 3px 0;
display: inline-block;
width: fit-content;
font-size: 0.95rem;
}
.hp-link-list a:hover {
color: #fff0dd;
border-bottom-color: #f0d5b0;
padding-left: 6px;
}
.hp-recent-list {
list-style: none;
padding: 0;
margin: 4px 0 10px;
}
.hp-recent-list li {
padding: 6px 0;
border-bottom: 1px solid rgba(200, 180, 150, 0.08);
font-size: 0.92rem;
line-height: 1.5;
color: #e0e6ee;
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 4px 10px;
}
.hp-recent-list li:last-child {
border-bottom: none;
}
.hp-recent-list .hp-rc-title {
font-weight: 500;
color: #fff4e5;
}
.hp-recent-list .hp-rc-user {
color: #b0bcc8;
font-size: 0.82rem;
}
.hp-recent-list .hp-rc-time {
color: #b0bcc8;
font-size: 0.75rem;
margin-left: auto;
white-space: nowrap;
}
.hp-recent-list .hp-rc-comment {
color: #b0bcc8;
font-size: 0.82rem;
opacity: 0.7;
width: 100%;
padding-left: 4px;
}
.hp-recent-empty {
color: #b0bcc8;
font-size: 0.92rem;
opacity: 0.6;
padding: 8px 0;
}
.hp-more-link {
margin-top: 10px;
font-size: 0.88rem;
}
.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 {
grid-column: 1 / -1;
padding: 0;
overflow: hidden;
background: transparent;
box-shadow: none;
border: none;
}
.hp-card-featured::before,
.hp-card-featured::after {
display: none !important;
content: none !important;
}
.hp-card-featured a {
display: block;
position: relative;
border-radius: 28px;
overflow: hidden;
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);
box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5);
}
.hp-card-featured img {
width: 100%;
height: auto;
display: block;
max-height: 200px;
object-fit: cover;
}
.hp-card-featured .hp-featured-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.15);
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
}
.hp-card-featured .hp-featured-overlay h3 {
font-size: 2.2rem;
font-weight: 500;
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;
}
.hp-card-featured .hp-featured-overlay h3 small {
font-size: 1rem;
font-weight: 300;
opacity: 0.9;
margin-left: 16px;
letter-spacing: 2px;
}
@media (max-width: 1024px) {
.hp-grid {
grid-template-columns: 1fr 1fr;
gap: 24px;
}
}
@media (max-width: 820px) {
.hp-grid {
gap: 20px;
}
.hp-welcome {
flex-direction: column;
align-items: stretch;
text-align: center;
padding: 20px;
}
.hp-welcome-text {
flex-direction: column;
gap: 4px;
}
.hp-welcome-actions {
justify-content: center;
}
.hp-card h3 {
font-size: 1.15rem;
}
.hp-card-featured .hp-featured-overlay h3 {
font-size: 1.6rem;
}
}
@media (max-width: 560px) {
.hp-grid {
grid-template-columns: 1fr;
gap: 16px;
}
.hp-container {
padding: 12px 12px 40px;
}
.hp-card {
padding: 22px 18px 18px;
border-radius: 22px;
}
.hp-card h3 {
font-size: 1.1rem;
}
.hp-card p {
font-size: 0.92rem;
}
.hp-welcome-text h2 {
font-size: 1.15rem;
}
.hp-header-logo {
width: 90%;
}
.hp-recent-list li {
font-size: 0.85rem;
}
.hp-recent-list .hp-rc-time {
margin-left: 0;
width: 100%;
}
.hp-card-featured .hp-featured-overlay h3 {
font-size: 1.3rem;
flex-direction: column;
}
.hp-card-featured .hp-featured-overlay h3 small {
margin-left: 0;
font-size: 0.9rem;
}
}