/*
Theme Name: Aivane Nav
Theme URI: https://aivane.cn
Author: Aivane
Description: 轻量网址导航主题，沿用 OneNav 已有网址数据与选项，无授权校验。
Version: 1.37.3
Requires at least: 5.8
Requires PHP: 7.0
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: aivane-nav
*/

:root {
    --mainColor: #16a34a;
    --lt-accent: var(--mainColor);
    --lt-accent-rgb: 22, 163, 74;
    --lt-bg: #f4f6fa;
    --lt-card: #ffffff;
    --lt-ink: #101318;
    --lt-body: #4b5563;
    --lt-muted: #7b8494;
    --lt-border: #e6e9ef;
    --lt-field-border: #c9d0dc;
    --lt-soft: #f7f8fb;
    --lt-radius: 14px;
    --lt-header-h: 64px;
    --lt-shadow: 0 18px 40px -30px rgba(15, 23, 42, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--lt-bg);
    color: var(--lt-body);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

main.lt-container {
    flex: 1 0 auto;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input {
    font: inherit;
}

.lt-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ 顶栏 ============ */
.lt-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--lt-header-h);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--lt-border);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
}

.lt-header-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

.lt-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    min-width: 0;
    white-space: nowrap;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.01em;
    color: var(--lt-ink);
}

.lt-brand img {
    display: block;
    max-height: 34px;
    max-width: 150px;
    width: auto;
    object-fit: contain;
}

.lt-brand .logo-for-dark {
    display: none;
}

html[data-theme="dark"] .lt-brand .logo-for-light {
    display: none;
}

html[data-theme="dark"] .lt-brand .logo-for-dark {
    display: block;
}

.lt-brand-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--mainColor);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.lt-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.lt-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
    overflow: hidden;
}

.lt-nav-list a {
    display: block;
    padding: 7px 8px;
    border-radius: 8px;
    font-size: 13.5px;
    color: #3f4756;
    transition: background 0.18s ease, color 0.18s ease;
}

.lt-nav-list a:hover {
    background: var(--lt-soft);
    color: var(--lt-ink);
}

.lt-head-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

.lt-hbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 38px;
    padding: 0 10px;
    white-space: nowrap;
    border: 1px solid var(--lt-border);
    border-radius: 10px;
    background: var(--lt-card);
    color: var(--lt-ink);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.lt-hbtn:hover {
    border-color: var(--mainColor);
    color: var(--mainColor);
}

.lt-hbtn svg {
    width: 16px;
    height: 16px;
    flex: none;
}

.lt-hbtn-count {
    flex: none;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--mainColor);
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    line-height: 17px;
    text-align: center;
}

.lt-search {
    position: relative;
    flex: none;
    width: 200px;
    min-width: 0;
}

.lt-search-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 38px;
    height: 38px;
    border: 1px solid var(--lt-border);
    border-radius: 10px;
    background: var(--lt-card);
    color: var(--lt-ink);
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease;
}

.lt-search-toggle:hover {
    border-color: var(--mainColor);
    color: var(--mainColor);
}

.lt-search-toggle svg {
    width: 18px;
    height: 18px;
}

.lt-search input[type="search"] {
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 0 42px 0 16px;
    border: 1px solid var(--lt-border);
    border-radius: 10px;
    background: var(--lt-soft);
    color: var(--lt-ink);
    outline: none;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.lt-search input[type="search"]:focus {
    border-color: var(--mainColor);
    background: #fff;
}

.lt-search button {
    position: absolute;
    top: 50%;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 38px;
    border: 0;
    background: transparent;
    color: var(--lt-muted);
    transform: translateY(-50%);
    cursor: pointer;
}

.lt-search button:hover {
    color: var(--mainColor);
}

.lt-search button svg {
    width: 17px;
    height: 17px;
}

.lt-nav-toggle {
    display: none;
    width: 40px;
    height: 38px;
    border: 1px solid var(--lt-border);
    border-radius: 10px;
    background: #fff;
    color: var(--lt-ink);
    cursor: pointer;
}

.lt-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 40px;
    height: 38px;
    border: 1px solid var(--lt-border);
    border-radius: 10px;
    background: #fff;
    color: var(--lt-ink);
    cursor: pointer;
}

.lt-theme-toggle svg {
    width: 18px;
    height: 18px;
}

.lt-theme-toggle .icon-sun {
    display: none;
}

html[data-theme="dark"] .lt-theme-toggle .icon-sun {
    display: block;
}

html[data-theme="dark"] .lt-theme-toggle .icon-moon {
    display: none;
}

.lt-nav-toggle svg {
    width: 20px;
    height: 20px;
}

.lt-header-space {
    height: var(--lt-header-h);
}

/* ============ 首页 Hero ============ */
.lt-home-hero {
    padding: 24px 0;
    text-align: center;
}

.lt-home-hero > p {
    margin: 0 auto 24px;
    max-width: 780px;
    padding: 0 16px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: var(--lt-ink);
}

.lt-hero-ai {
    display: inline-block;
    margin-right: 3px;
    font-size: 1.3em;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.01em;
    vertical-align: -0.06em;
    color: var(--mainColor);
}

.lt-hero-search {
    max-width: 690px;
    margin: 0 auto;
}

.lt-search-big {
    display: flex;
    align-items: stretch;
    max-width: 690px;
    margin: 0 auto;
    border: 2px solid var(--lt-field-border);
    border-radius: var(--lt-radius);
    background: transparent;
    transition: border-color 0.2s ease;
}

.lt-search-big:focus-within {
    border-color: var(--mainColor);
}

.lt-engine-select {
    position: relative;
    flex: none;
    display: flex;
    align-items: center;
    background: var(--lt-soft);
    border-radius: 12px 0 0 12px;
}

.lt-engine-select::after {
    content: "";
    position: absolute;
    right: 13px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.8px solid var(--lt-muted);
    border-bottom: 1.8px solid var(--lt-muted);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.lt-engine-select select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.lt-engine-btn {
    height: 56px;
    max-width: 170px;
    padding: 0 32px 0 16px;
    border: 0;
    background: transparent;
    color: var(--lt-ink);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    outline: none;
}

.lt-engine-btn:hover,
.lt-engine-select.is-open .lt-engine-btn {
    color: var(--mainColor);
}

.lt-engine-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 80;
    min-width: 180px;
    max-height: 300px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--lt-border);
    border-radius: 12px;
    background: var(--lt-card);
    box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.45);
}

.lt-engine-menu[hidden] {
    display: none;
}

.lt-engine-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--lt-ink);
    font-size: 13.5px;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.lt-engine-item:hover {
    background: var(--lt-soft);
}

.lt-engine-item.is-active {
    color: var(--mainColor);
    font-weight: 600;
}

.lt-engine-item.is-active::after {
    content: "✓";
    font-size: 12px;
}

.lt-search-big input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 56px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: var(--lt-ink);
    outline: none;
    font-size: 16px;
}

.lt-search-big > button[type="submit"] {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 0;
    border-radius: 0 12px 12px 0;
    background: transparent;
    color: var(--mainColor);
    cursor: pointer;
    transition: background 0.18s ease;
}

.lt-search-big > button[type="submit"]:hover {
    background: var(--lt-soft);
}

.lt-search-big > button[type="submit"] svg {
    flex: none;
}

/* 首页自定义网址 */
.lt-tab-custom {
    border-style: dashed;
    color: var(--lt-muted);
}

.lt-tab-custom.is-active {
    border-style: solid;
    color: #fff;
}

.lt-custom-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 92px;
    border: 1px dashed var(--lt-border);
    border-radius: 14px;
    background: transparent;
    color: var(--lt-muted);
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.lt-custom-tile:hover {
    border-color: var(--mainColor);
    color: var(--mainColor);
    background: var(--lt-soft);
}

.lt-custom-tile[hidden] {
    display: none;
}

.lt-custom-tile-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--lt-soft);
    font-size: 18px;
    line-height: 1;
}

.lt-custom-tile:hover .lt-custom-tile-plus {
    background: var(--mainColor);
    color: #fff;
}

.lt-custom-tile em {
    font-style: normal;
    font-size: 13px;
}

.lt-modal-body textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--lt-border);
    border-radius: 10px;
    background: var(--lt-bg);
    color: var(--lt-ink);
    font-size: 14px;
    font-family: inherit;
    line-height: 1.6;
    outline: none;
    resize: vertical;
    box-sizing: border-box;
}

.lt-modal-body textarea:focus {
    border-color: var(--mainColor);
}

.lt-custom-empty {
    margin: 0;
    padding: 26px 16px;
    border: 1px dashed var(--lt-border);
    border-radius: 14px;
    text-align: center;
    font-size: 13px;
    color: var(--lt-muted);
}

.lt-card-custom {
    position: relative;
}

.lt-custom-del {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--lt-soft);
    color: var(--lt-muted);
    font-size: 15px;
    line-height: 20px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.lt-card-custom:hover .lt-custom-del {
    opacity: 1;
}

.lt-custom-del:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* 自定义搜索设置弹窗 */
.lt-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lt-modal[hidden] {
    display: none;
}

.lt-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
}

.lt-modal-panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: var(--lt-card);
    border-radius: var(--lt-radius);
    box-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.45);
    overflow: hidden;
    text-align: left;
}

.lt-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--lt-border);
}

.lt-modal-head h3 {
    margin: 0;
    font-size: 16px;
    color: var(--lt-ink);
}

.lt-modal-close {
    border: 0;
    background: transparent;
    color: var(--lt-muted);
    font-size: 22px;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
    transition: color 0.18s ease;
}

.lt-modal-close:hover {
    color: var(--mainColor);
}

.lt-modal-body {
    padding: 18px;
}

.lt-modal-field + .lt-modal-field {
    margin-top: 14px;
}

.lt-modal-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--lt-muted);
}

.lt-modal-body input[type="text"] {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--lt-border);
    border-radius: 10px;
    background: var(--lt-bg);
    color: var(--lt-ink);
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.lt-modal-body input[type="text"]:focus {
    border-color: var(--mainColor);
}

.lt-modal-tip {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--lt-muted);
    line-height: 1.7;
}

.lt-modal-tip code {
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--lt-soft);
    color: var(--mainColor);
}

.lt-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 18px 18px;
}

.lt-modal-btn {
    height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: filter 0.18s ease;
}

.lt-modal-btn.is-ghost {
    background: var(--lt-soft);
    color: var(--lt-body);
}

.lt-modal-btn.is-primary {
    background: var(--mainColor);
    color: #fff;
}

.lt-modal-btn[hidden] {
    display: none;
}

/* 自定义搜索引擎管理列表 */
.lt-engine-manage {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--lt-border);
}

.lt-engine-manage-title {
    margin: 0 0 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--lt-muted);
}

.lt-engine-manage-title[hidden] {
    display: none;
}

.lt-engine-manage-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    padding: 8px 8px 8px 12px;
    border: 1px solid var(--lt-border);
    border-radius: 9px;
    background: var(--lt-soft);
    font-size: 13px;
    color: var(--lt-ink);
}

.lt-engine-manage-item span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lt-engine-manage-del {
    flex: none;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--lt-muted);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.lt-engine-manage-del:hover {
    background: #fee2e2;
    color: #dc2626;
}

.lt-engine-manage-empty {
    margin: 0;
    font-size: 12.5px;
    color: var(--lt-muted);
}

.lt-engine-manage-empty[hidden] {
    display: none;
}

.lt-modal-btn:hover {
    filter: brightness(1.05);
}

/* 收藏 / 最近看过 列表 */
.lt-modal-wide {
    max-width: 780px;
}

.lt-shelf-body {
    max-height: 70vh;
    overflow-y: auto;
}

.lt-shelf {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.lt-shelf-empty {
    margin: 0;
    padding: 40px 10px;
    color: var(--lt-muted);
    font-size: 14px;
    text-align: center;
}



.lt-admin-hint {
    max-width: 900px;
    margin: 0 auto 18px;
    padding: 12px 16px;
    border: 1px solid #f0c36d;
    border-radius: 12px;
    background: #fff8e5;
    color: #8a5a00;
    font-size: 13px;
    line-height: 1.6;
}

html[data-theme="dark"] .lt-admin-hint {
    border-color: #6b551f;
    background: #3a2f14;
    color: #ffe2a8;
}

/* ============ 首页分类切换 ============ */
.lt-tabs-group {
    margin: 0 0 40px;
}

.lt-tabs {
    display: flex;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 16px;
    padding: 2px 2px 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.lt-tabs::-webkit-scrollbar {
    display: none;
}

.lt-tab {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 16px;
    border: 1px solid var(--lt-border);
    border-radius: 999px;
    background: var(--lt-card);
    color: var(--lt-body);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.lt-tab:hover {
    border-color: var(--mainColor);
    color: var(--lt-ink);
}

.lt-tab.is-active {
    background: var(--mainColor);
    border-color: var(--mainColor);
    color: #fff;
}

.lt-tab.is-active em {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
}

.lt-tab-panel {
    display: none;
}

.lt-tab-panel.is-active {
    display: block;
}

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

/* ============ 网址卡片 ============ */
.lt-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--lt-border);
    border-radius: var(--lt-radius);
    background: var(--lt-card);
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.lt-card-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
    color: inherit;
}

.lt-card-detail {
    position: absolute;
    right: 10px;
    top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: var(--lt-muted);
    transition: color 0.18s ease;
}

.lt-card-detail:hover {
    color: var(--mainColor);
}

.lt-card-detail svg {
    width: 18px;
    height: 18px;
}

.lt-card:hover {
    border-color: var(--mainColor);
    transform: translateY(-3px);
    box-shadow: 0 16px 30px -24px rgba(15, 23, 42, 0.5);
}

.lt-card-logo {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    border: 1px solid var(--lt-border);
    background: #fff;
    overflow: hidden;
}

.lt-card-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.lt-card-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.lt-card-body {
    min-width: 0;
    flex: 1 1 auto;
}

.lt-card-name {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 1px 0 4px;
    color: var(--lt-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.lt-card-name span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lt-card-go .lt-card-name {
    padding-right: 24px;
}

.lt-card-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0;
    color: var(--lt-muted);
    font-size: 12.5px;
    line-height: 1.55;
    min-height: 39px;
}

.lt-badge {
    flex: none;
    padding: 1px 6px;
    border-radius: 5px;
    background: #ffe9ea;
    color: #d92b36;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
}

.lt-empty {
    padding: 60px 20px;
    border: 1px dashed var(--lt-border);
    border-radius: var(--lt-radius);
    background: var(--lt-card);
    color: var(--lt-muted);
    text-align: center;
}

/* ============ 详情页 ============ */
.lt-detail {
    padding: 24px 20px 50px;
}

.lt-hero-shell {
    border-radius: 18px;
    box-shadow: 0 30px 70px -46px rgba(0, 0, 0, 0.5);
}

/* 详情页广告位 */
.lt-ad-slot {
    position: relative;
    margin-top: 16px;
}

.lt-ad-tag {
    position: absolute;
    top: -9px;
    left: 14px;
    z-index: 2;
    padding: 1px 8px;
    border: 1px solid var(--lt-border);
    border-radius: 999px;
    background: var(--lt-card);
    color: var(--lt-muted);
    font-size: 11px;
    line-height: 1.7;
}

.lt-hero {
    position: relative;
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    overflow: hidden;
    padding: 30px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(48, 54, 65, 0.94) 0%, rgba(22, 25, 31, 0.9) 100%);
    background-clip: padding-box;
    -webkit-clip-path: inset(0 round 18px);
    clip-path: inset(0 round 18px);
}

.lt-hero.has-shot {
    grid-template-columns: 128px minmax(0, 1fr) 320px;
}

.lt-hero::after {
    content: "";
    position: absolute;
    top: -160px;
    right: -80px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--lt-accent-rgb), 0.32) 0%, rgba(var(--lt-accent-rgb), 0) 70%);
    pointer-events: none;
}

.lt-hero::before {
    content: "";
    position: absolute;
    inset: -40%;
    z-index: 0;
    background-image: var(--lt-icon-url, none);
    background-size: cover;
    background-position: center;
    -webkit-filter: blur(80px) saturate(1.8);
    filter: blur(80px) saturate(1.8);
    opacity: 0.22;
    pointer-events: none;
}

.lt-hero-logo,
.lt-hero-body,
.lt-hero-shot {
    position: relative;
    z-index: 1;
}

.lt-hero-logo {
    width: 128px;
    height: 128px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #fff;
    background-clip: padding-box;
    overflow: hidden;
    box-shadow: 0 18px 38px -20px rgba(0, 0, 0, 0.7);
}

.lt-hero-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}

.lt-hero-logo .lt-card-letter {
    font-size: 52px;
}

.lt-hero-title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    word-break: break-word;
}

.lt-hero-desc {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.8;
}

.lt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 18px;
}

.lt-tags a {
    padding: 3px 11px;
    border-radius: 999px;
    border: 1px solid rgba(var(--lt-accent-rgb), 0.4);
    background: rgba(var(--lt-accent-rgb), 0.13);
    color: #fff;
    font-size: 12px;
    line-height: 1.7;
    transition: background 0.18s ease;
}

.lt-tags a:hover {
    background: rgba(var(--lt-accent-rgb), 0.3);
}

.lt-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.lt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    padding: 0 28px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.lt-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(var(--lt-accent-rgb), 0.8);
    transform: translateY(-1px);
}

.lt-btn-primary {
    border: 0;
    background: var(--lt-accent);
    color: var(--lt-accent-ink, #fff);
    box-shadow: 0 14px 30px -14px rgba(var(--lt-accent-rgb), 0.9);
}

.lt-btn-primary:hover {
    background: var(--lt-accent);
    filter: brightness(1.07);
}

.lt-btn[aria-disabled="true"] {
    opacity: 0.55;
    pointer-events: none;
}

.lt-fav-btn.is-active {
    border-color: rgba(var(--lt-accent-rgb), 0.85);
    background: rgba(var(--lt-accent-rgb), 0.2);
}

.lt-fav-btn.is-active svg {
    fill: currentColor;
}

.lt-hero-shot {
    height: 208px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    box-shadow: 0 20px 44px -28px rgba(0, 0, 0, 0.9);
}

.lt-hero-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.lt-main {
    margin-top: 20px;
}

.lt-content-card,
.lt-related-card {
    padding: 30px 32px;
    margin-bottom: 18px;
    border: 1px solid var(--lt-border);
    border-radius: 18px;
    background: var(--lt-card);
}

.lt-content-card > *:first-child {
    margin-top: 0;
}

.lt-content-card > *:last-child {
    margin-bottom: 0;
}

.lt-content-card h2 {
    margin: 30px 0 16px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--lt-border);
    color: var(--lt-ink);
    font-size: 21px;
    font-weight: 700;
}

.lt-content-card h3 {
    margin: 24px 0 12px;
    color: var(--lt-ink);
    font-size: 17px;
    font-weight: 700;
}

.lt-content-card h4 {
    margin: 20px 0 10px;
    color: var(--lt-ink);
    font-size: 15px;
    font-weight: 700;
}

.lt-content-card p,
.lt-content-card li {
    color: var(--lt-body);
    font-size: 14.5px;
    line-height: 1.9;
}

.lt-content-card p {
    margin: 0 0 14px;
}

.lt-content-card ul,
.lt-content-card ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.lt-content-card a {
    color: var(--mainColor);
}

.lt-content-card a:hover {
    text-decoration: underline;
}

.lt-content-card img {
    border-radius: 12px;
    border: 1px solid var(--lt-border);
}

.lt-content-card blockquote {
    margin: 20px 0;
    padding: 14px 18px;
    border-left: 3px solid var(--mainColor);
    border-radius: 0 10px 10px 0;
    background: var(--lt-soft);
    color: var(--lt-body);
}

.lt-content-card blockquote p:last-child {
    margin-bottom: 0;
}

.lt-content-card table {
    width: 100%;
    margin: 16px 0;
    border-collapse: collapse;
    font-size: 13.5px;
}

.lt-content-card th,
.lt-content-card td {
    padding: 9px 12px;
    border: 1px solid var(--lt-border);
}

.lt-content-card th {
    background: var(--lt-soft);
    color: var(--lt-ink);
    font-weight: 600;
}

.lt-content-card .lt-nothing {
    color: var(--lt-muted);
    text-align: center;
}

/* ============ 归档 / 搜索 ============ */
.lt-page-head {
    position: relative;
    isolation: isolate;
    margin-bottom: 20px;
    padding: 30px 0;
    text-align: center;
}

.lt-page-head::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: -1;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--lt-card);
    border-bottom: 1px solid var(--lt-border);
}

.lt-page-head h1 {
    margin: 0 0 8px;
    color: var(--lt-ink);
    font-size: 28px;
    line-height: 1.35;
}

.lt-page-head p {
    margin: 0;
    color: var(--lt-muted);
    font-size: 14px;
}

.lt-page-body {
    padding-bottom: 50px;
}

.lt-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 30px 0 0;
}

.lt-pagination .page-numbers,
.lt-pagination a,
.lt-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--lt-border);
    border-radius: 10px;
    background: #fff;
    color: var(--lt-body);
    font-size: 14px;
}

.lt-pagination .current {
    border-color: var(--mainColor);
    background: var(--mainColor);
    color: #fff;
}

.lt-pagination a:hover {
    border-color: var(--mainColor);
    color: var(--mainColor);
}

/* ============ 页脚 ============ */
.lt-footer {
    flex-shrink: 0;
    height: var(--lt-header-h);
    padding: 0;
    border-top: 1px solid var(--lt-border);
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
}

.lt-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
    height: 100%;
    color: var(--lt-muted);
    font-size: 13px;
    text-align: center;
}

.lt-footer-menu {
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lt-footer-inner a:hover {
    color: var(--mainColor);
}

/* ============ 404 ============ */
.lt-404 {
    padding: 90px 20px;
    text-align: center;
}

.lt-404 h1 {
    margin: 0 0 10px;
    color: var(--lt-ink);
    font-size: 74px;
    line-height: 1;
}

.lt-404 p {
    margin: 0 0 22px;
    color: var(--lt-muted);
}

.lt-404 .lt-btn-primary {
    display: inline-flex;
    padding: 0 26px;
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
    .lt-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lt-hero.has-shot {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .lt-hero-shot {
        display: none;
    }

    .lt-hero {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .lt-hero-logo {
        width: 110px;
        height: 110px;
    }

    .lt-search {
        width: 210px;
    }

    .lt-hbtn {
        padding: 0 10px;
    }

    .lt-hbtn span {
        display: none;
    }
}

@media (max-width: 860px) {
    .lt-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .lt-nav {
        position: absolute;
        top: var(--lt-header-h);
        left: 0;
        right: 0;
        display: none;
        padding: 10px 16px 16px;
        border-bottom: 1px solid var(--lt-border);
        background: #fff;
        box-shadow: 0 22px 34px -30px rgba(15, 23, 42, 0.6);
    }

    .lt-nav.is-open {
        display: block;
    }

    .lt-nav-list {
        display: block;
        white-space: normal;
        max-height: 62vh;
        overflow-y: auto;
    }

    .lt-nav-list li {
        border-bottom: 1px solid var(--lt-soft);
    }

    .lt-nav-list a {
        padding: 11px 6px;
    }

    .lt-header-inner {
        gap: 12px;
    }

    .lt-search {
        flex: 1 1 auto;
        width: auto;
        max-width: 220px;
        min-width: 0;
        margin-left: auto;
    }

    .lt-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .lt-home-hero {
        padding: 34px 0 18px;
    }

    .lt-home-hero > p {
        font-size: 22px;
    }

    .lt-engine-btn {
        height: 50px;
        max-width: 120px;
        padding: 0 26px 0 10px;
        font-size: 12.5px;
    }

    .lt-engine-menu {
        min-width: 160px;
    }

    .lt-search-big input[type="search"] {
        height: 50px;
        font-size: 15px;
        padding: 0 8px;
    }

    .lt-search-big > button[type="submit"] {
        width: 46px;
        height: 50px;
    }

    .lt-custom-del {
        opacity: 1;
    }

    .lt-search {
        display: none;
    }

    .lt-search-toggle {
        display: inline-flex;
    }

    .lt-header-inner.is-search-open .lt-brand,
    .lt-header-inner.is-search-open .lt-nav,
    .lt-header-inner.is-search-open .lt-head-tools,
    .lt-header-inner.is-search-open .lt-theme-toggle,
    .lt-header-inner.is-search-open .lt-nav-toggle {
        display: none;
    }

    .lt-header-inner.is-search-open .lt-search {
        display: block;
        flex: 1 1 auto;
        width: auto;
        max-width: none;
    }

    .lt-header-inner.is-search-open .lt-search input {
        font-size: 15px;
    }

    .lt-header-inner .lt-brand {
        margin-right: auto;
    }

    .lt-hbtn-count {
        display: none;
    }

    .lt-shelf {
        grid-template-columns: 1fr;
    }

    .lt-tabs-group {
        margin-bottom: 0;
    }

    .lt-tab-panels {
        margin: 0 -20px;
        padding: 20px;
        background: var(--lt-card);
        border: 1px solid var(--lt-border);
        border-radius: 30px 30px 0 0;
    }

    .lt-tab-panels .lt-card {
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    }

    .lt-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .lt-card {
        gap: 9px;
        padding: 11px;
    }

    .lt-card-logo {
        width: 36px;
        height: 36px;
        border-radius: 9px;
    }

    .lt-card-name {
        margin-bottom: 2px;
        font-size: 14px;
    }

    .lt-card-desc {
        min-height: 0;
        font-size: 11.5px;
        line-height: 1.45;
    }

    .lt-card-detail {
        right: 8px;
        top: 8px;
        width: 22px;
        height: 22px;
    }

    .lt-card-go .lt-card-name {
        padding-right: 21px;
    }

    .lt-hero,
    .lt-hero.has-shot {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px;
        text-align: center;
    }

    .lt-hero-logo {
        width: 88px;
        height: 88px;
        margin: 0 auto;
        border-radius: 20px;
    }

    .lt-hero-logo img {
        padding: 11px;
    }

    .lt-hero-title {
        font-size: 23px;
    }

    .lt-actions {
        justify-content: center;
    }

    .lt-tags {
        justify-content: center;
    }

    .lt-content-card,
    .lt-related-card {
        padding: 22px;
    }

    .lt-search {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .lt-header-inner {
        gap: 8px;
    }

    .lt-brand span:not(.lt-brand-dot) {
        display: none;
    }

    .lt-brand img {
        max-height: 30px;
        max-width: 96px;
    }

    .lt-search {
        max-width: 110px;
    }
}

html[data-theme="dark"] {
    --lt-bg: #171a20;
    --lt-card: #21252d;
    --lt-ink: #f6f8fb;
    --lt-body: #ccd3dd;
    --lt-muted: #9aa4b2;
    --lt-border: #323844;
    --lt-field-border: #414a5a;
    --lt-soft: #2a2f39;
}

html[data-theme="dark"] .lt-hero-ai {
    color: #4ade80;
}

html[data-theme="dark"] .lt-header,
html[data-theme="dark"] .lt-footer {
    background: var(--lt-card);
}

html[data-theme="dark"] .lt-search input[type="search"] {
    background: var(--lt-soft);
    color: var(--lt-ink);
}

html[data-theme="dark"] .lt-search input[type="search"]:focus {
    background: var(--lt-card);
}

html[data-theme="dark"] .lt-nav,
html[data-theme="dark"] .lt-nav-toggle,
html[data-theme="dark"] .lt-theme-toggle,
html[data-theme="dark"] .lt-pagination a,
html[data-theme="dark"] .lt-pagination span {
    background: var(--lt-card);
    border-color: var(--lt-border);
}

html[data-theme="dark"] .lt-nav-list a {
    color: var(--lt-body);
}

html[data-theme="dark"] .lt-nav-list a:hover {
    background: var(--lt-soft);
    color: var(--lt-ink);
}

html[data-theme="dark"] .lt-card-logo {
    background: #fff;
}
