Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
318 lines (281 loc) · 8.3 KB
/
Copy pathstyle.css
File metadata and controls
318 lines (281 loc) · 8.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
:root {
--bg: #f6f5f2;
--surface: #ffffff;
--text: #1d1d1b;
--muted: #6b6a65;
--line: #e4e2dc;
--accent: #e8590c;
--accent-soft: #fff0e6;
--good: #1f7a3d;
--good-soft: #e6f4ea;
--warn: #9a5b00;
--warn-soft: #fff6dc;
--bad: #b42318;
--bad-soft: #fdecea;
--radius: 12px;
font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #161614;
--surface: #211f1d;
--text: #f1efea;
--muted: #a3a09a;
--line: #34322e;
--accent: #ff8a3d;
--accent-soft: #3a2416;
--good: #6fd08f;
--good-soft: #17301f;
--warn: #f2c14e;
--warn-soft: #352b12;
--bad: #ff8a80;
--bad-soft: #3a1b18;
}
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
margin: 0;
background: var(--bg);
color: var(--text);
line-height: 1.5;
-webkit-text-size-adjust: 100%;
}
.wrap {
max-width: 760px;
margin: 0 auto;
padding: 20px 16px 48px;
}
h1 { font-size: 1.4rem; margin: 0; letter-spacing: .01em; }
h2 { font-size: 1.05rem; margin: 28px 0 10px; }
.top {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
}
.updated { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.btn {
flex: none;
font: inherit;
font-size: .9rem;
padding: 8px 14px;
border: 1px solid var(--line);
border-radius: 999px;
background: var(--surface);
color: var(--text);
cursor: pointer;
}
.btn:hover { border-color: var(--accent); }
.btn:disabled { opacity: .6; cursor: progress; }
.notice {
margin-top: 16px;
padding: 14px 16px;
border-radius: var(--radius);
background: var(--warn-soft);
color: var(--text);
border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
font-size: .95rem;
}
.notice.error { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.notice strong { display: block; margin-bottom: 4px; }
.notice ol { margin: 8px 0 0; padding-left: 1.3em; }
.notice a { color: var(--accent); }
.stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
margin-top: 18px;
}
.stat {
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 12px;
display: flex;
flex-direction: column;
}
.stat-num { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: .8rem; }
.stat-hot .stat-num { color: var(--accent); }
.controls {
display: flex;
gap: 8px;
margin-top: 18px;
}
.controls input, .controls select {
font: inherit;
font-size: 16px; /* 避免 iOS 自動放大 */
padding: 8px 10px;
border: 1px solid var(--line);
border-radius: 10px;
background: var(--surface);
color: var(--text);
min-width: 0;
}
.controls input { flex: 1; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.item a {
display: grid;
grid-template-columns: 76px 1fr;
gap: 12px;
padding: 12px;
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--radius);
color: inherit;
text-decoration: none;
}
.item a:hover { border-color: var(--accent); }
.item.deal a { border-left: 4px solid var(--accent); }
.thumb {
width: 76px;
height: 76px;
border-radius: 8px;
object-fit: cover;
background: var(--line);
}
.body { min-width: 0; }
.title {
margin: 0;
font-size: .95rem;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.meta { margin: 2px 0 0; color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price-row {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 4px 10px;
margin-top: 6px;
}
.price { font-size: 1.15rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.face { color: var(--muted); font-size: .85rem; }
.badge {
display: inline-block;
font-size: .78rem;
font-weight: 600;
padding: 1px 8px;
border-radius: 999px;
background: var(--accent-soft);
color: var(--accent);
}
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.new { background: var(--bad); color: #fff; }
.note { margin: 4px 0 0; font-size: .8rem; color: var(--muted); }
.warn { margin: 6px 0 0; font-size: .8rem; color: var(--bad); }
.empty { color: var(--muted); padding: 16px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); margin: 0; }
details summary { cursor: pointer; font-weight: 600; margin: 28px 0 10px; }
details[open] summary { margin-bottom: 10px; }
.hint { margin: -6px 0 10px; color: var(--muted); font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
padding: 7px 14px;
border-radius: 999px;
border: 1px solid var(--line);
background: var(--surface);
color: var(--text);
text-decoration: none;
font-size: .9rem;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.foot { margin-top: 36px; color: var(--muted); font-size: .8rem; }
.foot p { margin: 4px 0; }
/* ── 分頁切換 ── */
.tabs {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
margin-bottom: 20px;
}
.tab {
font: inherit;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 2px;
padding: 16px;
min-height: 76px;
border: 2px solid var(--line);
border-radius: var(--radius);
background: var(--surface);
color: var(--text);
cursor: pointer;
text-align: left;
}
.tab:hover { border-color: var(--accent); }
.tab[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); }
.tab-title { font-size: 1.15rem; font-weight: 700; }
.tab[aria-selected="true"] .tab-title { color: var(--accent); }
.tab-sub { font-size: .8rem; color: var(--muted); }
/* ── 通關查詢 ── */
.card {
margin-top: 18px;
padding: 16px;
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--radius);
}
.card h2 { margin: 0 0 10px; }
.card .hint { margin: 10px 0 0; }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
.row input { flex: 1; min-width: 0; }
.card input, .track-form input {
font: inherit;
font-size: 16px; /* 避免 iOS 自動放大 */
padding: 10px 12px;
border: 1px solid var(--line);
border-radius: 10px;
background: var(--bg);
color: var(--text);
width: 100%;
}
.track-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.track-form label { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
.track-form .row { grid-column: 1 / -1; }
.track-form .row .btn { flex: 1; padding: 12px 14px; font-size: 1rem; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.05); }
.msg { margin: 6px 0 0; white-space: pre-wrap; font-size: .9rem; }
.result { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.result table { width: 100%; border-collapse: collapse; font-size: .8rem; margin-top: 8px; display: block; overflow-x: auto; }
.result td { border-bottom: 1px solid var(--line); padding: 4px 6px; white-space: nowrap; }
.track-item {
padding: 12px;
background: var(--surface);
border: 1px solid var(--line);
border-left: 4px solid var(--accent);
border-radius: var(--radius);
}
.track-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.track-head .title { font-weight: 700; }
.btn.small { padding: 4px 10px; font-size: .8rem; }
.info { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0 0 12px; font-size: .85rem; }
.info dt { color: var(--muted); }
.info dd { margin: 0; overflow-wrap: anywhere; }
.ok { color: var(--good); }
.bad { color: var(--bad); }
.log-box summary { cursor: pointer; font-weight: 600; margin: 24px 0 10px; }
.log {
margin: 0;
padding: 12px;
max-height: 360px;
overflow: auto;
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--radius);
font-size: .75rem;
line-height: 1.45;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
@media (max-width: 420px) {
.tab { padding: 12px; min-height: 68px; }
.tab-title { font-size: 1.05rem; }
.stat-num { font-size: 1.25rem; }
.item a { grid-template-columns: 64px 1fr; gap: 10px; }
.thumb { width: 64px; height: 64px; }
}