Warhummer/static/css/style.css
2025-06-25 09:35:26 +08:00

1343 lines
25 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* 全局样式 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
user-select: none;
}
@font-face {
font-family: 'Warhammer';
src: url('../fonts/warhammer.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #0a0a0a;
color: #e0e0e0;
background-image: url('../images/bg-stars.jpg');
background-size: cover;
background-attachment: fixed;
min-height: 100%;
/* 移除overflow: hidden允许页面滚动 */
}
html, body {
/* 移除position: fixed和固定高度允许页面滚动 */
height: auto;
width: 100%;
}
/* 游戏页面需要保持固定不滚动 */
.game-page {
overflow: hidden;
position: fixed;
width: 100%;
height: 100%;
}
h1, h2, h3 {
font-family: 'Warhammer', 'Segoe UI', Tahoma, sans-serif;
color: #d4af37;
text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}
.btn {
display: inline-block;
padding: 8px 16px;
background-color: #600;
color: #fff;
text-decoration: none;
border: 1px solid #900;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
transition: all 0.3s ease;
}
.btn:hover {
background-color: #900;
box-shadow: 0 0 10px rgba(153, 0, 0, 0.7);
}
.btn-primary {
background-color: #600;
border-color: #900;
}
.btn-secondary {
background-color: #333;
border-color: #555;
}
/* 主页样式 */
.home-page .container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 0;
border-bottom: 1px solid #600;
}
.user-info {
font-size: 0.9rem;
}
main {
display: flex;
flex-wrap: wrap;
gap: 20px;
margin-top: 20px;
}
.leaderboard {
flex: 2;
background-color: rgba(0, 0, 0, 0.8);
border: 1px solid #600;
border-radius: 5px;
padding: 20px;
box-shadow: 0 0 20px rgba(153, 0, 0, 0.3);
}
.leaderboard table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
.leaderboard th, .leaderboard td {
padding: 10px;
text-align: left;
border-bottom: 1px solid #333;
}
.leaderboard th {
color: #d4af37;
font-weight: bold;
}
.leaderboard tr.current-user {
background-color: rgba(96, 0, 0, 0.3);
}
.info-panel {
flex: 1;
background-color: rgba(0, 0, 0, 0.8);
border: 1px solid #600;
border-radius: 5px;
padding: 20px;
box-shadow: 0 0 20px rgba(153, 0, 0, 0.3);
}
.scrolling-text {
height: 300px;
overflow-y: auto;
padding-right: 10px;
margin-top: 15px;
}
.scrolling-text::-webkit-scrollbar {
width: 8px;
}
.scrolling-text::-webkit-scrollbar-track {
background: #222;
}
.scrolling-text::-webkit-scrollbar-thumb {
background: #600;
border-radius: 4px;
}
footer {
margin-top: 40px;
text-align: center;
color: #888;
font-size: 0.8rem;
}
.subtitle {
color: #888;
font-style: italic;
margin-top: 5px;
}
/* 登录/注册页面样式 */
.auth-page {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.auth-container {
width: 400px;
padding: 30px;
background-color: rgba(0, 0, 0, 0.8);
border: 1px solid #600;
border-radius: 8px;
box-shadow: 0 0 30px rgba(153, 0, 0, 0.5);
}
.auth-form h1 {
text-align: center;
margin-bottom: 5px;
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 5px;
color: #d4af37;
}
.form-group input {
width: 100%;
padding: 10px;
background-color: #222;
border: 1px solid #444;
color: #fff;
border-radius: 4px;
}
.form-group input:focus {
outline: none;
border-color: #600;
box-shadow: 0 0 5px rgba(153, 0, 0, 0.5);
}
.form-actions {
display: flex;
justify-content: space-between;
margin-top: 30px;
}
.error-message {
background-color: rgba(153, 0, 0, 0.3);
border: 1px solid #600;
padding: 10px;
margin: 20px 0;
border-radius: 4px;
color: #ff9999;
}
/* 游戏页面样式 - 王权(Reigns)风格 */
.game-page {
overflow: hidden;
}
.start-screen {
position: absolute;
width: 100%;
height: 100%;
background-color: rgba(10, 10, 10, 0.95);
background-image: url('../images/wh40k-bg.jpg');
background-size: cover;
background-position: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 1000;
transition: opacity 1s ease;
}
.game-title {
font-size: 4rem;
margin-bottom: 1rem;
color: #d4af37;
text-shadow: 0 0 20px rgba(212, 175, 55, 0.7);
text-align: center;
}
.governor-name {
font-size: 1.5rem;
margin-bottom: 2rem;
color: #fff;
}
.start-button {
background-color: #600;
color: white;
border: none;
padding: 1rem 2rem;
font-size: 1.5rem;
border-radius: 5px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 0 #300;
font-family: 'Warhammer', sans-serif;
}
.start-button:hover {
transform: translateY(-3px);
box-shadow: 0 7px 0 #300;
background-color: #900;
}
.start-button:active {
transform: translateY(1px);
box-shadow: 0 2px 0 #300;
}
.menu-links {
margin-top: 30px;
display: flex;
gap: 20px;
}
.menu-link {
color: #999;
text-decoration: none;
font-size: 0.9rem;
transition: color 0.3s;
}
.menu-link:hover {
color: #d4af37;
}
/* 游戏界面样式 - 王权风格 */
.game-container {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
opacity: 0;
transition: opacity 1s ease;
overflow: hidden;
position: relative;
}
/* 上层 - 图标区域 */
.top-section {
height: 15%;
min-height: 80px;
max-height: 120px;
display: flex;
justify-content: space-around;
align-items: center;
padding: 0.5rem;
background-color: rgba(0, 0, 0, 0.7);
border-bottom: 1px solid #600;
}
.status-icon {
display: flex;
flex-direction: column;
align-items: center;
font-size: 0.8rem;
position: relative;
padding: 0 5px;
}
.icon {
font-size: 1.8rem;
margin-bottom: 0.3rem;
}
.status-bar {
width: 60px;
height: 8px;
background-color: #222;
border-radius: 5px;
overflow: hidden;
position: relative;
border: 1px solid #444;
}
@media (max-width: 480px) {
.status-bar {
width: 40px;
}
.icon {
font-size: 1.5rem;
}
}
.status-fill {
height: 100%;
width: 50%;
transition: width 0.5s ease;
}
#loyalty-bar {
background-color: #4a6fb5; /* 帝国蓝色 */
}
#chaos-bar {
background-color: #9c2aa0; /* 混沌紫色 */
}
#population-bar {
background-color: #38b48b; /* 民众绿色 */
}
#military-bar {
background-color: #b33939; /* 军事红色 */
}
#resources-bar {
background-color: #f9a602; /* 资源金色 */
}
.status-label {
margin-top: 3px;
font-size: 0.65rem;
color: #999;
text-align: center;
}
/* 影响指示器样式 */
.status-indicator {
position: absolute;
left: -15px;
top: 10px;
display: flex;
align-items: center;
opacity: 0;
transition: opacity 0.3s ease;
}
.indicator-dot {
border-radius: 50%;
margin-right: 2px;
background-color: rgba(255, 255, 255, 0.9);
box-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
}
.indicator-dot.large {
width: 10px;
height: 10px;
}
.indicator-dot.small {
width: 6px;
height: 6px;
}
.positive-effect .indicator-dot {
background-color: #4caf50;
box-shadow: 0 0 5px rgba(76, 175, 80, 0.7);
}
.negative-effect .indicator-dot {
background-color: #f44336;
box-shadow: 0 0 5px rgba(244, 67, 54, 0.7);
}
/* 对话区域 */
.dialogue-area {
position: absolute;
top: 15%;
width: 100%;
padding: 10px 20px;
z-index: 5;
pointer-events: none;
display: flex;
justify-content: center;
}
.speech-bubble {
background-color: rgba(30, 30, 35, 0.9);
border: 2px solid #600;
border-radius: 10px;
padding: 15px;
min-width: 70%;
max-width: 90%;
text-align: center;
font-size: 1rem;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
opacity: 0;
transform: translateY(-20px);
transition: opacity 0.5s ease, transform 0.5s ease;
}
.speech-bubble.visible {
opacity: 1;
transform: translateY(0);
}
/* 王权风格的卡片区域 */
.middle-section {
flex-grow: 1;
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
overflow: hidden;
background-image: url('../images/planet-surface.jpg');
background-size: cover;
background-position: center;
height: 70%;
min-height: 300px;
}
.card-container {
height: 350px;
width: 250px;
position: relative;
perspective: 1000px;
}
/* 王权风格的卡片 */
.card {
width: 100%;
height: 100%;
position: absolute;
background-color: rgba(30, 30, 35, 0.9);
border-radius: 10px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
cursor: grab;
transform-style: preserve-3d;
overflow: hidden;
border: 2px solid #600;
transform-origin: center;
backface-visibility: hidden;
}
.card-back {
background-color: #191970;
background-image: linear-gradient(135deg, #191970, #4a1970);
color: transparent;
display: flex;
align-items: center;
justify-content: center;
border: 2px solid #444;
}
.card-back::after {
content: "👑";
font-size: 5rem;
text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
/* 角色头像区域 - 充满整个卡片 */
.character-portrait {
width: 100%;
height: 100%;
background-color: #333;
overflow: hidden;
position: relative;
border-radius: 8px;
}
.character-portrait img {
width: 100%;
height: 100%;
object-fit: cover;
}
.character-portrait .fallback-avatar {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
font-size: 6rem;
}
/* 王权风格的选项覆盖区 */
.option-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
opacity: 0;
transition: opacity 0.3s ease;
display: flex;
padding-top: 40px;
color: white;
font-size: 1.2rem;
text-align: center;
pointer-events: none;
overflow: hidden;
border-radius: 8px;
}
.left-option-overlay {
background: linear-gradient(to bottom, rgba(179, 57, 57, 0.7) 0%, rgba(179, 57, 57, 0) 100%);
justify-content: flex-start;
padding-left: 20px;
align-items: flex-start;
}
.right-option-overlay {
background: linear-gradient(to bottom, rgba(74, 111, 181, 0.7) 0%, rgba(74, 111, 181, 0) 100%);
justify-content: flex-end;
padding-right: 20px;
align-items: flex-start;
}
/* 角色信息区域 - 显示在卡片下方 */
.character-info {
position: absolute;
bottom: -80px;
left: 50%;
transform: translateX(-50%);
width: 90%;
padding: 12px;
text-align: center;
background-color: rgba(15, 15, 20, 0.9);
border: 2px solid #600;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
z-index: 5;
}
.character-name {
font-size: 1.3rem;
font-weight: bold;
margin-bottom: 5px;
color: #d4af37;
font-family: 'Warhammer', sans-serif;
text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}
.character-title {
font-size: 0.9rem;
color: #999;
font-style: italic;
}
/* 下层 - 信息区域 */
.bottom-section {
height: 15%;
min-height: 70px;
max-height: 100px;
display: flex;
justify-content: space-between;
padding: 0.8rem 1.5rem;
background-color: rgba(0, 0, 0, 0.7);
border-top: 1px solid #600;
z-index: 10;
}
.governor-info {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
}
.governor-name {
font-size: 1.1rem;
font-weight: bold;
color: #d4af37;
}
.year {
font-size: 1.1rem;
text-align: right;
color: #d4af37;
margin-bottom: 5px;
}
.reign-time {
margin-top: 0.3rem;
color: #999;
font-size: 0.8rem;
}
.right-info {
display: flex;
flex-direction: column;
align-items: flex-end;
justify-content: center;
}
/* 状态图标区域 */
.active-statuses {
display: flex;
gap: 0.5rem;
align-self: flex-end;
margin-top: 0.3rem;
}
.status-item {
width: 30px;
height: 30px;
background-color: rgba(60, 60, 70, 0.7);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1rem;
border: 1px solid #600;
box-shadow: 0 0 5px rgba(153, 0, 0, 0.5);
cursor: pointer;
transition: all 0.2s ease;
position: relative;
}
.status-item:hover {
transform: scale(1.1);
box-shadow: 0 0 10px rgba(153, 0, 0, 0.8);
}
.status-item::after {
content: attr(data-tooltip);
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
background-color: rgba(0, 0, 0, 0.8);
color: white;
padding: 5px 8px;
border-radius: 4px;
font-size: 0.7rem;
white-space: nowrap;
opacity: 0;
pointer-events: none;
transition: opacity 0.2s ease;
}
.status-item:hover::after {
opacity: 1;
}
.status-item.warning {
animation: pulse 1.5s infinite;
}
@keyframes pulse {
0% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.5); }
50% { box-shadow: 0 0 15px rgba(255, 0, 0, 0.8); }
100% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.5); }
}
.status-effects {
display: flex;
gap: 0.5rem;
align-self: flex-end;
margin-top: 0.3rem;
}
.status-effect {
width: 25px;
height: 25px;
background-color: rgba(60, 60, 70, 0.7);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.7rem;
border: 1px solid #600;
box-shadow: 0 0 5px rgba(153, 0, 0, 0.5);
}
/* 游戏结束对话框 */
.game-over-dialog {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
display: flex;
align-items: center;
justify-content: center;
z-index: 100;
opacity: 0;
pointer-events: none;
transition: opacity 0.5s ease;
}
.game-over-dialog.show {
opacity: 1;
pointer-events: auto;
}
.dialog-content {
background-color: rgba(30, 30, 35, 0.95);
border: 2px solid #600;
border-radius: 10px;
padding: 1.5rem;
width: 90%;
max-width: 450px;
text-align: center;
box-shadow: 0 0 30px rgba(153, 0, 0, 0.7);
}
.dialog-content h2 {
margin-bottom: 1rem;
color: #d4af37;
font-size: 1.8rem;
}
.dialog-content p {
margin-bottom: 1.2rem;
line-height: 1.6;
font-size: 0.95rem;
}
#final-years {
color: #d4af37;
font-weight: bold;
font-size: 1.1rem;
}
#restart-button {
margin-top: 1.2rem;
padding: 0.7rem 1.5rem;
background-color: #600;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 1.1rem;
font-weight: bold;
transition: all 0.3s ease;
}
#restart-button:hover {
background-color: #900;
box-shadow: 0 0 15px rgba(153, 0, 0, 0.7);
}
/* 状态详情对话框 */
.status-details-dialog {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
display: flex;
align-items: center;
justify-content: center;
z-index: 100;
opacity: 0;
pointer-events: none;
transition: opacity 0.5s ease;
}
.status-details-dialog.show {
opacity: 1;
pointer-events: auto;
}
.dialog-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
border-bottom: 1px solid #444;
padding-bottom: 0.8rem;
}
.close-button {
background: none;
border: none;
color: #999;
font-size: 1.5rem;
cursor: pointer;
transition: color 0.3s ease;
}
.close-button:hover {
color: #d4af37;
}
.dialog-body {
text-align: left;
}
#status-details-icon {
font-size: 1.5rem;
margin-right: 0.5rem;
}
#status-details-effects {
margin: 1rem 0;
padding: 0.8rem;
background-color: rgba(0, 0, 0, 0.3);
border-radius: 5px;
font-size: 0.9rem;
}
.status-effect-item {
display: flex;
align-items: center;
margin-bottom: 0.5rem;
}
.status-effect-item .icon {
font-size: 1.2rem;
margin-right: 0.8rem;
}
.effect-positive {
color: #4caf50;
}
.effect-negative {
color: #f44336;
}
/* 修改开发者工具按钮位置 */
.dev-tools-button {
position: fixed;
top: 20px; /* 改为顶部而非底部 */
right: 20px; /* 保持右侧位置 */
width: 50px;
height: 50px;
background-color: rgba(60, 60, 70, 0.8);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
border: 2px solid #600;
cursor: pointer;
z-index: 1000;
box-shadow: 0 0 10px rgba(153, 0, 0, 0.7);
transition: all 0.3s ease;
display: none; /* 默认隐藏通过JS控制显示 */
}
.dev-tools-button:hover {
transform: scale(1.1);
box-shadow: 0 0 20px rgba(153, 0, 0, 0.9);
}
.dev-tools-dialog {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
display: flex;
align-items: center;
justify-content: center;
z-index: 1001;
opacity: 0;
pointer-events: none;
transition: opacity 0.5s ease;
}
.dev-tools-dialog.show {
opacity: 1;
pointer-events: auto;
}
.dev-tools-dialog .dialog-content {
max-width: 600px;
}
.tool-section {
margin-bottom: 1.5rem;
border-bottom: 1px solid #444;
padding-bottom: 1rem;
}
.tool-section:last-child {
border-bottom: none;
margin-bottom: 0;
}
.tool-section h3 {
margin-bottom: 0.8rem;
font-size: 1.2rem;
}
.tool-row {
display: flex;
gap: 10px;
align-items: center;
margin-bottom: 0.5rem;
}
.dev-tools-dialog select, .dev-tools-dialog input {
background-color: #222;
border: 1px solid #444;
color: #fff;
padding: 8px;
border-radius: 4px;
}
.dev-tools-dialog button {
background-color: #600;
color: white;
border: none;
padding: 8px 12px;
border-radius: 4px;
cursor: pointer;
font-size: 0.9rem;
transition: all 0.3s ease;
}
.dev-tools-dialog button:hover {
background-color: #900;
}
/* 卡片动画相关类 */
.card-enter {
transform: translate(-150px, -150px) rotate(-45deg) scale(0.8);
opacity: 0;
}
.card-exit-left {
transform: translateX(-1000px) rotate(-30deg);
opacity: 0;
pointer-events: none;
}
.card-exit-right {
transform: translateX(1000px) rotate(30deg);
opacity: 0;
pointer-events: none;
}
/* 针对不同屏幕的优化 */
@media (max-height: 700px) {
.top-section {
min-height: 70px;
}
.bottom-section {
min-height: 60px;
padding: 0.6rem 1.2rem;
}
.character-info {
bottom: -70px;
padding: 8px;
}
.character-name {
font-size: 1.1rem;
margin-bottom: 3px;
}
.character-title {
font-size: 0.8rem;
}
.card-container {
height: 280px;
width: 200px;
}
.speech-bubble {
padding: 10px;
font-size: 0.9rem;
}
}
/* 针对超窄屏的优化 */
@media (max-width: 360px) {
.status-label {
font-size: 0.6rem;
}
.icon {
font-size: 1.4rem;
}
.status-bar {
width: 35px;
}
.card-container {
width: 180px;
height: 250px;
}
.governor-name, .year {
font-size: 0.9rem;
}
.reign-time {
font-size: 0.7rem;
}
.speech-bubble {
min-width: 85%;
font-size: 0.85rem;
padding: 8px;
}
}
/* 针对超宽屏的优化 */
@media (min-width: 1200px) {
.card-container {
height: 400px;
width: 280px;
}
.character-info {
width: 80%;
padding: 15px;
}
.speech-bubble {
font-size: 1.2rem;
padding: 20px;
}
}
/* 排行榜容器 */
.leaderboard-container {
max-height: 500px; /* 设置最大高度 */
overflow-y: auto; /* 添加垂直滚动条 */
margin-top: 20px;
border: 1px solid #444;
border-radius: 5px;
background-color: rgba(0, 0, 0, 0.3);
}
/* 滚动条样式 */
.leaderboard-container::-webkit-scrollbar {
width: 8px;
}
.leaderboard-container::-webkit-scrollbar-track {
background: #222;
border-radius: 4px;
}
.leaderboard-container::-webkit-scrollbar-thumb {
background: #600;
border-radius: 4px;
}
.leaderboard-container::-webkit-scrollbar-thumb:hover {
background: #900;
}
/* 固定表头 */
.leaderboard table {
width: 100%;
border-collapse: collapse;
}
.leaderboard thead {
position: sticky;
top: 0;
background-color: #111;
z-index: 10;
}
.leaderboard th {
padding: 12px 10px;
border-bottom: 2px solid #600;
}
.leaderboard td {
padding: 10px;
border-bottom: 1px solid #333;
}
/* 公告横幅样式 */
.announcement-banner {
position: relative;
width: 100%;
background-color: rgba(153, 0, 0, 0.9);
padding: 10px 0;
text-align: center;
color: white;
font-weight: bold;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
z-index: 100;
border-bottom: 2px solid #600;
}
.announcement-content {
display: flex;
align-items: center;
justify-content: center;
padding: 0 40px;
}
.announcement-icon {
font-size: 1.5rem;
margin-right: 10px;
animation: pulse 2s infinite;
}
.announcement-text {
flex: 1;
}
.announcement-close {
background: none;
border: none;
color: white;
font-size: 1.5rem;
cursor: pointer;
padding: 0 10px;
opacity: 0.7;
transition: opacity 0.3s;
}
.announcement-close:hover {
opacity: 1;
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.2); }
100% { transform: scale(1); }
}
/* 调整其他元素的位置,为横幅留出空间 */
.top-section {
margin-top: 0;
}
/* 公告框样式 */
.announcement-box {
width: 90%;
max-width: 600px;
margin: 20px auto;
background-color: rgba(153, 0, 0, 0.9);
border: 2px solid #600;
border-radius: 8px;
padding: 15px;
box-shadow: 0 0 20px rgba(153, 0, 0, 0.5);
color: white;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.announcement-title {
font-size: 1.2rem;
font-weight: bold;
margin-bottom: 10px;
display: flex;
align-items: center;
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
padding-bottom: 8px;
}
.announcement-icon {
font-size: 1.5rem;
margin-right: 8px;
animation: pulse 2s infinite;
}
.announcement-content {
line-height: 1.6;
font-size: 0.95rem;
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.2); }
100% { transform: scale(1); }
}
/* 调整auth-page样式以适应公告 */
.auth-page {
padding-top: 20px;
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.auth-container {
margin-top: 20px;
}
/* 添加到 static/css/style.css 文件 */
/* 死亡卡片样式 */
.death-card {
border: 2px solid #b30000 !important;
box-shadow: 0 0 15px rgba(255, 0, 0, 0.3) !important;
}
.death-portrait {
background-color: rgba(40, 10, 10, 0.8) !important;
}
.death-portrait img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
/* 成就系统样式 */
.nav-links {
display: flex;
justify-content: center;
margin: 15px 0;
}
.nav-link {
display: inline-block;
margin: 0 10px;
padding: 8px 15px;
background-color: #222;
color: #fff;
text-decoration: none;
border-radius: 5px;
transition: background-color 0.3s;
}
.nav-link:hover {
background-color: #444;
}
.achievement-card {
background-color: #222;
border-radius: 10px;
padding: 15px;
text-align: center;
cursor: pointer;
transition: transform 0.3s ease, box-shadow 0.3s ease;
border: 1px solid #444;
}
.achievement-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.achievement-locked {
filter: grayscale(100%);
opacity: 0.7;
}
.achievement-icon {
font-size: 36px;
margin-bottom: 10px;
}
.achievement-name {
font-weight: bold;
margin-bottom: 5px;
color: #e6b800;
}
.achievement-desc {
font-size: 12px;
color: #ccc;
}
.achievement-status {
margin-top: 10px;
font-size: 12px;
color: #7fc47f;
}
.achievement-locked .achievement-status {
color: #999;
}