Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
246 lines (218 loc) · 4.21 KB
/
Copy pathstyle.css
File metadata and controls
246 lines (218 loc) · 4.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
/* — 基礎設定 — */
body {
margin: 0;
font-family: “Noto Sans TC”, “PingFang TC”, “Microsoft JhengHei”, sans-serif;
background-color: #f4f4f4;
overflow-x: hidden;
}
/* — 上方橫條 (Header) — */
.header {
width: 100%;
background: #00F9C7; /* 薄荷綠 */
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 40px;
box-sizing: border-box;
border-bottom: 2px solid rgba(0,0,0,0.1);
}
.title {
font-size: clamp(24px, 5vw, 42px); /* 隨螢幕縮放字體 */
font-weight: 700;
color: #0D0D0D;
}
.numbers {
font-size: 18px;
opacity: 0.8;
letter-spacing: 4px;
}
/* — 主體區域佈局 — */
.layout {
display: flex;
min-height: calc(100vh - 100px);
}
/* — 左側欄 (Sidebar) — */
.sidebar {
width: 200px;
background: #A4D6CC;
padding: 20px;
box-sizing: border-box;
display: flex;
flex-direction: column;
gap: 10px;
flex-shrink: 0; /* 防止側邊欄被壓縮 */
}
.sidebar a {
text-decoration: none;
color: #111;
font-size: 20px;
padding: 10px;
border-radius: 5px;
transition: 0.3s ease;
}
.sidebar a:hover {
background: rgba(255, 255, 255, 0.3);
transform: translateX(8px);
color: #008B74;
}
.dog-container {
margin-top: auto; /* 讓小狗固定在側邊欄底部 */
padding: 20px 0;
text-align: center;
}
.sidebar-dog {
width: 80px;
height: auto;
filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.1));
}
/* — 內容區 (Content) — */
.content {
flex: 1;
background-color: #0D0D0D; /* 深色背景 */
color: #FFFFFF;
padding: 30px;
display: flex;
flex-direction: column;
gap: 25px;
max-width: calc(100vw - 200px); /* 限制最大寬度防止圖片撐爆 */
box-sizing: border-box;
}
h1 {
font-size: 28px;
margin-bottom: 10px;
border-bottom: 1px solid #333;
padding-bottom: 10px;
}
/* 1. 社群連結 */
.social-module {
display: flex;
justify-content: flex-start;
gap: 20px;
padding: 15px;
border: 1px solid #333;
border-radius: 10px;
background: #1a1a1a;
}
.social-icon {
text-decoration: none;
font-size: 22px;
color: #00F9C7;
font-weight: bold;
transition: 0.3s;
}
.social-icon:hover {
color: #FFFFFF;
transform: translateY(-3px);
}
/* 2. 文字區域 */
.text-area {
background: #1a1a1a;
border-left: 5px solid #6599A5;
padding: 20px;
border-radius: 0 10px 10px 0;
line-height: 1.8;
color: #AFE2DE;
}
.text-area p { margin: 5px 0; }
.sky-section {
border-left-color: #87CEEB;
background: #111e25; /* 微微的深藍調 */
}
/* 3. 日曆與今日事項 (字體加大) */
.calendar-container {
background: #1a1a1a;
border: 1px solid #333;
padding: 20px;
border-radius: 10px;
}
#current-date-display {
font-size: 18px;
font-weight: bold;
margin-bottom: 15px;
color: #8BC6B4;
}
.today-task {
width: 100%;
min-height: 100px;
font-size: 28px; /* 依照要求加大 */
font-weight: 900;
color: #00F9C7;
background: transparent;
border: 1px dashed #444;
padding: 15px;
box-sizing: border-box;
font-family: inherit;
resize: vertical;
outline: none;
}
/* 4. 圖片滑動牆 (關鍵修正) */
.image-slider {
width: 100%;
background: #1a1a1a;
border-radius: 10px;
padding: 15px;
box-sizing: border-box;
overflow: hidden; /* 隱藏外溢 */
}
.slider-title {
font-size: 16px;
color: #888;
margin-bottom: 15px;
padding-left: 5px;
}
.slides {
display: flex;
overflow-x: auto; /* 啟用水平滑動 */
gap: 15px;
padding-bottom: 10px;
scrollbar-width: thin; /* Firefox */
scrollbar-color: #333 transparent;
}
/* 隱藏捲軸但保持滑動 (Chrome/Safari) */
.slides::-webkit-scrollbar {
height: 6px;
}
.slides::-webkit-scrollbar-thumb {
background: #333;
border-radius: 10px;
}
.slides img {
height: 180px; /* 固定高度 */
width: auto; /* 寬度自適應比例 */
flex-shrink: 0; /* 關鍵:防止圖片被擠壓 */
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0,0,0,0.5);
transition: transform 0.3s ease;
cursor: pointer;
}
.slides img:hover {
transform: scale(1.03);
}
.slider-controls {
text-align: center;
font-size: 12px;
color: #555;
margin-top: 10px;
}
/* — 響應式調整 (手機版) — */
@media (max-width: 768px) {
.layout {
flex-direction: column; /* 側邊欄變頂部或隱藏 */
}
.sidebar {
width: 100%;
flex-direction: row;
overflow-x: auto;
white-space: nowrap;
}
.content {
max-width: 100vw;
padding: 15px;
}
.slides img {
height: 140px; /* 手機上縮小圖片高度 */
}
.today-task {
font-size: 22px;
}
}