Common.css:修订间差异
来自卡厄思梦境WIKI
无编辑摘要 标签:已被回退 |
无编辑摘要 |
||
| (未显示同一用户的63个中间版本) | |||
| 第1行: | 第1行: | ||
/* 这里放置的CSS将应用于所有皮肤 */ | /* 这里放置的CSS将应用于所有皮肤 */ | ||
/* 字体设置 */ | |||
@font-face { | |||
font-family: '鸿蒙'; | |||
src: url('/font/HarmonyOS_Sans_SC_Regular.woff2') format('woff2'); | |||
} | |||
@font-face { | |||
font-family: 'number'; | |||
src: url('/font/Teko.ttf') format('opentype'); | |||
} | |||
body { | |||
font-family: '鸿蒙', sans-serif; | |||
} | |||
/* 手机端和PC端显示控制 */ | /* 手机端和PC端显示控制 */ | ||
| 第23行: | 第38行: | ||
} | } | ||
/* | /* 卡牌 */ | ||
. | .card-small-wrapper { | ||
transition: transform 0.2s ease; | |||
-webkit-tap-highlight-color: transparent; | |||
} | |||
.card-small-wrapper:hover { | |||
transform: scale(1.05); | |||
} | } | ||
. | .card-modal { | ||
animation: fadeIn 0.3s ease; | |||
overflow: hidden !important; | |||
user-select: none; | |||
-webkit-user-select: none; | |||
-moz-user-select: none; | |||
-ms-user-select: none; | |||
-webkit-tap-highlight-color: transparent; | |||
} | } | ||
@keyframes fadeIn { | |||
from { opacity: 0; } | |||
to { opacity: 1; } | |||
} | } | ||
. | .modal-close-button:hover { | ||
background: rgba(255, 255, 255, 0.3) !important; | |||
transform: scale(1.1); | |||
} | } | ||
. | .inspiration-button:hover { | ||
transform: translateY(-2px); | |||
box-shadow: 0 6px 8px rgba(0,0,0,0.4) !important; | |||
background: linear-gradient(135deg, #7fe5ff 0%, #5fb8e0 100%) !important; | |||
} | } | ||
.inspiration-button:active { transform: translateY(0); } | |||
. | .god-inspiration-button:hover { | ||
transform: translateY(-2px); | |||
box-shadow: 0 6px 8px rgba(0,0,0,0.4) !important; | |||
background: linear-gradient(135deg, #ffe08a 0%, #f0b000 100%) !important; | |||
} | } | ||
.god-inspiration-button:active { transform: translateY(0); } | |||
. | .back-to-card-button:hover, | ||
.back-to-subcards-button:hover, | |||
.back-to-inspiration-button:hover, | |||
.back-to-inspiration-subcards-button:hover { | |||
transform: translateY(-2px); | |||
box-shadow: 0 6px 8px rgba(0,0,0,0.4) !important; | |||
background: linear-gradient(135deg, #ff7b7b 0%, #dd6565 100%) !important; | |||
} | |||
.back-to-card-button:active, | |||
.back-to-subcards-button:active, | |||
.back-to-inspiration-button:active, | |||
.back-to-inspiration-subcards-button:active { | |||
transform: translateY(0); | |||
} | } | ||
. | .inspiration-variant-card, | ||
.subcards-view .inspiration-variant-card { | |||
opacity: 0.95; | |||
transition: opacity 0.3s, transform 0.3s; | |||
cursor: default !important; | |||
} | |||
.inspiration-variant-card:hover, | |||
.subcards-view .inspiration-variant-card:hover { | |||
opacity: 1; | |||
transform: scale(1.05); | |||
} | } | ||
@media (max-width: 768px) { | |||
display: | .cards-display { flex-direction: column !important; } | ||
.inspiration-cards-wrapper { gap: 10px !important; } | |||
.subcards-wrapper { gap: 10px !important; } | |||
.nested-subcards-wrapper { gap: 10px !important; } | |||
} | } | ||
. | .subcards-button { | ||
display: inline-block; | |||
padding: 10px 10px; | |||
background: linear-gradient(135deg, #6fd8fe 0%, #4da6cc 100%); | |||
color: white; | color: white; | ||
font-size: 15px; | |||
font-weight: bold; | |||
border-radius: 8px; | |||
cursor: pointer; | |||
box-shadow: 0 4px 6px rgba(0,0,0,0.3); | |||
transition: all 0.3s; | |||
user-select: none; | |||
} | |||
.subcards-button:hover { | |||
transform: translateY(-2px); | |||
box-shadow: 0 6px 8px rgba(0,0,0,0.4); | |||
background: linear-gradient(135deg, #7fe5ff 0%, #5fb8e0 100%); | |||
} | } | ||
.subcards-button:active { transform: translateY(0); } | |||
. | .view-nested-subcards-button, | ||
padding: 0; | .view-inspiration-nested-subcards-button { | ||
display: inline-block; | |||
padding: 10px 20px; | |||
background: linear-gradient(135deg, #ffa500 0%, #cc8400 100%); | |||
color: white; | |||
font-size: 15px; | |||
font-weight: bold; | |||
border-radius: 8px; | |||
cursor: pointer; | |||
box-shadow: 0 4px 6px rgba(0,0,0,0.3); | |||
transition: all 0.3s; | |||
user-select: none; | |||
} | |||
.view-nested-subcards-button:hover, | |||
.view-inspiration-nested-subcards-button:hover { | |||
transform: translateY(-2px); | |||
box-shadow: 0 6px 8px rgba(0,0,0,0.4); | |||
background: linear-gradient(135deg, #ffb520 0%, #dd9400 100%); | |||
} | } | ||
.view-nested-subcards-button:active, | |||
.view-inspiration-nested-subcards-button:active { transform: translateY(0); } | |||
. | .nested-subcards-view, | ||
.inspiration-subcards-view, | |||
.inspiration-nested-subcards-view { | |||
opacity: 0.95; | |||
transition: opacity 0.3s; | |||
} | } | ||
. | .inspiration-cards-wrapper { align-items: flex-start; } | ||
. | .inspiration-variant { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 240px; } | ||
.inspiration-subcards-button { | |||
display: inline-block; | |||
padding: 10px 20px; | |||
background: linear-gradient(135deg, #ffa500 0%, #cc8400 100%); | |||
color: white; | |||
font-size: 15px; | |||
font-weight: bold; | |||
border-radius: 8px; | |||
cursor: pointer; | |||
box-shadow: 0 4px 6px rgba(0,0,0,0.3); | |||
transition: all 0.3s; | |||
user-select: none; | |||
margin-top: 8px; | |||
} | |||
.inspiration-subcards-button:hover { | |||
transform: translateY(-2px); | |||
box-shadow: 0 6px 8px rgba(0,0,0,0.4); | |||
background: linear-gradient(135deg, #ffb520 0%, #dd9400 100%); | |||
} | } | ||
.inspiration-subcards-button:active { transform: translateY(0); } | |||
.god-variant-card { | |||
opacity: 0.95; | |||
transition: opacity 0.3s, transform 0.3s; | |||
} | cursor: default !important; | ||
} | |||
.god-variant-card:hover { | |||
opacity: 1; | |||
transform: scale(1.05); | |||
} | } | ||
/* | /* 卡牌悬停样式 */ | ||
.card-link { | |||
display: inline-block; | |||
position: relative; | |||
} | } | ||
.card-link:hover { | |||
. | color: #5a7fff; | ||
} | } | ||
. | /* 悬停时显示的卡牌容器 */ | ||
.card-hover-popup { | |||
display: none; | |||
position: absolute; | |||
left: 50%; | |||
bottom: 100%; | |||
transform: translateX(-50%); | |||
margin-bottom: 10px; | |||
z-index: 10000; | |||
pointer-events: none; | |||
animation: cardPopupFadeIn 0.2s ease; | |||
} | } | ||
. | .card-link:hover .card-hover-popup { | ||
display: block; | |||
} | } | ||
@keyframes cardPopupFadeIn { | |||
from { | |||
opacity: 0; | |||
transform: translateX(-50%) translateY(5px); | |||
} | |||
to { | |||
opacity: 1; | |||
transform: translateX(-50%) translateY(0); | |||
} | |||
} | } | ||
. | /* 确保悬停卡牌不可交互 */ | ||
.card-hover-popup * { | |||
pointer-events: none !important; | |||
cursor: default !important; | |||
} | } | ||
. | /* 隐藏悬停卡牌中的模态框 */ | ||
.card-hover-popup .card-modal { | |||
display: none !important; | |||
} | } | ||
. | .dictionary-tooltip-container { | ||
position: absolute; | |||
width: 250px; | |||
z-index: 10000; | |||
opacity: 0; | |||
transition: opacity 0.15s ease; | |||
pointer-events: none; | |||
} | |||
.dictionary-tooltip-container.active { | |||
opacity: 1; | |||
pointer-events: auto; | |||
} | |||
.dictionary-term { | |||
text-decoration: underline; | |||
cursor: help; | |||
} | } | ||
| 第197行: | 第278行: | ||
} | } | ||
/* | /* 切换标签 */ | ||
. | .main-line-wrap { | ||
width: 100%; | |||
margin: 0px; | |||
} | } | ||
.resp-tabs { | |||
. | width: 100%; | ||
} | } | ||
.resp-tabs-list { | |||
list-style: none; | |||
. | padding: 0; | ||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 10px; | |||
} | } | ||
.resp-tabs-list.clearfix::after { | |||
. | content: ""; | ||
display: table; | |||
clear: both; | |||
} | } | ||
. | .czn-list-style { | ||
display: inline-block; | |||
cursor: pointer; | |||
transition: all 0.3s ease; | |||
} | } | ||
. | .tab-panel { | ||
position: relative; | |||
display: inline-block; | |||
background: #b9b9b9; | |||
color: #000; | |||
padding: 5px 30px; | |||
font-size: 12px; | |||
text-align: center; | |||
clip-path: polygon(5% 0%, 95% 0%, 100% 50%, 95% 100%, 5% 100%, 0% 50%); | |||
min-width: auto; | |||
transition: all 0.3s ease; | |||
} | } | ||
.czn-list-style.active .tab-panel { | |||
. | background: #ff5514; | ||
color: white; | |||
} | } | ||
.tab-panel::before { | |||
content: "✦"; | |||
position: absolute; | |||
left: 5px; | |||
top: 50%; | |||
transform: translateY(-50%); | |||
font-size: 16px; | |||
color: inherit; | |||
opacity: 0; | |||
transition: opacity 0.3s ease; | |||
} | } | ||
.tab-panel::after { | |||
. | content: "✦"; | ||
position: absolute; | |||
right: 5px; | |||
top: 50%; | |||
transform: translateY(-50%); | |||
font-size: 16px; | |||
color: inherit; | |||
opacity: 0; | |||
transition: opacity 0.3s ease; | |||
} | } | ||
.czn-list-style.active .tab-panel::before, | |||
. | .czn-list-style.active .tab-panel::after { | ||
opacity: 1; | |||
} | } | ||
.resp-tabs-container { | |||
. | padding-left: 0px; | ||
} | } | ||
.resp-tab-content { | |||
display: none; | |||
animation: fadeIn 0.3s ease; | |||
} | } | ||
.resp-tab-content[style*="display:block"], | |||
.resp-tab-content[style*="display: block"] { | |||
display: block !important; | |||
} | } | ||
@keyframes fadeIn { | @keyframes fadeIn { | ||
from { | |||
opacity: 0; | |||
} | |||
to { | |||
opacity: 1; | |||
} | |||
} | } | ||
. | .carousel-container { | ||
width: 100%; | |||
height: 280px; | |||
position: relative; | |||
overflow: hidden; | |||
background: #f0f0f0; | |||
border-radius: 6px; | |||
box-shadow: 0 2px 10px rgba(0,0,0,0.1); | |||
} | } | ||
. | .carousel-wrapper { | ||
transform | display: flex; | ||
height: 100%; | |||
transition: transform 0.5s ease; | |||
will-change: transform; | |||
} | } | ||
.carousel-slide { | |||
min-width: 100%; | |||
height: 100%; | |||
position: relative; | |||
} | } | ||
/* | /* 图片统一裁剪为 280px 高度并覆盖容器 */ | ||
.carousel-slide img, | |||
.carousel-slide a.image img { | |||
width: 100% !important; | |||
height: 280px !important; | |||
.carousel- | |||
.carousel-slide img { | |||
width: 100%; | |||
height: | |||
object-fit: cover; | object-fit: cover; | ||
display: block; | |||
} | } | ||
/* | /* 标题遮罩层与导航 */ | ||
.carousel-titles-overlay { | .carousel-titles-overlay { | ||
position: absolute; | |||
left: 0; right: 0; bottom: 0; | |||
background: linear-gradient(to top, rgba(0,0,0,0.28), rgba(0,0,0,0.12)); | |||
padding: 10px 0 0px; | |||
z-index: 10; | |||
} | } | ||
| 第388行: | 第420行: | ||
align-items: center; | align-items: center; | ||
position: relative; | position: relative; | ||
padding: 0 50px; | |||
} | } | ||
.carousel-titles-container { | .carousel-titles-container { | ||
max-width: calc(100% - | max-width: calc(100% - 120px); | ||
display: flex; | |||
justify-content: center; | |||
align-items: flex-end; | |||
gap: 12px; | |||
margin: 0 auto; | |||
} | } | ||
.carousel-title-item { | .carousel-title-item { | ||
transition: all 0.3s ease; | transition: all 0.3s ease; | ||
min-width: 0; | min-width: 0; | ||
flex: 1; | |||
max-width: 200px; | |||
cursor: pointer; | |||
} | } | ||
| 第413行: | 第453行: | ||
} | } | ||
/* | .title-text { | ||
color: #fff; | |||
font-size: 13px; | |||
padding: 6px 8px; | |||
white-space: nowrap; | |||
overflow: hidden; | |||
text-overflow: ellipsis; | |||
text-align: center; | |||
opacity: 0.75; | |||
} | |||
.title-indicator { | |||
height: 2px; | |||
background: transparent; | |||
margin-top: 6px; | |||
transition: all 0.3s ease; | |||
} | |||
/* 切换按钮 */ | |||
.carousel-btn { | .carousel-btn { | ||
transition: all 0.3s; | transition: all 0.3s; | ||
user-select: none; | user-select: none; | ||
cursor: pointer; | |||
z-index: 20; | |||
opacity: 0.85; | |||
} | } | ||
/* 轮播图 */ | |||
.carousel-btn:hover { | .carousel-btn:hover { | ||
opacity: 1 !important; | opacity: 1 !important; | ||
transform: translateY(-50%) scale(1. | transform: translateY(-50%) scale(1.08); | ||
} | } | ||
| 第430行: | 第492行: | ||
} | } | ||
.carousel-btn a.image { | .carousel-btn a.image { | ||
display: block; | |||
cursor: default; | |||
user-select: none; | |||
} | |||
/* 响应式设计 */ | |||
@media (max-width: 1024px) { | |||
.carousel-titles-container { max-width: calc(100% - 100px); } | |||
} | } | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.carousel-titles-container { | .carousel-titles-container { | ||
gap: 8px !important; | gap: 8px !important; | ||
} | } | ||
.carousel-title-item { | .carousel-title-item { | ||
max-width: 150px !important; | max-width: 150px !important; | ||
} | } | ||
.title-text { | .title-text { | ||
font-size: 12px !important; | font-size: 12px !important; | ||
padding: 5px 6px !important; | padding: 5px 6px !important; | ||
} | } | ||
.carousel-btn { | .carousel-btn { | ||
width: 25px !important; | width: 25px !important; | ||
height: 25px !important; | height: 25px !important; | ||
} | } | ||
.carousel-titles-wrapper { | .carousel-titles-wrapper { | ||
padding: 0 40px !important; | padding: 0 40px !important; | ||
} | } | ||
.carousel-btn.carousel-prev { | .carousel-btn.carousel-prev { | ||
left: | left: 8px !important; | ||
} | } | ||
.carousel-btn.carousel-next { | .carousel-btn.carousel-next { | ||
right: | right: 8px !important; | ||
} | } | ||
} | } | ||
| 第470行: | 第531行: | ||
@media (max-width: 480px) { | @media (max-width: 480px) { | ||
.carousel-title-item { | .carousel-title-item { | ||
max-width: | max-width: 110px !important; | ||
} | } | ||
.title-text { | .title-text { | ||
font-size: 11px !important; | font-size: 11px !important; | ||
padding: 4px 5px !important; | padding: 4px 5px !important; | ||
} | } | ||
.carousel-btn { | .carousel-btn { | ||
width: | width: 22px !important; | ||
height: | height: 22px !important; | ||
} | } | ||
} | } | ||
/* | /* 当仅有一张图时隐藏按钮 */ | ||
.carousel-container.single .carousel-btn { display: none; } | |||
/* 兼容可能的缩略图容器 */ | |||
.carousel-slide .thumb, | |||
.carousel-slide .thumbinner { | |||
width: 100% !important; | |||
height: 100% !important; | |||
overflow: hidden; | |||
border: 0; | |||
background: none; | |||
box-shadow: none; | |||
} | |||
/* 避免图片选择与拖拽 */ | |||
.carousel-container img { | |||
user-select: none; | |||
-webkit-user-drag: none; | |||
} | |||
/* 触摸滑动指示(可选) */ | |||
.carousel-container.grab { cursor: grab; } | |||
.carousel-container.grabbing { cursor: grabbing; } | |||
/* 按钮 */ | |||
.btn { | |||
display: inline-block; | |||
padding: 6px 12px; | |||
margin-bottom: 0; | |||
font-size: 14px; | |||
font-weight: 400; | |||
line-height: 1.42857143; | |||
text-align: center; | |||
white-space: nowrap; | |||
vertical-align: middle; | |||
-ms-touch-action: manipulation; | |||
touch-action: manipulation; | |||
cursor: pointer; | |||
-webkit-user-select: none; | |||
-moz-user-select: none; | |||
-ms-user-select: none; | |||
user-select: none; | |||
background-image: none; | |||
border: 1px solid transparent; | |||
border-radius: 4px; | |||
} | |||
.btn-default { | |||
color: #333; | |||
background-color: #fff; | |||
border-color: #ccc; | |||
} | |||
/* 筛选按钮被选中 */ | |||
li.btn.cardSelectOption.selected { | |||
color: #333!important; | |||
background-color: #e6e6e6!important; | |||
border-color: #adadad!important; | |||
outline: 0; | |||
-webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,.125); | |||
box-shadow: inset 0 3px 5px rgba(0,0,0,.125); | |||
} | |||
@media only screen and (max-width: 600px) { | |||
li.btn.cardSelectOption { | |||
padding: 4px 8px; | |||
font-size: 12px; | |||
} | |||
li.btn.cardSelectOption:hover { | |||
color: #333; | |||
background-color: #fff; | |||
border-color: #adadad; | |||
} | |||
} | |||
/* 隐藏默认目录 */ | |||
.mw-parser-output .toc { | .mw-parser-output .toc { | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* | /* 悬浮目录 */ | ||
#toc-sidebar { | #toc-sidebar { | ||
position: fixed; | position: fixed; | ||
| 第547行: | 第680行: | ||
} | } | ||
/* | /* 稀有度 */ | ||
. | .rarity-5 { | ||
width: 150px; | |||
height: 5px; | |||
background: linear-gradient(135deg, #e882e8, #6fffff); | |||
box-shadow: | |||
0 0 15px rgba(110, 69, 226, 0.5), | |||
0 0 30px rgba(136, 211, 206, 0.3); | |||
overflow: hidden; | |||
transition: transform 0.3s ease, box-shadow 0.3s ease; | |||
} | } | ||
. | .rarity-4 { | ||
width: 150px; | |||
height: 5px; | |||
background: linear-gradient(135deg, #e5a563, #f1cf97); | |||
box-shadow: | |||
0 0 15px rgba(110, 69, 226, 0.5), | |||
0 0 30px rgba(136, 211, 206, 0.3); | |||
overflow: hidden; | |||
transition: transform 0.3s ease, box-shadow 0.3s ease; | |||
} | } | ||
. | .rarity-3 { | ||
width: 150px; | |||
height: 5px; | |||
background: linear-gradient(135deg, #3b4785, #c3e7f9); | |||
box-shadow: | |||
0 0 15px rgba(110, 69, 226, 0.5), | |||
0 0 30px rgba(136, 211, 206, 0.3); | |||
overflow: hidden; | |||
transition: transform 0.3s ease, box-shadow 0.3s ease; | |||
} | } | ||
. | /* 全局 tooltip 容器 */ | ||
.dictionary-tooltip-container { | |||
position: absolute; | |||
width: 250px; | |||
z-index: 10000; | |||
pointer-events: none; | |||
opacity: 0; | |||
transition: opacity 0.2s ease; | |||
} | } | ||
. | .dictionary-tooltip-container.active { | ||
opacity: 1; | |||
} | } | ||
/* | /* 首页按钮 */ | ||
. | .home-btn { | ||
color: #303646; | |||
font-size: 14px; | |||
font-weight: bold; | |||
text-align: center; | |||
line-height: 18px; | |||
width: 100px; | |||
height: 36px; | |||
border: 1px solid #303646; | |||
box-shadow: 0 1px 3px 0 rgba(0,0,0,0.30); | |||
padding: 8px 5px; | |||
margin: 0 5px 10px; | |||
display: inline-block; | |||
float: left; | |||
position: relative; | |||
overflow: hidden; | |||
transition: all 0.5s; | |||
-moz-transition: all 0.5s; | |||
-webkit-transition: all 0.5s; | |||
cursor: pointer; | |||
} | } | ||
.home-btn:hover { | |||
border-color: inherit; | |||
box-shadow: 0 2px 8px 0 rgba(0,0,0,0.40); | |||
} | } | ||
. | .home-btn:before { | ||
content: ""; | |||
position: absolute; | |||
top: 0; | |||
left: -100%; | |||
width: 50%; | |||
height: 100%; | |||
background: linear-gradient(90deg, | |||
rgba(255,255,255,0) 0%, | |||
rgba(255,255,255,0.6) 50%, | |||
rgba(255,255,255,0) 100%); | |||
transform: skewX(-25deg); | |||
z-index: 1; | |||
} | } | ||
. | .home-btn:hover:before { | ||
animation: shine 0.8s ease; | |||
} | } | ||
@keyframes shine { | |||
0% { | |||
left: -100%; | |||
} | |||
100% { | |||
left: 200%; | |||
} | |||
} | } | ||
. | .home-btn:after { | ||
content: ""; | |||
position: absolute; | |||
background: rgba(0,0,0,0.05); | |||
left: 50%; | |||
width: 0; | |||
top: 0px; | |||
bottom: 0px; | |||
transition: all 0.15s; | |||
-moz-transition: all 0.15s; | |||
-webkit-transition: all 0.15s; | |||
z-index: 0; | |||
} | } | ||
. | .home-btn:hover::after { | ||
content: ""; | |||
width: 100%; | |||
left: 0px; | |||
} | } | ||
.home-btn-1 { | |||
. | color: #9B999D; | ||
border-color: #9B999D; | |||
} | } | ||
. | .home-btn-2 { | ||
color: #55A054; | |||
border-color: #55A054; | |||
} | } | ||
.home-btn-3 { | |||
. | color: #5483D3; | ||
border-color: #5483D3; | |||
} | } | ||
. | .home-btn-4 { | ||
color: #A25FD3; | |||
border-color: #A25FD3; | |||
} | } | ||
. | .home-btn-5 { | ||
color: #DF762C; | |||
border-color: #DF762C; | |||
} | } | ||
. | .home-btn-6 { | ||
color: #E74C48; | |||
border-color: #E74C48; | |||
} | } | ||
. | .home-btn-gk { | ||
line-height: 14px; | |||
width: 80px; | |||
height: 30px; | |||
color: #2D8281; | |||
border-color: #2D8281; | |||
} | } | ||
. | /* 装备系统样式 */ | ||
.equipment-popup { | |||
position: fixed !important; | |||
top: 50%; | |||
left: 50%; | |||
transform: translate(-50%, -50%); | |||
z-index: 10000; | |||
box-shadow: 0 0 20px rgba(0,0,0,0.8); | |||
} | } | ||
/* | /* 弹窗遮罩层 */ | ||
. | .equipment-overlay { | ||
position: | position: fixed; | ||
top: 0; | |||
left: 0; | |||
width: 100%; | |||
height: 100%; | |||
background-color: rgba(0,0,0,0.6); | |||
z-index: 9999; | |||
display: none; | |||
} | } | ||
. | /* 装备卡片悬停效果 */ | ||
.equipment-card:hover { | |||
transform: scale(1.05); | |||
transition: transform 0.2s; | |||
} | } | ||
. | /* 关闭按钮悬停效果 */ | ||
.equipment-popup-close:hover { | |||
color: #ff9500 !important; | |||
} | } | ||
. | /* 装备名称链接样式 */ | ||
padding: | .equipment-name-link { | ||
padding: 3px 5px; | |||
} | } | ||
. | .equipment-name-link a { | ||
text-decoration: none !important; | |||
} | } | ||
/* | /* 调整卡片容器样式 */ | ||
. | .equipment-wrapper .equipment-card { | ||
margin-bottom: 0; | |||
} | } | ||
. | /* 事件 */ | ||
.event-container { | |||
width: 375px; | |||
background-color: #343434; | |||
border-radius: 8px; | |||
overflow: hidden; | |||
user-select: none; | |||
} | } | ||
/* | /* 图片容器 */ | ||
. | .event-image-container { | ||
position: relative; | |||
width: 375px; | |||
height: 165px; | |||
overflow: hidden; | |||
} | |||
.event-image-container img { | |||
width: 375px; | |||
height: auto; | |||
display: block; | |||
} | } | ||
. | /* 标题条 */ | ||
.event-title-bar { | |||
position: absolute; | |||
bottom: 0; | |||
left: 0; | |||
right: 0; | |||
height: 35px; | |||
background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.6)); | |||
display: flex; | display: flex; | ||
align-items: center; | |||
justify-content: center; | |||
} | } | ||
.event-title { | |||
. | |||
color: white; | color: white; | ||
font-size: 16px; | |||
font-weight: bold; | |||
text-shadow: 0 2px 4px rgba(0,0,0,0.5); | |||
} | |||
/* 选项容器 */ | |||
.event-options-container { | |||
padding: 10px; | |||
background-color: #343434; | |||
} | } | ||
. | /* 选项包装器 */ | ||
.event-option-wrapper { | |||
margin-bottom: 5px; | |||
} | |||
/* 选项样式 */ | |||
.event-option { | |||
background-color: rgba(255,255,255,0.3); | |||
border-radius: 4px; | |||
padding: 8px 12px; | |||
color: white; | |||
cursor: pointer; | |||
transition: all 0.2s ease; | |||
position: relative; | |||
} | } | ||
. | .event-option:hover { | ||
background-color: rgba(255,255,255,0.4); | |||
transform: translateX(2px); | |||
} | } | ||
. | .event-option.expanded { | ||
background-color: | background-color: rgba(255,255,255,0.45); | ||
border-radius: 4px 4px 0 0; | |||
} | } | ||
. | /* 选项文本 */ | ||
.option-text { | |||
line-height: 1.4; | |||
} | } | ||
. | /* 结果容器 */ | ||
background-color: | .option-effect-container { | ||
background-color: rgba(255,255,255,0.2); | |||
border-radius: 0 0 4px 4px; | |||
overflow: hidden; | |||
margin-top: -1px; | |||
} | } | ||
. | .option-effect { | ||
padding: 10px 12px; | |||
color: white; | |||
font-size: 0.9em; | |||
line-height: 1.5; | |||
border-top: 1px solid rgba(255,255,255,0.3); | |||
} | } | ||
. | /* 动画优化 */ | ||
.event-option-wrapper { | |||
transition: margin-bottom 0.3s ease; | |||
} | } | ||
. | .event-option-wrapper.has-expanded-effect { | ||
margin-bottom: 5px; | |||
} | } | ||
. | /* 事件模块样式 - 保留原有样式并添加新样式 */ | ||
/* ... 原有的事件容器样式保持不变 ... */ | |||
/* 网格视图(卡片式) */ | |||
.event-grid { | |||
display: grid; | |||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); | |||
gap: 15px; | |||
padding: 10px; | |||
} | } | ||
. | .event-card { | ||
background- | background: #f8f9fa; | ||
border: 1px solid #ddd; | |||
border-radius: 8px; | |||
overflow: hidden; | |||
transition: transform 0.2s, box-shadow 0.2s; | |||
cursor: pointer; | |||
} | } | ||
. | .event-card:hover { | ||
transform: translateY(-2px); | |||
box-shadow: 0 4px 12px rgba(0,0,0,0.15); | |||
} | } | ||
. | .event-card-image { | ||
background | width: 100%; | ||
height: 150px; | |||
overflow: hidden; | |||
background: #333; | |||
} | } | ||
. | .event-card-image img { | ||
width: 100%; | |||
height: 100%; | |||
object-fit: cover; | |||
} | } | ||
. | .event-card-info { | ||
padding: 10px; | |||
} | } | ||
. | .event-card-title { | ||
font-weight: bold; | |||
margin-bottom: 8px; | |||
font-size: 14px; | |||
color: #333; | |||
} | } | ||
.event-card-tags { | |||
. | |||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: 5px; | |||
margin-bottom: 10px; | |||
} | |||
.event-card-button { | |||
margin-top: 10px; | |||
} | } | ||
.event-view-detail { | |||
. | width: 100%; | ||
border: | padding: 6px 12px; | ||
border-radius: | background: #5cb85c; | ||
color: white; | |||
border: none; | |||
border-radius: 4px; | |||
cursor: pointer; | |||
font-size: 13px; | |||
transition: background-color 0.2s; | |||
} | } | ||
. | .event-view-detail:hover { | ||
background: #4cae4c; | |||
} | } | ||
. | /* 模态框样式 */ | ||
.event-modal { | |||
position: fixed; | |||
top: 0; | |||
left: 0; | |||
width: 100%; | |||
height: 100%; | |||
background: rgba(0, 0, 0, 0.7); | |||
z-index: 1000; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
padding: 20px; | |||
} | } | ||
. | .event-modal-content { | ||
border- | max-width: 400px; | ||
max-height: 90vh; | |||
overflow-y: auto; | |||
background: white; | |||
border-radius: 8px; | |||
position: relative; | |||
} | } | ||
. | /* 完整布局视图 */ | ||
.event-full-layout { | |||
padding: 10px; | |||
} | } | ||
. | .event-info-bar { | ||
background- | padding: 10px 20px; | ||
background: #f0f0f0; | |||
border-radius: 4px; | |||
margin-bottom: 10px; | |||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
.event-full-grid { | |||
. | background: #f8f9fa; | ||
border-radius: 8px; | |||
border-radius: | |||
} | } | ||
.event-full-item { | |||
background: white; | |||
border-radius: 8px; | |||
padding: 10px; | |||
box-shadow: 0 2px 4px rgba(0,0,0,0.1); | |||
} | } | ||
.event-area-header { | |||
. | padding: 10px 0; | ||
border-bottom: 2px solid #333; | |||
} | } | ||
. | .event-area-header h3 { | ||
margin: 0; | |||
color: #333; | |||
font-size: 18px; | |||
} | } | ||
/* 通用标签样式 */ | |||
. | .event-tag { | ||
display: inline-block; | |||
padding: 2px 8px; | |||
border-radius: 4px; | border-radius: 4px; | ||
font-size: 0.85em; | |||
font-weight: 500; | |||
} | } | ||
. | .event-tag-area { | ||
background: #e3f2fd; | |||
color: #1565c0; | |||
} | } | ||
.event-tag-rarity { | |||
. | background: #f5f5f5; | ||
color: #333; | |||
color: # | |||
} | } | ||
.event-tag-一般 { | |||
. | background: #e8f5e9; | ||
color: #2e7d32; | |||
} | } | ||
.event-tag-稀有 { | |||
. | background: #e1f5fe; | ||
color: #0277bd; | |||
} | } | ||
.event-tag-传奇 { | |||
. | background: #fce4ec; | ||
color: #c2185b; | |||
} | } | ||
. | /* 响应式调整 */ | ||
@media (max-width: 768px) { | |||
.event-full-grid { | |||
grid-template-columns: 1fr !important; | |||
} | |||
.event-grid { | |||
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); | |||
} | |||
} | } | ||
2025年10月18日 (六) 12:17的最新版本
/* 这里放置的CSS将应用于所有皮肤 */
/* 字体设置 */
@font-face {
font-family: '鸿蒙';
src: url('/font/HarmonyOS_Sans_SC_Regular.woff2') format('woff2');
}
@font-face {
font-family: 'number';
src: url('/font/Teko.ttf') format('opentype');
}
body {
font-family: '鸿蒙', sans-serif;
}
/* 手机端和PC端显示控制 */
@media screen and (max-width: 640px) {
.desktop-only {
display: none !important;
}
}
@media screen and (min-width: 641px) {
.mobile-only {
display: none !important;
}
}
/* 隐藏通知图标 */
#echo-notifications {
display:none;
}
/* 隐藏底部图标 */
#footer-right-icons {
display:none;
}
/* 卡牌 */
.card-small-wrapper {
transition: transform 0.2s ease;
-webkit-tap-highlight-color: transparent;
}
.card-small-wrapper:hover {
transform: scale(1.05);
}
.card-modal {
animation: fadeIn 0.3s ease;
overflow: hidden !important;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-webkit-tap-highlight-color: transparent;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.modal-close-button:hover {
background: rgba(255, 255, 255, 0.3) !important;
transform: scale(1.1);
}
.inspiration-button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 8px rgba(0,0,0,0.4) !important;
background: linear-gradient(135deg, #7fe5ff 0%, #5fb8e0 100%) !important;
}
.inspiration-button:active { transform: translateY(0); }
.god-inspiration-button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 8px rgba(0,0,0,0.4) !important;
background: linear-gradient(135deg, #ffe08a 0%, #f0b000 100%) !important;
}
.god-inspiration-button:active { transform: translateY(0); }
.back-to-card-button:hover,
.back-to-subcards-button:hover,
.back-to-inspiration-button:hover,
.back-to-inspiration-subcards-button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 8px rgba(0,0,0,0.4) !important;
background: linear-gradient(135deg, #ff7b7b 0%, #dd6565 100%) !important;
}
.back-to-card-button:active,
.back-to-subcards-button:active,
.back-to-inspiration-button:active,
.back-to-inspiration-subcards-button:active {
transform: translateY(0);
}
.inspiration-variant-card,
.subcards-view .inspiration-variant-card {
opacity: 0.95;
transition: opacity 0.3s, transform 0.3s;
cursor: default !important;
}
.inspiration-variant-card:hover,
.subcards-view .inspiration-variant-card:hover {
opacity: 1;
transform: scale(1.05);
}
@media (max-width: 768px) {
.cards-display { flex-direction: column !important; }
.inspiration-cards-wrapper { gap: 10px !important; }
.subcards-wrapper { gap: 10px !important; }
.nested-subcards-wrapper { gap: 10px !important; }
}
.subcards-button {
display: inline-block;
padding: 10px 10px;
background: linear-gradient(135deg, #6fd8fe 0%, #4da6cc 100%);
color: white;
font-size: 15px;
font-weight: bold;
border-radius: 8px;
cursor: pointer;
box-shadow: 0 4px 6px rgba(0,0,0,0.3);
transition: all 0.3s;
user-select: none;
}
.subcards-button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 8px rgba(0,0,0,0.4);
background: linear-gradient(135deg, #7fe5ff 0%, #5fb8e0 100%);
}
.subcards-button:active { transform: translateY(0); }
.view-nested-subcards-button,
.view-inspiration-nested-subcards-button {
display: inline-block;
padding: 10px 20px;
background: linear-gradient(135deg, #ffa500 0%, #cc8400 100%);
color: white;
font-size: 15px;
font-weight: bold;
border-radius: 8px;
cursor: pointer;
box-shadow: 0 4px 6px rgba(0,0,0,0.3);
transition: all 0.3s;
user-select: none;
}
.view-nested-subcards-button:hover,
.view-inspiration-nested-subcards-button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 8px rgba(0,0,0,0.4);
background: linear-gradient(135deg, #ffb520 0%, #dd9400 100%);
}
.view-nested-subcards-button:active,
.view-inspiration-nested-subcards-button:active { transform: translateY(0); }
.nested-subcards-view,
.inspiration-subcards-view,
.inspiration-nested-subcards-view {
opacity: 0.95;
transition: opacity 0.3s;
}
.inspiration-cards-wrapper { align-items: flex-start; }
.inspiration-variant { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 240px; }
.inspiration-subcards-button {
display: inline-block;
padding: 10px 20px;
background: linear-gradient(135deg, #ffa500 0%, #cc8400 100%);
color: white;
font-size: 15px;
font-weight: bold;
border-radius: 8px;
cursor: pointer;
box-shadow: 0 4px 6px rgba(0,0,0,0.3);
transition: all 0.3s;
user-select: none;
margin-top: 8px;
}
.inspiration-subcards-button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 8px rgba(0,0,0,0.4);
background: linear-gradient(135deg, #ffb520 0%, #dd9400 100%);
}
.inspiration-subcards-button:active { transform: translateY(0); }
.god-variant-card {
opacity: 0.95;
transition: opacity 0.3s, transform 0.3s;
cursor: default !important;
}
.god-variant-card:hover {
opacity: 1;
transform: scale(1.05);
}
/* 卡牌悬停样式 */
.card-link {
display: inline-block;
position: relative;
}
.card-link:hover {
color: #5a7fff;
}
/* 悬停时显示的卡牌容器 */
.card-hover-popup {
display: none;
position: absolute;
left: 50%;
bottom: 100%;
transform: translateX(-50%);
margin-bottom: 10px;
z-index: 10000;
pointer-events: none;
animation: cardPopupFadeIn 0.2s ease;
}
.card-link:hover .card-hover-popup {
display: block;
}
@keyframes cardPopupFadeIn {
from {
opacity: 0;
transform: translateX(-50%) translateY(5px);
}
to {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
}
/* 确保悬停卡牌不可交互 */
.card-hover-popup * {
pointer-events: none !important;
cursor: default !important;
}
/* 隐藏悬停卡牌中的模态框 */
.card-hover-popup .card-modal {
display: none !important;
}
.dictionary-tooltip-container {
position: absolute;
width: 250px;
z-index: 10000;
opacity: 0;
transition: opacity 0.15s ease;
pointer-events: none;
}
.dictionary-tooltip-container.active {
opacity: 1;
pointer-events: auto;
}
.dictionary-term {
text-decoration: underline;
cursor: help;
}
/* 黑幕 */
.heimu {
background-color: #252525;
color: #252525;
transition: color 0.5s;
}
.heimu:hover {
color: #ffffff;
}
/* 切换标签 */
.main-line-wrap {
width: 100%;
margin: 0px;
}
.resp-tabs {
width: 100%;
}
.resp-tabs-list {
list-style: none;
padding: 0;
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.resp-tabs-list.clearfix::after {
content: "";
display: table;
clear: both;
}
.czn-list-style {
display: inline-block;
cursor: pointer;
transition: all 0.3s ease;
}
.tab-panel {
position: relative;
display: inline-block;
background: #b9b9b9;
color: #000;
padding: 5px 30px;
font-size: 12px;
text-align: center;
clip-path: polygon(5% 0%, 95% 0%, 100% 50%, 95% 100%, 5% 100%, 0% 50%);
min-width: auto;
transition: all 0.3s ease;
}
.czn-list-style.active .tab-panel {
background: #ff5514;
color: white;
}
.tab-panel::before {
content: "✦";
position: absolute;
left: 5px;
top: 50%;
transform: translateY(-50%);
font-size: 16px;
color: inherit;
opacity: 0;
transition: opacity 0.3s ease;
}
.tab-panel::after {
content: "✦";
position: absolute;
right: 5px;
top: 50%;
transform: translateY(-50%);
font-size: 16px;
color: inherit;
opacity: 0;
transition: opacity 0.3s ease;
}
.czn-list-style.active .tab-panel::before,
.czn-list-style.active .tab-panel::after {
opacity: 1;
}
.resp-tabs-container {
padding-left: 0px;
}
.resp-tab-content {
display: none;
animation: fadeIn 0.3s ease;
}
.resp-tab-content[style*="display:block"],
.resp-tab-content[style*="display: block"] {
display: block !important;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.carousel-container {
width: 100%;
height: 280px;
position: relative;
overflow: hidden;
background: #f0f0f0;
border-radius: 6px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.carousel-wrapper {
display: flex;
height: 100%;
transition: transform 0.5s ease;
will-change: transform;
}
.carousel-slide {
min-width: 100%;
height: 100%;
position: relative;
}
/* 图片统一裁剪为 280px 高度并覆盖容器 */
.carousel-slide img,
.carousel-slide a.image img {
width: 100% !important;
height: 280px !important;
object-fit: cover;
display: block;
}
/* 标题遮罩层与导航 */
.carousel-titles-overlay {
position: absolute;
left: 0; right: 0; bottom: 0;
background: linear-gradient(to top, rgba(0,0,0,0.28), rgba(0,0,0,0.12));
padding: 10px 0 0px;
z-index: 10;
}
.carousel-titles-wrapper {
display: flex;
align-items: center;
position: relative;
padding: 0 50px;
}
.carousel-titles-container {
max-width: calc(100% - 120px);
display: flex;
justify-content: center;
align-items: flex-end;
gap: 12px;
margin: 0 auto;
}
.carousel-title-item {
transition: all 0.3s ease;
min-width: 0;
flex: 1;
max-width: 200px;
cursor: pointer;
}
.carousel-title-item:hover .title-text {
opacity: 1 !important;
}
.carousel-title-item.active .title-text {
opacity: 1 !important;
font-weight: bold;
}
.carousel-title-item.active .title-indicator {
background: #ff6600 !important;
}
.title-text {
color: #fff;
font-size: 13px;
padding: 6px 8px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-align: center;
opacity: 0.75;
}
.title-indicator {
height: 2px;
background: transparent;
margin-top: 6px;
transition: all 0.3s ease;
}
/* 切换按钮 */
.carousel-btn {
transition: all 0.3s;
user-select: none;
cursor: pointer;
z-index: 20;
opacity: 0.85;
}
/* 轮播图 */
.carousel-btn:hover {
opacity: 1 !important;
transform: translateY(-50%) scale(1.08);
}
.carousel-btn img {
width: 100%;
height: 100%;
object-fit: contain;
}
.carousel-btn a.image {
display: block;
cursor: default;
user-select: none;
}
/* 响应式设计 */
@media (max-width: 1024px) {
.carousel-titles-container { max-width: calc(100% - 100px); }
}
@media (max-width: 768px) {
.carousel-titles-container {
gap: 8px !important;
}
.carousel-title-item {
max-width: 150px !important;
}
.title-text {
font-size: 12px !important;
padding: 5px 6px !important;
}
.carousel-btn {
width: 25px !important;
height: 25px !important;
}
.carousel-titles-wrapper {
padding: 0 40px !important;
}
.carousel-btn.carousel-prev {
left: 8px !important;
}
.carousel-btn.carousel-next {
right: 8px !important;
}
}
@media (max-width: 480px) {
.carousel-title-item {
max-width: 110px !important;
}
.title-text {
font-size: 11px !important;
padding: 4px 5px !important;
}
.carousel-btn {
width: 22px !important;
height: 22px !important;
}
}
/* 当仅有一张图时隐藏按钮 */
.carousel-container.single .carousel-btn { display: none; }
/* 兼容可能的缩略图容器 */
.carousel-slide .thumb,
.carousel-slide .thumbinner {
width: 100% !important;
height: 100% !important;
overflow: hidden;
border: 0;
background: none;
box-shadow: none;
}
/* 避免图片选择与拖拽 */
.carousel-container img {
user-select: none;
-webkit-user-drag: none;
}
/* 触摸滑动指示(可选) */
.carousel-container.grab { cursor: grab; }
.carousel-container.grabbing { cursor: grabbing; }
/* 按钮 */
.btn {
display: inline-block;
padding: 6px 12px;
margin-bottom: 0;
font-size: 14px;
font-weight: 400;
line-height: 1.42857143;
text-align: center;
white-space: nowrap;
vertical-align: middle;
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-image: none;
border: 1px solid transparent;
border-radius: 4px;
}
.btn-default {
color: #333;
background-color: #fff;
border-color: #ccc;
}
/* 筛选按钮被选中 */
li.btn.cardSelectOption.selected {
color: #333!important;
background-color: #e6e6e6!important;
border-color: #adadad!important;
outline: 0;
-webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,.125);
box-shadow: inset 0 3px 5px rgba(0,0,0,.125);
}
@media only screen and (max-width: 600px) {
li.btn.cardSelectOption {
padding: 4px 8px;
font-size: 12px;
}
li.btn.cardSelectOption:hover {
color: #333;
background-color: #fff;
border-color: #adadad;
}
}
/* 隐藏默认目录 */
.mw-parser-output .toc {
display: none !important;
}
/* 悬浮目录 */
#toc-sidebar {
position: fixed;
left: 0;
top: 30%;
background-color: #f8f9fa;
border: 1px solid #a2a9b1;
border-left: none;
border-radius: 0 5px 5px 0;
padding: 5px 2px;
z-index: 100;
width: 36px;
transition: width 0.3s;
overflow: hidden;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}
#toc-sidebar.expanded {
width: 250px;
padding: 10px;
}
#toc-sidebar-trigger {
cursor: pointer;
font-weight: bold;
text-align: center;
writing-mode: vertical-lr; /* 修改为vertical-lr */
height: auto;
white-space: nowrap;
}
#toc-sidebar.expanded #toc-sidebar-trigger {
writing-mode: horizontal-tb;
}
#toc-sidebar-content {
display: none;
padding-top: 10px;
width: 230px;
max-height: 60vh;
overflow-y: auto;
}
#toc-sidebar.expanded #toc-sidebar-content {
display: block;
}
/* 隐藏目录中的小圆点 */
#toc-sidebar-content ul {
list-style-type: none;
padding-left: 15px;
margin: 0;
}
#toc-sidebar-content li {
margin: 3px 0;
}
/* 稀有度 */
.rarity-5 {
width: 150px;
height: 5px;
background: linear-gradient(135deg, #e882e8, #6fffff);
box-shadow:
0 0 15px rgba(110, 69, 226, 0.5),
0 0 30px rgba(136, 211, 206, 0.3);
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.rarity-4 {
width: 150px;
height: 5px;
background: linear-gradient(135deg, #e5a563, #f1cf97);
box-shadow:
0 0 15px rgba(110, 69, 226, 0.5),
0 0 30px rgba(136, 211, 206, 0.3);
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.rarity-3 {
width: 150px;
height: 5px;
background: linear-gradient(135deg, #3b4785, #c3e7f9);
box-shadow:
0 0 15px rgba(110, 69, 226, 0.5),
0 0 30px rgba(136, 211, 206, 0.3);
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* 全局 tooltip 容器 */
.dictionary-tooltip-container {
position: absolute;
width: 250px;
z-index: 10000;
pointer-events: none;
opacity: 0;
transition: opacity 0.2s ease;
}
.dictionary-tooltip-container.active {
opacity: 1;
}
/* 首页按钮 */
.home-btn {
color: #303646;
font-size: 14px;
font-weight: bold;
text-align: center;
line-height: 18px;
width: 100px;
height: 36px;
border: 1px solid #303646;
box-shadow: 0 1px 3px 0 rgba(0,0,0,0.30);
padding: 8px 5px;
margin: 0 5px 10px;
display: inline-block;
float: left;
position: relative;
overflow: hidden;
transition: all 0.5s;
-moz-transition: all 0.5s;
-webkit-transition: all 0.5s;
cursor: pointer;
}
.home-btn:hover {
border-color: inherit;
box-shadow: 0 2px 8px 0 rgba(0,0,0,0.40);
}
.home-btn:before {
content: "";
position: absolute;
top: 0;
left: -100%;
width: 50%;
height: 100%;
background: linear-gradient(90deg,
rgba(255,255,255,0) 0%,
rgba(255,255,255,0.6) 50%,
rgba(255,255,255,0) 100%);
transform: skewX(-25deg);
z-index: 1;
}
.home-btn:hover:before {
animation: shine 0.8s ease;
}
@keyframes shine {
0% {
left: -100%;
}
100% {
left: 200%;
}
}
.home-btn:after {
content: "";
position: absolute;
background: rgba(0,0,0,0.05);
left: 50%;
width: 0;
top: 0px;
bottom: 0px;
transition: all 0.15s;
-moz-transition: all 0.15s;
-webkit-transition: all 0.15s;
z-index: 0;
}
.home-btn:hover::after {
content: "";
width: 100%;
left: 0px;
}
.home-btn-1 {
color: #9B999D;
border-color: #9B999D;
}
.home-btn-2 {
color: #55A054;
border-color: #55A054;
}
.home-btn-3 {
color: #5483D3;
border-color: #5483D3;
}
.home-btn-4 {
color: #A25FD3;
border-color: #A25FD3;
}
.home-btn-5 {
color: #DF762C;
border-color: #DF762C;
}
.home-btn-6 {
color: #E74C48;
border-color: #E74C48;
}
.home-btn-gk {
line-height: 14px;
width: 80px;
height: 30px;
color: #2D8281;
border-color: #2D8281;
}
/* 装备系统样式 */
.equipment-popup {
position: fixed !important;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 10000;
box-shadow: 0 0 20px rgba(0,0,0,0.8);
}
/* 弹窗遮罩层 */
.equipment-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.6);
z-index: 9999;
display: none;
}
/* 装备卡片悬停效果 */
.equipment-card:hover {
transform: scale(1.05);
transition: transform 0.2s;
}
/* 关闭按钮悬停效果 */
.equipment-popup-close:hover {
color: #ff9500 !important;
}
/* 装备名称链接样式 */
.equipment-name-link {
padding: 3px 5px;
}
.equipment-name-link a {
text-decoration: none !important;
}
/* 调整卡片容器样式 */
.equipment-wrapper .equipment-card {
margin-bottom: 0;
}
/* 事件 */
.event-container {
width: 375px;
background-color: #343434;
border-radius: 8px;
overflow: hidden;
user-select: none;
}
/* 图片容器 */
.event-image-container {
position: relative;
width: 375px;
height: 165px;
overflow: hidden;
}
.event-image-container img {
width: 375px;
height: auto;
display: block;
}
/* 标题条 */
.event-title-bar {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 35px;
background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.6));
display: flex;
align-items: center;
justify-content: center;
}
.event-title {
color: white;
font-size: 16px;
font-weight: bold;
text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
/* 选项容器 */
.event-options-container {
padding: 10px;
background-color: #343434;
}
/* 选项包装器 */
.event-option-wrapper {
margin-bottom: 5px;
}
/* 选项样式 */
.event-option {
background-color: rgba(255,255,255,0.3);
border-radius: 4px;
padding: 8px 12px;
color: white;
cursor: pointer;
transition: all 0.2s ease;
position: relative;
}
.event-option:hover {
background-color: rgba(255,255,255,0.4);
transform: translateX(2px);
}
.event-option.expanded {
background-color: rgba(255,255,255,0.45);
border-radius: 4px 4px 0 0;
}
/* 选项文本 */
.option-text {
line-height: 1.4;
}
/* 结果容器 */
.option-effect-container {
background-color: rgba(255,255,255,0.2);
border-radius: 0 0 4px 4px;
overflow: hidden;
margin-top: -1px;
}
.option-effect {
padding: 10px 12px;
color: white;
font-size: 0.9em;
line-height: 1.5;
border-top: 1px solid rgba(255,255,255,0.3);
}
/* 动画优化 */
.event-option-wrapper {
transition: margin-bottom 0.3s ease;
}
.event-option-wrapper.has-expanded-effect {
margin-bottom: 5px;
}
/* 事件模块样式 - 保留原有样式并添加新样式 */
/* ... 原有的事件容器样式保持不变 ... */
/* 网格视图(卡片式) */
.event-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 15px;
padding: 10px;
}
.event-card {
background: #f8f9fa;
border: 1px solid #ddd;
border-radius: 8px;
overflow: hidden;
transition: transform 0.2s, box-shadow 0.2s;
cursor: pointer;
}
.event-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.event-card-image {
width: 100%;
height: 150px;
overflow: hidden;
background: #333;
}
.event-card-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
.event-card-info {
padding: 10px;
}
.event-card-title {
font-weight: bold;
margin-bottom: 8px;
font-size: 14px;
color: #333;
}
.event-card-tags {
display: flex;
flex-wrap: wrap;
gap: 5px;
margin-bottom: 10px;
}
.event-card-button {
margin-top: 10px;
}
.event-view-detail {
width: 100%;
padding: 6px 12px;
background: #5cb85c;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 13px;
transition: background-color 0.2s;
}
.event-view-detail:hover {
background: #4cae4c;
}
/* 模态框样式 */
.event-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
}
.event-modal-content {
max-width: 400px;
max-height: 90vh;
overflow-y: auto;
background: white;
border-radius: 8px;
position: relative;
}
/* 完整布局视图 */
.event-full-layout {
padding: 10px;
}
.event-info-bar {
padding: 10px 20px;
background: #f0f0f0;
border-radius: 4px;
margin-bottom: 10px;
font-weight: bold;
}
.event-full-grid {
background: #f8f9fa;
border-radius: 8px;
}
.event-full-item {
background: white;
border-radius: 8px;
padding: 10px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.event-area-header {
padding: 10px 0;
border-bottom: 2px solid #333;
}
.event-area-header h3 {
margin: 0;
color: #333;
font-size: 18px;
}
/* 通用标签样式 */
.event-tag {
display: inline-block;
padding: 2px 8px;
border-radius: 4px;
font-size: 0.85em;
font-weight: 500;
}
.event-tag-area {
background: #e3f2fd;
color: #1565c0;
}
.event-tag-rarity {
background: #f5f5f5;
color: #333;
}
.event-tag-一般 {
background: #e8f5e9;
color: #2e7d32;
}
.event-tag-稀有 {
background: #e1f5fe;
color: #0277bd;
}
.event-tag-传奇 {
background: #fce4ec;
color: #c2185b;
}
/* 响应式调整 */
@media (max-width: 768px) {
.event-full-grid {
grid-template-columns: 1fr !important;
}
.event-grid {
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
}