* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: #0b0e14;
    color: #e8e4d8;
    font-family: 'Segoe UI', system-ui, sans-serif;
    padding: 20px 16px 40px;
    min-height: 100vh;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
}
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #1a1f28;
    border-radius: 8px;
}
::-webkit-scrollbar-thumb {
    background: #b8943c;
    border-radius: 8px;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #2c3340;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.header h1 {
    font-size: 26px;
    font-weight: 600;
    background: linear-gradient(135deg, #f0d68a, #c9a84c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.btn {
    background: transparent;
    border: 1px solid #3d4a5e;
    color: #d0d4dc;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
    font-weight: 400;
    letter-spacing: .2px;
}
.btn:hover {
    border-color: #b8943c;
    color: #f0e6d0;
    background: rgba(184, 148, 60, 0.08);
}
.btn-primary {
    background: #b8943c;
    border-color: #b8943c;
    color: #0b0e14;
    font-weight: 500;
}
.btn-primary:hover {
    background: #c9a84c;
    border-color: #c9a84c;
    color: #0b0e14;
}
.btn-danger {
    border-color: #6f4e4e;
    color: #d4a0a0;
}
.btn-danger:hover {
    border-color: #b06060;
    color: #f0c0c0;
    background: rgba(176, 96, 96, 0.08);
}
.btn-sm {
    padding: 4px 14px;
    font-size: 12px;
}
.btn-gold-outline {
    border-color: #b8943c;
    color: #d4cdb8;
}
.btn-gold-outline:hover {
    background: rgba(184, 148, 60, 0.12);
    border-color: #c9a84c;
}
.paste-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
@media (max-width:900px) {
    .paste-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width:600px) {
    .paste-grid {
        grid-template-columns: 1fr;
    }
}
.paste-box {
    background: #131a24;
    border-radius: 12px;
    border: 1px solid #26303e;
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
}
.paste-box .label {
    font-weight: 500;
    color: #d4cdb8;
    font-size: 14px;
    margin-bottom: 2px;
}
.paste-box .step-hint {
    font-size: 11px;
    color: #7a8392;
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 32px;
}
.paste-box textarea {
    flex: 1;
    min-height: 150px;
    background: #0a0f16;
    border: 1px solid #26303e;
    border-radius: 8px;
    color: #e0dccc;
    font-size: 12px;
    font-family: 'Consolas', 'Courier New', monospace;
    padding: 10px 12px;
    resize: vertical;
    line-height: 1.6;
}
.paste-box textarea:focus {
    outline: none;
    border-color: #b8943c;
    box-shadow: 0 0 0 3px rgba(184, 148, 60, 0.15);
}
.paste-box textarea::placeholder {
    color: #4a5363;
    font-size: 12px;
    font-family: 'Segoe UI', sans-serif;
}
.paste-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 16px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #1e2735;
    border-bottom: 1px solid #1e2735;
}
.action-bar .btn {
    padding: 7px 18px;
    font-size: 13px;
}
.action-bar .spacer {
    flex: 1;
}
.action-bar .badge {
    font-size: 11px;
    color: #5a6373;
}
.output-area {
    background: #0a0f16;
    border-radius: 12px;
    border: 1px solid #26303e;
    padding: 4px;
    margin-top: 4px;
}
.output-area textarea {
    width: 100%;
    min-height: 220px;
    background: transparent;
    border: none;
    color: #e0dccc;
    font-size: 13px;
    font-family: 'Consolas', 'Courier New', monospace;
    padding: 14px 16px;
    resize: vertical;
    line-height: 1.7;
    border-radius: 12px;
}
.output-area textarea:focus {
    outline: none;
}
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.open {
    display: flex;
}
.modal-box {
    background: #1a232f;
    border: 1px solid #3d4a5e;
    border-radius: 20px;
    padding: 28px 32px 24px;
    max-width: 640px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}
.modal-box .close-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    color: #8a929e;
    font-size: 26px;
    cursor: pointer;
    transition: color .2s;
}
.modal-box .close-btn:hover {
    color: #f0e6d0;
}
.modal-box h3 {
    font-size: 20px;
    color: #f0e6d0;
    margin-bottom: 6px;
}
.modal-box .sub {
    color: #a8aeb8;
    font-size: 14px;
    margin-bottom: 16px;
}
.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    margin: 12px 0 8px;
}
@media (max-width:550px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
}
.filter-group {
    background: #0f1620;
    border-radius: 8px;
    padding: 10px 12px 12px;
    border: 1px solid #1e2735;
}
.filter-group .fg-title {
    font-weight: 500;
    color: #d4cdb8;
    font-size: 13px;
    margin-bottom: 6px;
}
.filter-group .fg-title .hint {
    font-weight: 400;
    font-size: 10px;
    color: #6a7382;
}
.filter-group .fg-items {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}
.filter-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #c8ccd4;
    cursor: pointer;
}
.filter-group label input[type="checkbox"] {
    accent-color: #b8943c;
    width: 14px;
    height: 14px;
    cursor: pointer;
    filter: brightness(1.2);
}
.filter-group label.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.filter-group label.disabled input {
    cursor: not-allowed;
}
.preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 14px;
    align-items: center;
}
.preset-row .label {
    font-size: 13px;
    color: #8a929e;
    margin-right: 4px;
}
.preset-row .btn {
    font-size: 12px;
    padding: 4px 14px;
}
.preset-row .btn.active-preset {
    background: #b8943c;
    border-color: #b8943c;
    color: #0b0e14;
}
.tutorial-body .section {
    margin-bottom: 16px;
}
.tutorial-body .section .st {
    font-weight: 600;
    color: #d4cdb8;
    margin-bottom: 4px;
}
.tutorial-body ol,
.tutorial-body ul {
    padding-left: 20px;
    margin: 4px 0 8px;
    line-height: 1.8;
    color: #d0d4dc;
    font-size: 14px;
}
.tutorial-body .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 6px 0 10px;
}
@media (max-width:550px) {
    .tutorial-body .grid-2 {
        grid-template-columns: 1fr;
    }
}
.tutorial-body .field-item {
    background: #0f1620;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #2a3342;
    font-size: 13px;
}
.tutorial-body .field-item strong {
    color: #f0d68a;
    display: inline-block;
    min-width: 70px;
}
.tutorial-body .highlight-box {
    background: #1a232f;
    border-left: 3px solid #b8943c;
    padding: 10px 14px;
    border-radius: 6px;
    margin: 8px 0;
    font-size: 13px;
    color: #d8d4c8;
}
.inline-code {
    background: #1a232f;
    padding: 1px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    color: #d4cdb8;
    border: 1px solid #2a3342;
}
.modal-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 16px;
}
.modal-platforms .btn {
    flex: 1;
    min-width: 70px;
    text-align: center;
    padding: 6px 12px;
    background: #0f1620;
    border-color: #2a3342;
}
.modal-platforms .btn:hover {
    border-color: #b8943c;
    background: #1a232f;
}
.prompt-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 6px 0 10px;
}
.prompt-checkboxes label {
    font-size: 13px;
    color: #d0d4dc;
    display: flex;
    align-items: center;
    gap: 4px;
}
.prompt-checkboxes label input {
    accent-color: #b8943c;
}
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e2735;
    border: 1px solid #b8943c;
    color: #f0e6d0;
    padding: 10px 26px;
    border-radius: 40px;
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    transition: opacity .3s, transform .3s;
    pointer-events: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #1e2735;
    font-size: 12px;
    color: #5a6373;
    text-align: center;
    line-height: 1.6;
}
.footer strong {
    color: #8a929e;
}

.history-item {
    background: #0f1620;
    border: 1px solid #1e2735;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all .2s;
}
.history-item:hover {
    border-color: #b8943c;
    background: #161f2e;
}
.history-item .time {
    font-size: 12px;
    color: #7a8392;
    margin-bottom: 4px;
}
.history-item .preview {
    font-size: 13px;
    color: #d0d4dc;
    font-family: 'Consolas', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.history-item .del {
    float: right;
    color: #6f4e4e;
    cursor: pointer;
    font-size: 14px;
    padding: 0 4px;
}
.history-item .del:hover {
    color: #d4a0a0;
}
.history-empty {
    color: #5a6373;
    text-align: center;
    padding: 30px 0;
    font-size: 14px;
}
.history-clear-all {
    display: inline-block;
    margin-top: 12px;
}
.history-count {
    font-size: 12px;
    color: #5a6373;
    margin-left: 6px;
}
/* ===== 星体说明弹窗专用样式 ===== */
.glossary-group {
    margin-bottom: 16px;
}
.glossary-group .g-title {
    font-weight: 600;
    color: #f0d68a;
    font-size: 14px;
    margin-bottom: 4px;
}
.glossary-group .g-item {
    font-size: 13px;
    color: #d0d4dc;
    padding: 2px 0 2px 12px;
    border-left: 2px solid #2a3342;
    margin-bottom: 2px;
}
.glossary-group .g-item .tag {
    color: #7a8392;
    font-size: 12px;
}