/* ========== AI导航 页面专属样式 ========== */

.aidaohang-page .right-hero-bg {
    height: 420px;
    background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 18%, #ede9fe 35%, #f5f3ff 52%, #f0edff 68%, #f5f3fb 82%, #f5f6f8 100%);
}

.aidaohang-page .right-hero-overlay {
    background:
        radial-gradient(ellipse at 85% 15%, rgba(139, 92, 246, 0.22) 0%, transparent 38%),
        radial-gradient(ellipse at 18% 55%, rgba(99, 102, 241, 0.18) 0%, transparent 42%),
        radial-gradient(ellipse at 65% 90%, rgba(251, 191, 36, 0.08) 0%, transparent 48%),
        linear-gradient(to bottom,
            rgba(245, 246, 248, 0) 0%,
            rgba(245, 246, 248, 0.04) 20%,
            rgba(245, 246, 248, 0.12) 40%,
            rgba(245, 246, 248, 0.28) 55%,
            rgba(245, 246, 248, 0.5) 70%,
            rgba(245, 246, 248, 0.72) 82%,
            rgba(245, 246, 248, 0.88) 92%,
            rgba(245, 246, 248, 1) 100%
        );
}

/* 页面标题 */
.aidaohang-page .page-title {
    font-size: 30px;
}

.aidaohang-page .page-desc {
    font-size: 14px;
}

/* 搜索框样式已统一到 style.css 公共文件，此处不再覆盖 */

/* ========== 通用板块 ========== */
.nav-section {
    background: #fff;
    border-radius: 18px;
    padding: 24px 28px;
    margin-bottom: 28px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
}

.nav-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.nav-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.nav-section-title .title-icon {
    font-size: 20px;
}

.nav-section-more {
    font-size: 13px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-section-more:hover {
    color: #5558e0;
}

/* ========== 导航卡片网格 7列 ========== */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

/* 单个卡片：横向布局（左图标 + 右文字+标签） */
.nav-card {
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

/* 广告位单元：div 容器，适配 {adver()} 输出的 a>img + span.ad-tag 结构 */
.ad-item {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ad-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ad-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.ad-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* 卡片顶部：图标 + 文字 横向排列 */
.nav-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

/* 文字区域：标题 + 描述 纵向排列 */
.nav-card-body {
    flex: 1;
    min-width: 0;
}

.nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.12), 0 4px 10px rgba(0, 0, 0, 0.04);
}

/* 图标包裹容器 */
.nav-icon-wrap {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-wrap img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

/* 图标容器（无图片时的渐变背景） */
.nav-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    color: #fff;
    font-weight: 700;
}

/* 不同分类的图标渐变 */
.cat-bigmodel .nav-card-icon,
.icon-bigmodel {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.cat-image .nav-card-icon,
.icon-image {
    background: linear-gradient(135deg, #ec4899, #f472b6);
}

.cat-video .nav-card-icon,
.icon-video {
    background: linear-gradient(135deg, #f59e0b, #fb923c);
}

.cat-code .nav-card-icon,
.icon-code {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.cat-write .nav-card-icon,
.icon-write {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.cat-office .nav-card-icon,
.icon-office {
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
}

.cat-design .nav-card-icon,
.icon-design {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.cat-audio .nav-card-icon,
.icon-audio {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

.cat-search .nav-card-icon,
.icon-search {
    background: linear-gradient(135deg, #14b8a6, #2dd4bf);
}

.cat-life .nav-card-icon,
.icon-life {
    background: linear-gradient(135deg, #f43f5e, #fb7185);
}

/* 新标签 */
.nav-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 网站名称 */
.nav-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    transition: color 0.2s;
}

.nav-card:hover .nav-card-name {
    color: #6366f1;
}

/* 描述 */
.nav-card-desc {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* 标签行：3个 tag 一排显示，不换行 */
.nav-card-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow: hidden;
}

.nav-card-tags .tag {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    background: #eef2ff;
    color: #6366f1;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ========== 推荐区特殊样式 ========== */
.nav-featured .nav-grid {
    grid-template-columns: repeat(7, 1fr);
}

/* ========== 精选推荐区（筛选栏下方，全站推荐） ========== */
.featured-section {
    margin-bottom: 32px;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.featured-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.featured-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.featured-section-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.featured-section-title .featured-emoji {
    font-size: 20px;
}

.featured-section-more {
    font-size: 13px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.featured-section-more:hover {
    color: #4f46e5;
}

/* 精选推荐网格（3排自动换行） */
.featured-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 14px;
}

/* 精选推荐项：圆角卡片 + 圆形logo + 标题 */
.featured-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f3f4f6;
}

.featured-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.featured-item-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    display: block;
    border: 1px solid #f3f4f6;
}

.featured-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 16px;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

.featured-item-name {
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 80px;
}

.featured-item-cat {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 10px;
    font-weight: 600;
    color: #6366f1;
    background: rgba(255, 255, 255, 0.92);
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    white-space: nowrap;
}

/* ========== 分类板块内推荐（横向小卡片） ========== */
.cat-recommend {
    margin-bottom: 14px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.cat-recommend-label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cat-recommend-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 分类推荐项：圆形logo + 标题 */
.cat-rec-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 6px;
    background: #f9fafb;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e5e7eb;
}

.cat-rec-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cat-rec-item-logo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #f3f4f6;
}

.cat-rec-item-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

.cat-rec-item-name {
    font-size: 12px;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
}

/* ========== 栏目分类Tab ========== */
.cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #f3f4f6;
}

.cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 20px;
    background: #f5f6f8;
    border: none;
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cat-tab:hover {
    background: #eef2ff;
    color: #6366f1;
}

.cat-tab.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.cat-tab .cat-icon {
    font-size: 14px;
}

/* ========== 分类板块 ========== */
.cat-section {
    margin-bottom: 32px;
}

.cat-section:last-child {
    margin-bottom: 0;
}

.cat-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 4px;
}

.cat-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.cat-section-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.cat-section-title .cat-emoji {
    font-size: 20px;
}
.cat-section-title .cat-img {
    width: 18px;
	height: 18px;
	display: block;
	overflow: hidden;
	flex-shrink: 0;
}

.cat-section-title .cat-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* 栏目名称：加粗、深色、17px */
.cat-section-title .cat-name {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

/* 主栏目介绍（副标题）：灰色、不加粗、14px */
.cat-section-title .cat-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #9ca3af;
    line-height: 1;
}

.cat-section-desc {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    padding-left: 14px;
}

/* ========== 底部 ========== */
.nav-footer {
    text-align: center;
    padding: 24px 0 40px;
    font-size: 13px;
    color: #9ca3af;
}

.nav-footer strong {
    color: #6366f1;
    font-weight: 600;
}

/* ========== 提交网站入口板块 ========== */
.submit-section {
    margin-bottom: 28px;
}

.submit-inner {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 22px 28px;
}

.submit-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.submit-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.submit-title-bar {
    display: inline-block;
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.submit-tag {
    font-size: 11px;
    color: #6366f1;
    background: #eef2ff;
    padding: 2px 8px;
    border-radius: 4px;
    line-height: 1.4;
    font-weight: 500;
}

.submit-body {
    display: flex;
    gap: 40px;
    margin-bottom: 18px;
}

.submit-col {
    flex: 1;
    min-width: 0;
}

.submit-col-title {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e5e7eb;
}

.submit-principle,
.submit-example {
    list-style: none;
    padding: 0;
    margin: 0;
}

.submit-principle li,
.submit-example li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.7;
    padding: 3px 0;
}

.submit-principle li strong,
.submit-example li strong {
    color: #111827;
    font-weight: 600;
    flex-shrink: 0;
}

.sp-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 16px;
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 4px;
    line-height: 1;
    margin-top: 2px;
}

.sp-hint {
    font-size: 11px;
    color: #9ca3af;
    font-style: normal;
    margin-left: 4px;
    white-space: nowrap;
}

.submit-example code {
    display: inline-block;
    padding: 1px 6px;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 12px;
    color: #6366f1;
    font-family: Consolas, Monaco, monospace;
}

.submit-action {
    text-align: center;
    padding-top: 4px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 30px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.25s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}

/* ========== 广告板块 ========== */
.ad-section {
    margin-bottom: 32px;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.ad-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.ad-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.ad-section-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.ad-section-tag {
    font-size: 11px;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    line-height: 1.4;
}

.ad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

/* .ad-item / .ad-item a / .ad-item img / .ad-item:hover 统一定义在文件上方 nav-card 之后 */

/* 广告角标：用伪元素统一生成，{adver()} 输出的广告也会自动带角标 */
.ad-item::after {
    content: '广告';
    position: absolute;
    right: 6px;
    bottom: 6px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.25);
    padding: 1px 6px;
    border-radius: 3px;
    line-height: 1.4;
    pointer-events: none;
    z-index: 2;
}

/* 广告投放联系备注 */
.ad-notice {
    margin-top: 16px;
    padding: 12px 18px;
    background: #f5f6f8;
    border-radius: 10px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-notice-icon {
    font-size: 15px;
    flex-shrink: 0;
}

.ad-notice-label {
    font-weight: 700;
    color: #6366f1;
    flex-shrink: 0;
}

.ad-notice-btn {
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    padding: 2px 14px;
    border-radius: 999px;
    margin-left: 4px;
    font-size: 13px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.ad-notice-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.45);
}

/* ========== 联系站长弹窗 ========== */
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.contact-modal.show {
    display: flex;
}

.contact-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.contact-dialog {
    position: relative;
    width: 320px;
    max-width: 90vw;
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: contactPop 0.25s ease;
}

@keyframes contactPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.contact-close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 28px;
    height: 28px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 20px;
    line-height: 26px;
    color: #9ca3af;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.contact-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.contact-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 18px;
}

.contact-qr {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.contact-qr img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-wechat {
    font-size: 14px;
    color: #374151;
    margin: 0 0 6px;
}

.contact-wechat strong {
    color: #6366f1;
    font-size: 16px;
}

.contact-tip {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
    line-height: 1.5;
}

/* ========== 响应式 ========== */
@media (max-width: 1280px) {
    .nav-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1100px) {
    .nav-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .ad-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .nav-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .nav-card {
        padding: 12px 8px 10px;
    }

    .nav-card-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 10px;
    }

    .nav-icon-wrap {
        width: 38px;
        height: 38px;
    }

    .nav-icon-wrap img {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .nav-card-name {
        font-size: 12px;
    }

    .nav-card-desc {
        font-size: 10.5px;
    }
}

@media (max-width: 640px) {
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .ad-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .submit-body {
        flex-direction: column;
        gap: 16px;
    }

    .submit-inner {
        padding: 18px 16px;
    }

    .cat-tabs {
        padding: 12px;
        gap: 6px;
    }

    .cat-tab {
        padding: 6px 14px;
        font-size: 12px;
    }

    .nav-section {
        padding: 18px 16px;
    }

    .cat-section-title {
        font-size: 15px;
    }
}
