body {
    font-size: clamp(14px, 1.6vw, 18px);
}

.form {
    background-color: #15172b;
    border-radius: 20px;
    box-sizing: border-box;
    height: 500px;
    padding: 20px;
    width: 320px;
}

.title {
    color: #eee;
    font-family: sans-serif;
    font-size: 36px;
    font-weight: 600;
    margin-top: 30px;
}

.subtitle {
    color: #eee;
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
}

.input-container {
    height: 50px;
    position: relative;
    width: 100%;
}

.ic1 {
    margin-top: 30px;
}

.ic2 {
    margin-top: 30px;
    display: none;
}

.input {
    background-color: #303245;
    border-radius: 12px;
    border: 0;
    box-sizing: border-box;
    color: #eee;
    font-size: 18px;
    height: 100%;
    outline: 0;
    padding: 4px 20px 0;
    width: 100%;
}

.cut {
    background-color: #15172b;
    border-radius: 10px;
    height: 20px;
    left: 20px;
    position: absolute;
    top: -20px;
    transform: translateY(0);
    transition: transform 200ms;
    width: 76px;
}

.cut-short {
    width: 50px;
}

.input:focus ~ .cut,
.input:not(:placeholder-shown) ~ .cut {
    transform: translateY(8px);
}

.placeholder {
    color: #65657b;
    font-family: sans-serif;
    left: 20px;
    line-height: 14px;
    pointer-events: none;
    position: absolute;
    transform-origin: 0 50%;
    transition: transform 200ms, color 200ms;
    top: 20px;
}

.input:focus ~ .placeholder,
.input:not(:placeholder-shown) ~ .placeholder {
    transform: translateY(-30px) translateX(10px) scale(0.75);
}

.input:not(:placeholder-shown) ~ .placeholder {
    color: #808097;
}

.input:focus ~ .placeholder {
    color: #dc2f55;
}

.submit {
    background-color: #08d;
    border-radius: 12px;
    border: 0;
    box-sizing: border-box;
    color: #eee;
    cursor: pointer;
    font-size: 18px;
    height: 50px;
    margin-top: 38px;
    text-align: center;
    width: 100%;
}

.submit:active {
    background-color: #06b;
}

.plugin-example {
    margin-top: 14px;
    font-size: 13px;
    color: #65657b;
    text-align: left;
    line-height: 1.6;
    word-break: break-all;
}

.plugin-example a {
    color: #1d9bf0;
    cursor: pointer;
    text-decoration: none;
}

.plugin-example a:hover {
    text-decoration: underline;
}
:root {
    --text-grey: #9e9e9e;
    --text-main: rgba(0, 0, 0, 0.87);
    --spacing: 4px;
    --size: 64px;
    --radius: 1.5rem;
    --accent: #5380f7;
    --text-sm: 0.875rem;
    --main-bg: #fff;
    --card-bg: #fff;
    --hover-color: #eee;
    --border-color: rgba(0, 0, 0, 0.05);
    --grey-400: rgba(0, 0, 0, 0.04);
    --grey-600: rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
    :root {
        --main-bg: rgb(0, 0, 0);
        --card-bg: rgb(31, 34, 38);
        --text-main: #d9d9d9;
        --text-grey: #6e767d;
        --accent: #1d9bf0;
        --hover-color: rgba(255, 255, 255, 0.07);
        --border-color: #4b4648;
    }
}

body {
    font-size: 1rem;
    line-height: 1.5;
    word-wrap: break-word;
    font-kerning: normal;
    font-family: 'Gotham SSm A', 'Gotham SSm B', 'Arial Unicode MS', Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    background-color: var(--main-bg);
}

* ul, * ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

*[role='button'], button {
    cursor: pointer;
}

.color-primary {
    color: var(--text-main);
}


.mt-0 {
    margin-top: 0;
}


.radius-1 {
    border-radius: var(--radius);
}

.px-6 {
    padding-left: calc(var(--spacing) * 6);
    padding-right: calc(var(--spacing) * 6);
}

.py-6 {
    padding-left: calc(var(--spacing)* 6);
    padding-right: calc(var(--spacing)* 6);
}

.py-10 {
    padding-top: calc(var(--spacing) * 18);
    padding-bottom: calc(var(--spacing) * 10);
}

.pd-6 {
    padding: calc(var(--spacing) * 6);
}


.pt-1 {
    padding-top: var(--spacing);
}

.pb-0 {
    padding-bottom: 0;
}

.overflow-hidden {
    overflow: hidden;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}


.items-center {
    align-items: center;
}

.shrink-0 {
    flex-shrink: 0;
}

.text-grey {
    color: var(--text-grey);
}

.text-sm {
    font-size: 0.875rem;
}

.bg-card {
    background-color: var(--card-bg);
}

.truncate {
    /* display: -webkit-box; */
    /* -webkit-box-orient: vertical; */
    /* -webkit-line-clamp: var(--line, 3); */
    /* overflow: hidden; */
}

.truncate-1 {
    --line: 1;
}

.overflow-ellipsis {
    text-overflow: ellipsis;
}

.z-grid {
    display: grid;
    grid-gap: var(--gutter, 1rem);
    grid-template-columns: repeat(auto-fill, minmax(min(var(--space, 10rem), 100%), 1fr));
}


.card {
    box-shadow: rgb(0 0 0 / 30%) 0 8px 40px -12px;
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    width: 90%;
    position: relative;
    overflow: visible;
    background-color: var(--card-bg);
    margin: 0 auto;
}

.card:hover {
    transform: translateY(-2px);
}

.card:hover .mask {
    bottom: -1.5rem;
}

.card:hover .mask-c-1 {
    bottom: -2.5rem;
}

.container {
    padding-top: calc(var(--spacing) * 10);
}

.container p {
    position: relative;
    cursor: pointer;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}

.container p::after {
    content: attr(data-content);
    position: absolute;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    color: transparent;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.container p:hover {
    color: transparent;
}

.container p:hover::after {
    color: var(--text-main);
    background-color: var(--hover-color);
}

.toggle li {
    z-index: 99;
    position: relative;
    background: transparent;
    padding: 0 20px;
    color: var(--text-main);
    transition: background-color 250ms ease-out;
}

.toggle li:hover {
    background-color: var(--hover-color);
}

.toggle li.active a {
    color: var(--accent);
}

.toggle li:first-child {
    border-top-left-radius: var(--text-sm);
    border-top-right-radius: var(--text-sm);
}

.toggle li:last-child {
    border-bottom-left-radius: var(--text-sm);
    border-bottom-right-radius: var(--text-sm);
}

.toggle li:last-child a {
    border-bottom: 0;
}

.toggle li a {
    display: block;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.icon {
    background-image: url('icons.svg');
    background-size: 64px;
    background-position-x: 0;
}

.icon-al {
    background-position-y: -1728px;
}

.icon-ii {
    background-position-y: -448px;
}

.icon-ps {
    background-position-y: -512px;
}

.icon-ac {
    background-position-y: -192px;
}

.icon-db {
    background-position-y: -320px;
}

.icon-rm {
    background-position-y: -896px;
}

.icon-rr {
    background-position-y: -896px;
}

.icon-ws {
    background-position-y: -960px;
}

.icon-rd {
    background-position-y: -832px;
}

.icon-cl {
    background-position-y: -256px;
}

.icon-pc {
    background-position-y: -576px;
}

.icon-go {
    background-position-y: -384px;
}

.icon-ds {
    background-position-y: -1792px;
}

.icon-dc {
    background-position-y: -1408px;
}

.icon-dpn {
    background-position-y: -1536px;
}

.icon-dm {
    background-position-y: -1472px;
}

.mask {
    transition: 0.2s;
    position: absolute;
    z-index: -1;
    width: 88%;
    height: 100%;
    bottom: 0;
    border-radius: 1.5rem;
    background-color: var(--grey-600);
    left: 50%;
    transform: translateX(-50%);
}

.mask-c-1 {
    bottom: 0;
    width: 72%;
    background-color: var(--grey-400);
}

.avatar-wrapper {
    position: relative;
    width: var(--size);
    height: var(--size);
    font-size: 1.25rem;
    user-select: none;
    transform: translateY(50%);
}

.avatar-wrapper img, .avatar-wrapper .icon {
    width: 100%;
    height: 100%;
    margin: 0;
    background-color: var(--card-bg);
    color: transparent;
    object-fit: cover;
    text-align: center;
    text-indent: 10000px;
}


header.tip a {
    color: var(--accent);
    text-decoration: none;
}

header.tip p {
    word-break: break-word;
    word-wrap: break-word;
}


main hr {
    margin: 0;
    padding: 0;
    background: var(--border-color);
    height: 1px;
    border: none;
}

footer {
    --_size: 40px;
    padding-top: var(--_size);
    width: 96%;
    margin: calc(var(--spacing) * 10) auto 0;
    padding-bottom: var(--_size);
    border-top: 1px solid var(--border-color);
    -moz-box-align: center;
    -webkit-box-pack: justify;
}

footer .lt-panel p:nth-of-type(1) {
    color: inherit;
}
header.tip {
    top: 2%;
    background-color: var(--card-bg);
    color: var(--text-main);
    z-index: 99;
    width: 80%;
    margin: 0 auto;
    border-radius: 5px;
    box-shadow: rgb(0 0 0 / 30%) 0 8px 40px -12px;
    transition: transform 250ms ease, box-shadow 250ms ease;
}
.sticky {
    position: sticky;
}

.parent {
    position: relative;
     display: flex;
     justify-content: center;
     align-items: center;
}
.search {
    width: 95%;
    height: 40px;
    border-radius: 8px;
    outline: none;
    /*border: 1px solid #ccc;*/
    /*position: absolute;*/
    margin:10px  auto auto auto;
}
#form {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 400px;
    z-index: 999;
    display: none;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    main#product-list {
        padding-top: 7rem;
    }

    header.tip {
        position: fixed;
        top: 1%;
        left: 0;
        right: 0;
        z-index: 999;
        background-color: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    header p {
        display: none;
    }

    .search {
        width: 100%;
        font-size: 1rem;
        margin: 2% auto;
        height: 20px;
    }
    #form {
        max-width: 90%;
        top: 10%;
    }

    .form {
        width: 100%;
    }

    .parent {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 8px;
    }

    .tab-container {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1 0 auto;
        text-align: center;
        min-width: 20%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.toggle-btn {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    margin-top: 6px;
}

.w-full{
    margin-bottom: 8px;
}

.toggle-btn:hover {
    background-color: #45a049;
}
/* 如果还没有的话 */
.flex-grow {
    flex-grow: 1;
}

.menu-icon{
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.menu-url{
    vertical-align: middle;
}
.tab-container {
    display: flex;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.tab-btn.active {
    color: #1890ff;
    border-bottom: 2px solid #1890ff;
}

.copy-btn {
    /* 基础样式 */
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f8f8;
    color: #333;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;

    /* 去除默认按钮样式 */
    outline: none;
    -webkit-appearance: none;
}

.copy-btn:hover {
    background-color: #e8e8e8;
    border-color: #ccc;
}

.copy-btn:active {
    background-color: #e0e0e0;
}

/* 点击反馈状态 */
.copy-btn.copied {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.cmd{
    color: #ffffff;
    font-size: 15px;
    background-color: #282c34;
    padding: 3px 5px;
    border-radius: 4px;
}

.cmd-remark{
    color: black;
    font-size: 15px;
    background-color: #D3D3D3;
    padding: 3px 5px;
    border-radius: 4px;
}

/* 插件懒加载样式 */
.loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 10px;
    color: var(--text-grey);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-more-data {
    text-align: center;
    padding: 20px;
    color: var(--text-grey);
    font-size: 14px;
}

#plugins-container {
    display: grid;
    grid-gap: var(--gutter, 3.5rem);
    grid-template-columns: repeat(auto-fill, minmax(min(var(--space, 20rem), 100%), 1fr));
    margin-top: 20px;
}

/* 新的插件区域样式 */
#plugins-section {
    clear: both;
    padding-left: calc(var(--spacing) * 6);
    padding-right: calc(var(--spacing) * 6);
    padding-bottom: calc(var(--spacing) * 20);
}

#plugins-section .section-title h2 {
    margin: 0;
    padding: 0;
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .loading-indicator {
        padding: 15px;
        font-size: 14px;
    }

    .spinner {
        width: 16px;
        height: 16px;
    }

    .no-more-data {
        padding: 15px;
        font-size: 12px;
    }
}

/* Refactored index layout */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    color: var(--text-main);
}

button,
input {
    font: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.translate-widget {
    position: fixed;
    top: 10px;
    right: 11px;
    z-index: 1000;
}

header.tip.page-header {
    top: 2.75rem;
    display: block;
    width: min(1120px, calc(100% - 2rem));
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
}

.header-container {
    position: relative;
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-actions .parent {
    margin: 0;
}

.header-actions .search {
    width: 100%;
    height: 2.75rem;
    margin: 0;
    padding: 0 1rem;
    color: var(--text-main);
    background: var(--main-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.header-actions .search:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.header-actions .toggle-btn {
    min-height: 2.75rem;
    margin: 0;
    padding: 0 1rem;
    background: var(--accent);
    border-radius: 0.75rem;
    font-weight: 600;
}

.header-actions .toggle-btn:hover {
    background: color-mix(in srgb, var(--accent) 88%, black);
}

.activation-guide {
    padding: 0.75rem 0.25rem 0.25rem;
}

.activation-guide .tab-container {
    gap: 0.25rem;
    margin: 0 0 0.75rem;
    border-color: var(--border-color);
}

.activation-guide .tab-btn {
    padding: 0.625rem 0.875rem;
    color: var(--text-grey);
    border-radius: 0.5rem 0.5rem 0 0;
}

.activation-guide .tab-btn:hover {
    color: var(--text-main);
    background: var(--hover-color);
}

.activation-guide .tab-btn.active {
    color: var(--accent);
    border-color: var(--accent);
}

.guide-panel {
    padding: 0.25rem 0;
}

.command-row {
    display: grid;
    grid-template-columns: 5.5rem auto minmax(0, 1fr);
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.command-row:last-child {
    border-bottom: 0;
}

.platform-name {
    font-size: 0.875rem;
}

.command-row .copy-btn {
    white-space: nowrap;
}

.command-row .cmd {
    min-width: 0;
    padding: 0.45rem 0.625rem;
    overflow-x: auto;
    font-family: Consolas, "SFMono-Regular", monospace;
    white-space: nowrap;
}

.command-help {
    grid-column: 3;
    margin: -0.125rem 0 0;
    color: var(--text-grey);
    font-size: 0.8125rem;
}

.cmd-remark {
    color: var(--text-main);
    font-family: inherit;
}

.guide-message p,
.help-panel p {
    margin: 0.5rem 0;
}

.help-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.help-panel article {
    padding: 1rem;
    background: var(--hover-color);
    border-radius: 0.75rem;
}

.help-panel h2 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.help-panel ul {
    margin: 0.75rem 0 0;
}

.guide-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding-top: 0.875rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.guide-links > span {
    color: var(--text-grey);
}

.text-link {
    padding: 0;
    color: var(--accent);
    background: none;
    border: 0;
}

.text-link:hover,
.guide-links a:hover {
    text-decoration: underline;
}

.runtime {
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    color: var(--text-grey);
    border-top: 1px solid var(--border-color);
    font-size: 0.8125rem;
}

.page-content {
    width: min(1280px, 100%);
    margin: 0 auto;
    padding: 4.5rem 1.5rem 5rem;
}

/* Card style 1: light gradient */
.product-grid,
#plugins-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
    gap: 1.5rem;
}

.product-grid .card,
#plugins-container .card {
    isolation: isolate;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 16.5rem;
    margin: 0;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid color-mix(in srgb, var(--border-color) 75%, var(--text-grey));
    border-radius: 1.25rem;
    box-shadow: 0 12px 32px rgb(0 0 0 / 10%);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-grid .card:hover,
#plugins-container .card:hover {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border-color));
    box-shadow: 0 18px 42px color-mix(in srgb, var(--accent) 16%, rgb(0 0 0 / 18%));
    transform: translateY(-4px);
}

.card-icon-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 7rem;
    padding: 1.25rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 5%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 48%),
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--card-bg)), var(--card-bg));
    border-bottom: 1px solid var(--border-color);
}

.card-icon-area::after {
    content: "";
    position: absolute;
    right: -2.5rem;
    bottom: -3.5rem;
    width: 9rem;
    height: 9rem;
    border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
    border-radius: 50%;
}

.card .avatar-wrapper {
    z-index: 1;
    width: 4.5rem;
    height: 4.5rem;
    padding: 0.25rem;
    background: color-mix(in srgb, var(--card-bg) 88%, transparent);
    border: 1px solid color-mix(in srgb, var(--border-color) 75%, transparent);
    border-radius: 1rem;
    box-shadow: 0 8px 22px rgb(0 0 0 / 12%);
    transform: none;
}

.card .avatar-wrapper .icon {
    background-color: transparent;
}

.card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.125rem 1.25rem 1.25rem;
    background: transparent;
    border-radius: 0;
}

.card-eyebrow {
    margin: 0 0 0.25rem;
    color: var(--text-grey);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card h2 {
    display: -webkit-box;
    min-height: 3rem;
    margin: 0 0 1rem;
    overflow: hidden;
    font-size: 1.125rem;
    line-height: 1.35;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.license-copy {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.625rem 0.875rem;
    margin-top: auto;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.license-copy-icon {
    font-size: 1.125rem;
    line-height: 1;
}

.license-copy:hover,
.license-copy:focus-visible {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.license-copy:disabled {
    cursor: wait;
    opacity: 0.55;
    transform: none;
}

/* Card style 2: JetBrains neon */
.card-style-2 .product-grid .card,
.card-style-2 #plugins-container .card {
    --card-tone: #7c5cff;
    min-height: 17rem;
    background: #11131a;
    border-color: #292d39;
    border-radius: 0.875rem;
    box-shadow: 0 14px 34px rgb(8 10 16 / 24%);
}

.card-style-2 .product-grid .card:nth-child(4n + 1),
.card-style-2 #plugins-container .card:nth-child(4n + 1) {
    --card-tone: #ff4d8d;
}

.card-style-2 .product-grid .card:nth-child(4n + 2),
.card-style-2 #plugins-container .card:nth-child(4n + 2) {
    --card-tone: #8b6cff;
}

.card-style-2 .product-grid .card:nth-child(4n + 3),
.card-style-2 #plugins-container .card:nth-child(4n + 3) {
    --card-tone: #00cfa6;
}

.card-style-2 .product-grid .card:nth-child(4n),
.card-style-2 #plugins-container .card:nth-child(4n) {
    --card-tone: #ff9d2e;
}

.card-style-2 .product-grid .card:hover,
.card-style-2 #plugins-container .card:hover {
    border-color: var(--card-tone);
    box-shadow: 0 20px 48px color-mix(in srgb, var(--card-tone) 22%, rgb(8 10 16 / 35%));
    transform: translateY(-5px) scale(1.01);
}

.card-style-2 .card-icon-area {
    min-height: 8rem;
    padding: 1.375rem;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--card-tone) 20%, #11131a), #11131a 62%);
    border-bottom-color: #292d39;
}

.card-style-2 .card-icon-area::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.35rem;
    background: linear-gradient(90deg, var(--card-tone), color-mix(in srgb, var(--card-tone) 35%, #fff));
}

.card-style-2 .card-icon-area::after {
    right: -2rem;
    bottom: -4.5rem;
    width: 9.5rem;
    height: 9.5rem;
    background: color-mix(in srgb, var(--card-tone) 10%, transparent);
    border-color: color-mix(in srgb, var(--card-tone) 34%, transparent);
    box-shadow: 0 0 50px color-mix(in srgb, var(--card-tone) 18%, transparent);
}

.card-style-2 .card .avatar-wrapper {
    width: 4.75rem;
    height: 4.75rem;
    padding: 0.375rem;
    background: #fff;
    border-color: color-mix(in srgb, var(--card-tone) 55%, #fff);
    border-radius: 0.625rem;
    box-shadow: 7px 7px 0 color-mix(in srgb, var(--card-tone) 48%, transparent);
}

.card-style-2 .card-content {
    padding: 1.125rem 1.375rem 1.375rem;
    background: #11131a;
}

.card-style-2 .card-eyebrow {
    color: color-mix(in srgb, var(--card-tone) 68%, #aab2c5);
}

.card-style-2 .card h2 {
    color: #f5f7fb;
}

.card-style-2 .license-copy {
    color: #fff;
    background: var(--card-tone);
    border-color: var(--card-tone);
    border-radius: 0.5rem;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--card-tone) 22%, transparent);
}

.card-style-2 .license-copy:hover,
.card-style-2 .license-copy:focus-visible {
    color: #11131a;
    background: #fff;
    border-color: #fff;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--card-tone) 35%, transparent);
}

/* Card style 3: minimal */
.card-style-3 .product-grid .card,
.card-style-3 #plugins-container .card {
    min-height: 14.5rem;
    background: var(--card-bg);
    border: 1px solid color-mix(in srgb, var(--text-grey) 28%, transparent);
    border-radius: 1rem;
    box-shadow: 0 3px 14px rgb(0 0 0 / 6%);
}

.card-style-3 .product-grid .card:hover,
.card-style-3 #plugins-container .card:hover {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border-color));
    box-shadow: 0 8px 24px rgb(0 0 0 / 9%);
    transform: translateY(-2px);
}

.card-style-3 .card-icon-area {
    min-height: 6.25rem;
    padding: 1.125rem 1.25rem;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

.card-style-3 .card-icon-area::before,
.card-style-3 .card-icon-area::after {
    content: none;
}

.card-style-3 .card .avatar-wrapper {
    width: 4rem;
    height: 4rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0.75rem;
    box-shadow: none;
}

.card-style-3 .card-content {
    padding: 1.125rem 1.25rem 1.25rem;
    background: var(--card-bg);
}

.card-style-3 .card-eyebrow {
    display: none;
}

.card-style-3 .card h2 {
    min-height: 2.875rem;
    margin-bottom: 0.875rem;
    color: var(--text-main);
    font-size: 1.0625rem;
}

.card-style-3 .license-copy {
    min-height: 2.5rem;
    color: var(--text-main);
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--text-grey) 38%, transparent);
    border-radius: 0.625rem;
    box-shadow: none;
    font-weight: 600;
}

.card-style-3 .license-copy:hover,
.card-style-3 .license-copy:focus-visible {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: none;
}

#plugins-section {
    padding: 0;
    margin-top: 4rem;
}

#plugins-container {
    margin-top: 0;
}

.dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgb(0 0 0 / 58%);
    backdrop-filter: blur(3px);
}

body.dialog-open {
    overflow: hidden;
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1100;
    min-width: min(18rem, calc(100% - 2rem));
    max-width: min(26rem, calc(100% - 2rem));
    padding: 0.75rem 1rem;
    color: #fff;
    text-align: center;
    background: #24262b;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 0.75rem;
    box-shadow: 0 12px 36px rgb(0 0 0 / 28%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: toast-in 160ms ease-out;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 0.5rem)) scale(0.96);
    }
}

.toast[data-type="error"] {
    background: #9f2f32;
}

.toast[hidden] {
    display: none;
}

.loading-indicator[hidden],
.no-more-data[hidden] {
    display: none;
}

.plugin-sentinel {
    height: 1px;
}

#form.dialog-shell,
#plugin-form.dialog-shell {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 999;
    width: min(400px, calc(100% - 2rem));
    max-width: none;
    max-height: calc(100vh - 2rem);
    padding: 0;
    overflow-y: auto;
    transform: translate(-50%, -50%);
}

#plugin-form.dialog-shell-wide {
    width: min(480px, calc(100% - 2rem));
}

.form.dialog-card {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 1.5rem;
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 1rem;
    box-shadow: 0 24px 72px rgb(0 0 0 / 35%);
}

.dialog-card .title {
    margin: 0;
    font-size: 1.75rem;
}

.dialog-card .subtitle {
    margin: 0.5rem 0 0;
    line-height: 1.6;
}

.dialog-card .ic1,
.dialog-card .ic2 {
    display: block;
    margin-top: 2rem;
}

.dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 2rem;
}

.dialog-actions .submit {
    margin-top: 0;
}

.submit-secondary {
    background: #65657b;
}

@media (max-width: 768px) {
    header.tip.page-header {
        position: sticky;
        top: 2.5rem;
        left: auto;
        right: auto;
        width: calc(100% - 1rem);
        background: var(--card-bg);
        border-radius: 0.875rem;
    }

    header.tip.page-header p {
        display: block;
    }

    .page-content {
        padding: 3.5rem 1rem 4rem;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .header-actions .search {
        height: 2.5rem;
        margin: 0;
        font-size: 1rem;
    }

    .header-actions .toggle-btn {
        min-height: 2.5rem;
        padding: 0 0.75rem;
    }

    .activation-guide .tab-btn {
        min-width: auto;
        flex: 1 1 auto;
        padding-inline: 0.5rem;
    }

    .command-row {
        grid-template-columns: 1fr auto;
    }

    .command-row .cmd,
    .command-help {
        grid-column: 1 / -1;
    }

    .help-panel {
        grid-template-columns: 1fr;
    }

    .product-grid,
    #plugins-container {
        gap: 1rem;
    }

    .toast {
        max-width: calc(100% - 1rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
