优化界面
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<!doctype html>
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
@@ -32,6 +32,8 @@
|
||||
--radius-md: 10px;
|
||||
--shadow-sm: 0 8px 20px rgba(29, 53, 116, .07);
|
||||
--shadow-md: 0 14px 30px rgba(29, 53, 116, .12);
|
||||
--page-max-width: 1480px;
|
||||
--page-section-gap: .9rem;
|
||||
}
|
||||
|
||||
html,
|
||||
@@ -49,6 +51,10 @@
|
||||
var(--bg-page);
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: var(--page-max-width);
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--brand-strong);
|
||||
text-decoration: none;
|
||||
@@ -147,18 +153,370 @@
|
||||
}
|
||||
|
||||
.page-main {
|
||||
padding: 1rem 0 1.2rem;
|
||||
padding: .85rem 0 1.1rem;
|
||||
}
|
||||
|
||||
.channel-layout {
|
||||
display: grid;
|
||||
grid-template-columns: 196px minmax(0, 1fr);
|
||||
gap: .9rem;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.channel-sidebar {
|
||||
position: sticky;
|
||||
top: .85rem;
|
||||
max-height: calc(100vh - 1.7rem);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 12px;
|
||||
background: #fff;
|
||||
box-shadow: var(--shadow-sm);
|
||||
overflow: auto;
|
||||
padding: .58rem .5rem;
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
|
||||
.channel-brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: .42rem;
|
||||
padding: .2rem .38rem .58rem;
|
||||
border-bottom: 1px solid #e6ebf5;
|
||||
margin-bottom: .42rem;
|
||||
font-family: "Outfit", "Noto Sans SC", sans-serif;
|
||||
font-size: 1.02rem;
|
||||
font-weight: 800;
|
||||
color: #1f2f53;
|
||||
}
|
||||
|
||||
.channel-brand-mark {
|
||||
width: 1.45rem;
|
||||
height: 1.45rem;
|
||||
border-radius: .45rem;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: linear-gradient(135deg, #8f8bff, #6471ff 45%, #4a58ed);
|
||||
color: #fff;
|
||||
font-size: .7rem;
|
||||
font-family: "Outfit", "Noto Sans SC", sans-serif;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.channel-links {
|
||||
display: grid;
|
||||
gap: .12rem;
|
||||
}
|
||||
|
||||
.channel-link {
|
||||
display: grid;
|
||||
grid-template-columns: 1rem minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: .44rem;
|
||||
border: 1px solid transparent;
|
||||
border-radius: .52rem;
|
||||
padding: .38rem .44rem;
|
||||
text-decoration: none;
|
||||
color: #4f5f80;
|
||||
font-size: .83rem;
|
||||
line-height: 1.15;
|
||||
transition: .16s ease;
|
||||
}
|
||||
|
||||
.channel-link span {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.channel-link i {
|
||||
color: #65789f;
|
||||
font-size: .84rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.channel-link small {
|
||||
color: #9aabc8;
|
||||
font-size: .7rem;
|
||||
}
|
||||
|
||||
.channel-link:hover,
|
||||
.channel-link.active {
|
||||
border-color: #d6def0;
|
||||
background: #f4f7ff;
|
||||
color: #243861;
|
||||
box-shadow: inset 2px 0 0 #5b6fff;
|
||||
}
|
||||
|
||||
.channel-main {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: .7rem;
|
||||
}
|
||||
|
||||
.channel-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: .65rem;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 12px;
|
||||
background: #fff;
|
||||
box-shadow: var(--shadow-sm);
|
||||
padding: .54rem .66rem;
|
||||
}
|
||||
|
||||
.channel-tabs {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: .35rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.channel-tab {
|
||||
border: 1px solid transparent;
|
||||
border-radius: 999px;
|
||||
padding: .2rem .56rem;
|
||||
color: #56698d;
|
||||
text-decoration: none;
|
||||
font-size: .79rem;
|
||||
white-space: nowrap;
|
||||
transition: .16s ease;
|
||||
}
|
||||
|
||||
.channel-tab.active,
|
||||
.channel-tab:hover {
|
||||
border-color: #d7dff1;
|
||||
background: #f4f7ff;
|
||||
color: #27406f;
|
||||
}
|
||||
|
||||
.channel-status {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: .4rem;
|
||||
color: #7486a8;
|
||||
font-size: .76rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.channel-status b {
|
||||
color: #2e4270;
|
||||
font-family: "Outfit", "Noto Sans SC", sans-serif;
|
||||
font-size: .92rem;
|
||||
}
|
||||
|
||||
.channel-mobile-nav {
|
||||
display: none;
|
||||
gap: .3rem;
|
||||
flex-wrap: wrap;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 12px;
|
||||
padding: .44rem;
|
||||
background: #fff;
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.channel-mobile-nav .channel-link {
|
||||
min-width: 150px;
|
||||
flex: 1 1 180px;
|
||||
}
|
||||
|
||||
.channel-hero {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 12px;
|
||||
background: linear-gradient(180deg, #f7f9fd 0, #f3f6fb 100%);
|
||||
box-shadow: var(--shadow-sm);
|
||||
padding: .9rem .9rem .82rem;
|
||||
}
|
||||
|
||||
.channel-chip {
|
||||
display: inline-flex;
|
||||
border: 1px solid #d8e0f0;
|
||||
border-radius: 999px;
|
||||
background: #fff;
|
||||
color: #7182a6;
|
||||
font-size: .68rem;
|
||||
font-weight: 700;
|
||||
padding: .14rem .48rem;
|
||||
margin-bottom: .2rem;
|
||||
}
|
||||
|
||||
.channel-title {
|
||||
margin: 0;
|
||||
font-family: "Outfit", "Noto Sans SC", sans-serif;
|
||||
color: #202f4f;
|
||||
font-weight: 800;
|
||||
font-size: clamp(1.45rem, 2.4vw, 2.05rem);
|
||||
letter-spacing: .01em;
|
||||
}
|
||||
|
||||
.channel-subtitle {
|
||||
margin: .28rem 0 .55rem;
|
||||
color: #5f6f8b;
|
||||
font-size: .87rem;
|
||||
}
|
||||
|
||||
.channel-search {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto auto auto auto;
|
||||
gap: .42rem;
|
||||
}
|
||||
|
||||
.channel-search input,
|
||||
.channel-search select {
|
||||
height: 2.24rem;
|
||||
border: 1px solid #d6def0;
|
||||
border-radius: 999px;
|
||||
background: #fff;
|
||||
color: #33496f;
|
||||
font-size: .83rem;
|
||||
padding: 0 .78rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.channel-search .btn {
|
||||
border-radius: 999px;
|
||||
min-width: 92px;
|
||||
height: 2.24rem;
|
||||
padding: 0 .95rem;
|
||||
font-size: .82rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.channel-kpis {
|
||||
margin-top: .56rem;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: .5rem;
|
||||
}
|
||||
|
||||
.channel-kpi {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
box-shadow: var(--shadow-sm);
|
||||
padding: .58rem .62rem;
|
||||
}
|
||||
|
||||
.channel-kpi span {
|
||||
color: var(--text-muted);
|
||||
font-size: .76rem;
|
||||
}
|
||||
|
||||
.channel-kpi b {
|
||||
display: block;
|
||||
margin-top: .14rem;
|
||||
font-family: "Outfit", "Noto Sans SC", sans-serif;
|
||||
font-size: 1.12rem;
|
||||
font-weight: 800;
|
||||
color: var(--text-main);
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.channel-body {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 320px;
|
||||
gap: var(--page-section-gap);
|
||||
}
|
||||
|
||||
.channel-panel {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 12px;
|
||||
background: #fff;
|
||||
box-shadow: var(--shadow-sm);
|
||||
padding: .8rem;
|
||||
}
|
||||
|
||||
.channel-panel-title {
|
||||
margin: 0;
|
||||
font-family: "Outfit", "Noto Sans SC", sans-serif;
|
||||
font-size: 1rem;
|
||||
font-weight: 700;
|
||||
color: #22365c;
|
||||
}
|
||||
|
||||
.channel-panel-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: .62rem;
|
||||
}
|
||||
|
||||
.channel-list {
|
||||
display: grid;
|
||||
gap: .5rem;
|
||||
}
|
||||
|
||||
.entity-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: .58rem;
|
||||
}
|
||||
|
||||
.entity-card {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
padding: .66rem .7rem;
|
||||
transition: .18s ease;
|
||||
}
|
||||
|
||||
.entity-card:hover {
|
||||
transform: translateY(-2px);
|
||||
border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
|
||||
box-shadow: 0 12px 25px rgba(36, 65, 138, .12);
|
||||
}
|
||||
|
||||
.entity-title {
|
||||
display: block;
|
||||
color: #24385f;
|
||||
text-decoration: none;
|
||||
font-weight: 700;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.entity-meta {
|
||||
margin-top: .2rem;
|
||||
color: var(--text-muted);
|
||||
font-size: .79rem;
|
||||
}
|
||||
|
||||
.entity-desc {
|
||||
margin: .42rem 0 .5rem;
|
||||
color: var(--text-muted);
|
||||
font-size: .82rem;
|
||||
}
|
||||
|
||||
.side-list-item {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
padding: .52rem .58rem;
|
||||
}
|
||||
|
||||
.side-list-item a {
|
||||
display: block;
|
||||
color: #24385f;
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.side-list-item small {
|
||||
display: block;
|
||||
margin-top: .2rem;
|
||||
color: var(--text-muted);
|
||||
font-size: .76rem;
|
||||
}
|
||||
|
||||
.module-hero {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border-radius: var(--radius-xl);
|
||||
border-radius: 12px;
|
||||
border: 1px solid var(--line-strong);
|
||||
background: linear-gradient(140deg, #f2f6ff, #ebf2ff 58%, #f6f3ff);
|
||||
box-shadow: var(--shadow-md);
|
||||
padding: 1.2rem 1.15rem;
|
||||
margin-bottom: 1rem;
|
||||
padding: 1rem .95rem;
|
||||
margin-bottom: var(--page-section-gap);
|
||||
}
|
||||
|
||||
.module-hero::after {
|
||||
@@ -208,8 +566,8 @@
|
||||
.portal-grid,
|
||||
.module-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 300px;
|
||||
gap: 1rem;
|
||||
grid-template-columns: minmax(0, 1fr) 320px;
|
||||
gap: var(--page-section-gap);
|
||||
}
|
||||
|
||||
.portal-card,
|
||||
@@ -217,14 +575,14 @@
|
||||
.block-card {
|
||||
background: var(--bg-surface);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-xl);
|
||||
border-radius: 12px;
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.entry-item {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: .9rem;
|
||||
border-radius: 10px;
|
||||
padding: .8rem;
|
||||
background: #fff;
|
||||
transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
|
||||
}
|
||||
@@ -480,6 +838,48 @@
|
||||
}
|
||||
|
||||
@media (max-width: 991.98px) {
|
||||
.channel-layout {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.channel-sidebar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.channel-mobile-nav {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.channel-head {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.channel-status {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.channel-body {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.channel-kpis {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.entity-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.channel-search {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.channel-search .btn {
|
||||
width: 100%;
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.portal-grid,
|
||||
.module-grid {
|
||||
grid-template-columns: 1fr;
|
||||
@@ -493,11 +893,23 @@
|
||||
}
|
||||
|
||||
@media (max-width: 575.98px) {
|
||||
.channel-kpis {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.channel-search {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.channel-mobile-nav .channel-link {
|
||||
flex: 1 1 100%;
|
||||
}
|
||||
|
||||
.module-hero,
|
||||
.portal-card,
|
||||
.surface-card,
|
||||
.block-card {
|
||||
border-radius: 14px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.module-hero {
|
||||
@@ -530,41 +942,6 @@
|
||||
<body class="@yield('page_class', 'page-home')">
|
||||
<a class="skip-link" href="#main-content">跳到主内容</a>
|
||||
|
||||
<header class="site-header">
|
||||
<div class="container py-2 d-flex align-items-center justify-content-between gap-2">
|
||||
<a class="brand-link" href="{{ route('home') }}">
|
||||
<span class="brand-mark">AI</span>
|
||||
<span>AIWeb</span>
|
||||
</a>
|
||||
|
||||
<nav class="site-nav d-none d-md-flex">
|
||||
<a class="site-nav-link @if(request()->routeIs('home')) active @endif" href="{{ route('home') }}" @if(request()->routeIs('home')) aria-current="page" @endif>首页</a>
|
||||
<a class="site-nav-link @if(request()->routeIs('tools.*')) active @endif" href="{{ route('tools.index') }}" @if(request()->routeIs('tools.*')) aria-current="page" @endif>工具导航</a>
|
||||
<a class="site-nav-link @if(request()->routeIs('models.*')) active @endif" href="{{ route('models.index') }}" @if(request()->routeIs('models.*')) aria-current="page" @endif>模型推荐</a>
|
||||
<a class="site-nav-link @if(request()->routeIs('news.*')) active @endif" href="{{ route('news.index') }}" @if(request()->routeIs('news.*')) aria-current="page" @endif>资讯文章</a>
|
||||
<a class="site-nav-link @if(request()->routeIs('guides.*')) active @endif" href="{{ route('guides.index') }}" @if(request()->routeIs('guides.*')) aria-current="page" @endif>教程学习</a>
|
||||
</nav>
|
||||
|
||||
<div class="d-flex align-items-center gap-2">
|
||||
<a class="admin-entry d-none d-md-inline-flex" href="{{ route('admin.dashboard') }}">后台管理</a>
|
||||
<button class="navbar-toggler d-md-none" type="button" data-bs-toggle="collapse" data-bs-target="#mobileNav" aria-controls="mobileNav" aria-expanded="false" aria-label="切换导航">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="collapse d-md-none mobile-nav" id="mobileNav">
|
||||
<div class="container py-2 d-flex flex-column gap-1">
|
||||
<a class="site-nav-link @if(request()->routeIs('home')) active @endif" href="{{ route('home') }}" @if(request()->routeIs('home')) aria-current="page" @endif>首页</a>
|
||||
<a class="site-nav-link @if(request()->routeIs('tools.*')) active @endif" href="{{ route('tools.index') }}" @if(request()->routeIs('tools.*')) aria-current="page" @endif>工具导航</a>
|
||||
<a class="site-nav-link @if(request()->routeIs('models.*')) active @endif" href="{{ route('models.index') }}" @if(request()->routeIs('models.*')) aria-current="page" @endif>模型推荐</a>
|
||||
<a class="site-nav-link @if(request()->routeIs('news.*')) active @endif" href="{{ route('news.index') }}" @if(request()->routeIs('news.*')) aria-current="page" @endif>资讯文章</a>
|
||||
<a class="site-nav-link @if(request()->routeIs('guides.*')) active @endif" href="{{ route('guides.index') }}" @if(request()->routeIs('guides.*')) aria-current="page" @endif>教程学习</a>
|
||||
<a class="site-nav-link" href="{{ route('admin.dashboard') }}">后台管理</a>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main id="main-content" class="page-main" tabindex="-1">
|
||||
<div class="container">
|
||||
@yield('content')
|
||||
@@ -573,7 +950,7 @@
|
||||
|
||||
<footer class="footer-shell py-4 mt-3">
|
||||
<div class="container d-flex flex-column flex-lg-row justify-content-between gap-2">
|
||||
<div>© {{ date('Y') }} AIWeb · AI聚合导航 · 模型推荐 · 教程学习</div>
|
||||
<div>漏 {{ date('Y') }} AIWeb 路 AI鑱氬悎瀵艰埅 路 妯″瀷鎺ㄨ崘 路 鏁欑▼瀛︿範</div>
|
||||
<div>
|
||||
<a class="text-decoration-none me-3" href="{{ route('seo.sitemap') }}">Sitemap</a>
|
||||
<a class="text-decoration-none" href="{{ route('seo.robots') }}">Robots</a>
|
||||
@@ -585,3 +962,6 @@
|
||||
@yield('scripts')
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user