/* AI 工具导航 V1.2 */
.ainav-page {
    /*max-width: 1200px;*/
    margin: 0 auto;
    padding: 0 16px 40px;
    box-sizing: border-box;
}

.ainav-breadcrumb {
    font-size: 13px;
    color: #9ca3af;
    padding: 14px 0 8px;
}
.ainav-breadcrumb a { color: #6b7280; }
.ainav-breadcrumb a:hover { color: #1e90ff; }
.ainav-breadcrumb span { margin: 0 6px; }

.ainav-hero {
    padding: 8px 0 20px;
}
.ainav-hero h1 {
    margin: 0 0 8px;
    font-size: 26px;
    color: #111827;
}
.ainav-hero p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.65;
    max-width: 720px;
}
.ainav-hero a { color: #1e90ff; }
.ainav-hero-sm h1 { font-size: 22px; }

.ainav-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.ainav-side {
    width: 200px;
    flex-shrink: 0;
    position: sticky;
    top: 12px;
}
.ainav-side-block {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}
.ainav-side-title {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 8px;
}
.ainav-cat-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ainav-cat-nav a {
    font-size: 13px;
    color: #374151;
    padding: 6px 8px;
    border-radius: 8px;
}
.ainav-cat-nav a:hover {
    background: rgba(30, 144, 255, 0.08);
    color: #1e90ff;
}
.ainav-hot-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.ainav-hot-list li { margin-bottom: 6px; }
.ainav-hot-list a {
    font-size: 13px;
    color: #374151;
}
.ainav-hot-list a:hover { color: #1e90ff; }

.ainav-main { flex: 1; min-width: 0; }

.ainav-section {
    margin-bottom: 28px;
}
.ainav-section-head {
    margin-bottom: 12px;
}
.ainav-section-head h2 {
    margin: 0 0 4px;
    font-size: 18px;
}
.ainav-section-head h2 a {
    color: #111827;
}
.ainav-section-head h2 a:hover { color: #1e90ff; }
.ainav-section-head p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.ainav-grid,
.ainav-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.ainav-grid-page {
    margin-bottom: 24px;
}

.ainav-grid-block {
    margin-bottom: 8px;
}
.ainav-grid-block:last-child {
    margin-bottom: 0;
}
.ainav-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    margin: 0;
    padding: 10px 0 2px;
    font-size: 13px;
    color: #6b7280;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease;
}
.ainav-more-btn:hover {
    color: #1e90ff;
}
.ainav-more-chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.ainav-grid-block.is-expanded .ainav-more-chevron {
    transform: rotate(180deg);
}

.ainav-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    transition: box-shadow 0.15s, border-color 0.15s;
    color: inherit;
}
.ainav-card:hover {
    border-color: rgba(30, 144, 255, 0.25);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}
.ainav-card.ainav-card--folded {
    display: none;
}
.ainav-card.ainav-card--geo-hidden {
    display: none !important;
}
.ainav-detail > .ainav-geo-notice {
    margin: 16px 24px 0;
}
.ainav-geo-notice {
    margin: 0 0 16px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.6;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
}
.ainav-card-goto {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.ainav-card-goto::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: hsla(var(--brand-hue, 210), 62%, 45%, 0);
    transition: background 0.15s ease;
    pointer-events: none;
}
.ainav-card-goto:hover::after,
.ainav-card-goto:focus-visible::after {
    background: hsla(var(--brand-hue, 210), 62%, 42%, 0.82);
}
.ainav-card-goto-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
    z-index: 1;
}
.ainav-card-goto:hover .ainav-card-goto-label,
.ainav-card-goto:focus-visible .ainav-card-goto-label {
    opacity: 1;
}
.ainav-card-link {
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.ainav-card-logo {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ainav-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.ainav-card-logo img.is-broken {
    display: none;
}
.ainav-card-letter {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--brand-hue, 210), 62%, 52%);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}
.ainav-card-letter-fallback {
    display: none;
}
.ainav-card-letter.lg {
    font-size: 28px;
    border-radius: 14px;
    width: 64px;
    height: 64px;
}
.ainav-detail-logo .ainav-card-letter-fallback {
    display: none;
}
.ainav-card-body { min-width: 0; }
.ainav-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.ainav-heat-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(30, 144, 255, 0.1);
    color: #1e90ff;
    line-height: 1.4;
}
.ainav-heat-badge[hidden] {
    display: none !important;
}
.ainav-card-summary {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ainav-tag {
    display: inline-block;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    margin-left: 6px;
    font-weight: 400;
    vertical-align: middle;
}

.ainav-geo {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.ainav-geo h2 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #111827;
}
.ainav-geo p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
}
.ainav-geo a { color: #1e90ff; }

/* Detail */
.ainav-detail {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0;
    margin: 0 auto 24px;
    max-width: 960px;
    overflow: hidden;
}
.ainav-detail-hero {
    padding: 24px 24px 20px;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.ainav-detail-head {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}
.ainav-detail-logo {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
}
.ainav-detail-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.ainav-detail-meta {
    flex: 1;
    min-width: 0;
}
.ainav-detail-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 8px;
}
.ainav-detail-meta h1 {
    margin: 0;
    font-size: 26px;
    color: #111827;
    line-height: 1.25;
}
.ainav-detail-summary {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.65;
    margin: 0 0 16px;
    max-width: 640px;
}
.ainav-detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
}
.ainav-detail-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    font-size: 12px;
    line-height: 1.4;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 999px;
}
.ainav-detail-chip-cat {
    color: #1e40af;
    background: #eff6ff;
    border-color: #dbeafe;
    font-weight: 500;
}
.ainav-detail-chip-heat {
    color: #1e40af;
    background: #eff6ff;
    border-color: #dbeafe;
    font-weight: 600;
}
.ainav-detail-chip-muted {
    color: #6b7280;
    background: #f9fafb;
}
.ainav-detail-chip-warn {
    color: #b45309;
    background: #fffbeb;
    border-color: #fde68a;
}
.ainav-detail-body {
    padding: 24px;
}
.ainav-detail-content {
    font-size: 14px;
    color: #374151;
    line-height: 1.75;
    margin-bottom: 0;
    max-width: 720px;
}
.ainav-detail-snapshot {
    margin: 0 0 24px;
    max-width: 480px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
    background: #f9fafb;
}
.ainav-detail-snapshot a {
    display: block;
    line-height: 0;
}
.ainav-detail-snapshot img {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    object-position: top center;
    background: #f3f4f6;
    cursor: zoom-in;
}
.ainav-detail-snapshot figcaption {
    padding: 8px 12px;
    font-size: 12px;
    color: #9ca3af;
    text-align: left;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.ainav-detail-content h2 {
    margin: 24px 0 10px;
    font-size: 17px;
    color: #111827;
    font-weight: 600;
}
.ainav-detail-content h2:first-child {
    margin-top: 0;
}
.ainav-detail-content h3 {
    margin: 18px 0 8px;
    font-size: 15px;
    color: #1f2937;
}
.ainav-detail-content p {
    margin: 0 0 12px;
}
.ainav-detail-content img {
    max-width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    border-radius: 8px;
}
.ainav-detail-content ul {
    padding-left: 20px;
}
.ainav-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}
.ainav-detail-actions--head {
    margin: 0;
}
.ainav-detail-actions--head .ainav-btn-primary {
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(30, 144, 255, 0.25);
}
.ainav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.ainav-btn-primary {
    background: #1e90ff;
    color: #fff;
}
.ainav-btn-primary:hover { background: #1873cc; color: #fff; }
.ainav-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.ainav-btn-secondary:hover { background: #e5e7eb; color: #111827; }

.ainav-related {
    padding: 0 24px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 0;
}
.ainav-related h2 {
    margin: 20px 0 12px;
    font-size: 16px;
    color: #111827;
}
.ainav-detail .ainav-hub-disclaimer {
    margin: 0 24px 24px;
}

.ainav-cat-nav a.active {
    background: rgba(30, 144, 255, 0.1);
    color: #1e90ff;
    font-weight: 600;
}

.ainav-parent-block {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.ainav-cat-bar {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    min-width: 0;
}
.ainav-parent-title {
    flex-shrink: 0;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    line-height: 1.4;
}
.ainav-subcat-scroll {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 0;
    row-gap: 4px;
}
.ainav-subcat-tab {
    flex-shrink: 0;
    border: none;
    background: none;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.4;
    padding: 2px 0;
    margin: 0;
    border-radius: 0;
    cursor: pointer;
    transition: color 0.15s;
    white-space: nowrap;
    font-weight: 400;
    position: relative;
}
.ainav-subcat-tab:not(:last-child)::after {
    content: '·';
    margin: 0 10px;
    color: #e5e7eb;
    font-weight: 400;
    pointer-events: none;
}
.ainav-subcat-tab:hover {
    color: #1e90ff;
}
.ainav-subcat-tab.active {
    color: #1e90ff;
    font-weight: 600;
    background: none;
}
.ainav-subcat-tab.active::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -11px;
    height: 2px;
    background: #1e90ff;
    border-radius: 1px;
}
.ainav-parent-block--single .ainav-cat-bar {
    margin-bottom: 12px;
}
.ainav-parent-block--single .ainav-parent-title {
    margin: 0;
}
.ainav-panels { min-width: 0; }
.ainav-panel { display: none; }
.ainav-panel.active { display: block; }
.ainav-nav-parent {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    padding: 6px 8px;
    border-radius: 8px;
}
.ainav-nav-parent:hover {
    background: rgba(30, 144, 255, 0.08);
    color: #1e90ff;
}

.ainav-detail-pending {
    color: #6b7280;
    font-size: 14px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 10px;
    margin: 0;
}

.ainav-empty-cat {
    grid-column: 1 / -1;
    padding: 28px 20px;
    text-align: center;
    background: #fafbfc;
    border: 1px dashed rgba(0, 0, 0, 0.08);
    border-radius: 12px;
}
.ainav-empty-cat p {
    margin: 0 0 12px;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.65;
}
.ainav-empty-link {
    display: inline-block;
    font-size: 13px;
    color: #1e90ff;
}
.ainav-empty-link:hover {
    text-decoration: underline;
}

.ainav-hub-disclaimer {
    margin-top: 24px;
    padding: 16px 18px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
}
.ainav-hub-disclaimer p {
    margin: 0;
    font-size: 12px;
    line-height: 1.75;
    color: #92400e;
}

@media (max-width: 768px) {
    .ainav-layout { flex-direction: column; }
    .ainav-side {
        width: 100%;
        position: static;
    }
    .ainav-cat-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .ainav-cat-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .ainav-subcat-scroll {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }
    .ainav-subcat-scroll::-webkit-scrollbar {
        display: none;
    }
    .ainav-grid,
    .ainav-grid-page {
        grid-template-columns: 1fr;
    }
    .ainav-detail-hero,
    .ainav-detail-body,
    .ainav-related {
        padding-left: 16px;
        padding-right: 16px;
    }
    .ainav-detail .ainav-hub-disclaimer {
        margin-left: 16px;
        margin-right: 16px;
    }
    .ainav-detail-head { flex-direction: row; }
    .ainav-detail-meta h1 { font-size: 22px; }
    .ainav-detail-snapshot {
        max-width: 100%;
    }
    .ainav-detail-snapshot img {
        max-height: 220px;
    }
}
