generated from dellevin/template
841 lines
15 KiB
CSS
841 lines
15 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* 搜索功能样式 */
|
|
.search-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
backdrop-filter: blur(10px);
|
|
-webkit-backdrop-filter: blur(10px);
|
|
z-index: 9999;
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.search-overlay.active {
|
|
display: flex;
|
|
opacity: 1;
|
|
}
|
|
|
|
/* 常驻搜索模式:背景保持模糊,阻止页面交互 */
|
|
body.persistent-search-mode .search-overlay {
|
|
background: rgba(0, 0, 0, 0.3);
|
|
backdrop-filter: blur(10px);
|
|
-webkit-backdrop-filter: blur(10px);
|
|
pointer-events: auto; /* 确保遮罩层接收点击事件以阻止页面交互 */
|
|
}
|
|
|
|
body.persistent-search-mode .search-modal {
|
|
pointer-events: auto;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.search-modal {
|
|
position: relative;
|
|
width: 90%;
|
|
max-width: 600px;
|
|
transform: translateY(-20px);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.search-lock-btn {
|
|
position: absolute;
|
|
top: -45px;
|
|
right: 0;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border: 1px solid rgba(255, 255, 255, 0.4);
|
|
color: #fff;
|
|
padding: 8px;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.search-lock-btn:hover {
|
|
background: rgba(255, 255, 255, 0.4);
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.search-lock-btn.locked {
|
|
background: #1a73e8;
|
|
border-color: #1a73e8;
|
|
color: #fff;
|
|
}
|
|
|
|
.search-overlay.active .search-modal {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.search-box {
|
|
display: flex;
|
|
align-items: center;
|
|
background: #fff;
|
|
border-radius: 8px;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
|
|
overflow: visible;
|
|
padding: 8px;
|
|
}
|
|
|
|
.search-engine-selector {
|
|
position: relative;
|
|
cursor: pointer;
|
|
padding: 10px 15px;
|
|
display: flex;
|
|
align-items: center;
|
|
transition: background 0.3s ease;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.search-engine-selector:hover {
|
|
background: #f5f5f5;
|
|
}
|
|
|
|
.search-engine-selector img {
|
|
width: 24px;
|
|
height: 24px;
|
|
object-fit: contain;
|
|
}
|
|
|
|
#global-search-input {
|
|
flex: 1;
|
|
padding: 12px 15px;
|
|
border: none;
|
|
outline: none;
|
|
font-size: 16px;
|
|
background: transparent;
|
|
}
|
|
|
|
#global-search-btn {
|
|
padding: 12px 24px;
|
|
border: none;
|
|
background: #333;
|
|
color: #fff;
|
|
cursor: pointer;
|
|
border-radius: 6px;
|
|
transition: background 0.3s ease;
|
|
font-size: 15px;
|
|
}
|
|
|
|
#global-search-btn:hover {
|
|
background: #000;
|
|
}
|
|
|
|
.search-engine-dropdown {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
margin-top: 8px;
|
|
background: #fff;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
min-width: 180px;
|
|
display: none;
|
|
overflow: hidden;
|
|
z-index: 10000;
|
|
}
|
|
|
|
.search-engine-dropdown.show {
|
|
display: block;
|
|
}
|
|
|
|
.engine-option {
|
|
padding: 12px 15px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
transition: background 0.2s ease;
|
|
}
|
|
|
|
.engine-option:hover {
|
|
background: #f5f5f5;
|
|
}
|
|
|
|
.engine-option.active {
|
|
background: #e8f0fe;
|
|
color: #1a73e8;
|
|
}
|
|
|
|
.engine-option img {
|
|
width: 20px;
|
|
height: 20px;
|
|
object-fit: contain;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Georgia', 'Times New Roman', 'STSong', serif;
|
|
line-height: 1.8;
|
|
color: #333;
|
|
padding: 20px;
|
|
background-position: 0 0, 10px 10px;
|
|
/* 信件背景(图片) */
|
|
background: #eeeeee url(../img/bj.png);
|
|
background-attachment: fixed;
|
|
background-repeat: repeat;
|
|
/* 信件背景(马赛克方格) */
|
|
/*background-color: #f0f0f0;*/
|
|
/*background-image:*/
|
|
/* linear-gradient(45deg, #e0e0e0 25%, transparent 25%, transparent 75%, #e0e0e0 75%),*/
|
|
/* linear-gradient(45deg, #e0e0e0 25%, transparent 25%, transparent 75%, #e0e0e0 75%);*/
|
|
/*background-size: 20px 20px;*/
|
|
}
|
|
|
|
.letter-container {
|
|
/* max-width: 65%; */
|
|
max-width: 850px;
|
|
margin: 0 auto;
|
|
background: white;
|
|
padding: 40px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
border-radius: 2px;
|
|
margin-bottom: 20px;
|
|
position: relative;
|
|
}
|
|
|
|
/* 语言切换按钮样式 */
|
|
.lang-switch-container {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 10px;
|
|
z-index: 100;
|
|
}
|
|
|
|
.lang-switch-container img {
|
|
width: 24px;
|
|
height: 24px;
|
|
cursor: pointer;
|
|
opacity: 0.7;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.lang-switch-container img:hover {
|
|
opacity: 1.0;
|
|
}
|
|
|
|
/* 头部导航 */
|
|
.nav-tabs {
|
|
display: flex;
|
|
border-bottom: 1px solid #eee;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.nav-tab {
|
|
padding: 15px 20px;
|
|
cursor: pointer;
|
|
border-bottom: 3px solid transparent;
|
|
transition: all 0.3s ease;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.nav-tab:hover {
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
.nav-tab.active {
|
|
border-bottom-color: #333;
|
|
color: #333;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* 内容区域 */
|
|
.tab-content {
|
|
display: none;
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
|
|
transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.tab-content.active {
|
|
display: block;
|
|
animation: tabFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
|
|
}
|
|
|
|
@keyframes tabFadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* 信纸纹理效果 */
|
|
.letter-container {
|
|
background-image:
|
|
linear-gradient(transparent 29px, #f0f0f0 30px);
|
|
background-size: 100% 30px;
|
|
}
|
|
|
|
/* 通用内容样式 */
|
|
.content-section {
|
|
font-size: 16px;
|
|
line-height: 1.8;
|
|
}
|
|
|
|
.content-section h2 {
|
|
margin-bottom: 20px;
|
|
color: #222;
|
|
font-size: 24px;
|
|
}
|
|
|
|
.content-section h3 {
|
|
margin: 25px 0 15px 0;
|
|
color: #444;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.content-section p {
|
|
margin-bottom: 15px;
|
|
text-align: justify;
|
|
}
|
|
|
|
/* 列表样式 */
|
|
.content-section ul {
|
|
list-style: none;
|
|
padding-left: 0;
|
|
margin: 15px 0;
|
|
}
|
|
|
|
.content-section li {
|
|
margin-bottom: 10px;
|
|
position: relative;
|
|
padding-left: 20px;
|
|
}
|
|
|
|
.content-section li::before {
|
|
content: "▹";
|
|
color: #999;
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
}
|
|
|
|
/* 联系方式 */
|
|
.contact-info {
|
|
margin: 15px 0;
|
|
}
|
|
|
|
.contact-item {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.contact-label {
|
|
font-weight: bold;
|
|
color: #555;
|
|
}
|
|
|
|
/* 网站链接 */
|
|
.website-links a {
|
|
display: inline-block;
|
|
margin-right: 20px;
|
|
color: #666;
|
|
text-decoration: none;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.website-links a:hover {
|
|
color: #333;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* 视图切换文字样式 */
|
|
.website-view-toggle {
|
|
font-size: 13px;
|
|
color: #999;
|
|
cursor: pointer;
|
|
transition: color 0.3s ease;
|
|
user-select: none;
|
|
}
|
|
|
|
.website-view-toggle:hover {
|
|
color: #333;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* 卡片视图样式 */
|
|
.website-card-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
|
gap: 20px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.website-card {
|
|
background: #fff;
|
|
border: 1px solid #eee;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
transition: border-color 0.3s ease;
|
|
}
|
|
|
|
.website-card:hover {
|
|
border-color: #333;
|
|
}
|
|
|
|
.website-card-icon {
|
|
width: 100%;
|
|
height: 120px;
|
|
overflow: hidden;
|
|
background: #f9f9f9;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.website-card-placeholder {
|
|
background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
|
|
color: #999;
|
|
font-size: 30px;
|
|
font-weight: bold;
|
|
font-family: serif;
|
|
}
|
|
|
|
.website-card-icon img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
display: block;
|
|
}
|
|
|
|
.website-card-info {
|
|
padding: 12px;
|
|
}
|
|
|
|
.website-card-title {
|
|
font-weight: bold;
|
|
color: #333;
|
|
font-size: 14px;
|
|
margin-bottom: 6px;
|
|
line-height: 1.4;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.website-card-desc {
|
|
font-size: 12px;
|
|
color: #888;
|
|
line-height: 1.5;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* MookNote 弹窗样式 */
|
|
.mooknote-modal-content {
|
|
max-width: 800px;
|
|
width: 90%;
|
|
}
|
|
|
|
.mooknote-banner-carousel {
|
|
position: relative;
|
|
width: 100%;
|
|
overflow: hidden;
|
|
border-radius: 8px 8px 0 0;
|
|
}
|
|
|
|
.carousel-container {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 400px;
|
|
background: #f5f5f5;
|
|
}
|
|
|
|
.carousel-image {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
opacity: 0;
|
|
transition: opacity 0.5s ease;
|
|
cursor: pointer;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.carousel-image.active {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.carousel-image:hover {
|
|
filter: brightness(1.1);
|
|
}
|
|
|
|
.carousel-btn {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 60px;
|
|
background: rgba(255, 255, 255, 0.3);
|
|
color: #fff;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 28px;
|
|
transition: background 0.3s ease;
|
|
z-index: 10;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.carousel-btn:hover {
|
|
background: rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.carousel-prev {
|
|
left: 0;
|
|
}
|
|
|
|
.carousel-next {
|
|
right: 0;
|
|
}
|
|
|
|
.carousel-indicators {
|
|
position: absolute;
|
|
bottom: 15px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
display: flex;
|
|
gap: 8px;
|
|
z-index: 10;
|
|
}
|
|
|
|
.carousel-indicator {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, 0.5);
|
|
cursor: pointer;
|
|
transition: background 0.3s ease;
|
|
}
|
|
|
|
.carousel-indicator.active {
|
|
background: #fff;
|
|
}
|
|
|
|
/* MookNote 全屏预览样式 */
|
|
.photo-lightbox {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background: rgba(0, 0, 0, 0.95);
|
|
z-index: 10000;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.photo-lightbox.active {
|
|
display: flex;
|
|
}
|
|
|
|
.lightbox-img {
|
|
max-width: 95%;
|
|
max-height: 95%;
|
|
object-fit: contain;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.lightbox-close {
|
|
position: absolute;
|
|
top: 20px;
|
|
right: 30px;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
color: #fff;
|
|
border: none;
|
|
font-size: 36px;
|
|
width: 50px;
|
|
height: 50px;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
transition: background 0.3s ease;
|
|
z-index: 10001;
|
|
}
|
|
|
|
.lightbox-close:hover {
|
|
background: rgba(255, 255, 255, 0.4);
|
|
}
|
|
|
|
.lightbox-nav {
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
background: rgba(255, 255, 255, 0.2);
|
|
color: #fff;
|
|
border: none;
|
|
font-size: 32px;
|
|
width: 60px;
|
|
height: 80px;
|
|
cursor: pointer;
|
|
transition: background 0.3s ease;
|
|
z-index: 10001;
|
|
}
|
|
|
|
.lightbox-nav:hover {
|
|
background: rgba(255, 255, 255, 0.4);
|
|
}
|
|
|
|
.lightbox-prev {
|
|
left: 30px;
|
|
}
|
|
|
|
.lightbox-next {
|
|
right: 30px;
|
|
}
|
|
|
|
.lightbox-counter {
|
|
position: absolute;
|
|
bottom: 30px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
color: #fff;
|
|
font-size: 16px;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
padding: 8px 20px;
|
|
border-radius: 20px;
|
|
}
|
|
|
|
.mooknote-body {
|
|
padding: 40px 50px;
|
|
}
|
|
|
|
.mooknote-content {
|
|
padding: 40px 35px;
|
|
}
|
|
|
|
.mooknote-content p {
|
|
margin-bottom: 15px;
|
|
line-height: 1.8;
|
|
color: #444;
|
|
text-align: justify;
|
|
}
|
|
|
|
.mooknote-intro {
|
|
font-size: 16px;
|
|
color: #333;
|
|
font-weight: 500;
|
|
margin-bottom: 20px;
|
|
padding-bottom: 15px;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.mooknote-thanks {
|
|
font-style: italic;
|
|
color: #666;
|
|
background: #f9f9f9;
|
|
padding: 15px;
|
|
border-left: 4px solid #ddd;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.mooknote-download {
|
|
text-align: center;
|
|
margin-top: 30px;
|
|
margin-bottom: 60px;
|
|
padding-top: 20px;
|
|
border-top: 1px dashed #eee;
|
|
}
|
|
|
|
.download-btn {
|
|
display: inline-block;
|
|
padding: 12px 30px;
|
|
background: #333;
|
|
color: #fff;
|
|
text-decoration: none;
|
|
border-radius: 25px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.download-btn:hover {
|
|
background: #000;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
/* 工具和游戏网格 */
|
|
.tools-grid,
|
|
.games-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 15px;
|
|
margin: 15px 0;
|
|
}
|
|
|
|
.tool-item,
|
|
.game-item {
|
|
padding: 15px;
|
|
border: 1px solid #eee;
|
|
border-radius: 4px;
|
|
background-color: #fafafa;
|
|
cursor: pointer;
|
|
transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
|
|
box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.tool-item:hover,
|
|
.game-item:hover {
|
|
border-color: #000;
|
|
}
|
|
|
|
.tool-name,
|
|
.game-name {
|
|
font-weight: bold;
|
|
color: #333;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.tool-desc,
|
|
.game-desc {
|
|
font-size: 14px;
|
|
color: #666;
|
|
}
|
|
|
|
/* 关于我页面特殊样式 */
|
|
.about-me-content {
|
|
text-align: justify;
|
|
}
|
|
|
|
.about-me-content p:first-child {
|
|
font-size: 18px;
|
|
font-style: italic;
|
|
color: #666;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.letter-container {
|
|
padding: 20px;
|
|
margin: 10px;
|
|
}
|
|
|
|
.nav-tabs {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.nav-tab {
|
|
padding: 10px 15px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.tools-grid,
|
|
.games-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
/* 移动端调整语言按钮位置 */
|
|
.lang-switch-container {
|
|
top: 5px;
|
|
right: 5px;
|
|
}
|
|
}
|
|
|
|
/* 信纸底部页脚描述 */
|
|
.letter-footer {
|
|
text-align: center;
|
|
margin-top: 60px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid #eee;
|
|
color: #999;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* 底部版权信息 - 在信纸外部 */
|
|
#footer-wrap {
|
|
max-width: 850px;
|
|
/* max-width: 65%; */
|
|
margin: 0 auto 20px auto;
|
|
text-align: center;
|
|
padding: 20px;
|
|
color: #999;
|
|
font-size: 12px;
|
|
background: white;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
border-radius: 2px;
|
|
background-image:
|
|
linear-gradient(transparent 29px, #f0f0f0 30px);
|
|
background-size: 100% 30px;
|
|
border-top: 1px solid #eee;
|
|
}
|
|
|
|
#footer-wrap a {
|
|
color: #666;
|
|
text-decoration: none;
|
|
}
|
|
|
|
#footer-wrap a:hover {
|
|
color: #333;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
#footer-wrap img {
|
|
width: 50px;
|
|
vertical-align: middle;
|
|
margin-left: 5px;
|
|
}
|
|
|
|
/* 今日诗词样式 */
|
|
#jinrishici-sentence {
|
|
position: absolute;
|
|
top: 111px;
|
|
right: 40px;
|
|
font-size: 14px;
|
|
font-style: italic;
|
|
color: #666;
|
|
text-align: right;
|
|
max-width: 300px;
|
|
}
|
|
|
|
/* 网站统计样式 */
|
|
.webinfo {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 30px;
|
|
font-size: 12px;
|
|
color: #999;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.webinfo-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
#jinrishici-sentence {
|
|
position: static;
|
|
text-align: center;
|
|
max-width: 100%;
|
|
margin-bottom: 20px;
|
|
padding: 10px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.webinfo {
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
gap: 15px;
|
|
}
|
|
} |