/* 简航 SimpleNav —— 样式(复刻 n.yangyq.net 的灰底白卡片风格,去 Bootstrap 依赖) */ :root { --primary: #2F6BF7; } * { box-sizing: border-box; } body { margin: 0; font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; background: #d8d9da; color: #333; overflow-x: hidden; } a { text-decoration: none; color: inherit; } .container { max-width: 1140px; margin: 50px auto 40px; padding: 0 15px; } /* ---------- 搜索 ---------- */ .s-search { position: relative; z-index: 2000; margin-bottom: 10px; } .search-type { margin-bottom: 0; } .s-engine { display: inline-block; padding: 6px 14px; margin: 0 2px 0 0; background: rgba(255,255,255,.45); border-radius: 5px 5px 0 0; cursor: pointer; font-size: 14px; line-height: 20px; transition: background .2s; } .s-engine span { color: var(--ec, #555); } .s-engine:hover { background: rgba(255,255,255,.75); } .s-engine.active { background: #fff; } #search-form { position: relative; } #search-text { width: 100%; height: 50px; line-height: 50px; text-indent: 14px; font-size: 16px; border: none; border-radius: 5px; background: #fff; outline: 0; box-shadow: 0 0.5rem 0.625rem rgba(212,212,212,.3); transition: box-shadow .3s; } #search-text:focus { box-shadow: 0 0 24px 0 rgba(50,50,50,.08); } #search button.submit { position: absolute; top: 7px; right: 7px; width: 60px; height: 36px; background: none; border: 0; border-radius: 3px; cursor: pointer; outline: none; } #search button.submit::after { content: ""; display: block; width: 16px; height: 16px; margin: 0 auto; border: 2px solid #c9c9c9; border-radius: 50%; position: relative; } #search button.submit::before { content: ""; position: absolute; right: 20px; bottom: 9px; width: 7px; height: 2px; background: #c9c9c9; transform: rotate(45deg); } #word { position: absolute; list-style: none; top: 55px; left: 0; width: 100%; margin: 0; background: #fff; border-radius: 5px; z-index: 20000; padding: 10px; box-shadow: 0 0 10px #bbb; display: none; } #word li { height: 35px; padding: 0 8px; line-height: 35px; cursor: pointer; font-size: 16px; border-radius: 5px; } #word li:hover { background: #eee; } /* ---------- 板块卡片 ---------- */ .mylist { list-style: none; margin: 16px 0; padding: 12px 20px; background: #fff; border-radius: 15px; box-shadow: 0 0.5rem 0.625rem rgba(212,212,212,.3); display: flex; flex-wrap: wrap; } .mylist > li.title { width: 100%; margin: 0 0 10px; padding: 0 0 8px 10px; height: auto; font-size: 16px; font-weight: 600; line-height: 24px; border-bottom: 1px solid #eee; position: relative; } .mylist > li.title::before { content: ""; position: absolute; left: 0; top: 3px; width: 4px; height: 18px; background: var(--primary); border-radius: 2px; } .mylist > li.site { margin: 2px; } .mylist li.site a { display: flex; flex-direction: column; align-items: center; width: 100px; padding: 10px 4px; border-radius: 10px; transition: background .2s; } .mylist li.site a:hover { background: #f0f1f2; } .mylist li.site .icon { width: 45px; height: 45px; border-radius: 10px; background: #fff; object-fit: contain; } .mylist li.site .ico-letter { width: 45px; height: 45px; border-radius: 10px; color: #fff; font-size: 20px; font-weight: 600; display: flex; align-items: center; justify-content: center; } .mylist li.site .name { width: 100%; margin-top: 6px; text-align: center; font-size: 13px; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* ---------- 合集标签页 ---------- */ .collections { margin: 16px 0; } .collections-title { font-size: 16px; font-weight: 600; padding: 0 0 8px 10px; margin: 0 0 10px; position: relative; } .collections-title::before { content: ""; position: absolute; left: 0; top: 3px; width: 4px; height: 18px; background: var(--primary); border-radius: 2px; } .tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; } .tabs .tab { border: none; background: rgba(255,255,255,.65); color: #444; cursor: pointer; padding: 7px 16px; border-radius: 18px; font-size: 14px; transition: all .2s; } .tabs .tab:hover { background: #fff; } .tabs .tab.active { background: var(--primary); color: #fff; } .tab-panel { display: none; } .tab-panel.active { display: flex; } /* ---------- 页脚 ---------- */ .foot { text-align: center; color: #8a8a8a; font-size: 12px; margin: 24px 0 0; } .foot a { color: #8a8a8a; } .foot a:hover { color: var(--primary); } /* ---------- 响应式 ---------- */ @media (max-width: 767px) { .container { margin-top: 24px; } .mylist { border-radius: 10px; padding: 10px 12px; } .mylist li.site a { width: 25%; } .mylist li.site .icon, .mylist li.site .ico-letter { width: 40px; height: 40px; } .mylist li.site .name { font-size: 12px; } }