Template:Index2026/styles.css:修订间差异
模板页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
/* ============================================================ | /* ============================================================ | ||
一支烟工作室 · | 一支烟工作室 · 主页样式(明亮色彩版) | ||
============================================================ */ | ============================================================ */ | ||
/* ----- 背景层 ( | /* ----- 背景层 (遮罩更薄,让背景图更清晰) ----- */ | ||
.hp-bg { | .hp-bg { | ||
position: fixed; | position: fixed; | ||
| 第22行: | 第23行: | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
background: rgba(0, 0, 0, 0. | background: rgba(0, 0, 0, 0.25); /* 大幅降低暗度 */ | ||
} | } | ||
.hp-bg::after { | .hp-bg::after { | ||
| 第31行: | 第32行: | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
background: rgba( | background: rgba(10, 12, 18, 0.15); /* 轻微深色,保留层次 */ | ||
} | } | ||
| 第46行: | 第47行: | ||
padding: 20px 16px 60px; | padding: 20px 16px 60px; | ||
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; | font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; | ||
color: # | color: #f5f7fa; | ||
min-height: 100vh; | min-height: 100vh; | ||
} | } | ||
| 第63行: | 第64行: | ||
margin: 0 auto 6px; | margin: 0 auto 6px; | ||
border-radius: 18px; | border-radius: 18px; | ||
box-shadow: 0 8px 28px rgba(0, 0, 0, 0. | box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3); | ||
transition: transform 0.2s ease; | transition: transform 0.2s ease; | ||
} | } | ||
| 第72行: | 第73行: | ||
font-size: 0.95rem; | font-size: 0.95rem; | ||
letter-spacing: 6px; | letter-spacing: 6px; | ||
color: # | color: #f0d5b0; | ||
opacity: | opacity: 1; | ||
margin-top: 2px; | margin-top: 2px; | ||
font-weight: | font-weight: 400; | ||
text-shadow: 0 2px | text-shadow: 0 2px 10px rgba(0,0,0,0.3); | ||
} | } | ||
/* ----- 欢迎弹窗 ----- */ | /* ----- 欢迎弹窗 (更透亮) ----- */ | ||
.hp-welcome { | .hp-welcome { | ||
background: rgba( | background: rgba(45, 48, 56, 0.75); | ||
border-radius: 28px; | border-radius: 28px; | ||
padding: 24px 30px 22px; | padding: 24px 30px 22px; | ||
width: 100%; | width: 100%; | ||
max-width: 820px; | max-width: 820px; | ||
box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0. | 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( | border: 1px solid rgba(240, 210, 170, 0.20); | ||
transition: all 0.25s; | transition: all 0.25s; | ||
display: flex; | display: flex; | ||
| 第107行: | 第108行: | ||
font-size: 1.4rem; | font-size: 1.4rem; | ||
font-weight: 500; | font-weight: 500; | ||
color: # | color: #fff4e5; | ||
margin: 0; | margin: 0; | ||
letter-spacing: 0.5px; | letter-spacing: 0.5px; | ||
| 第118行: | 第119行: | ||
margin: 0; | margin: 0; | ||
font-size: 0.95rem; | font-size: 0.95rem; | ||
color: # | color: #e0e6ee; | ||
opacity: 0. | opacity: 0.9; | ||
} | } | ||
.hp-welcome-actions { | .hp-welcome-actions { | ||
| 第129行: | 第130行: | ||
} | } | ||
.hp-welcome-actions .hp-btn { | .hp-welcome-actions .hp-btn { | ||
background: # | background: #f0d5b0; | ||
border: none; | border: none; | ||
padding: 8px 26px; | padding: 8px 26px; | ||
| 第137行: | 第138行: | ||
color: #1c1f26; | color: #1c1f26; | ||
cursor: pointer; | cursor: pointer; | ||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0. | box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); | ||
transition: all 0.2s; | transition: all 0.2s; | ||
border: 1px solid # | border: 1px solid #f0d5b0; | ||
} | } | ||
.hp-welcome-actions .hp-btn:hover { | .hp-welcome-actions .hp-btn:hover { | ||
background: # | background: #fae3c5; | ||
transform: scale(1.02); | transform: scale(1.02); | ||
} | } | ||
| 第150行: | 第151行: | ||
gap: 6px; | gap: 6px; | ||
font-size: 0.85rem; | font-size: 0.85rem; | ||
color: # | color: #c0cbd8; | ||
cursor: pointer; | cursor: pointer; | ||
} | } | ||
| 第159行: | 第160行: | ||
} | } | ||
/* ----- 网格 ( | /* ----- 网格 (3列) ----- */ | ||
.hp-grid { | .hp-grid { | ||
display: grid; | display: grid; | ||
| 第169行: | 第170行: | ||
} | } | ||
/* ----- 通用卡片 ( | /* ----- 通用卡片 (更亮、色彩更丰富) ----- */ | ||
.hp-card { | .hp-card { | ||
background: rgba( | background: rgba(48, 52, 62, 0.70); | ||
border-radius: 28px; | border-radius: 28px; | ||
padding: 26px 24px 24px; | padding: 26px 24px 24px; | ||
box-shadow: 0 | 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( | border: 1px solid rgba(240, 210, 170, 0.10); | ||
transition: all 0.4s cubic-bezier(0.15, 0.75, 0.30, 1.1); | transition: all 0.4s cubic-bezier(0.15, 0.75, 0.30, 1.1); | ||
color: #f0f3f7; | color: #f0f3f7; | ||
| 第186行: | 第187行: | ||
opacity: 1; | opacity: 1; | ||
transform: translateY(0); | transform: translateY(0); | ||
background: rgba( | background: rgba(55, 60, 72, 0.80); | ||
box-shadow: 0 16px 40px - | box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(240, 210, 170, 0.25); | ||
} | } | ||
.hp-card:hover { | .hp-card:hover { | ||
background: rgba( | background: rgba(65, 70, 85, 0.85); | ||
box-shadow: 0 20px 48px - | box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(240, 210, 170, 0.35); | ||
transform: translateY(- | transform: translateY(-3px); | ||
} | } | ||
.hp-card h3 { | .hp-card h3 { | ||
| 第198行: | 第199行: | ||
font-size: 1.3rem; | font-size: 1.3rem; | ||
letter-spacing: 1px; | letter-spacing: 1px; | ||
color: # | color: #fff4e5; | ||
margin: 0 0 12px 0; | margin: 0 0 12px 0; | ||
padding-bottom: 10px; | padding-bottom: 10px; | ||
border-bottom: 2px solid rgba( | border-bottom: 2px solid rgba(240, 210, 170, 0.30); | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
| 第208行: | 第209行: | ||
.hp-card h3 .hp-icon { | .hp-card h3 .hp-icon { | ||
font-size: 1.5rem; | font-size: 1.5rem; | ||
filter: drop-shadow(0 0 | filter: drop-shadow(0 0 8px rgba(240, 210, 170, 0.3)); | ||
} | } | ||
.hp-card p, | .hp-card p, | ||
| 第214行: | 第215行: | ||
font-size: 0.98rem; | font-size: 0.98rem; | ||
line-height: 1.7; | line-height: 1.7; | ||
color: # | color: #e0e6ee; | ||
margin: 0 0 8px 0; | margin: 0 0 8px 0; | ||
} | } | ||
.hp-card .hp-desc { | .hp-card .hp-desc { | ||
opacity: 0. | opacity: 0.9; | ||
} | } | ||
.hp-badge-list { | .hp-badge-list { | ||
| 第227行: | 第228行: | ||
} | } | ||
.hp-badge-list span { | .hp-badge-list span { | ||
background: rgba( | background: rgba(240, 210, 170, 0.15); | ||
padding: 3px 14px; | padding: 3px 14px; | ||
border-radius: 40px; | border-radius: 40px; | ||
font-size: 0.82rem; | font-size: 0.82rem; | ||
border: 1px solid rgba( | border: 1px solid rgba(240, 210, 170, 0.20); | ||
color: # | color: #f0e3d0; | ||
} | } | ||
.hp-link-list { | .hp-link-list { | ||
| 第241行: | 第242行: | ||
} | } | ||
.hp-link-list a { | .hp-link-list a { | ||
color: # | color: #f0d5b0; | ||
text-decoration: none; | text-decoration: none; | ||
border-bottom: 1px dashed rgba( | border-bottom: 1px dashed rgba(200, 170, 140, 0.3); | ||
transition: 0.2s; | transition: 0.2s; | ||
padding: 2px 0; | padding: 2px 0; | ||
| 第250行: | 第251行: | ||
} | } | ||
.hp-link-list a:hover { | .hp-link-list a:hover { | ||
color: # | color: #fff0dd; | ||
border-bottom-color: # | border-bottom-color: #f0d5b0; | ||
padding-left: 4px; | padding-left: 4px; | ||
} | } | ||
.hp-link-list .hp-link-meta { | .hp-link-list .hp-link-meta { | ||
color: # | color: #b0bcc8; | ||
font-size: 0.85rem; | font-size: 0.85rem; | ||
margin-left: 8px; | margin-left: 8px; | ||
| 第267行: | 第268行: | ||
.hp-recent-list li { | .hp-recent-list li { | ||
padding: 6px 0 6px 0; | padding: 6px 0 6px 0; | ||
border-bottom: 1px solid rgba(200, 180, 150, 0. | border-bottom: 1px solid rgba(200, 180, 150, 0.08); | ||
font-size: 0.92rem; | font-size: 0.92rem; | ||
line-height: 1.5; | line-height: 1.5; | ||
color: # | color: #e0e6ee; | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
| 第281行: | 第282行: | ||
.hp-recent-list .hp-rc-title { | .hp-recent-list .hp-rc-title { | ||
font-weight: 500; | font-weight: 500; | ||
color: # | color: #fff4e5; | ||
} | } | ||
.hp-recent-list .hp-rc-user { | .hp-recent-list .hp-rc-user { | ||
color: # | color: #b0bcc8; | ||
font-size: 0.82rem; | font-size: 0.82rem; | ||
} | } | ||
.hp-recent-list .hp-rc-time { | .hp-recent-list .hp-rc-time { | ||
color: # | color: #b0bcc8; | ||
font-size: 0.75rem; | font-size: 0.75rem; | ||
margin-left: auto; | margin-left: auto; | ||
} | } | ||
.hp-recent-list .hp-rc-comment { | .hp-recent-list .hp-rc-comment { | ||
color: # | color: #b0bcc8; | ||
font-size: 0.82rem; | font-size: 0.82rem; | ||
opacity: 0.7; | opacity: 0.7; | ||
| 第300行: | 第301行: | ||
} | } | ||
.hp-recent-empty { | .hp-recent-empty { | ||
color: # | color: #b0bcc8; | ||
font-size: 0.92rem; | font-size: 0.92rem; | ||
opacity: 0.6; | opacity: 0.6; | ||
| 第310行: | 第311行: | ||
} | } | ||
.hp-more-link a { | .hp-more-link a { | ||
color: # | color: #f0d5b0; | ||
text-decoration: none; | text-decoration: none; | ||
border-bottom: 1px dotted rgba( | border-bottom: 1px dotted rgba(200, 170, 140, 0.4); | ||
transition: 0.2s; | transition: 0.2s; | ||
} | } | ||
.hp-more-link a:hover { | .hp-more-link a:hover { | ||
color: # | color: #fff0dd; | ||
border-bottom-color: # | border-bottom-color: #f0d5b0; | ||
} | } | ||
.hp-footer { | .hp-footer { | ||
margin: 30px 0 6px; | margin: 30px 0 6px; | ||
opacity: 0. | opacity: 0.5; | ||
font-size: 0.85rem; | font-size: 0.85rem; | ||
letter-spacing: 3px; | letter-spacing: 3px; | ||
color: # | color: #d0d8e0; | ||
text-align: center; | text-align: center; | ||
width: 100%; | width: 100%; | ||
} | } | ||
.hp-loading { | .hp-loading { | ||
color: # | color: #b0bcc8; | ||
font-size: 0.9rem; | font-size: 0.9rem; | ||
opacity: 0.6; | opacity: 0.6; | ||
| 第345行: | 第346行: | ||
} | } | ||
/* ----- | /* ----- 特殊:项目名录扁条 ----- */ | ||
.hp-card-featured { | .hp-card-featured { | ||
grid-column: 1 / -1; | grid-column: 1 / -1; | ||
| 第366行: | 第367行: | ||
border-radius: 28px; | border-radius: 28px; | ||
overflow: hidden; | overflow: hidden; | ||
box-shadow: 0 | box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.4); | ||
transition: all 0.3s; | transition: all 0.3s; | ||
} | } | ||
.hp-card-featured a:hover { | .hp-card-featured a:hover { | ||
transform: scale(1.01); | transform: scale(1.01); | ||
box-shadow: 0 | box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5); | ||
} | } | ||
.hp-card-featured img { | .hp-card-featured img { | ||
| 第383行: | 第384行: | ||
position: absolute; | position: absolute; | ||
inset: 0; | inset: 0; | ||
background: linear-gradient(135deg, rgba( | background: linear-gradient(135deg, rgba(30, 32, 40, 0.5) 0%, rgba(60, 55, 50, 0.3) 100%); | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
| 第392行: | 第393行: | ||
font-size: 2.2rem; | font-size: 2.2rem; | ||
font-weight: 500; | font-weight: 500; | ||
color: # | color: #fff4e5; | ||
text-shadow: 0 4px 20px rgba(0,0,0,0. | text-shadow: 0 4px 20px rgba(0,0,0,0.4); | ||
letter-spacing: 4px; | letter-spacing: 4px; | ||
margin: 0; | margin: 0; | ||
| 第402行: | 第403行: | ||
font-size: 1rem; | font-size: 1rem; | ||
font-weight: 300; | font-weight: 300; | ||
opacity: 0. | opacity: 0.9; | ||
margin-left: 18px; | margin-left: 18px; | ||
letter-spacing: 2px; | letter-spacing: 2px; | ||
2026年9月7日 (一) 00:02的版本
/* ============================================================
一支烟工作室 · 主页样式(明亮色彩版)
============================================================ */
/* ----- 背景层 (遮罩更薄,让背景图更清晰) ----- */
.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;
}
/* ----- Header ----- */
.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;
}
/* ----- 网格 (3列) ----- */
.hp-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
width: 100%;
max-width: 1200px;
margin: 6px 0 10px;
}
/* ----- 通用卡片 (更亮、色彩更丰富) ----- */
.hp-card {
background: rgba(48, 52, 62, 0.70);
border-radius: 28px;
padding: 26px 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);
transition: all 0.4s cubic-bezier(0.15, 0.75, 0.30, 1.1);
color: #f0f3f7;
display: flex;
flex-direction: column;
opacity: 0.3;
transform: translateY(12px);
}
.hp-card.hp-visible {
opacity: 1;
transform: translateY(0);
background: rgba(55, 60, 72, 0.80);
box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(240, 210, 170, 0.25);
}
.hp-card:hover {
background: rgba(65, 70, 85, 0.85);
box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(240, 210, 170, 0.35);
transform: translateY(-3px);
}
.hp-card h3 {
font-weight: 500;
font-size: 1.3rem;
letter-spacing: 1px;
color: #fff4e5;
margin: 0 0 12px 0;
padding-bottom: 10px;
border-bottom: 2px solid rgba(240, 210, 170, 0.30);
display: flex;
align-items: center;
gap: 10px;
}
.hp-card h3 .hp-icon {
font-size: 1.5rem;
filter: drop-shadow(0 0 8px rgba(240, 210, 170, 0.3));
}
.hp-card p,
.hp-card .hp-desc {
font-size: 0.98rem;
line-height: 1.7;
color: #e0e6ee;
margin: 0 0 8px 0;
}
.hp-card .hp-desc {
opacity: 0.9;
}
.hp-badge-list {
display: flex;
flex-wrap: wrap;
gap: 8px 12px;
margin-top: 6px;
}
.hp-badge-list span {
background: rgba(240, 210, 170, 0.15);
padding: 3px 14px;
border-radius: 40px;
font-size: 0.82rem;
border: 1px solid rgba(240, 210, 170, 0.20);
color: #f0e3d0;
}
.hp-link-list {
display: flex;
flex-direction: column;
gap: 8px 0;
margin: 4px 0 6px;
}
.hp-link-list a {
color: #f0d5b0;
text-decoration: none;
border-bottom: 1px dashed rgba(200, 170, 140, 0.3);
transition: 0.2s;
padding: 2px 0;
display: inline-block;
width: fit-content;
}
.hp-link-list a:hover {
color: #fff0dd;
border-bottom-color: #f0d5b0;
padding-left: 4px;
}
.hp-link-list .hp-link-meta {
color: #b0bcc8;
font-size: 0.85rem;
margin-left: 8px;
font-weight: 300;
}
.hp-recent-list {
list-style: none;
padding: 0;
margin: 4px 0 10px;
}
.hp-recent-list li {
padding: 6px 0 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;
}
.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: 8px;
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;
opacity: 0.3;
transform: translateY(12px);
transition: all 0.4s cubic-bezier(0.15, 0.75, 0.30, 1.1);
}
.hp-card-featured.hp-visible {
opacity: 1;
transform: translateY(0);
}
.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;
inset: 0;
background: linear-gradient(135deg, rgba(30, 32, 40, 0.5) 0%, rgba(60, 55, 50, 0.3) 100%);
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;
}
.hp-card-featured .hp-featured-overlay h3 small {
font-size: 1rem;
font-weight: 300;
opacity: 0.9;
margin-left: 18px;
letter-spacing: 2px;
}
/* ----- 响应式 ----- */
@media (max-width: 1024px) {
.hp-grid {
grid-template-columns: 1fr 1fr;
gap: 20px;
}
}
@media (max-width: 820px) {
.hp-grid {
grid-template-columns: 1fr 1fr;
gap: 18px;
}
.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 10px 40px;
}
.hp-card {
padding: 20px 16px 18px;
border-radius: 22px;
}
.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;
}
}