.odt-wrap {
    --odt-green: #2e8b57;
    --odt-green-dark: #237047;
    --odt-ink: #1f2933;
    --odt-muted: #6b7785;
    --odt-line: #e5e7eb;
    --odt-soft: #f5f7f8;
    --odt-card: #ffffff;
    color: var(--odt-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px 0 40px;
    width: 100%;
    isolation: isolate;
}

.odt-wrap * {
    box-sizing: border-box;
}

.odt-wrap a {
    color: inherit;
}

.odt-wrap button,
.odt-wrap input,
.odt-wrap textarea,
.odt-wrap select {
    font: inherit;
}

.odt-template {
    width: min(1600px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 42px;
}

.odt-page-head {
    margin: 0 0 18px;
}

.odt-page-head h1 {
    margin: 0;
    color: #1f2933;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.25;
    letter-spacing: 0;
}

.odt-page-content {
    margin: 0 0 22px;
    padding: 22px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #1f2933;
    line-height: 1.8;
}

.odt-page-content > :first-child {
    margin-top: 0;
}

.odt-page-content > :last-child {
    margin-bottom: 0;
}

.odt-tool-crumb {
    color: inherit;
}

.odt-custom-tool,
.odt-custom-tool-empty {
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.odt-custom-tool-empty {
    color: var(--odt-muted);
}

.odt-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    padding: 26px;
    margin-bottom: 18px;
    border: 1px solid rgba(46, 139, 87, .18);
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fbf9 0%, #eef7f1 100%);
}

.odt-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    color: var(--odt-green-dark);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0;
}

.odt-hero h2 {
    margin: 8px 0 10px;
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: 0;
}

.odt-hero p {
    margin: 0;
    color: var(--odt-muted);
    font-size: 15px;
    line-height: 1.8;
}

.odt-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(72px, 1fr));
    gap: 10px;
    min-width: 280px;
}

.odt-hero-stats span {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid rgba(46, 139, 87, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
    color: var(--odt-muted);
    text-align: center;
    font-size: 12px;
}

.odt-hero-stats strong {
    color: var(--odt-green-dark);
    font-size: 20px;
}

.odt-search {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    margin-bottom: 18px;
    border: 1px solid var(--odt-line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.odt-search-icon {
    width: 18px;
    height: 18px;
    margin-left: 16px;
    border: 2px solid var(--odt-muted);
    border-radius: 50%;
    position: relative;
}

.odt-search-icon::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    right: -6px;
    bottom: -4px;
    background: var(--odt-muted);
    transform: rotate(45deg);
    border-radius: 999px;
}

.odt-search input {
    width: 100%;
    min-height: 52px;
    border: 0;
    outline: 0;
    font-size: 15px;
}

.odt-search button {
    min-width: 76px;
    min-height: 36px;
    margin-right: 8px;
    border: 0;
    border-radius: 6px;
    background: #edf7f0;
    color: var(--odt-green-dark);
    font-weight: 700;
    cursor: pointer;
}

.odt-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.odt-sidebar {
    position: sticky;
    top: 16px;
}

.odt-sidebar {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--odt-line);
    border-radius: 8px;
    background: #fff;
}

.odt-cat {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--odt-ink);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.odt-cat:hover,
.odt-cat.is-active {
    background: #edf7f0;
    color: var(--odt-green-dark);
}

.odt-cat-mark,
.odt-card-icon {
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: #e7f4ec;
    color: var(--odt-green-dark);
    font-weight: 800;
}

.odt-cat-mark {
    width: 34px;
    height: 34px;
    font-size: 11px;
}

.odt-cat-mark img,
.odt-cat-mark svg,
.odt-card-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.odt-cat strong {
    color: var(--odt-muted);
    font-size: 12px;
}

.odt-main {
    min-width: 0;
}

.odt-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    margin-bottom: 12px;
}

.odt-toolbar strong {
    font-size: 18px;
}

.odt-toolbar span {
    margin-left: 10px;
    color: var(--odt-muted);
    font-size: 13px;
}

.odt-view-toggle {
    display: inline-grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 3px;
    border: 1px solid var(--odt-line);
    border-radius: 8px;
    background: #fff;
}

.odt-view-toggle button {
    min-width: 54px;
    min-height: 32px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--odt-muted);
    cursor: pointer;
}

.odt-view-toggle button.is-active {
    background: var(--odt-green);
    color: #fff;
}

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

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

.odt-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 12px;
    min-height: 116px;
    padding: 16px;
    border: 1px solid var(--odt-line);
    border-radius: 8px;
    background: var(--odt-card);
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.odt-card:hover {
    border-color: rgba(46, 139, 87, .45);
    box-shadow: 0 14px 30px rgba(18, 35, 26, .08);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

.odt-card-icon {
    width: 52px;
    height: 52px;
    font-size: 13px;
}

.odt-card-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.odt-card-icon svg {
    width: 26px;
    height: 26px;
}

.odt-card-body {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.odt-card strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}

.odt-card em {
    display: -webkit-box;
    min-height: 40px;
    overflow: hidden;
    color: var(--odt-muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.odt-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #7d8790;
    font-size: 12px;
}

.odt-empty {
    padding: 30px;
    border: 1px dashed var(--odt-line);
    border-radius: 8px;
    background: #fff;
    color: var(--odt-muted);
    text-align: center;
}

.odt-card.is-built-in {
    border-color: rgba(46, 139, 87, .28);
}

.odt-taxonomy-page .odt-wrap {
    padding-top: 0;
}

.odt-taxonomy-crumb {
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 0 0 14px;
    color: #6b7785;
    font-size: 13px;
    line-height: 1.6;
}

.odt-taxonomy-crumb a {
    color: inherit;
}

.odt-category-content {
    max-width: 1600px;
    margin: 0 auto 42px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #1f2933;
    line-height: 1.8;
}

.odt-category-content > :first-child {
    margin-top: 0;
}

.odt-category-content > :last-child {
    margin-bottom: 0;
}

.odt-tool-runner {
    --odt-green: #2e8b57;
    --odt-green-dark: #237047;
    --odt-ink: #1f2933;
    --odt-muted: #6b7785;
    --odt-line: #e5e7eb;
    color: var(--odt-ink);
    max-width: 1180px;
    margin: 0 auto 42px;
    padding: 22px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.odt-tool-runner * {
    box-sizing: border-box;
}

.odt-tool-runner__head {
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid rgba(46, 139, 87, .18);
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fbf9 0%, #eef7f1 100%);
}

.odt-tool-runner__head span {
    color: var(--odt-green-dark);
    font-size: 13px;
    font-weight: 800;
}

.odt-tool-runner__head h2 {
    margin: 8px 0 10px;
    font-size: 30px;
    line-height: 1.25;
}

.odt-tool-runner__head p {
    margin: 0;
    color: var(--odt-muted);
    line-height: 1.75;
}

.odt-built-app {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.odt-tool-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--odt-line);
    border-radius: 8px;
    background: #fff;
}

.odt-tool-panel h3 {
    margin: 0 0 12px;
    font-size: 16px;
}

.odt-tool-panel textarea,
.odt-tool-panel input[type="text"],
.odt-tool-panel input[type="number"],
.odt-tool-panel input[type="date"] {
    width: 100%;
    min-height: 42px;
    margin-bottom: 10px;
    border: 1px solid var(--odt-line);
    border-radius: 6px;
    padding: 10px 12px;
    background: #fff;
    color: var(--odt-ink);
    font: inherit;
}

.odt-tool-panel input[type="color"] {
    width: 72px;
    height: 42px;
    margin: 0 0 10px;
    border: 1px solid var(--odt-line);
    border-radius: 6px;
    background: #fff;
}

.odt-tool-panel textarea {
    min-height: 220px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.odt-tool-panel label {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin: 0 14px 10px 0;
    color: var(--odt-muted);
}

.odt-tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.odt-tool-actions button {
    min-height: 36px;
    border: 0;
    border-radius: 6px;
    padding: 0 13px;
    background: var(--odt-green);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.odt-tool-actions button:hover {
    background: var(--odt-green-dark);
}

.odt-tool-panel pre {
    min-height: 220px;
    max-height: 560px;
    overflow: auto;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--odt-line);
    border-radius: 6px;
    background: #f7f8fa;
    color: #111827;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 13px;
    line-height: 1.55;
}

.odt-universal-title {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.odt-universal-title strong {
    color: var(--odt-ink);
    font-size: 16px;
}

.odt-universal-title span {
    color: var(--odt-muted);
    line-height: 1.7;
}

.odt-tool-panel input[type="file"] {
    min-height: 42px;
    padding: 9px 12px;
    border: 1px dashed var(--odt-line);
    border-radius: 6px;
    background: #fff;
}

.odt-tool-panel canvas {
    width: 100%;
    max-height: 420px;
    margin-top: 12px;
    border: 1px solid var(--odt-line);
    border-radius: 6px;
    background: #fff;
    object-fit: contain;
}

.odt-tool-guide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.odt-guide-card {
    padding: 22px 24px;
    border: 1px solid var(--odt-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .04);
}

.odt-guide-card h3 {
    margin: 0 0 14px;
    color: var(--odt-ink);
    font-size: 17px;
}

.odt-guide-card p {
    margin: 0 0 12px;
    color: var(--odt-muted);
    line-height: 1.85;
}

.odt-guide-card ol {
    margin: 0;
    padding-left: 22px;
}

.odt-guide-card li {
    margin: 0 0 12px;
    color: var(--odt-muted);
    line-height: 1.75;
}

.odt-guide-card li::marker {
    color: #d11b2d;
    font-weight: 800;
}

.odt-guide-faq {
    grid-column: 1 / -1;
}

.odt-guide-faq details {
    padding: 14px 0;
    border-bottom: 1px solid var(--odt-line);
}

.odt-guide-faq details:last-child {
    border-bottom: 0;
}

.odt-guide-faq summary {
    color: var(--odt-ink);
    cursor: pointer;
    font-weight: 800;
}

.odt-guide-faq details[open] summary {
    margin-bottom: 8px;
}

@media (max-width: 1180px) {
    .odt-layout {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .odt-built-app {
        grid-template-columns: 1fr;
    }

    .odt-tool-guide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .odt-hero {
        display: grid;
    }

    .odt-hero-stats,
    .odt-layout,
    .odt-grid,
    .odt-grid.is-compact {
        grid-template-columns: 1fr;
    }

    .odt-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .odt-wrap {
        padding: 16px 0 30px;
    }

    .odt-hero {
        padding: 18px;
    }

    .odt-hero h2 {
        font-size: 26px;
    }

    .odt-search {
        grid-template-columns: 38px 1fr;
    }

    .odt-search button {
        grid-column: 1 / -1;
        width: calc(100% - 16px);
        margin: 0 8px 8px;
    }

    .odt-sidebar {
        grid-template-columns: 1fr;
    }

    .odt-toolbar {
        display: grid;
    }
}
