/* ============================================================
   工具箱 · 液态玻璃（严格照搬 yzrt/纯CSS液态玻璃 案例代码）
   案例核心：几乎全透明的玻璃 + blur(2px) + brightness(0.9)
   + 多重白色内高光 + 模糊暗描边 + 45° 光泽扫面 + contrast(3) 外层
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    text-decoration: none;
    transition: 0.25s;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;

    --color: #E1E1E1;
    background-color: #F3F3F3;
    background-image:
        linear-gradient(0deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%, transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%, transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%, transparent);
    background-size: 55px 55px;

    color: #3e3e3e;
    font-family: "微软雅黑", "PingFang SC", "Noto Sans SC", sans-serif;
}

.container {
    width: min(1180px, 92vw);
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 3rem 0;

    .top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 2rem;
        flex-wrap: wrap;
    }

    .bottom {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
        align-items: stretch;
    }
}

.fx-layer {
    filter: contrast(3);
}

/* ---------------- 案例 .box 玻璃（参数原样保留） ---------------- */
.box {
    --w: 100px;
    --h: 100px;
    --r: 9999px;
    --tr: 25%;

    z-index: 500;
    position: relative;
    width: var(--w);
    height: var(--h);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--r);
    border: 1px double rgba(51, 51, 51, 0.08);

    box-shadow:
        inset 2px -2px 1px -1px rgba(255, 255, 255, 0.9),
        inset -2px 2px 1px -1px rgba(255, 255, 255, 0.9),
        inset 6px -6px 1px -6px rgba(255, 255, 255, 0.55),
        inset -6px 6px 1px -6px rgba(255, 255, 255, 0.55),
        inset 0 0 2px rgba(0, 0, 0, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.2);

    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(2px);
    cursor: pointer;
    filter: brightness(0.9);

    &:before {
        content: '';
        position: absolute;
        z-index: 1;
        top: 35%;
        left: 50%;
        transform: translateX(-50%);
        width: calc(var(--w) - 16px);
        height: calc(var(--h) - 16px);
        border-radius: var(--r);
        border: 1px solid rgba(0, 0, 0, 0.9);
        filter: blur(8px);
    }

    &:after {
        z-index: 501;
        content: '';
        position: absolute;
        width: var(--w);
        height: var(--h);
        border-radius: var(--r);
        filter: blur(3px);
        background: linear-gradient(
                45deg,
                rgba(255, 255, 255, 0.8) 0%,
                transparent var(--tr),
                transparent calc(100% - var(--tr)),
                rgba(255, 255, 255, 0.8) 100%
        );
    }

    .circle-overlay {
        position: absolute;
        width: calc(var(--w) - 9px);
        height: calc(var(--h) - 9px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: var(--r);
        filter: blur(1px);
    }

    /* 装饰层不拦截鼠标（否则光泽层会盖住卡片里的链接，点击无效） */
    &:before,
    &:after,
    .circle-overlay {
        pointer-events: none;
    }
}

/* ---------------- 头部玻璃按键（案例 start-btn 原样） ---------------- */
.start-btn {
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;

    span {
        font-size: 33px;
        font-family: "微软雅黑", "PingFang SC", "Noto Sans SC", sans-serif;
        color: #3e3e3e;
        white-space: nowrap;
    }
}

/* 案例的"悬浮投影"（案例 .box span 规则），只作用于主题图标与头部文字 */
.start-btn .box-text,
.tool-icon {
    filter: drop-shadow(0 25px 3px rgba(102, 102, 102, 0.15));
}

/* ---------------- 状态玻璃框 ---------------- */
.status-box {
    padding: 0 28px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    cursor: default;
}
.status-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #555;
    filter: none !important;
}
.status-row b {
    color: #3e3e3e;
    font-weight: 600;
    filter: none !important;
}
#stat-projects { font-size: 17px; }

/* ---------------- 标题 ---------------- */
.section-title {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #3e3e3e;
}

/* ---------------- 工具卡片（同款 .box 玻璃，圆角矩形） ---------------- */
.tool-card {
    --w: 100%;
    --h: 200px;
    --r: 30px;
    --tr: 22%;

    padding: 0;
    justify-content: center;
    align-items: stretch;
}

.tool-link {
    position: absolute;
    inset: 0;
    z-index: 2;              /* 内容在暗描边(::before, z=1)之上、光泽(::after, z=501)之下 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 26px 28px;
    color: #3e3e3e;
}

.tool-head {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.tool-icon {
    font-size: 30px;
    line-height: 1;
    /* 案例 .box span 的悬浮投影，图标专属 */
}
.tool-name {
    font-size: 19px;
    font-weight: 700;
    color: #3e3e3e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    filter: none !important;
}
.tool-ver {
    margin-left: auto;
    font-size: 12px;
    color: #777;
    filter: none !important;
}

.tool-desc {
    min-height: 46px;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    filter: none !important;
}
.caret {
    display: inline-block;
    width: 1.5px;
    height: 1.05em;
    margin-left: 3px;
    vertical-align: -2px;
    background: #555;
    animation: blink 1s steps(1, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 28px;
    filter: none !important;
}
.chip {
    font-size: 12.5px;
    padding: 4px 13px;
    border-radius: 999px;
    color: #3e3e3e;
    border: 1px double rgba(51, 51, 51, 0.1);
    background: rgba(255, 255, 255, 0.05);
    box-shadow:
        inset 0 0 2px rgba(0, 0, 0, 0.35),
        0 2px 4px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .3s ease, transform .3s ease;
}
.tool-card.done .chip { opacity: 1; transform: none; }
.tool-card.done .chip:nth-child(2) { transition-delay: .06s; }
.tool-card.done .chip:nth-child(3) { transition-delay: .12s; }
.tool-card.done .chip:nth-child(4) { transition-delay: .18s; }
.tool-card.done .chip:nth-child(5) { transition-delay: .24s; }

/* ---------------- 引导卡（无项目时，同款玻璃） ---------------- */
.setup-card {
    --w: 100%;
    --h: auto;
    --r: 30px;
    --tr: 22%;

    padding: 30px 34px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 14px;
    cursor: default;
}
.setup-card:before {
    top: 8px;
    left: 8px;
    transform: none;
    right: 8px;
    bottom: 8px;
    width: auto;
    height: auto;
    border-radius: calc(var(--r) - 8px);
}
.setup-card h3 { font-size: 18px; color: #3e3e3e; filter: none; }
.setup-card ol {
    margin-left: 20px;
    line-height: 2;
    font-size: 13.5px;
    color: #555;
    filter: none;
}
.setup-card code {
    background: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    padding: 1px 6px;
}

/* ---------------- 页脚 ---------------- */
.foot {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    filter: none;
}
.foot .beian { margin-top: 8px; }
.foot a { color: #6b7280; }
.foot a:hover { color: #3e3e3e; }

/* ---------------- Toast（固定浮层，玻璃配方同款） ---------------- */
.toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999;
    max-width: 360px;
    padding: 14px 20px;
    border-radius: 20px;
    font-size: 13px;
    color: #3e3e3e;
    border: 1px double rgba(51, 51, 51, 0.1);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(2px);
    filter: brightness(0.92);
    box-shadow:
        inset 2px -2px 1px -1px rgba(255, 255, 255, 0.9),
        inset -2px 2px 1px -1px rgba(255, 255, 255, 0.9),
        inset 0 0 2px rgba(0, 0, 0, 0.7),
        0 4px 8px rgba(0, 0, 0, 0.2);
    animation: toast-in .25s ease;
}
@keyframes toast-in {
    from { transform: translateY(12px); opacity: 0; }
}

/* ---------------- 小屏适配 ---------------- */
@media (max-width: 760px) {
    .container { gap: 2.2rem; }
    .top { flex-direction: column; gap: 1.2rem; }
    .start-btn { --w: 100%; }
    .status-box { --w: 100%; }
    .bottom { grid-template-columns: 1fr; gap: 1.4rem; }
    .start-btn span { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    .caret { animation: none; }
}
