-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
299 lines (261 loc) · 7.66 KB
/
styles.css
File metadata and controls
299 lines (261 loc) · 7.66 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
/* ==========================================================================
1. HERO AREA
========================================================================== */
.hero-wide {
position: relative;
width: 90vw;
margin-left: calc(50% - 45vw);
height: 450px;
overflow: hidden;
border-radius: 2px;
margin-bottom: 4rem;
background-color: #000;
}
.hero-bg-img {
width: 100%;
height: 100%;
object-fit: cover;
}
.hero-overlay {
position: absolute;
top: 0; left: 0;
width: 100%; height: 100%;
background: linear-gradient(75deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
}
.hero-text {
position: absolute;
top: 50%;
left: 8%;
transform: translateY(-50%);
color: white;
z-index: 10;
max-width: 600px;
}
.hero-title {
font-size: 2.8rem;
font-weight: 800;
line-height: 1.1;
margin: 1rem 0;
}
.badge-label {
text-transform: uppercase;
letter-spacing: 2px;
color: #ffc107;
font-weight: 700;
font-size: 0.8rem;
}
.btn-read {
display: inline-block;
margin-top: 1.5rem;
padding: 12px 28px;
border: 1.5px solid white;
color: white;
text-decoration: none;
font-weight: 700;
transition: 0.3s;
}
.btn-read:hover {
background: white;
color: #5F2E31;
}
/* ==========================================================================
2. LAYOUT CONTROL (把 Listing 往左拽,给右边腾位)
========================================================================== */
/* 主目录全局 CSS - 布局模块优化版 */
/* 只有非文章页才执行这个 90vw 的布局 */
body:not(.article-listing-page) #quarto-content {
max-width: 90vw !important;
margin-left: 5vw !important;
}
/* 只有非文章页才执行这个强制留白 */
body:not(.article-listing-page) .quarto-listing-container-default {
margin-right: 380px !important;
margin-left: 0 !important;
max-width: none !important;
}
/* 侧边栏:仅在非文章页绝对定位 */
body:not(.article-listing-page) .sidebar-wrapper {
position: absolute;
right: 5vw;
top: 600px;
width: 320px;
z-index: 100;
}
/* 全局标题样式排除 */
body:not(.article-listing-page) .section-title-custom {
font-weight: 800 !important;
font-size: 2rem !important;
color: #1a1a1a !important;
margin: 4rem 0 2rem 0 !important;
border-left: 8px solid #5F2E31 !important;
padding-left: 1.5rem !important;
}
/* ==========================================================================
3. LISTING POSTS (列表项细节)
========================================================================== */
/* 主目录全局 CSS - 优化版 */
/* 只有当页面 body 不包含 .article-listing-page 类时,才应用这个全局列表样式 */
body:not(.article-listing-page) .quarto-listing-container-default .quarto-post {
display: grid;
grid-template-columns: 1fr 280px;
column-gap: 3rem;
padding: 2.5rem 0;
border-bottom: 1px solid rgba(0,0,0,0.08);
}
body:not(.article-listing-page) .quarto-listing-container-default .quarto-post .title {
font-weight: 800;
font-size: 1.6rem;
color: #5F2E31;
text-decoration: none;
}
body:not(.article-listing-page) .quarto-listing-container-default .quarto-post .thumbnail {
width: 280px;
height: 180px;
object-fit: cover;
}
/* 兜底逻辑:如果某些地方必须用到 !important,也请限制在非特定页面的范围内 */
body:not(.article-listing-page) .quarto-listing-container-default .quarto-post .thumbnail img {
width: 100% !important;
height: 100% !important;
object-fit: cover !important;
}
/* ==========================================================================
4. SUBMIT MODULE (侧边栏样式)
========================================================================== */
.submit-card {
background-color: #fcfcfc;
padding: 2.5rem;
border: 1px solid #eee;
border-top: 5px solid #5F2E31;
position: sticky;
top: 100px;
}
.submit-card h3 {
font-weight: 800;
margin-bottom: 1rem;
}
.submit-benefits {
padding-left: 1.2rem;
margin: 1.5rem 0;
font-size: 0.9rem;
color: #666;
}
.btn-submit {
display: block;
text-align: center;
background-color: #5F2E31;
color: white;
padding: 14px;
text-decoration: none;
font-weight: 700;
border-radius: 2px;
}
.btn-submit:hover {
background-color: #000;
color: white;
}
/* ==========================================================================
5. RESPONSIVE (手机端自动切回单栏)
========================================================================== */
@media (max-width: 1100px) {
.sidebar-wrapper {
position: static;
width: 100%;
margin-top: 3rem;
}
.quarto-listing-container-default {
margin-right: 0 !important;
}
}
@media (max-width: 768px) {
.quarto-listing-container-default .quarto-post {
display: flex !important;
flex-direction: column !important;
}
.quarto-listing-container-default .quarto-post .thumbnail {
width: 100% !important;
order: -1;
}
}
/* ==========================================================================
nvbar STYLES FOR ARTICLE LISTING PAGE
========================================================================== */
/* ==========================================================================
Integrated Identity - SCIE(NCE) 2025 Refined (Alignment Fixed)
========================================================================== */
/* 1. 导航栏整体:保留你的压缩高度和颜色 */
.navbar {
padding: 0.5rem 2rem !important;
background-color: #5F2E31 !important;
border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
/* 新增:确保整个导航栏内部元素垂直居中 */
display: flex !important;
align-items: center !important;
}
/* 2. 标题 Logo 设计:完全保留你的样式 */
.navbar-brand {
font-family: "Inter", sans-serif !important;
font-size: 1.3rem !important;
letter-spacing: -0.01em !important;
display: flex !important;
align-items: center !important;
}
.brand-text {
color: #ffffff !important;
font-weight: 750 !important;
}
.brand-suffix {
color: rgba(255, 255, 255, 0.45) !important;
font-weight: 500 !important;
margin-left: 0.1rem;
}
/* 3. 导航项对齐修正:Articles, About 与 Submission 对齐 */
.navbar-nav {
display: flex !important;
flex-direction: row !important;
align-items: center !important; /* 核心修正:强制所有子项中轴对齐 */
}
.navbar-nav .nav-link {
font-size: 0.88rem !important;
font-weight: 500 !important;
color: rgba(255, 255, 255, 0.8) !important;
text-transform: none !important;
margin: 0 0.8rem !important;
/* 修正:取消 top padding,改用 flex 居中确保 baseline 一致 */
padding: 0 !important;
display: flex !important;
align-items: center !important;
transition: all 0.2s ease;
}
.navbar-nav .nav-link:hover {
color: #ffffff !important;
opacity: 1;
}
/* 4. Submission 按钮:保留你的极简高亮样式 */
.navbar-nav .nav-item:last-child .nav-link {
background-color: rgba(255, 255, 255, 0.08) !important;
padding: 0.4rem 1rem !important; /* 这里的 padding 会撑开背景,但不会影响文字对齐 */
border-radius: 6px !important;
color: #ffffff !important;
font-weight: 600 !important;
margin-left: 0.5rem !important;
}
.navbar-nav .nav-item:last-child .nav-link:hover {
background-color: rgba(255, 255, 255, 0.15) !important;
}
/* 5. 搜索框与工具:同步居中 */
.navbar .quarto-navigation-tool,
#quarto-search {
display: flex !important;
align-items: center !important;
margin-left: 1rem;
}
.navbar .input-group {
border-radius: 6px !important;
border: 1px solid rgba(255, 255, 255, 0.15) !important;
background: rgba(0, 0, 0, 0.1) !important;
}
/* 适配移动端 */
@media (max-width: 768px) {
.navbar-brand { font-size: 1.1rem !important; }
}