2026-09-28 16:43:10 +08:00
|
|
|
/* 简航 SimpleNav —— 前台样式
|
|
|
|
|
在 n.yangyq.net「浅灰底 + 白卡片」基础上做了现代化处理:
|
|
|
|
|
圆角更大、阴影分层、悬停微动效、顶部品牌区与胶囊式搜索引擎切换。 */
|
|
|
|
|
:root {
|
|
|
|
|
--primary: #2F6BF7;
|
|
|
|
|
--primary-dark: #2456cc;
|
|
|
|
|
--primary-soft: #eef3ff;
|
|
|
|
|
--bg-1: #f4f6fa;
|
|
|
|
|
--bg-2: #e8ecf4;
|
|
|
|
|
--card: #ffffff;
|
|
|
|
|
--text: #22262b;
|
|
|
|
|
--muted: #7b8794;
|
|
|
|
|
--line: #eaedf3;
|
|
|
|
|
--radius-lg: 18px;
|
|
|
|
|
--radius: 12px;
|
|
|
|
|
/* 版心:只推一次 —— 顶栏与正文共用同一个左右内边距,两边算出来严格相等 */
|
|
|
|
|
--wrap: 1140px;
|
|
|
|
|
--gutter: 16px;
|
|
|
|
|
--pad-x: max(var(--gutter), calc((100% - var(--wrap)) / 2));
|
|
|
|
|
--shadow-sm: 0 1px 2px rgba(23, 43, 77, .05), 0 4px 12px rgba(23, 43, 77, .05);
|
|
|
|
|
--shadow: 0 2px 4px rgba(23, 43, 77, .04), 0 10px 30px rgba(23, 43, 77, .08);
|
|
|
|
|
}
|
2026-09-28 15:48:35 +08:00
|
|
|
* { box-sizing: border-box; }
|
2026-09-28 16:43:10 +08:00
|
|
|
html { -webkit-text-size-adjust: 100%; }
|
2026-09-28 15:48:35 +08:00
|
|
|
body {
|
|
|
|
|
margin: 0;
|
2026-09-28 16:43:10 +08:00
|
|
|
min-height: 100vh;
|
2026-09-28 15:48:35 +08:00
|
|
|
font-size: 14px;
|
|
|
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
|
2026-09-28 16:43:10 +08:00
|
|
|
color: var(--text);
|
|
|
|
|
background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%) fixed;
|
2026-09-28 15:48:35 +08:00
|
|
|
overflow-x: hidden;
|
2026-09-28 16:43:10 +08:00
|
|
|
-webkit-font-smoothing: antialiased;
|
2026-09-28 15:48:35 +08:00
|
|
|
}
|
|
|
|
|
a { text-decoration: none; color: inherit; }
|
2026-09-28 16:43:10 +08:00
|
|
|
.container { padding: 0 var(--pad-x); margin: 0 0 40px; }
|
|
|
|
|
|
|
|
|
|
/* ---------- 顶部品牌区 ---------- */
|
|
|
|
|
.hero { text-align: center; padding: 52px 0 22px; }
|
|
|
|
|
.hero .logo {
|
|
|
|
|
display: block; width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 18px;
|
|
|
|
|
box-shadow: 0 8px 22px rgba(47, 107, 247, .28);
|
|
|
|
|
}
|
|
|
|
|
.hero h1 { margin: 0; font-size: 25px; font-weight: 600; letter-spacing: .5px; }
|
|
|
|
|
.hero p { margin: 7px 0 0; font-size: 13px; color: var(--muted); }
|
2026-09-28 15:48:35 +08:00
|
|
|
|
|
|
|
|
/* ---------- 搜索 ---------- */
|
2026-09-28 16:43:10 +08:00
|
|
|
.s-search { position: relative; z-index: 2000; max-width: 760px; margin: 0 auto 6px; }
|
|
|
|
|
.search-type { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; }
|
2026-09-28 15:48:35 +08:00
|
|
|
.s-engine {
|
2026-09-28 16:43:10 +08:00
|
|
|
display: inline-block; padding: 6px 16px; border-radius: 999px; cursor: pointer;
|
|
|
|
|
background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9);
|
|
|
|
|
font-size: 14px; line-height: 20px; color: #4a5568;
|
|
|
|
|
transition: transform .18s, box-shadow .18s, background .18s, color .18s;
|
|
|
|
|
user-select: none;
|
2026-09-28 15:48:35 +08:00
|
|
|
}
|
|
|
|
|
.s-engine span { color: var(--ec, #555); }
|
2026-09-28 16:43:10 +08:00
|
|
|
.s-engine:hover { background: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
|
|
|
|
|
.s-engine.active {
|
|
|
|
|
background: var(--ec, var(--primary)); border-color: var(--ec, var(--primary));
|
|
|
|
|
box-shadow: 0 6px 16px rgba(47, 107, 247, .26);
|
|
|
|
|
}
|
|
|
|
|
.s-engine.active span { color: #fff; }
|
|
|
|
|
|
2026-09-28 15:48:35 +08:00
|
|
|
#search-form { position: relative; }
|
|
|
|
|
#search-text {
|
2026-09-28 16:43:10 +08:00
|
|
|
width: 100%; height: 56px; line-height: 56px; text-indent: 22px; padding-right: 64px;
|
|
|
|
|
font-size: 16px; border: 2px solid transparent; border-radius: 28px; background: #fff;
|
|
|
|
|
color: var(--text); outline: 0; box-shadow: var(--shadow);
|
|
|
|
|
transition: border-color .2s, box-shadow .25s;
|
|
|
|
|
}
|
|
|
|
|
#search-text::placeholder { color: #a9b3c0; }
|
|
|
|
|
#search-text:focus {
|
|
|
|
|
border-color: var(--primary);
|
|
|
|
|
box-shadow: 0 0 0 5px rgba(47, 107, 247, .12), var(--shadow);
|
2026-09-28 15:48:35 +08:00
|
|
|
}
|
|
|
|
|
#search button.submit {
|
2026-09-28 16:43:10 +08:00
|
|
|
position: absolute; top: 8px; right: 8px; width: 40px; height: 40px;
|
|
|
|
|
display: flex; align-items: center; justify-content: center;
|
|
|
|
|
border: 0; border-radius: 50%; background: var(--primary); color: #fff;
|
|
|
|
|
cursor: pointer; outline: none; transition: background .2s, transform .2s;
|
2026-09-28 15:48:35 +08:00
|
|
|
}
|
2026-09-28 16:43:10 +08:00
|
|
|
#search button.submit:hover { background: var(--primary-dark); transform: scale(1.05); }
|
|
|
|
|
#search button.submit:active { transform: scale(.96); }
|
|
|
|
|
|
2026-09-28 15:48:35 +08:00
|
|
|
#word {
|
2026-09-28 16:43:10 +08:00
|
|
|
position: absolute; list-style: none; top: 64px; left: 0; width: 100%; margin: 0;
|
|
|
|
|
background: #fff; border-radius: 16px; z-index: 20000; padding: 8px;
|
|
|
|
|
box-shadow: 0 16px 44px rgba(23, 43, 77, .16); display: none;
|
|
|
|
|
max-height: 336px; overflow-y: auto;
|
2026-09-28 15:48:35 +08:00
|
|
|
}
|
2026-09-28 16:43:10 +08:00
|
|
|
#word li {
|
|
|
|
|
padding: 0 14px; height: 38px; line-height: 38px; cursor: pointer;
|
|
|
|
|
font-size: 15px; border-radius: 10px; color: #3d4753;
|
|
|
|
|
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
|
|
|
}
|
|
|
|
|
#word li:hover { background: var(--primary-soft); color: var(--primary); }
|
2026-09-28 15:48:35 +08:00
|
|
|
|
|
|
|
|
/* ---------- 板块卡片 ---------- */
|
|
|
|
|
.mylist {
|
2026-09-28 16:43:10 +08:00
|
|
|
list-style: none; margin: 18px 0; padding: 16px 20px 14px;
|
|
|
|
|
background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow);
|
|
|
|
|
display: flex; flex-wrap: wrap; transition: box-shadow .25s;
|
2026-09-28 15:48:35 +08:00
|
|
|
}
|
2026-09-28 16:43:10 +08:00
|
|
|
.mylist:hover { box-shadow: 0 4px 8px rgba(23, 43, 77, .05), 0 14px 38px rgba(23, 43, 77, .1); }
|
2026-09-28 15:48:35 +08:00
|
|
|
.mylist > li.title {
|
2026-09-28 16:43:10 +08:00
|
|
|
width: 100%; margin: 0 0 12px; padding: 0 0 10px 14px; height: auto;
|
|
|
|
|
font-size: 16px; font-weight: 600; line-height: 22px; color: #1f2733;
|
|
|
|
|
border-bottom: 1px solid var(--line); position: relative;
|
2026-09-28 15:48:35 +08:00
|
|
|
}
|
|
|
|
|
.mylist > li.title::before {
|
2026-09-28 16:43:10 +08:00
|
|
|
content: ""; position: absolute; left: 0; top: 3px; width: 4px; height: 17px;
|
|
|
|
|
background: linear-gradient(180deg, var(--primary), #6f9bff);
|
|
|
|
|
border-radius: 2px;
|
2026-09-28 15:48:35 +08:00
|
|
|
}
|
|
|
|
|
.mylist > li.site { margin: 2px; }
|
|
|
|
|
.mylist li.site a {
|
2026-09-28 16:43:10 +08:00
|
|
|
display: flex; flex-direction: column; align-items: center; width: 104px;
|
|
|
|
|
padding: 12px 6px 10px; border-radius: 14px;
|
|
|
|
|
transition: background .2s, transform .2s;
|
2026-09-28 15:48:35 +08:00
|
|
|
}
|
2026-09-28 16:43:10 +08:00
|
|
|
.mylist li.site a:hover { background: linear-gradient(180deg, #f7f9ff, var(--primary-soft)); transform: translateY(-3px); }
|
|
|
|
|
.mylist li.site .icon {
|
|
|
|
|
width: 46px; height: 46px; border-radius: 12px; background: #fff;
|
|
|
|
|
object-fit: contain; box-shadow: 0 2px 8px rgba(23, 43, 77, .09);
|
|
|
|
|
transition: transform .2s;
|
|
|
|
|
}
|
|
|
|
|
.mylist li.site a:hover .icon { transform: scale(1.07); }
|
2026-09-28 15:48:35 +08:00
|
|
|
.mylist li.site .ico-letter {
|
2026-09-28 16:43:10 +08:00
|
|
|
width: 46px; height: 46px; border-radius: 12px; color: #fff; font-size: 20px; font-weight: 600;
|
2026-09-28 15:48:35 +08:00
|
|
|
display: flex; align-items: center; justify-content: center;
|
2026-09-28 16:43:10 +08:00
|
|
|
box-shadow: 0 2px 8px rgba(23, 43, 77, .14); transition: transform .2s;
|
2026-09-28 15:48:35 +08:00
|
|
|
}
|
2026-09-28 16:43:10 +08:00
|
|
|
.mylist li.site a:hover .ico-letter { transform: scale(1.07); }
|
2026-09-28 15:48:35 +08:00
|
|
|
.mylist li.site .name {
|
2026-09-28 16:43:10 +08:00
|
|
|
width: 100%; margin-top: 8px; text-align: center; font-size: 13px; color: #5b6673;
|
2026-09-28 15:48:35 +08:00
|
|
|
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
2026-09-28 16:43:10 +08:00
|
|
|
transition: color .2s;
|
2026-09-28 15:48:35 +08:00
|
|
|
}
|
2026-09-28 16:43:10 +08:00
|
|
|
.mylist li.site a:hover .name { color: var(--primary); }
|
2026-09-28 15:48:35 +08:00
|
|
|
|
|
|
|
|
/* ---------- 合集标签页 ---------- */
|
2026-09-28 16:43:10 +08:00
|
|
|
.collections { margin: 24px 0 0; }
|
2026-09-28 15:48:35 +08:00
|
|
|
.collections-title {
|
2026-09-28 16:43:10 +08:00
|
|
|
font-size: 16px; font-weight: 600; color: #1f2733;
|
|
|
|
|
padding: 0 0 10px 14px; margin: 0 0 14px; position: relative;
|
2026-09-28 15:48:35 +08:00
|
|
|
}
|
|
|
|
|
.collections-title::before {
|
2026-09-28 16:43:10 +08:00
|
|
|
content: ""; position: absolute; left: 0; top: 3px; width: 4px; height: 17px;
|
|
|
|
|
background: linear-gradient(180deg, var(--primary), #6f9bff); border-radius: 2px;
|
2026-09-28 15:48:35 +08:00
|
|
|
}
|
2026-09-28 16:43:10 +08:00
|
|
|
.tabs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; }
|
2026-09-28 15:48:35 +08:00
|
|
|
.tabs .tab {
|
2026-09-28 16:43:10 +08:00
|
|
|
border: 1px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .72);
|
|
|
|
|
color: #4a5568; cursor: pointer; padding: 8px 18px; border-radius: 999px;
|
|
|
|
|
font-size: 14px; transition: all .18s;
|
|
|
|
|
}
|
|
|
|
|
.tabs .tab:hover { background: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
|
|
|
|
|
.tabs .tab.active {
|
|
|
|
|
background: var(--primary); border-color: var(--primary); color: #fff;
|
|
|
|
|
box-shadow: 0 6px 16px rgba(47, 107, 247, .26);
|
2026-09-28 15:48:35 +08:00
|
|
|
}
|
|
|
|
|
.tab-panel { display: none; }
|
2026-09-28 16:43:10 +08:00
|
|
|
.tab-panel.active { display: flex; animation: fadeUp .28s ease both; }
|
|
|
|
|
@keyframes fadeUp {
|
|
|
|
|
from { opacity: 0; transform: translateY(8px); }
|
|
|
|
|
to { opacity: 1; transform: none; }
|
|
|
|
|
}
|
2026-09-28 15:48:35 +08:00
|
|
|
|
|
|
|
|
/* ---------- 页脚 ---------- */
|
2026-09-28 16:43:10 +08:00
|
|
|
.foot {
|
|
|
|
|
text-align: center; color: #97a1ae; font-size: 12px; margin: 30px 0 0;
|
|
|
|
|
padding-top: 18px; border-top: 1px solid rgba(23, 43, 77, .06);
|
|
|
|
|
}
|
|
|
|
|
.foot a { color: #97a1ae; transition: color .2s; }
|
2026-09-28 15:48:35 +08:00
|
|
|
.foot a:hover { color: var(--primary); }
|
|
|
|
|
|
|
|
|
|
/* ---------- 响应式 ---------- */
|
|
|
|
|
@media (max-width: 767px) {
|
2026-09-28 16:43:10 +08:00
|
|
|
.hero { padding: 28px 0 16px; }
|
|
|
|
|
.hero .logo { width: 52px; height: 52px; border-radius: 15px; }
|
|
|
|
|
.hero h1 { font-size: 21px; }
|
|
|
|
|
.s-search { margin-bottom: 2px; }
|
|
|
|
|
.search-type { gap: 6px; margin-bottom: 10px; }
|
|
|
|
|
.s-engine { padding: 5px 13px; font-size: 13px; }
|
|
|
|
|
#search-text { height: 50px; line-height: 50px; font-size: 15px; text-indent: 18px; }
|
|
|
|
|
#word { top: 58px; }
|
|
|
|
|
.mylist { border-radius: 14px; padding: 12px 12px 10px; }
|
|
|
|
|
.mylist li.site a { width: 25%; padding: 10px 2px 8px; }
|
|
|
|
|
.mylist li.site .icon, .mylist li.site .ico-letter { width: 42px; height: 42px; }
|
2026-09-28 15:48:35 +08:00
|
|
|
.mylist li.site .name { font-size: 12px; }
|
|
|
|
|
}
|