/*
 * 正则表达式测试样式
 * ============================================================================
 * 版权所有 (C) 西安尊云信息科技有限公司，并保留所有权利。
 * 网站地址: http://www.zunyunkeji.com
 * ----------------------------------------------------------------------------
 * 许可声明：未经许可不得将本软件的整体或任何部分用于商业用途及再发布。
 * ============================================================================
 * Author: 缘境 (yvsm@zunyunkeji.com) QQ:316430983 微信：yvsm316
*/
.tool-regex-section { padding: 48px 0 72px; background: #f7f9fc; }
.tool-regex-pattern-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}
.tool-regex-slash {
    text-align: center;
    color: #64748b;
    font-family: Consolas, "Courier New", monospace;
    font-size: 22px;
    font-weight: 700;
}
.tool-regex-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 14px;
}
.tool-regex-highlight {
    min-height: 180px;
    padding: 14px 16px;
    border: 1px solid #d9e3f1;
    border-radius: 10px;
    background: #0f172a;
    color: #e2e8f0;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}
.tool-regex-highlight mark {
    padding: 0 2px;
    border-radius: 3px;
    background: rgba(56, 189, 248, 0.35);
    color: #f8fafc;
}
.tool-regex-matches { display: grid; gap: 10px; }
.tool-regex-match {
    padding: 12px 14px;
    border: 1px solid #e5edf7;
    border-radius: 10px;
    background: #f8fbff;
}
.tool-regex-match strong { color: #1c2f4c; }
.tool-regex-match code { margin-left: 6px; }
@media (max-width: 767px) {
    .tool-regex-section { padding: 28px 0 48px; }
    .tool-regex-pattern-row { grid-template-columns: 28px minmax(0, 1fr); }
    .tool-regex-pattern-row .tool-actions { grid-column: 1 / -1; }
}
