/* 页面样式入口：引用公共样式 */
@import url('/static/common/css/style.css');
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 16px;
}

h1 {
    margin: 8px 0 16px;
    font-size: 22px;
}

.tool-section {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.tool-section h2 {
    margin: 0 0 12px;
    font-size: 16px;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "left right"
        "actions actions";
    gap: 12px;
    align-items: start;
}

.row > .col:first-child { grid-area: left; }
.row > .col:last-child { grid-area: right; }
.actions { grid-area: actions; }

.col label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

textarea {
    width: 100%;
    min-height: 160px;
    resize: vertical;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 12px;
}

button {
    padding: 10px 14px;
    border: 1px solid #ddd;
    background: #f7f7f7;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
}

button.primary {
    background: #2d7ff9;
    color: #fff;
    border-color: #2d7ff9;
}

button.secondary {
    background: #fafafa;
}

.tip {
    font-size: 12px;
    color: #888;
}

/* 复制成功提示 */
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(16px);
    background: rgba(51, 51, 51, 0.92);
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 9999;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 980px) {
    .row {
        grid-template-columns: 1fr;
        grid-template-areas:
            "left"
            "right"
            "actions";
    }
    .actions {
        flex-direction: row;
        justify-content: flex-start;
        margin-top: 8px;
    }
}


