/* 静态前端补充样式：工具卡片、表单、结果面板等在 style.css 之外的部分。 */

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

.tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
    color: var(--text);
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); color: var(--text); }
.tool-card .icon {
    width: 42px; height: 42px; border-radius: 13px;
    display: grid; place-items: center;
    background: var(--brand-grad-soft);
    color: var(--brand);
}
.tool-card .icon svg { width: 22px; height: 22px; }
.tool-card h3 { font-size: 15px; font-weight: 650; }
.tool-card p { color: var(--text-2); font-size: 13px; line-height: 1.6; }
.tool-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tool-card .tag {
    font-size: 11px; letter-spacing: .02em;
    padding: 3px 8px; border-radius: 999px;
    background: var(--panel-3); color: var(--text-2);
}

.search-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.search-bar .input { flex: 1 1 240px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: 7px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--card);
    font-size: 13px; color: var(--text-2); cursor: pointer;
    transition: all .18s var(--ease);
}
.chip.active { background: var(--brand-soft); border-color: transparent; color: var(--brand); font-weight: 600; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.stat-box b { display: block; font-size: 22px; line-height: 1.3; }
.stat-box span { color: var(--muted); font-size: 12px; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 20px; margin-bottom: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { font-size: 15px; font-weight: 650; }
.panel-head .hint { color: var(--muted); font-size: 12px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; color: var(--text-2); font-weight: 600; }
.input, select.input, textarea.input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: #fff;
    font-size: 13px;
    font-family: inherit;
    color: var(--text);
    outline: none;
    transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
textarea.input { min-height: 180px; resize: vertical; font-family: 'SF Mono', ui-monospace, Menlo, monospace; line-height: 1.6; }

.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.row > .field { flex: 1 1 180px; margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 18px; border-radius: 11px;
    border: 1px solid transparent;
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: all .18s var(--ease);
    font-family: inherit;
}
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 6px 18px rgba(79, 70, 229, .24); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: var(--panel-3); color: var(--text-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand); }
.btn-danger { background: #fdeceb; color: var(--red); }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

.code-block {
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    font-family: 'SF Mono', ui-monospace, Menlo, monospace;
    font-size: 12.5px;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--text-2);
    position: relative;
}
.code-block .copy {
    position: absolute; top: 8px; right: 8px;
    padding: 4px 10px; border-radius: 8px;
    border: 1px solid var(--line-strong); background: #fff;
    font-size: 11px; color: var(--text-2); cursor: pointer;
}

.result-list { display: flex; flex-direction: column; gap: 12px; }
.result-item { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--panel-2); }
.result-item .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
.result-item .value { font-family: 'SF Mono', ui-monospace, Menlo, monospace; font-size: 12.5px; word-break: break-all; margin: 8px 0; }

.empty { text-align: center; color: var(--muted); padding: 32px 0; font-size: 13px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }

/* 视频下载 */
.media-result { border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 14px; background: var(--card); }
.media-head { display: flex; gap: 14px; }
.media-head img { width: 132px; height: 82px; object-fit: cover; border-radius: 10px; background: var(--panel-3); }
.media-head h3 { font-size: 14px; line-height: 1.5; margin-bottom: 6px; }
.media-head .meta { color: var(--muted); font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.option-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.option {
    display: flex; align-items: center; gap: 7px;
    padding: 7px 12px; border-radius: 10px;
    border: 1px solid var(--line-strong); background: #fff;
    font-size: 12.5px; cursor: pointer;
}
.option input { accent-color: var(--brand); }
.option.checked { border-color: var(--brand); background: var(--brand-soft); }

.task-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--panel-2); margin-bottom: 10px; }
.task-item .top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.task-item .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 6px; border-radius: 999px; background: var(--panel-3); overflow: hidden; margin: 8px 0 6px; }
.bar > i { display: block; height: 100%; width: 0; background: var(--brand-grad); transition: width .3s var(--ease); }
.task-item .sub { color: var(--muted); font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; }

/* 二维码 */
.qr-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px; }
.qr-stage img { width: 240px; height: 240px; image-rendering: pixelated; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }

/* 接口清单表 */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: none; }
.table code { color: var(--brand); }
.method { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--panel-3); color: var(--text-2); }
.method.POST { background: #e9f8f0; color: var(--green); }
.method.GET { background: #e8f3fd; color: var(--blue); }
.method.DELETE { background: #fdeceb; color: var(--red); }
.param-list { color: var(--muted); font-size: 11.5px; line-height: 1.7; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.step { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--panel-2); }
.step b { display: block; margin-bottom: 6px; font-size: 13px; }
.step span { color: var(--text-2); font-size: 12.5px; line-height: 1.6; }
.step .num {
    display: inline-grid; place-items: center;
    width: 22px; height: 22px; border-radius: 999px;
    background: var(--brand); color: #fff; font-size: 11px; margin-right: 6px;
}

@media (max-width: 720px) {
    .media-head img { width: 96px; height: 62px; }
    .panel { padding: 16px; }
}

/* 赞助区块 */
.donate-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.donate-chain { font-size: 12.5px; font-weight: 600; color: var(--text-2); min-width: 96px; }
.donate-addr { flex: 1 1 240px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px;
  color: var(--text); background: var(--panel-3); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; word-break: break-all; user-select: all; }
.donate-qr { margin-top: 8px; text-align: center; }
.donate-qr img { border-radius: 10px; background: #fff; padding: 8px; }
.btn-sm { padding: 6px 10px; font-size: 12.5px; }
