* { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; background: #f1f5f9; color: #111827; min-height: 100vh; } .layout { display: flex; max-width: 980px; margin: 0 auto; gap: 20px; padding: 28px 20px 80px; } .side { width: 220px; flex: none; position: sticky; top: 28px; align-self: start; } .logo { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; } .logo img { border-radius: 9px; } .logo h1 { font-size: 16px; } .logo span { font-size: 11px; color: #9ca3af; } .side nav { display: grid; gap: 4px; } .side nav a { text-decoration: none; color: #4b5563; font-size: 13.5px; padding: 9px 12px; border-radius: 9px; transition: all .15s; } .side nav a:hover { background: #e0e7ff; color: #4338ca; } .side nav a.active { background: #4f46e5; color: #fff; font-weight: 600; } main { flex: 1; display: grid; gap: 16px; } .card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 22px 24px; box-shadow: 0 1px 3px rgba(0,0,0,.05); } .card h2 { font-size: 15.5px; margin-bottom: 4px; } .desc { font-size: 12.5px; color: #6b7280; margin-bottom: 16px; line-height: 1.6; } .desc code, .about code { background: #f3f4f6; padding: 1px 5px; border-radius: 4px; font-size: 11.5px; color: #4f46e5; } .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; } .field { display: grid; gap: 5px; } .field.wide { grid-column: 1 / -1; } .field > span { font-size: 12px; font-weight: 600; color: #374151; } .field input, .field select, textarea { padding: 9px 12px; border: 1px solid #e5e7eb; border-radius: 9px; font-size: 13.5px; color: #111827; outline: none; background: #fff; font-family: inherit; transition: border-color .15s, box-shadow .15s; width: 100%; } .field input:focus, .field select:focus, textarea:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,.13); } .keywrap { display: flex; gap: 6px; } .keywrap input { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; } .ghost { border: 1px solid #e5e7eb; background: #fff; border-radius: 9px; cursor: pointer; padding: 0 10px; font-size: 14px; } .ghost:hover { background: #f9fafb; } textarea { resize: vertical; line-height: 1.6; } .actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; } .btn { border: none; cursor: pointer; font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: 9px; background: #eef2ff; color: #4f46e5; transition: all .15s; } .btn:hover { background: #e0e7ff; } .btn.primary { background: linear-gradient(135deg, #4f46e5, #8b5cf6); color: #fff; } .btn.primary:hover { filter: brightness(1.08); } .btn:disabled { opacity: .55; cursor: wait; } .test-result { font-size: 12.5px; } .test-result.ok { color: #10b981; } .test-result.err { color: #ef4444; white-space: pre-wrap; } .tips { margin-top: 14px; font-size: 12px; color: #6b7280; line-height: 1.7; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 14px; } .about { list-style: none; display: grid; gap: 9px; font-size: 13px; color: #374151; line-height: 1.6; } .about li::before { content: '✓ '; color: #10b981; font-weight: 700; } kbd { background: #f3f4f6; border: 1px solid #d1d5db; border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; font-size: 11.5px; font-family: inherit; } .savebar { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; background: #111827; color: #fff; padding: 10px 12px 10px 20px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.3); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; } .savebar.show { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(-4px); } #saveHint { font-size: 12.5px; } @media (max-width: 720px) { .layout { flex-direction: column; } .side { width: auto; position: static; } .grid2 { grid-template-columns: 1fr; } }