/* ================================================================
   菜刀客在线工具页 · md5-encryptor.html 私有样式
   需在 /css/common.css 之后加载。
   ================================================================ */

/* ---- 覆盖公共值：本页容器更宽 ---- */
.container {
    max-width: 1400px;
}

.footer {
    max-width: 1400px;
}

/* ---- 覆盖公共布局：双栏并排 ---- */
.main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ---- 工具栏 ---- */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    align-items: center;
}

.toolbar-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.toolbar-group:not(:last-child) {
    padding-right: 15px;
    border-right: 1px solid #e5e7eb;
}

.toolbar-group.mode-group,
.toolbar-group.salt-group {
    width: auto;
    gap: 8px;
}

.toolbar-group.toolbar-actions {
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.toolbar-group.toolbar-actions .btn {
    padding: 5px 10px;
    font-size: 12px;
}

/* ---- 模式 / 盐方式按钮（点击即计算） ---- */
.toolbar-group .btn-mode {
    flex: none;
    padding: 7px 12px;
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
    font-size: 12px;
}

.toolbar-group .btn-mode:hover {
    background: #f9fafb;
    transform: none;
}

.toolbar-group .btn-mode.active {
    background: #667eea;
    color: #ffffff;
    border-color: #667eea;
}

.toolbar-group .btn-mode.active:hover {
    background: #5a6fd6;
    transform: none;
}

/* ---- 盐值输入 ---- */
.salt-input {
    width: 120px;
    padding: 7px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.salt-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

.salt-opt {
    cursor: pointer;
    user-select: none;
}

.salt-opt input {
    display: none;
}

/* ---- 模式提示 ---- */
.mode-hint {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #4338ca;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    margin-bottom: 15px;
}

.mode-hint code {
    background: rgba(102,126,234,0.15);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 12px;
}

/* ---- 面板：本页为等高列布局 ---- */
.panel {
    display: flex;
    flex-direction: column;
    height: 560px;
}

.panel-header {
    flex-shrink: 0;
}

.panel-header:first-child {
    border-top: none;
}

.editor {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.editor textarea {
    flex: 1;
    width: 100%;
    min-height: 300px;
    padding: 15px;
    border: none;
    outline: none;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
}

.editor textarea[readonly] {
    background: #f9fafb;
    color: #4b5563;
}

/* ---- 参与计算的实际字符串说明 ---- */
.hash-info {
    padding: 10px 15px;
    font-size: 12px;
    color: #6b7280;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    word-break: break-all;
    line-height: 1.7;
}

.hash-info code {
    background: rgba(102,126,234,0.12);
    padding: 1px 5px;
    border-radius: 4px;
    color: #4338ca;
}

.status-bar {
    flex-shrink: 0;
    flex-direction: column;
    align-items: stretch;
}

.stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-label {
    color: #9ca3af;
}

.stat-value {
    font-weight: 600;
    color: #374151;
}

/* ---- 文件上传 ---- */
.file-input {
    display: none;
}

/* ---- SEO 说明面板：收拢空白 ---- */
.panel.extra-panel {
    height: auto;
}