/* 导入Bootstrap样式 */
@import url("../static/css/bootstrap.min.css");

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #fff !important;
    color: #333 !important;
    line-height: 1.4;
}

/* Panel样式 */
.panel {
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid transparent;
    border-radius: 4px;
    -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05);
    box-shadow: 0 1px 1px rgba(0,0,0,.05);
}

.panel-default {
    border-color: #ddd;
}

.panel-heading {
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    color: #333;
    background-color: #f5f5f5;
    border-color: #ddd;
}

.panel-title {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 16px;
    color: inherit;
}

.x-a-high {
    color: #337ab7;
    text-decoration: none;
}

.x-a-high:hover {
    color: #23527c;
    text-decoration: underline;
}

.nav-icon {
    margin-right: 3px;
}

/* 主容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
}

/* 新版正则分类区域美化 */
.category-section {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 24px;
    padding: 18px 24px 12px 24px;
}

.category-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.category-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.regex-item {
    background: #f7f8fa;
    border: 1px solid #e3e6eb;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 15px;
    color: #1976d2;
    cursor: pointer;
    margin-bottom: 8px;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
    outline: none;
}
.regex-item:hover, .regex-item:focus {
    background: #e3f2fd;
    color: #0d47a1;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
    border-color: #90caf9;
}

@media (max-width: 600px) {
    .category-section {
        padding: 12px 8px 8px 8px;
    }
    .category-title {
        font-size: 16px;
    }
    .regex-item {
        font-size: 13px;
        padding: 6px 10px;
    }
}

/* 正则项目和工具提示样式 */
.regex-item {
    padding: 0.5rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
}

.regex-item:hover {
    background-color: #3498db;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 工具提示气泡 */
.regex-item::after {
    content: "点击获取正则表达式";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4rem 0.8rem;
    background-color: #2c3e50;
    color: #fff;
    font-size: 0.8rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10;
    pointer-events: none;
}

/* 工具提示三角形 */
.regex-item::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2c3e50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10;
    pointer-events: none;
}

/* 显示工具提示 */
.regex-item:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

.regex-item:hover::before {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 4px);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 2rem auto;
    padding: 1.5rem;
    width: 700px;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #e74c3c;
}

.regex-versions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.version {
    background-color: #f8f9fa;
    padding: 0.8rem;
    border-radius: 4px;
}

.version h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

pre {
    background-color: #fff;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    font-size: 0.85rem;
    overflow-x: auto;
}

.copy-btn {
    margin-top: 0.5rem;
    padding: 0.3rem 0.8rem;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.copy-btn:hover {
    background-color: #2980b9;
}

.regex-description {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.regex-description h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.regex-description p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .regex-categories {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .regex-categories {
        column-count: 1;
    }
    .regex-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    .regex-versions {
        grid-template-columns: 1fr;
    }
    .modal-content {
        width: 95%;
        margin: 1rem auto;
    }
    .subtitle {
        display: none;
    }
    .container {
        padding: 0 0.3rem;
    }
    /* 移动端工具提示调整 */
    .regex-item::after {
        display: none;
    }
    
    .regex-item::before {
        display: none;
    }
}

.search-container {
    width: 100%;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.search-box {
    position: relative;
    width: 90%;
}

.search-box input {
    width: 100%;
    padding: 15px 45px 15px 20px;
    border: 2px solid #3498db;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.1);
}

.search-box input:focus {
    border-color: #2980b9;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
    background-color: #ffffff;
    transform: translateY(-1px);
}

.search-box input::placeholder {
    color: #95a5a6;
}

.search-box .search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #3498db;
    font-size: 20px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.search-box input:focus + .search-icon {
    color: #2980b9;
}

/* 搜索结果高亮样式 */
.regex-item.highlight {
    background-color: #fff3cd;
    border-color: #3498db;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.15);
    transform: translateY(-1px);
}

.regex-item.hidden {
    display: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .search-box {
        width: 90%;
    }
    
    .search-container {
        padding: 15px 0;
    }
}



/* 正则可视化调试区域样式 */
.regex-visual-debugger {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 1.2rem 1rem 1rem 1rem;
    margin-bottom: 1.2rem;
}
.regex-visual-debugger h2 {
    font-size: 1.1rem;
    color: #2563eb;
    margin-bottom: 0.8rem;
    border-left: 4px solid #2563eb;
    padding-left: 0.6rem;
}
.visual-debugger-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.visual-debugger-form input[type="text"] {
    flex: 1;
    padding: 0.5rem 0.8rem;
    border: 1.5px solid #3498db;
    border-radius: 4px;
    font-size: 1rem;
    background: #f8f9fa;
    transition: border-color 0.2s;
}
.visual-debugger-form input[type="text"]:focus {
    border-color: #2563eb;
    background: #fff;
}
#visualTestText {
    width: 100%;
    min-height: 60px;
    font-size: 1rem;
    border: 1.5px solid #e9ecef;
    border-radius: 4px;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.5rem;
    resize: vertical;
    transition: border-color 0.2s;
}
#visualTestText:focus {
    border-color: #2563eb;
    background: #fff;
}
.match-position {
    color: #888;
    font-size: 12px;
}
.visual-debugger-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
#visualTestBtn {
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.4rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
#visualTestBtn:hover {
    background: #2563eb;
}
.visual-error-msg {
    color: #e74c3c;
    font-size: 0.95rem;
    min-width: 120px;
}
.visual-result {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    min-height: 36px;
    padding: 0.7rem 0.8rem;
    font-size: 1rem;
    color: #222;
    margin-top: 0.2rem;
    word-break: break-all;
}
.visual-result .visual-match {
    background: #fff3cd;
    color: #d35400;
    border-radius: 3px;
    padding: 0 2px;
    font-weight: bold;
}

.visual-group-list {
    display: block;
    margin-top: 2px;
    font-size: 0.92em;
}
.visual-group {
    background: #e3f6fc;
    color: #0077b6;
    border-radius: 2px;
    margin-right: 4px;
    padding: 0 3px;
    font-weight: normal;
}

.visual-debugger-form select#visualRegexPreset {
    min-width: 180px;
    max-width: 260px;
    padding: 0.5rem 0.8rem;
    border: 1.5px solid #3498db;
    border-radius: 4px;
    font-size: 1rem;
    background: #f8f9fa;
    transition: border-color 0.2s;
    margin-right: 0.5rem;
}
.visual-debugger-form select#visualRegexPreset:focus {
    border-color: #2563eb;
    background: #fff;
}

.visual-flags-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
}
.flag-btn {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1.5px solid #3498db;
    border-radius: 4px;
    padding: 0.2rem 0.7rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    margin-right: 0.2rem;
    user-select: none;
    position: relative;
}
.flag-btn input[type="checkbox"] {
    margin-right: 3px;
}
.flag-btn:hover {
    background: #e6f0fa;
    border-color: #2563eb;
}
.flag-btn input[type="checkbox"]:checked + span,
.flag-btn input[type="checkbox"]:checked {
    font-weight: bold;
    color: #2563eb;
}
.flag-desc {
    color: #888;
    font-size: 0.92em;
    margin-left: 0.5rem;
}

/* 基础样式 */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 12px;
}

.logo h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.logo .subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-left: auto;
}



.tool-market-badge {
    background: #ff6b6b;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 5px;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Tab切换样式 */
.tab-container {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
}

.tab-header {
    display: flex;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
    position: relative;
}

.tab-btn:hover {
    background: #e6e6e6;
    color: #337ab7;
}

.tab-btn.active {
    background: #fff !important;
    color: #337ab7 !important;
    border-bottom: 2px solid #337ab7 !important;
}

.tab-content {
    display: none;
    padding: 20px;
    min-height: 500px;
    background: #fff;
}

.tab-content.active {
    display: block;
}

/* 正则可视化调试区域 */
.regex-visual-debugger {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.regex-visual-debugger h2 {
    margin-top: 0;
    color: #495057;
    font-size: 20px;
    margin-bottom: 20px;
}

.visual-debugger-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.visual-debugger-form select,
.visual-debugger-form input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.visual-debugger-form select {
    min-width: 200px;
}

.visual-debugger-form input[type="text"] {
    flex: 1;
    min-width: 300px;
}

.visual-flags-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.flag-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.flag-btn:hover {
    background: #f8f9fa;
}

.flag-btn input[type="checkbox"] {
    margin: 0;
}

.flag-desc {
    font-size: 12px;
    color: #6c757d;
    margin-left: 10px;
}

.visual-debugger-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
}

.visual-debugger-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.visual-debugger-actions button {
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.visual-debugger-actions button:hover {
    background: #5a6fd8;
}

.visual-error-msg {
    color: #dc3545;
    font-size: 14px;
}

.visual-result {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    min-height: 100px;
}

/* 搜索框样式 */
.search-container {
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #6c757d;
}

/* 正则表达式分类样式 */
.regex-categories {
    display: grid;
    gap: 30px;
}

.category {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.category h2 {
    margin-top: 0;
    color: #495057;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.regex-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.regex-item {
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: center;
}

.regex-item:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #000;
}

.regex-versions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.version {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.version h3 {
    margin-top: 0;
    color: #495057;
    font-size: 16px;
    margin-bottom: 10px;
}

.version pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    overflow-x: auto;
    margin-bottom: 10px;
}

.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: #5a6fd8;
}

.regex-description {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.regex-description h3 {
    margin-top: 0;
    color: #495057;
    font-size: 16px;
    margin-bottom: 10px;
}

/* 旧版样式 - 开始 */
html {
    font-size: 14px;
}

.pannel-select {
    position: absolute;
    right: 0;
    top: 0;
    width: 255px;
    height: 30px;
}

.reglist_select {
    padding: 0 0;
    height: 24px;
}

.reg_link {
    display: inline-block;
    float: right;
    text-align: right;
    font-size: 12px;
    margin-top: 4px;
}

.reg_pre {
    border: none;
    background: transparent;
}

.reg_reg_input {
    resize: none;
}

.reg_textarea {
    padding: 0;
    width: 100%;
    resize: none;
    font: 100% "courier new", monospace;
}

#srcWrapper {
    padding: 12px;
}

.wrapper #srcBackground {
    padding: 0;
}

.mod-regexp {
    margin: 0 auto;
    padding: 0;
    background: #FFF;
}

#srcWrapper {
    background: #fff;
    border: 1px solid #ccc;
    min-height: 50px;
    position: relative;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}

#srcBackground {
    padding: 4px;
    margin: 0;
    position: absolute;
    z-index: 1;
    width: 100%;
    word-break: break-all;
    line-height: 14px;
}

#srcBackground i, #srcBackground b {
    font: 100% "courier new", monospace;
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #fff;
}

#srcBackground b {
    background: #dd0;
    color: #dd0;
}

#srcCode {
    background: transparent;
    margin: 0;
    border: none;
    font-size: 14px;
    position: relative;
    z-index: 2;
    outline: none;
    overflow-y: hidden;
}

#rstCount {
    color: #f00;
}

#rstCode {
    padding: 3px;
}

#regTip {
    font-size: 12px;
    color: #d00;
    display: none;
}

.x-tip {
    font-size: 12px;
    color: #00b;
}

.ui-po-r {
    position: relative;
}

.ui-mb-20 {
    margin-bottom: 20px;
}

.ui-mt-20 {
    margin-top: 20px;
}

.panel-subtitle {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.wrapper {
    background: white;
    border-radius: 8px;
}

.panel-body {
    padding: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th,
.table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.table-striped tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: #e9ecef;
}

.table-bordered {
    border: 1px solid #dee2e6;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
}

.table-condensed th,
.table-condensed td {
    padding: 5px;
}

.active {
    background: #fff !important;
    color: #337ab7 !important;
    border-color: #337ab7 !important;
}

.num {
    width: 60px;
    text-align: center;
}

.content {
    word-break: break-all;
}

.index {
    width: 120px;
    text-align: center;
}

/* 旧版样式 - 结束 */

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .logo {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .logo .subtitle {
        margin-left: 0;
    }
    
    .visual-debugger-form {
        flex-direction: column;
    }
    
    .visual-debugger-form select,
    .visual-debugger-form input[type="text"] {
        width: 100%;
        min-width: auto;
    }
    
    .visual-flags-group {
        flex-wrap: wrap;
    }
    
    .regex-list {
        grid-template-columns: 1fr;
    }
    
    .regex-versions {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .pannel-select {
        position: static;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .reglist_select {
        width: 100%;
        height: auto;
    }
    
    .reg_link {
        float: none;
        display: block;
        margin-top: 10px;
    }
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 成功/错误提示 */
.success {
    color: #28a745;
}

.error {
    color: #dc3545;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 移除所有蓝色背景色 */
[style*="background: #1677ff"],
[style*="background-color: #1677ff"],
[style*="background: #1890ff"],
[style*="background-color: #1890ff"] {
    background: #fff !important;
    background-color: #fff !important;
}

/* 正则输入框和文本内容输入框固定高度 */
.visual-regex-input,
.visual-test-text,
#regText,
#srcCode {
    height: 44px;
    min-height: 44px;
    max-height: 200px;
    box-sizing: border-box;
    resize: vertical;
    line-height: 1.6;
}
.r-index {
    width: 160px;;
}