/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 新的高亮样式类 */
.label-highlight {
    background: linear-gradient(135deg, #166534, #15803d);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
    display: inline-block;
    margin-right: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.action-highlight {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
    display: inline-block;
    margin-right: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.requirement-highlight {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
    display: inline-block;
    margin-right: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 语言切换按钮样式 */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.language-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.language-icon {
    font-size: 16px;
}

.language-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background: white;
    background-attachment: fixed;
    color: #334155;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%); */
    background: white;
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Reads结构示意图区域 */
.sequence-diagram {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    overflow: hidden;
}

.sequence-diagram::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

/* Reads结构框 */
.reads-structure-box {
    width: 80%;
    height: 40px;
    background: #e2e8f0;
    border: 0px solid #94a3b8;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.reads-label {
    color: #475569;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

/* Barcode框样式 */
.barcode-box {
    width: 15%;
    height: 40px;
    background: #10b981;
    border: 0px solid #059669;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
}

.barcode-box:hover {
    background: #059669;
}

.barcode-label {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 左侧Barcode框特殊样式 */
.left-barcode {
    order: 1;
}

/* 左侧Barcode2框样式（红色） */
.barcode2-left {
    order: 3;
    width: 15%;
    background: #dc2626;
}

/* 左侧Barcode3框样式（蓝色） */
.barcode3-left {
    order: 5;
    width: 15%;
    background: #2563eb;
}

/* Reads结构框居中 */
.reads-structure-box {
    order: 7;
}

/* 右侧Barcode3框样式（蓝色） */
.barcode3-right {
    order: 9;
    width: 15%;
    background: #2563eb;
}

/* 右侧Barcode2框样式（红色） */
.barcode2-right {
    order: 11;
    width: 15%;
    background: #dc2626;
}

/* 右侧Barcode框特殊样式 */
.right-barcode {
    order: 13;
}

/* 剪刀样式 */
.scissors {
    display: flex;
    align-items: center;
    width: 1%;
    justify-content: center;
    position: relative;
    font-size: 24px;
    color: #dc2626;
    z-index: 10;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: scissorsPulse 2s ease-in-out infinite;
}
.scissors-1 {
    top: 80%;
    left: 0;
    order: 1;
    transform: translate(-50%);
}
.scissors-2 {
    top: 80%;
    left: 0;
    order: 2;
    transform: translateY(-50%);
}
.scissors-3 {
    top: 80%;
    left: 0;
    order: 4;
    transform: translateY(-50%);
}
.scissors-4 {
    top: 80%;
    left: 0;
    order: 6;
    transform: translateY(-50%);
}
.scissors-5 {
    top: 80%;
    left: 0;
    order: 8;
    transform: translateY(-50%);
}
.scissors-6 {
    top: 80%;
    left: 0;
    order: 10;
    transform: translateY(-50%);
}
.scissors-7 {
    top: 80%;
    left: 0;
    order: 12;
    transform: translateY(-50%);
}
.scissors-8 {
    top: 80%;
    left: 0;
    order: 14;
    transform: translateY(-50%);
}


/* 剪刀动画效果 */
@keyframes scissorsPulse {
    0% {
        transform: translateY(-50%) translateY(0) rotate(0deg);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-50%) translateY(15px) rotate(-15deg);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-50%) translateY(30px) rotate(0deg);
        opacity: 1;
    }
    75% {
        transform: translateY(-50%) translateY(15px) rotate(15deg);
        opacity: 0.9;
    }
    100% {
        transform: translateY(-50%) translateY(0) rotate(0deg);
        opacity: 0.8;
    }
}

/* 窗口大小标注线样式 */
.window-lines {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    height: 40px;
    pointer-events: none;
    z-index: 5;
}

.window-line {
    position: absolute;
    bottom: 0;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.left-window-line {
    left: 0;
    width: 30%;
}

.right-window-line {
    right: 0;
    width: 30%;
}

.window-line-bar {
    width: 100%;
    height: 3px;
    background: #131314;
    border-radius: 2px;
    position: relative;
}


.window-line-label {
    margin-top: 8px;
    padding: 4px 8px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
    border: 1px solid #303131;
}

.window-size-text {
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* 配置修改状态动画效果 */
@keyframes configPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 16px rgba(245, 158, 11, 0.6);
    }
}

@keyframes optionsPulse {
    0%, 100% {
        transform: scale(1);
        background: rgba(245, 158, 11, 0.1);
    }
    50% {
        transform: scale(1.05);
        background: rgba(245, 158, 11, 0.2);
    }
}

@keyframes configBadgePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}



/* 页面主标题 */
.page-title {
    text-align: center;
    color: #ffffff;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 3rem;
    position: relative;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-transform: uppercase;
    background: linear-gradient(135deg, 
        #ff0000 0%, 
        #ff8000 8%, 
        #ffff00 16%, 
        #80ff00 24%, 
        #00ff00 32%, 
        #00ff80 40%, 
        #00ffff 48%, 
        #0080ff 56%, 
        #0000ff 64%, 
        #8000ff 72%, 
        #ff00ff 80%, 
        #ff0080 88%, 
        #ff0000 96%, 
        #000000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 30s ease-in-out infinite;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.4),
        0 0 40px rgba(255, 0, 255, 0.3);
    filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.2));
}

.page-title::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 6px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 0, 255, 0.3) 20%, 
        rgba(0, 255, 255, 0.8) 50%, 
        rgba(255, 255, 0, 0.3) 80%, 
        transparent 100%);
    border-radius: 3px;
    opacity: 0.8;
    animation: lineGlow 6s ease-in-out infinite;
}

.page-title::after {
    content: '🧬';
    position: absolute;
    top: -15px;
    right: -30px;
    font-size: 2.5rem;
    animation: dnaFloat 8s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 0, 255, 0.6));
}

.page-title:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes lineGlow {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(-50%) scaleX(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1.1);
    }
}

@keyframes dnaFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) rotate(10deg);
        opacity: 1;
    }
}

/* Reads示意图标题 */
.diagram-title {
    position: absolute;
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    top: 15px;
    left: 25px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #4281e7, #3f10af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-color: rgba(255, 255, 255, 0.9);
}

/* Fusion模式勾选框容器 */
.fusion-mode-container {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;
    
}

/* Fusion勾选框标签 */
.fusion-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 12px;
}

.fusion-checkbox-label:hover {
    background: rgba(255, 255, 255, 1);
}

/* Fusion勾选框 */
.fusion-checkbox {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #3b82f6;
}

/* Fusion勾选框文本 */
.fusion-checkbox-text {
    color: #1e293b;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* Fusion模式激活状态 */
.fusion-checkbox:checked + .fusion-checkbox-text {
    color: #3b82f6;
}

.fusion-checkbox:checked ~ .fusion-checkbox-label {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

/* 配置区域 */
.config-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.config-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

/* 配置头部 */
.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

/* 配置按钮组 */
.config-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.config-title {
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #4281e7, #3f10af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-color: rgba(255, 255, 255, 0.9);
    display: inline-block;
}

/* 全局配置按钮 */
.global-config-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.global-config-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* 全局配置按钮修改状态指示器 */
.global-config-btn.has-modifications {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    animation: configPulse 2s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.global-config-btn.has-modifications:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.5);
}

.global-config-btn.has-modifications::after {
    content: '!';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: configBadgePulse 1.5s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.settings-icon {
    font-size: 18px;
    color: white;
}

/* 显示代码按钮 */
.show-code-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #10b981;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.show-code-btn:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}


.code-icon {
    font-size: 18px;
    color: white;
}

/* 配置下载按钮 */
.download-config-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.download-config-btn:hover {
    background: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}


.download-icon {
    font-size: 18px;
    color: white;
}

/* 配置表格区域 */
.config-table {
    margin-bottom: 20px;
}

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

th {
    background: #f1f5f9;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
}

td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

/* Barcode标签列样式 */
.barcode-label-cell {
    background: #f8fafc;
    font-weight: 600;
    text-align: center;
    min-width: 100px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.barcode-text {
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    background: #e2e8f0;
    border-radius: 6px;
    display: inline-block;
}

/* 箭头按钮样式 */
.arrow-button {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    position: relative;
}

.arrow-button:hover {
    background: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(30, 64, 175, 0.4);
}

.arrow-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(30, 64, 175, 0.3);
}

.arrow-icon {
    font-size: 16px;
    font-weight: bold;
    color: white;
}

/* 箭头按钮tooltip样式 */
.arrow-button::before {
        content: "5'和3'端为相同的barcode，5'seq和5'tag原样拷贝到3'seq和3'tag";
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.arrow-button::after {
    content: "";
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
}

.arrow-button:hover::before,
.arrow-button:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 说明文档样式 */
.documentation {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    border-left: 4px solid #3b82f6;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.documentation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.documentation h2 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 25px 0;
    text-align: center;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.documentation h3 {
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc-content {
    color: #475569;
    line-height: 1.6;
}

.doc-content p {
    margin: 10px 0;
}

.doc-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.doc-content li {
    margin: 5px 0;
}

.doc-content strong {
    color: #1e293b;
    font-weight: 700;
}

/* 重要提示样式 */
.important-notice {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.important-notice::before {
    content: '⚠️';
    position: absolute;
    top: -10px;
    left: 20px;
    background: #f59e0b;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.important-notice h3 {
    color: #92400e;
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.important-notice p {
    color: #92400e;
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
}

/* 使用流程样式 */
.usage-flow {
    background: linear-gradient(135deg, #e0f2fe, #b3e5fc);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.usage-flow::before {
    content: '📋';
    position: absolute;
    top: -10px;
    left: 20px;
    background: #0ea5e9;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.usage-flow h3 {
    color: #0c4a6e;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.usage-flow ol {
    margin: 0;
    padding-left: 20px;
}

.usage-flow li {
    color: #0c4a6e;
    margin: 8px 0;
    font-weight: 500;
    line-height: 1.5;
    position: relative;
}

.usage-flow li::marker {
    color: #0ea5e9;
    font-weight: bold;
}

/* 配置说明样式 */
.config-guide {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.config-guide::before {
    content: '⚙️';
    position: absolute;
    top: -10px;
    left: 20px;
    background: #22c55e;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.config-guide h3 {
    color: #15803d;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.config-guide ul {
    margin: 0;
    padding-left: 20px;
}

.config-guide li {
    color: #15803d;
    margin: 8px 0;
    font-weight: 500;
    line-height: 1.5;
}

/* 为高亮标签在配置指南中提供更好的视觉效果 */
.config-guide .label-highlight {
    background: linear-gradient(135deg, #166534, #15803d);
}

/* 操作说明样式 */
.operation-guide {
    background: linear-gradient(135deg, #fef7ff, #f3e8ff);
    border: 2px solid #a855f7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.operation-guide::before {
    content: '🔧';
    position: absolute;
    top: -10px;
    left: 20px;
    background: #a855f7;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

.operation-guide h3 {
    color: #7c2d12;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.operation-guide ul {
    margin: 0;
    padding-left: 20px;
}

.operation-guide li {
    color: #7c2d12;
    margin: 8px 0;
    font-weight: 500;
    line-height: 1.5;
}

/* 为高亮标签在操作指南中提供更好的视觉效果 */
.operation-guide .action-highlight {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.config-row {
    transition: background-color 0.2s ease;
}

.config-row:hover {
    background-color: #f8fafc;
}

/* 输入框样式 */
.seq-input, .tag-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    resize: vertical;
    min-height: 60px;
    font-family: 'Courier New', monospace;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.seq-input:focus, .tag-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.seq-input::placeholder, .tag-input::placeholder {
    color: #94a3b8;
    white-space: pre-line;
}

/* 输入框验证状态样式 */
.seq-input:invalid, .tag-input:invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.seq-input:valid, .tag-input:valid {
    border-color: #10b981;
    background-color: #f0fdf4;
}

/* 序列输入框特殊样式 */
.seq-input {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.seq-input:focus {
    background: white;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 标签输入框特殊样式 */
.tag-input {
    background: linear-gradient(135deg, #fefce8 0%, #ffffff 100%);
}

.tag-input:focus {
    background: white;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 验证错误状态样式 */
.seq-input[style*="border-color: #ef4444"], .tag-input[style*="border-color: #ef4444"] {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
    animation: shake 0.5s ease-in-out;
}

/* 验证警告状态样式 */
.seq-input[style*="border-color: #f59e0b"], .tag-input[style*="border-color: #f59e0b"] {
    border-color: #f59e0b !important;
    background-color: #fffbeb !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1) !important;
}

/* 验证成功状态样式 */
.seq-input[style*="border-color: #e2e8f0"], .tag-input[style*="border-color: #e2e8f0"] {
    border-color: #e2e8f0 !important;
    background-color: white !important;
    box-shadow: none !important;
}

/* 输入框震动动画 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 输入框提示信息样式 */
.seq-input[title], .tag-input[title] {
    position: relative;
}

.seq-input[title]:hover::after, .tag-input[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: normal;
    z-index: 1000;
    margin-bottom: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 按钮样式 */
.options-btn, .delete-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.options-btn {
    color: #64748b;
    position: relative;
}

.options-btn:hover {
    background: #f1f5f9;
    color: #3b82f6;
}

/* 选项按钮修改状态指示器 */
.options-btn.has-modifications {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    animation: optionsPulse 2s ease-in-out infinite;
}

.options-btn.has-modifications:hover {
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
}

.options-btn.has-modifications::after {
    content: '!';
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    animation: configBadgePulse 1.5s ease-in-out infinite;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

.delete-btn {
    color: #ef4444;
}

.delete-btn:hover {
    background: #fef2f2;
    color: #dc2626;
}

.gear-icon, .trash-icon {
    font-size: 24px;
    color: inherit;
}

/* 添加行按钮 */
.add-row-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.2s ease;
    margin: 0 auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.add-row-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.15);
}

.plus-icon {
    font-weight: bold;
    color: white;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: modalSlideIn 0.3s ease;
    overflow: visible;
}

/* 全局配置弹窗特殊样式 */
.global-config-modal {
    max-width: 800px;
    max-height: 80vh;
    margin: 10% auto;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

/* 代码弹窗特殊样式 */
.code-modal {
    max-width: 900px;
    width: 95%;
    height: 85vh;
    margin: 7.5vh auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* 代码弹窗头部样式 */
.code-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    padding: 20px 24px;
    border-bottom: none;
}

.code-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.code-modal .modal-header h3::before {
    content: '⚡';
    font-size: 20px;
}

.code-modal .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.code-modal .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}


/* 代码弹窗的modal-body特殊样式 */
.code-modal .modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    background: #f8fafc;
    border-radius: 0 0 16px 16px;
}

/* 代码容器 */
.code-container {
    background: #2D2D2D;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 20px;
    overflow: hidden;
    max-height: 500px;
    border: 1px solid #334155;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* 代码容器头部 */
.code-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: #2D2D2D;
    opacity: 0;
    z-index: 1;
}

/* 代码容器标题栏 - 已隐藏 */
.code-container::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 20px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
    opacity: 0;
    z-index: 2;
}

/* 代码显示区域 */
.code-display {
    color: #e2e8f0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    white-space: pre;
    word-wrap: normal;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: none;
    padding: 50px 20px 20px 20px;
    position: relative;
    z-index: 1;
    text-align: left;
}

/* 行号样式 */
.code-display.line-numbers {
    padding-left: 60px;
}

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

.code-container::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 4px;
}

.code-container::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

.code-container::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* 代码高亮样式增强 */
.code-display code {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

/* 选中文本样式 */
.code-display::selection,
.code-display code::selection {
    background: rgba(59, 130, 246, 0.3);
    color: inherit;
}

/* 代码容器动画效果 */
.code-container {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 代码弹窗动画效果 */
.code-modal {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 代码高亮样式 */
.code-display .token.comment { color: #6b7280; font-style: italic; }
.code-display .token.string { color: #10b981; }
.code-display .token.keyword { color: #f59e0b; font-weight: 600; }
.code-display .token.function { color: #8b5cf6; }
.code-display .token.operator { color: #ef4444; }
.code-display .token.punctuation { color: #94a3b8; }

/* 响应式设计 */
@media (max-width: 768px) {
    .code-modal {
        width: 98%;
        height: 90vh;
        margin: 5vh auto;
        border-radius: 12px;
    }
    
    .code-modal .modal-header {
        padding: 16px 20px;
        border-radius: 12px 12px 0 0;
    }
    
    .code-modal .modal-header h3 {
        font-size: 16px;
    }
    
    .code-modal .modal-body {
        padding: 16px;
        border-radius: 0 0 12px 12px;
    }
    
    .code-container {
        max-height: 400px;
        border-radius: 8px;
    }
    
    .code-display {
        font-size: 12px;
        padding: 40px 16px 16px 16px;
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    }
    
    .code-display.line-numbers {
        padding-left: 50px;
    }
    
    .copy-code-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .code-modal {
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .code-modal .modal-header {
        border-radius: 0;
    }
    
    .code-modal .modal-body {
        border-radius: 0;
    }
    
    .code-container {
        border-radius: 6px;
    }
    
    .code-display {
        font-size: 11px;
        padding: 35px 12px 12px 12px;
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    }
    
    .code-display.line-numbers {
        padding-left: 45px;
    }
}

/* 代码底部按钮区域 */
.code-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0;
    border-top: none;
    margin-top: 0;
    flex-shrink: 0;
    background: transparent;
    gap: 12px;
}

/* 代码说明区域样式 */
.code-description {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #e9ecef;
}

.description-section {
    margin-bottom: 20px;
}

.description-section:last-child {
    margin-bottom: 0;
}

.description-section h3 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.description-content {
    color: #495057;
    font-size: 14px;
    line-height: 1.6;
}

.description-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.description-content li {
    margin-bottom: 4px;
}

.description-content code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #e74c3c;
}

.description-content strong {
    color: #2c3e50;
    font-weight: 600;
}

/* 复制代码按钮 */
.copy-code-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.copy-code-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.copy-code-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.copy-code-btn:hover::before {
    left: 100%;
}

.copy-code-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.copy-icon {
    font-size: 18px;
    color: white;
    font-weight: bold;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    display: inline-block;
}

.copy-code-btn:hover .copy-icon {
    transform: scale(1.2);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.copy-code-btn span {
    position: relative;
    z-index: 1;
}

/* 复制成功提示框样式 */
.copy-success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
    min-width: 200px;
}

.copy-success-toast.show {
    transform: translateX(0);
    opacity: 1;
}


.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f1f5f9;
    color: #374151;
}

.modal-body {
    padding: 24px;
    color: #64748b;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

/* 配置滚动容器 */
.config-scroll-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    margin-right: -8px;
    max-height: calc(80vh - 200px);
    position: relative;
}

/* 滚动指示器 */
.config-scroll-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.config-scroll-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.8), transparent);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 当可以滚动时显示指示器 */
.config-scroll-container.scrollable-top::before {
    opacity: 1;
}

.config-scroll-container.scrollable-bottom::after {
    opacity: 1;
}

/* 自定义滚动条样式 */
.config-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.config-scroll-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.config-scroll-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.config-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 全局配置网格布局 */
.global-config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-bottom: 20px;
}

.config-item {
    display: flex;
    flex-direction: column;
    
    gap: 8px;
}

.config-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: #374151;
    position: relative;
    font-size: 14px;
}

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    transition: all 0.2s ease;
}

.help-icon:hover {
    background: #1d4ed8;
    color: white;
}


.config-input, .config-textarea, .config-select {
    padding: 8px 12px;
    white-space: pre-wrap;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    color: #9ca3af;
}

.config-input.default-value, .config-textarea.default-value, .config-select.default-value {
    color: #9ca3af;
}

.config-input.user-input, .config-textarea.user-input, .config-select.user-input {
    color: #374151;
}

.config-input:focus, .config-textarea:focus, .config-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.config-input.default-value:focus, .config-textarea.default-value:focus, .config-select.default-value:focus {
    color: #9ca3af;
}

.config-input.user-input:focus, .config-textarea.user-input:focus, .config-select.user-input:focus {
    color: #374151;
}

.config-input::placeholder, .config-textarea::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.config-textarea {
    resize: vertical;
    min-height: 60px;
    font-family: 'Courier New', monospace;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.config-select {
    cursor: pointer;
    color: #9ca3af;
}

.config-select option {
    color: #374151;
}

.config-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .global-config-modal {
        max-width: 95%;
        max-height: 85vh;
        margin: 5% auto;
    }
    
    .config-scroll-container {
        max-height: calc(85vh - 180px);
    }
    
    .global-config-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .config-item {
        gap: 6px;
    }
    
    .config-label {
        font-size: 13px;
    }
    
    .config-input, .config-textarea, .config-select {
        font-size: 13px;
        padding: 6px 10px;
    }
}

/* 选项配置网格布局 */
.options-config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 600px;
    overflow: visible;
}

/* 响应式调整 - 选项配置 */
@media (max-width: 768px) {
    .options-config-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .options-config-item {
        gap: 6px;
    }
    
    .options-config-label {
        font-size: 13px;
    }
    
    .options-config-input, .options-config-select {
        font-size: 13px;
        padding: 6px 10px;
    }
}

.options-config-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.options-config-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: #374151;
    position: relative;
    font-size: 14px;
}

.options-config-input, .options-config-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    color: #9ca3af;
}

.options-config-input.default-value, .options-config-select.default-value {
    color: #9ca3af;
}

.options-config-input.user-input, .options-config-select.user-input {
    color: #374151;
}

.options-config-input:focus, .options-config-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.options-config-input.default-value:focus, .options-config-select.default-value:focus {
    color: #9ca3af;
}

.options-config-input.user-input:focus, .options-config-select.user-input:focus {
    color: #374151;
}

.options-config-input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.options-config-select {
    cursor: pointer;
    color: #9ca3af;
}

.options-config-select option {
    color: #374151;
}

/* 配置弹窗底部按钮区域 */
.config-footer {
    display: flex;
    justify-content: flex-end;
    padding: 20px 0 0 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 20px;
    flex-shrink: 0;
    background: white;
}

.reset-config-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3);
    position: relative;
    overflow: hidden;
}

.reset-config-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.reset-config-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.reset-config-btn:hover::before {
    left: 100%;
}

.reset-config-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.reset-icon {
    font-size: 18px;
    color: white;
    font-weight: bold;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    display: inline-block;
}

.reset-config-btn:hover .reset-icon {
    transform: scale(1.3) rotate(180deg);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.reset-config-btn span {
    position: relative;
    z-index: 1;
}

/* 重置成功提示框样式 */
.reset-success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
    min-width: 200px;
}

.reset-success-toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* 删除警告提示框样式 */
.delete-warning-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
    min-width: 200px;
}

.delete-warning-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 18px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .sequence-diagram {
        padding: 15px;
        min-height: 150px;
        gap: 5px;
    }
    
    .barcode-box {
        width: 12%;
        height: 35px;
    }
    
    .barcode-label {
        font-size: 12px;
    }
    
    .reads-structure-box {
        width: 76%;
        height: 35px;
    }
    
    .reads-label {
        font-size: 16px;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px 6px;
    }
    
    .seq-input, .tag-input {
        font-size: 13px;
        padding: 8px 10px;
    }
}

/* 动画效果 */
.config-row {
    animation: fadeInUp 0.3s ease;
}

/* 禁用状态 */
.add-row-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.add-row-btn:disabled:hover {
    background: #94a3b8;
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 输入框错误和警告状态样式 */
.input-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.input-warning {
    border-color: #f59e0b !important;
    background-color: #fffbeb !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1) !important;
}

/* 错误消息样式 */
.input-error-message {
    font-size: 12px;
    color: #dc2626;
    padding: 4px 8px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    position: relative;
    margin-top: 4px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.input-error-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* 警告消息样式 */
.input-warning-message {
    font-size: 12px;
    color: #a78b8b;
    padding: 4px 8px;
    background-color: #fffbeb;
    border: 1px solid #fed7aa;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    position: relative;
    margin-top: 4px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.input-warning-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* 震动动画 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}
