Files
sechskies/style.css
T

237 lines
4.4 KiB
CSS
Raw Normal View History

2026-05-06 16:22:41 +08:00
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap');
2026-05-06 16:22:41 +08:00
:root {
--yellow: #FFD700;
/* 應援黃色 */
--dark-yellow: #4e492b;
--black: #1a1a1a;
--gray: #f4f4f4;
--text-color: #333;
--dark: #777;
--accent: #FFD700;
}
2026-05-06 16:22:41 +08:00
/* 1. 先處理 body 和全域,確保沒人亂給外距 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
2026-05-06 16:22:41 +08:00
html {
background: #0A0A0A;
min-height: 100%;
}
2026-05-06 16:22:41 +08:00
body {
font-family: 'Noto Sans TC', system-ui, sans-serif;
color: var(--text-color);
line-height: 1.6;
overflow-x: hidden;
}
2026-05-06 16:22:41 +08:00
header {
/* aspect-ratio: 1920 / 1080; */
width: 100%;
/* 改用 vh (螢幕高度) 通常比 aspect-ratio 更能解決首屏留白問題 */
min-height: 100vh;
background-image: url(img/header.jpg);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
2026-05-06 16:22:41 +08:00
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
2026-05-06 16:22:41 +08:00
text-align: center;
overflow: hidden;
position: relative;
margin: 0;
padding: 0;
vertical-align: bottom;
/* 消除某些瀏覽器對區塊元素的底邊留白 */
}
2026-05-06 16:22:41 +08:00
/* 導覽列 */
nav {
background-color: var(--black);
padding: 0.5rem;
position: sticky;
top: 0;
z-index: 1000;
display: flex;
justify-content: center;
margin: 0;
}
2026-05-06 16:22:41 +08:00
nav a {
color: var(--yellow);
text-decoration: none;
margin: 0 20px;
font-weight: bold;
transition: 0.3s;
}
2026-05-06 16:22:41 +08:00
nav a:hover {
color: white;
}
2026-05-06 16:22:41 +08:00
#particles {
position: absolute;
left: 0;
width: 100%;
display: block;
z-index: 1;
pointer-events: none;
}
2026-05-06 16:22:41 +08:00
/* 橫幅 Hero Section */
.hero {
z-index: 2;
position: relative;
width: 100%;
}
2026-05-06 16:22:41 +08:00
.hero h1 {
font-size: 2.5rem;
line-height: 1.2;
color: var(--yellow);
text-shadow: 0 0 30px rgba(255, 221, 0, 0.8);
}
2026-04-11 22:40:09 +08:00
2026-05-06 16:22:41 +08:00
.hero p {
font-size: 1.2rem;
/* margin-bottom: 2rem; */
color: var(--gray);
2026-05-06 16:22:41 +08:00
}
2026-05-06 16:22:41 +08:00
.btn {
display: inline-block;
padding: 10px 30px;
background: var(--yellow);
color: #000;
font-weight: bold;
border-radius: 50px;
text-decoration: none;
transition: all 0.3s;
}
2026-04-11 22:40:09 +08:00
2026-05-06 16:22:41 +08:00
.btn:hover {
transform: scale(1.1);
background: #FFEE66;
}
2026-05-06 16:22:41 +08:00
/* 區塊容器 */
.container {
max-width: 1000px;
margin: 0 auto;
padding: 40px 20px;
}
2026-05-06 16:22:41 +08:00
.story-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 40px;
max-width: 1200px;
margin: 0 auto;
}
2026-05-06 16:22:41 +08:00
.card {
/* background: rgba(0, 0, 0, 0.85); */
border-radius: 20px;
padding: 30px;
transition: transform 0.4s, box-shadow 0.4s;
}
2026-04-11 22:40:09 +08:00
2026-05-06 16:22:41 +08:00
.card:hover {
transform: translateY(-15px);
box-shadow: 0 5px 5px rgba(255, 221, 0, 0.2);
}
2026-05-06 16:22:41 +08:00
.card h3 {
color: var(--yellow);
margin-bottom: 15px;
}
2026-05-06 16:22:41 +08:00
section {
margin-bottom: 60px;
background: rgba(255, 255, 255, 0.95);
padding: 30px;
border-radius: 15px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
position: relative;
z-index: 10;
}
2026-05-06 16:22:41 +08:00
h2 {
border-left: 5px solid var(--yellow);
padding-left: 15px;
color: var(--black);
margin-bottom: 25px;
}
2026-05-06 16:22:41 +08:00
/* 作品列表表格 */
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
2026-05-06 16:22:41 +08:00
table th {
background-color: var(--yellow);
color: var(--black);
padding: 12px;
}
2026-04-11 22:40:09 +08:00
2026-05-06 16:22:41 +08:00
table td {
padding: 12px;
border-bottom: 1px solid #ddd;
text-align: center;
}
2026-05-06 16:22:41 +08:00
a {
color: var(--text-color);
text-decoration: none;
}
2026-05-06 16:22:41 +08:00
/* 現在的故事線樣式 */
.timeline {
border-left: 3px solid var(--yellow);
padding-left: 20px;
margin-left: 10px;
}
2026-05-06 16:22:41 +08:00
.timeline-item {
margin-bottom: 20px;
position: relative;
}
2026-05-06 16:22:41 +08:00
.timeline-item::before {
content: '';
width: 12px;
height: 12px;
background: var(--black);
border: 3px solid var(--yellow);
border-radius: 50%;
position: absolute;
left: -31px;
top: 5px;
}
2026-05-06 16:22:41 +08:00
/* 頁尾 */
footer {
background-color: var(--black);
color: white;
text-align: center;
padding: 20px 0;
margin-top: 50px;
}
2026-05-06 16:22:41 +08:00
.highlight {
color: var(--dark-yellow);
font-weight: bold;
}