mirror of
https://github.com/ChenKaiLiuG/find_your_own_fxxking_problem.git
synced 2026-06-17 16:54:24 +00:00
160 lines
2.6 KiB
CSS
160 lines
2.6 KiB
CSS
/* Reset 基本設定 */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html, body {
|
|
height: 100%;
|
|
font-family: 'Helvetica Neue', sans-serif;
|
|
color: #fff;
|
|
overflow-x: hidden;
|
|
background-color: #000;
|
|
}
|
|
|
|
#bg-video {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
z-index: -1;
|
|
}
|
|
|
|
.container {
|
|
position: relative;
|
|
padding: 2rem;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
h1 {
|
|
text-align: center;
|
|
margin-bottom: 2rem;
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
/* 卡片樣式 */
|
|
.card {
|
|
background: rgba(30, 30, 30, 0.8);
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
margin-bottom: 2rem;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
display: flex;
|
|
flex-direction: column;
|
|
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
}
|
|
|
|
/* 滑鼠移上卡片的動畫效果 */
|
|
.card:hover {
|
|
transform: translateY(-8px);
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.card-image {
|
|
width: 100%;
|
|
height: 200px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.card-body {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.card-footer {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
padding: 0.8rem;
|
|
text-align: right;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
h2 {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
p {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
/* 按鈕樣式 */
|
|
.btn {
|
|
display: inline-block;
|
|
padding: 0.6rem 1.2rem;
|
|
background-color: #4a5568;
|
|
color: #fff;
|
|
text-decoration: none;
|
|
border-radius: 8px;
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
.btn:hover {
|
|
background-color: #2d3748;
|
|
}
|
|
|
|
/* 響應式設計 */
|
|
@media (max-width: 768px) {
|
|
h1 {
|
|
font-size: 2rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
h1 {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.card-image {
|
|
height: 150px;
|
|
}
|
|
|
|
.card-body, .card-footer {
|
|
padding: 1rem;
|
|
}
|
|
}
|
|
|
|
/* 新增:切換模式按鈕 */
|
|
#toggle-theme {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
padding: 0.5rem 1rem;
|
|
border: none;
|
|
background-color: rgba(255, 255, 255, 0.8);
|
|
color: #000;
|
|
font-weight: bold;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
z-index: 1000;
|
|
transition: background 0.3s, color 0.3s;
|
|
}
|
|
|
|
#toggle-theme:hover {
|
|
background-color: rgba(200, 200, 200, 0.9);
|
|
}
|
|
|
|
/* 深色模式 */
|
|
.dark-mode {
|
|
background-color: #111; /* 深色背景 */
|
|
}
|
|
|
|
.dark-mode #bg-video {
|
|
opacity: 0.1; /* 背景影片淡掉 */
|
|
}
|
|
|
|
.dark-mode body {
|
|
background-color: #111;
|
|
color: #eee;
|
|
}
|
|
|
|
.dark-mode .card {
|
|
background: rgba(50, 50, 50, 0.85);
|
|
}
|
|
|
|
.dark-mode #toggle-theme {
|
|
background-color: rgba(50, 50, 50, 0.8);
|
|
color: #eee;
|
|
}
|