292 lines
5.5 KiB
CSS
292 lines
5.5 KiB
CSS
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap');
|
|
|
|
:root {
|
|
--primary: #ffcc00;
|
|
/* 應援黃色 */
|
|
--light-yellow: #fceea7;
|
|
/* --dark-yellow: #4e492b; */
|
|
--black: #1a1a1a;
|
|
--deep-black: #0a0a0a;
|
|
/* 更純粹的底黑 */
|
|
/* --gray: #f4f4f4; */
|
|
/* --text-color: #333; */
|
|
/* --dark: #777; */
|
|
/* --accent: #FFD700; */
|
|
--card-bg: #1a1a1a;
|
|
/* 卡片專用深灰 */
|
|
--bg-alt: #fcfaf2;
|
|
/* 今天的米白背景 */
|
|
--text-main: #333;
|
|
/* 主要文字 */
|
|
--text-muted: #888;
|
|
/* 輔助文字 */
|
|
|
|
}
|
|
|
|
/* 1. 先處理 body 和全域,確保沒人亂給外距 */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
|
|
html,
|
|
body {
|
|
background-color: var(--deep-black);
|
|
color: #eeeeee;
|
|
}
|
|
|
|
/* html {
|
|
min-height: 100%;
|
|
} */
|
|
|
|
body {
|
|
font-family: 'Noto Sans TC', system-ui, sans-serif;
|
|
color: var(--text-color);
|
|
line-height: 1.6;
|
|
overflow-x: hidden;
|
|
width: 80%;
|
|
}
|
|
|
|
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;
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
text-align: center;
|
|
overflow: hidden;
|
|
position: relative;
|
|
margin: 0;
|
|
padding: 0;
|
|
vertical-align: bottom;
|
|
/* 消除某些瀏覽器對區塊元素的底邊留白 */
|
|
}
|
|
|
|
/* 導覽列 */
|
|
nav {
|
|
background-color: var(--black);
|
|
padding: 0.8rem;
|
|
/* position: sticky;
|
|
top: 0;
|
|
z-index: 1000;
|
|
margin: 0; */
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
nav a {
|
|
color: var(--yellow);
|
|
text-decoration: none;
|
|
/* margin: 0 20px;
|
|
font-weight: bold;
|
|
transition: 0.3s; */
|
|
font-size: 0.95rem;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
|
|
nav a:hover {
|
|
color: white;
|
|
}
|
|
|
|
#particles {
|
|
position: absolute;
|
|
left: 0;
|
|
width: 100%;
|
|
display: block;
|
|
z-index: 1;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* 橫幅 Hero Section */
|
|
.hero {
|
|
z-index: 2;
|
|
position: relative;
|
|
width: 100%;
|
|
}
|
|
|
|
.hero h1 {
|
|
font-size: 2.5rem;
|
|
line-height: 1.2;
|
|
color: var(--yellow);
|
|
text-shadow: 0 0 30px rgba(255, 221, 0, 0.8);
|
|
}
|
|
|
|
.hero p {
|
|
font-size: 1.2rem;
|
|
/* margin-bottom: 2rem; */
|
|
color: var(--gray);
|
|
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.btn:hover {
|
|
transform: scale(1.1);
|
|
background: #FFEE66;
|
|
}
|
|
|
|
|
|
/* 區塊容器 */
|
|
.container {
|
|
max-width: 1000px;
|
|
margin: 0 auto;
|
|
padding: 40px 20px;
|
|
}
|
|
|
|
section {
|
|
background-color: var(--bg-white);
|
|
}
|
|
|
|
.section-title {
|
|
color: var(--yellow);
|
|
text-align: center;
|
|
font-size: 2rem;
|
|
letter-spacing: 6px;
|
|
margin-bottom: 50px;
|
|
text-transform: uppercase;
|
|
/*
|
|
padding-left: 15px;
|
|
color: var(--black); */
|
|
}
|
|
|
|
.section-title::after {
|
|
content: "";
|
|
display: block;
|
|
width: 50px;
|
|
height: 3px;
|
|
background: var(--yellow);
|
|
margin: 15px auto 0;
|
|
}
|
|
|
|
|
|
|
|
.story-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 40px;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.card {
|
|
background: var(--card-bg);
|
|
border: 1px solid #333;
|
|
/* 極細的邊框取代厚重的陰影 */
|
|
border-radius: 8px;
|
|
padding: 30px;
|
|
transition: 0.4s;
|
|
}
|
|
|
|
.card:hover {
|
|
transform: translateY(-15px);
|
|
border-color: var(--yellow);
|
|
/* 移上去才亮黃色 */
|
|
box-shadow: 0 5px 5px rgba(255, 221, 0, 0.2);
|
|
}
|
|
|
|
.card h3 {
|
|
color: var(--yellow);
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
section {
|
|
margin-bottom: 60px;
|
|
background: transparent;
|
|
/* 移除白底或黑底 */
|
|
box-shadow: none;
|
|
/* 移除陰影 */
|
|
padding: 60px 0;
|
|
/* 增加上下留白,讓呼吸感出來 */
|
|
border-radius: 0;
|
|
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
|
|
position: relative;
|
|
z-index: 10;
|
|
}
|
|
|
|
|
|
/* 作品列表表格 */
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-top: 20px;
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
/* 確保邊框圓角生效 */
|
|
|
|
}
|
|
|
|
table th {
|
|
background-color: var(--yellow);
|
|
color: var(--black);
|
|
padding: 12px;
|
|
}
|
|
|
|
table td {
|
|
padding: 12px;
|
|
border-bottom: 1px solid #ddd;
|
|
text-align: center;
|
|
}
|
|
|
|
a {
|
|
color: var(--text-color);
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* 現在的故事線樣式 */
|
|
.timeline {
|
|
border-left: 3px solid var(--yellow);
|
|
padding-left: 20px;
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.timeline-item {
|
|
margin-bottom: 20px;
|
|
position: relative;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
/* 頁尾 */
|
|
footer {
|
|
background-color: var(--black);
|
|
color: white;
|
|
text-align: center;
|
|
padding: 20px 0;
|
|
margin-top: 50px;
|
|
}
|
|
|
|
.highlight {
|
|
color: var(--dark-yellow);
|
|
font-weight: bold;
|
|
} |