-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
387 lines (362 loc) · 18.3 KB
/
Copy pathstyle.css
File metadata and controls
387 lines (362 loc) · 18.3 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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
/* =========================================
style.css - 攀·香港 全局樣式表
========================================= */
:root {
--primary: #1a1a1a;
--natural-boulder: #3a5a3a;
--artificial-boulder: #2d5a7b;
--natural-climb: #8a5a3a;
--artificial-climb: #5a3a7b;
--map-bg: rgba(17, 17, 17, 0.7);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
background-color: black;
color: white;
font-family: system-ui, -apple-system, 'Helvetica Neue', 'Noto Sans HK', sans-serif;
overflow-x: hidden;
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* 針對地圖頁面的鎖定滾動 */
body.map-page {
height: 100vh;
overflow: hidden;
}
/* 針對內頁的全局背景 */
body.with-bg::before {
content: ""; position: fixed; inset: 0;
background-image: url('image/ClimbingRoute.png');
background-size: cover; background-position: center;
opacity: 0.8; z-index: -1; pointer-events: none;
}
/* --- 全局滾動條 --- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #666; }
/* --- 頂部導航列 (Top Bar) --- */
.top-bar {
position: fixed; top: 0; left: 0; width: 100%; height: 64px;
background-color: black; color: white; display: flex;
align-items: center; justify-content: space-between;
padding: 0 24px; z-index: 200; border-bottom: 1px solid #333;
}
.menu-area { position: relative; display: flex; align-items: center; gap: 16px; }
.menu-dots {
font-size: 28px; line-height: 1; cursor: pointer;
letter-spacing: 2px; user-select: none; padding: 8px 0; color: white;
}
.nav-dropdown {
position: absolute; top: 50px; left: -10px;
background: rgba(20, 20, 20, 0.95); backdrop-filter: blur(8px);
border: 1px solid #555; border-radius: 12px; padding: 12px 0;
min-width: 180px; display: none; flex-direction: column;
box-shadow: 0 8px 20px rgba(0,0,0,0.6); z-index: 220;
}
.nav-dropdown.active { display: flex; }
.nav-item {
padding: 12px 24px; color: #f0f0e0; font-size: 1.1rem; text-decoration: none;
cursor: pointer; transition: background 0.2s; white-space: nowrap;
}
.nav-item:hover { background: #3a5a3a; color: white; }
.site-title { font-weight: 600; font-size: 1.4rem; letter-spacing: 2px; }
.lang-switch {
background: #2a2a2a; color: #ddd; border: 1px solid #777;
padding: 6px 14px; border-radius: 30px; font-size: 1rem;
font-weight: bold; cursor: pointer; transition: 0.2s; user-select: none;
}
.lang-switch:hover { background: #4a6a4a; color: white; border-color: #aaa; }
/* --- 主頁專屬 (Index Page) --- */
.scroll-container { position: relative; z-index: 1; }
.section {
min-height: 100vh; width: 100%; position: relative;
display: flex; flex-direction: column; align-items: center;
justify-content: center; padding: 80px 5% 60px;
scroll-snap-align: start; transition: opacity 0.3s ease;
background-size: cover; background-position: center;
background-repeat: no-repeat; background-attachment: fixed;
}
.hero-section {
background-image: url('image/LionM.jpg');
background-size: cover; background-position: center 30%; position: relative;
}
.hero-section::before {
content: ""; position: absolute; inset: 0;
background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px); z-index: 0;
}
.bg-climb-route {
background-image: url('image/ClimbingRoute.png');
background-size: cover; background-position: 30% 20%;
background-attachment: fixed; position: relative;
}
.bg-climb-route::after {
content: ""; position: absolute; inset: 0;
background: rgba(255, 255, 255, 0.25); backdrop-filter: blur(2px);
-webkit-backdrop-filter: blur(2px); pointer-events: none; z-index: 0;
}
.section > * { position: relative; z-index: 2; }
.section-title { font-size: 2.8rem; margin-bottom: 32px; text-shadow: 2px 2px 8px black; }
.rope-progress {
position: fixed; right: 20px; top: 100px; bottom: 100px;
width: 12px; z-index: 90; display: flex; flex-direction: column;
align-items: center; pointer-events: none;
}
.rope-line {
width: 4px; height: 100%;
background: repeating-linear-gradient(45deg, #b98c5f, #b98c5f 6px, #8b6914 6px, #8b6914 12px);
border-radius: 4px; box-shadow: 0 0 6px rgba(0,0,0,0.5); position: relative;
}
.climber-icon {
position: absolute; left: 50%; transform: translateX(-50%);
width: 28px; height: 28px; background-color: #d94f4f;
border-radius: 45% 45% 40% 40%; box-shadow: 0 2px 6px black;
border: 2px solid #f0c0a0; transition: top 0.05s linear;
pointer-events: none; display: flex; align-items: center; justify-content: center;
}
.climber-icon::after { content: "🧗"; font-size: 16px; line-height: 1; filter: drop-shadow(0 1px 1px black); }
.hero-title { display: flex; align-items: center; justify-content: center; gap: 30px; width: 100%; flex-wrap: wrap; }
.hero-img-pan { height: auto; width: 35vw; max-width: 400px; min-width: 200px; filter: drop-shadow(8px 8px 12px rgba(20,40,10,0.5)); }
.hero-img-hk { display: flex; flex-direction: column; align-items: center; writing-mode: vertical-rl; text-orientation: upright; }
.hero-img-hk img { width: 15vw; max-width: 160px; min-width: 80px; filter: drop-shadow(6px 6px 8px rgba(0,30,0,0.4)); }
.scroll-hint {
position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
color: #aaa; font-size: 1.2rem; display: flex; flex-direction: column;
align-items: center; opacity: 0.8; transition: opacity 0.3s; z-index: 10;
}
.scroll-hint span { font-size: 2rem; line-height: 1; }
.map-container {
width: 90%; max-width: 1000px; background: rgba(10,20,15,0.3);
backdrop-filter: blur(4px); padding: 20px; border-radius: 28px;
cursor: pointer; box-shadow: 0 10px 20px rgba(0,0,0,0.3); transition: transform 0.2s;
}
.map-container:hover { transform: scale(1.01); }
.intro-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1000px; width: 100%; }
.intro-card {
aspect-ratio: 4 / 3; border-radius: 32px; background-size: cover;
background-position: center; cursor: pointer; transition: 0.2s;
box-shadow: 0 8px 18px black; display: flex; align-items: flex-end;
justify-content: center; padding-bottom: 20px; font-size: 2rem;
font-weight: bold; color: white; text-shadow: 2px 2px 8px black;
border: 2px solid rgba(255,255,240,0.3); position: relative; overflow: hidden;
}
.intro-card::before {
content: ""; position: absolute; inset: 0;
background: linear-gradient(to top, rgba(0,0,0,0.5), transparent); z-index: 1;
}
.intro-card span {
position: relative; z-index: 2; backdrop-filter: blur(2px);
padding: 4px 16px; border-radius: 40px; background: rgba(20,30,20,0.5);
}
.intro-card:hover { transform: scale(1.02); border-color: #b0b080; }
.gear-wrapper { display: flex; flex-direction: column; align-items: center; width: 100%; }
.gear-canvas-box {
background: rgba(30,40,30,0.4); backdrop-filter: blur(4px);
padding: 20px; border-radius: 40px; display: inline-block;
width: 100%; max-width: 1000px;
}
canvas#gearCanvas {
display: block; width: 100%; height: auto; border-radius: 24px;
cursor: pointer; transition: transform 0.15s ease-out; will-change: transform;
}
.gear-hint { margin-top: 16px; color: #ccc; }
.history-section { cursor: pointer; }
.history-placeholder {
font-size: 3rem; font-weight: 300; border: 2px dashed #b0b0a0;
padding: 30px 60px; background: rgba(20,20,10,0.5); backdrop-filter: blur(6px);
text-align: center;
}
.footer-bar { background: black; color: #aaa; padding: 24px 10%; text-align: center; font-size: 0.9rem; border-top: 1px solid #3a3a3a; }
.footer-bar a { color: #ccc; text-decoration: none; margin: 0 12px; }
.fade-section { transition: opacity 0.4s; }
/* --- 裝備頁面 (Gear Page) --- */
.section-content {
background: rgba(15, 20, 15, 0.85); backdrop-filter: blur(8px);
border: 1px solid #444; border-radius: 24px; padding: 40px;
width: 100%; max-width: 1100px; box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
h2.section-title { font-size: 2.6rem; color: #dbb07c; margin-bottom: 12px; border-left: 6px solid #b98c5f; padding-left: 16px; }
p.section-desc { font-size: 1.1rem; color: #ccc; margin-bottom: 32px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card {
background: rgba(30, 40, 30, 0.6); border: 1px solid #5a6a5a; border-radius: 16px;
padding: 24px; cursor: pointer; transition: all 0.3s; display: flex; flex-direction: column;
align-items: center; text-align: center;
}
.card:hover, .card.active { transform: translateY(-5px); background: rgba(58, 90, 58, 0.8); border-color: #b0b080; box-shadow: 0 8px 20px rgba(0,0,0,0.6); }
.card .icon { font-size: 3.5rem; margin-bottom: 16px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)); }
.card h3 { font-size: 1.4rem; color: #f0f0e0; margin-bottom: 8px; }
.product-card {
background: rgba(20, 20, 20, 0.8); border: 1px solid #444; border-radius: 12px; padding: 20px;
cursor: pointer; transition: all 0.2s; text-align: left; display: flex; flex-direction: column; justify-content: center;
}
.product-card:hover { border-color: #dbb07c; background: rgba(40, 40, 30, 0.9); transform: scale(1.02); }
.product-card .brand { font-size: 0.9rem; color: #aaa; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.product-card .model { font-size: 1.3rem; color: white; font-weight: bold; }
.detail-view { display: flex; gap: 40px; flex-wrap: wrap; }
.detail-image { flex: 1; min-width: 300px; display: flex; align-items: center; justify-content: center; }
.product-img {
width: 100%; max-height: 400px; object-fit: contain;
border-radius: 16px; background: rgba(255, 255, 255, 0.05);
padding: 20px; border: 1px solid #555; box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.detail-info { flex: 1; min-width: 300px; display: flex; flex-direction: column; justify-content: center; }
.detail-info .brand { font-size: 1.2rem; color: #b98c5f; text-transform: uppercase; letter-spacing: 2px; }
.detail-info .model { font-size: 2.8rem; margin: 8px 0 24px; color: white; font-weight: 800; line-height: 1.2; }
.detail-info .desc { font-size: 1.15rem; color: #ddd; line-height: 1.8; margin-bottom: 32px; }
.btn-back {
align-self: flex-start; padding: 10px 24px; background: #2a2a2a; color: white;
border: 1px solid #555; border-radius: 30px; cursor: pointer; font-size: 1.1rem; transition: 0.2s;
}
.btn-back:hover { background: #b98c5f; color: black; border-color: #b98c5f; }
.empty-msg { font-size: 1.2rem; color: #888; text-align: center; padding: 40px 0; font-style: italic; }
/* --- 內頁排版、歷史與表單 (History & Subpages) --- */
.main-content {
margin-top: 64px; padding: 40px 24px 60px; max-width: 1200px;
margin-left: auto; margin-right: auto; width: 100%;
background: rgba(0,0,0,0.6); backdrop-filter: blur(3px);
min-height: calc(100vh - 64px); position: relative; z-index: 1;
}
.main-content h1 {
font-size: 3.2rem; margin-bottom: 16px; font-weight: 600; letter-spacing: 4px;
border-left: 6px solid #b98c5f; padding-left: 24px; text-shadow: 2px 2px 8px black;
}
.main-content h2 { font-size: 2rem; margin: 40px 0 16px; color: #dbb07c; }
.main-content h3 { font-size: 1.5rem; margin: 24px 0 12px; color: #c0b090; }
.main-content p, .main-content li { line-height: 1.7; color: #eee; }
.main-content ul, .main-content ol { padding-left: 24px; margin: 16px 0; }
.main-content table { width: 100%; border-collapse: collapse; margin: 24px 0; background: rgba(0,0,0,0.3); }
.main-content th, .main-content td { padding: 12px; border: 1px solid #5a6a5a; text-align: left; }
.main-content th { background: #3a5a3a; }
.subhead { font-size: 1.2rem; margin-bottom: 40px; opacity: 0.9; color: #ccc; }
.timeline { position: relative; margin: 40px 0; }
.era { margin-top: 48px; margin-bottom: 16px; font-size: 2.4rem; font-weight: 700; color: #dbb07c; border-bottom: 2px solid #5a6a5a; padding-bottom: 8px; }
.era:first-of-type { margin-top: 0; }
.event-card {
background: rgba(20, 25, 20, 0.8); backdrop-filter: blur(4px);
border-left: 6px solid #b98c5f; margin-bottom: 20px; padding: 20px 28px;
border-radius: 0 16px 16px 0; box-shadow: 0 6px 14px rgba(0,0,0,0.5); transition: transform 0.2s;
}
.event-card:hover { transform: translateX(6px); background: rgba(40, 50, 40, 0.9); }
.event-year { font-size: 1.8rem; font-weight: 700; color: #e0c090; margin-bottom: 8px; display: flex; align-items: baseline; gap: 12px; }
.event-desc { font-size: 1.1rem; line-height: 1.6; color: #f0f0e0; }
.stats-grid {
display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
margin-top: 48px; background: rgba(30,35,30,0.7); padding: 28px; border-radius: 24px;
backdrop-filter: blur(4px); border: 1px solid #5a7a5a;
}
.stat-item { text-align: center; }
.stat-number { font-size: 2.8rem; font-weight: 800; color: #dbb07c; }
.stat-label { font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; color: #bbb; }
.footer-note { margin-top: 48px; text-align: right; color: #aaa; font-style: italic; border-top: 1px solid #3a4a3a; padding-top: 24px; }
.questionnaire { background: rgba(20,30,20,0.9); padding: 32px; border-radius: 24px; margin-top: 48px; border: 1px solid #6a8a6a; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; color: #ccc; }
.form-group input, .form-group select, .form-group textarea {
width: 100%; padding: 12px; background: #1a1a1a; border: 1px solid #555;
color: white; border-radius: 8px; font-size: 1rem;
}
.questionnaire button { background: #b98c5f; color: black; font-weight: bold; padding: 12px 28px; border: none; border-radius: 40px; cursor: pointer; font-size: 1.1rem; }
/* --- 地圖頁面 (Map Page) --- */
.controls-bar {
margin-top: 64px; background: rgba(20, 20, 20, 0.85); backdrop-filter: blur(10px);
padding: 12px 20px; display: flex; justify-content: space-between; align-items: center;
flex-wrap: wrap; gap: 15px; border-bottom: 1px solid #333; z-index: 100;
}
.search-box input {
padding: 10px 18px; border-radius: 25px; border: 1px solid #555;
background: #1a1a1a; color: white; width: 280px; outline: none;
font-size: 14px; transition: all 0.3s;
}
.search-box input:focus { border-color: #b0b080; box-shadow: 0 0 8px rgba(176,176,128,0.3); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-btn {
border: 1px solid #444; padding: 8px 16px; border-radius: 20px;
cursor: pointer; color: #ddd; font-weight: bold; font-size: 13px;
transition: all 0.3s; background: transparent;
}
.filter-btn:hover { transform: translateY(-2px); }
.filter-btn.active { color: white; border-color: white; }
.btn-all.active { background-color: #555; }
.btn-nb.active { background-color: var(--natural-boulder); }
.btn-ab.active { background-color: var(--artificial-boulder); }
.btn-nc.active { background-color: var(--natural-climb); }
.btn-ac.active { background-color: var(--artificial-climb); }
.container { display: flex; flex: 1; overflow: hidden; }
#map-area {
flex: 2; background-color: var(--map-bg); overflow: auto;
position: relative; display: flex; justify-content: center; align-items: center;
}
#map-inner {
position: relative; width: 1000px; height: 766px; max-width: none;
background-image: url('image/map.jpg'); background-size: cover;
box-shadow: 0 0 30px rgba(0,0,0,0.8); border-radius: 8px;
}
.map-pin {
position: absolute; width: 18px; height: 18px; border-radius: 50%;
border: 2px solid white; box-shadow: 0 0 8px rgba(0,0,0,0.8);
transform: translate(-50%, -50%); cursor: pointer; transition: all 0.2s; z-index: 10;
}
.map-pin:hover, .map-pin.highlight {
transform: translate(-50%, -50%) scale(1.6);
box-shadow: 0 0 15px rgba(255,255,255,0.5); z-index: 20;
}
#map-popup {
position: absolute; background: rgba(25, 25, 25, 0.95); backdrop-filter: blur(5px);
padding: 15px; border-radius: 12px; border: 1px solid #444;
box-shadow: 0 10px 25px rgba(0,0,0,0.8); width: 260px;
transform: translate(-50%, -120%); pointer-events: none; opacity: 0;
transition: opacity 0.3s; z-index: 30;
}
#map-popup.show { opacity: 1; pointer-events: auto; }
#map-popup::after {
content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
border-width: 10px 10px 0; border-style: solid;
border-color: rgba(25, 25, 25, 0.95) transparent transparent transparent;
}
#map-popup h3 { margin-bottom: 8px; color: white; font-size: 16px; border-bottom: 1px solid #444; padding-bottom: 5px;}
#map-popup p { font-size: 13px; margin-bottom: 5px; color: #ccc; }
#map-popup strong { color: #aaa; }
#sidebar {
flex: 1; min-width: 350px; max-width: 400px; background: rgba(15, 15, 15, 0.95);
border-left: 1px solid #333; padding: 15px; overflow-y: auto;
}
.spot-card {
background: #1e1e1e; border: 1px solid #333; border-left: 5px solid gray;
border-radius: 8px; padding: 16px; margin-bottom: 15px; cursor: pointer; transition: all 0.2s;
}
.spot-card:hover {
transform: translateY(-3px); background: #252525;
box-shadow: 0 5px 15px rgba(0,0,0,0.5); border-color: #555;
}
.spot-type {
display: inline-block; padding: 4px 10px; border-radius: 4px;
color: white; font-size: 12px; font-weight: bold; margin-bottom: 10px;
}
.spot-title { font-size: 17px; color: #fff; margin-bottom: 10px; }
.spot-info { font-size: 13px; color: #bbb; line-height: 1.6; margin-bottom: 6px; }
.spot-info strong { color: #888; }
/* --- 媒體查詢 (RWD Media Queries) --- */
@media (max-width: 768px) {
.section-content { padding: 24px; }
h2.section-title { font-size: 2rem; }
.detail-info .model { font-size: 2rem; }
.controls-bar { flex-direction: column; align-items: stretch; }
.search-box input { width: 100%; }
.filters { justify-content: center; }
.container { flex-direction: column; }
#map-area { flex: 1; min-height: 50vh; }
#sidebar { flex: 1; max-width: 100%; min-width: 100%; border-left: none; border-top: 1px solid #333; }
}
@media (max-width: 600px) {
.intro-grid { grid-template-columns: 1fr; }
.hero-img-pan { width: 60vw; }
.hero-img-hk img { width: 20vw; }
.section-title { font-size: 2.2rem; }
.main-content h1 { font-size: 2.4rem; }
.event-year { font-size: 1.5rem; flex-wrap: wrap; }
.main-content { padding: 20px 16px; }
}