﻿@import url('./theme.css');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
    background: radial-gradient(1200px 800px at 60% -20%, var(--bg-glow) 0%, var(--bg-main) 58%);
    color: #fff;
}
a { color: inherit; text-decoration: none; }

.tool-detail-page {
    height: 100vh;
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 18px;
    padding: 18px 18px 22px;
    overflow: hidden;
}

.tool-left-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    height: 100%;
}

.mini-logo {
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 10px;
    object-fit: contain;
    object-position: center;
}

.tool-left-icons a {
    width: 50px;
    min-height: 62px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    gap: 5px;
    color: rgba(255,255,255,.6);
}
.tool-left-icons > a:first-child {
    width: 62px;
    min-height: 62px;
    border: 0;
    background: transparent;
    padding: 0;
}
.tool-left-icons a:nth-of-type(2)::before { content: "◔"; font-size: 22px; line-height: 1; }
.tool-left-icons a:nth-of-type(3)::before { content: "✎"; font-size: 22px; line-height: 1; }
.tool-left-icons a:nth-of-type(4)::before { content: "◧"; font-size: 22px; line-height: 1; }
.tool-left-icons a:nth-of-type(5)::before { content: "▣"; font-size: 22px; line-height: 1; }
.tool-left-icons a:nth-of-type(7)::before { content: "◈"; font-size: 22px; line-height: 1; }
.tool-left-icons a:nth-of-type(8)::before { content: "◉"; font-size: 22px; line-height: 1; }

.tool-left-icons a.active {
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: #fff;
}

.tool-left-icons .spacer { flex: 1; }

.tool-detail-main {
    min-height: 0;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    background: rgba(24, 10, 18, 0.84);
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    overflow: hidden;
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tool-title h1 {
    margin: 0;
    font-size: clamp(26px, 2.2vw, 42px);
    line-height: 1.1;
}

.tool-title p {
    margin: 8px 0 0;
    color: rgba(255,255,255,.62);
    font-size: 14px;
}

.tool-actions {
    display: flex;
    gap: 8px;
}

.btn,
.tool-chip {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.88);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
}

.btn.primary {
    border-color: rgba(var(--accent-rgb),.72);
    background: rgba(var(--accent-rgb),.16);
    color: #fff;
}

.tool-state-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tool-chip.active {
    border-color: rgba(var(--accent-rgb),.72);
    background: rgba(var(--accent-rgb),.16);
    color: #fff;
}

.tool-workbench {
    padding: 18px 22px;
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 16px;
    min-height: 0;
    overflow: auto;
}

.panel {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    padding: 14px;
}

.panel h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.panel .hint {
    margin: 0 0 12px;
    color: rgba(255,255,255,.58);
    font-size: 13px;
    line-height: 1.6;
}

.field,
.textarea,
.select {
    width: 100%;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.textarea { min-height: 120px; resize: vertical; }

.upload-box {
    border: 1px dashed rgba(255,255,255,.3);
    border-radius: 12px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.6);
    font-size: 13px;
    margin-bottom: 10px;
}

.state-views {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.state-view {
    display: none;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    background: rgba(255,255,255,.03);
    padding: 12px;
}

.state-view.active { display: block; }

.ref-shot {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
}

.ref-shot img { width: 100%; display: block; }

.badge-row {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    padding: 4px 10px;
    font-size: 12px;
    color: rgba(255,255,255,.85);
}

.tool-footer {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 12px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tool-footer p {
    margin: 0;
    font-size: 12px;
    color: rgba(255,255,255,.52);
}

.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.58);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 90;
}

.modal-mask.show { display: flex; }

.modal {
    width: min(92vw, 420px);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(20,12,16,.98);
    padding: 16px;
}

.modal h4 {
    margin: 0 0 8px;
    font-size: 18px;
}

.modal p {
    margin: 0 0 14px;
    color: rgba(255,255,255,.62);
    font-size: 14px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

@media (max-width: 1024px) {
    html, body { height: auto; overflow: auto; }
    .tool-detail-page { grid-template-columns: 1fr; }
    .tool-left-icons { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .tool-left-icons .spacer { display: none; }
    .tool-workbench { grid-template-columns: 1fr; }
}




