/* ========== 工具区域特有样式(mystyle.css中没有的) ========== */

/* 模式切换样式 */
.hash-mode-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}
.hash-mode-tab {
    padding: 10px 22px;
    border: none;
    border-radius: 25px;
    background: white;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    transition: all 0.3s;
    border: 2px solid #e0e3eb;
    font-weight: 500;
}
.hash-mode-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}
.hash-mode-tab:hover:not(.active) {
    background: #e3f2fd;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 输入框样式 */
.hash-input-group {
    margin-bottom: 20px;
}
.hash-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}
.hash-input-group textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 2px solid #e0e3eb;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s;
    font-family: inherit;
}
.hash-input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* 模态框样式 */
.hash-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.hash-modal-overlay.active {
    display: flex;
}
.hash-modal-content {
    background: white;
    border-radius: 15px;
    padding: 0;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.hash-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}
.hash-modal-title {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hash-modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
    transition: all 0.3s;
    border-radius: 5px;
}
.hash-modal-close:hover {
    background: rgba(255,255,255,0.3);
}
.hash-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}
.hash-file-info-modal {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}
.hash-file-info-modal-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e3eb;
}
.hash-file-info-modal-item:last-child {
    border-bottom: none;
}
.hash-file-info-modal-item label {
    font-weight: 600;
    color: #555;
    min-width: 80px;
}
.hash-file-info-modal-item span {
    color: #333;
    word-break: break-all;
    text-align: right;
}
.hash-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.hash-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e0e3eb;
}
.hash-algo {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hash-algo .algo-icon {
    font-size: 18px;
}
.hash-value {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 13px;
    color: #333;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    word-break: break-all;
    border: 1px solid #e0e3eb;
    line-height: 1.5;
}
.hash-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.hash-actions button {
    padding: 8px 16px;
    font-size: 13px;
}
.hash-compare-section {
    background: #fff3e0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 12px;
    border-left: 4px solid #FF9800;
}
.hash-compare-section h4 {
    color: #FF9800;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.hash-compare-section input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e3eb;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}
.hash-compare-section input:focus {
    outline: none;
    border-color: #FF9800;
}
.hash-compare-result {
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}
.hash-compare-result.match {
    background: #e8f5e9;
    color: #4CAF50;
}
.hash-compare-result.not-match {
    background: #ffebee;
    color: #f44336;
}
.hash-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #e0e3eb;
    display: flex;
    justify-content: center;
    gap: 15px;
    background: #f8f9fa;
}

/* 进度条样式 */
.hash-progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}
.hash-progress-overlay.active {
    display: flex;
}
.hash-progress-box {
    background: white;
    border-radius: 15px;
    padding: 30px 40px;
    text-align: center;
}
.hash-progress-box p {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}
.hash-progress-bar {
    width: 300px;
    height: 8px;
    background: #e0e3eb;
    border-radius: 4px;
    overflow: hidden;
}
.hash-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2196F3, #1976D2);
    transition: width 0.3s;
    width: 0%;
}

/* ========== 工具特有按钮样式 ========== */
.hash-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.hash-btn-primary {
    background-color: #2196F3;
    color: white;
}
.hash-btn-primary:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(33, 150, 243, 0.3);
}
.hash-btn-success {
    background-color: #4CAF50;
    color: white;
}
.hash-btn-success:hover {
    background-color: #388E3C;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(76, 175, 80, 0.3);
}
.hash-btn-danger {
    background-color: #f44336;
    color: white;
}
.hash-btn-danger:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(244, 67, 54, 0.3);
}
.hash-btn-warning {
    background-color: #FF9800;
    color: white;
}
.hash-btn-warning:hover {
    background-color: #F57C00;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 152, 0, 0.3);
}
.hash-btn-info {
    background-color: #00BCD4;
    color: white;
}
.hash-btn-info:hover {
    background-color: #0097A7;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 188, 212, 0.3);
}
.hash-btngroup {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

/* 文件上传区域样式 */
.hash-img-upload-section {
    background: #fafafa;
    border: 2px dashed #e0e3eb;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s;
}
.hash-img-upload-section:hover {
    border-color: var(--primary-color);
}
.hash-img-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}
.hash-img-section-title-icon {
    color: var(--primary-color);
    font-size: 24px;
}
.hash-img-upload-btn {
    min-width: 140px;
    height: 160px;
    border: 2px dashed #ccc;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}
.hash-img-upload-btn:hover {
    border-color: var(--primary-color);
    background: #e3f2fd;
}
.hash-img-upload-icon {
    font-size: 36px;
    color: #999;
    margin-bottom: 8px;
}
.hash-img-upload-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}
.hash-img-upload-hint {
    font-size: 12px;
    color: #999;
}
.hash-file-item {
    min-width: 140px;
    height: 160px;
    border: 2px solid #e0e3eb;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    position: relative;
    overflow: hidden;
}
.hash-file-item .file-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f44336;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
}
.hash-file-item .file-remove:hover {
    background: #d32f2f;
    transform: scale(1.1);
}
.hash-file-item .file-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.hash-file-item .file-name {
    font-size: 12px;
    color: #333;
    text-align: center;
    padding: 0 10px;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hash-file-item .file-size {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

/* 选项区域样式 */
.hash-options2 {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.hash-option-group2 h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}
.hash-option-group2 h3 i {
    color: var(--primary-color);
}
.hash-form-group2 {
    margin-bottom: 15px;
}
.hash-form-group2:last-child {
    margin-bottom: 0;
}
.hash-form-group2 label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}
.hash-form-group2 select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e0e3eb;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}
.hash-form-group2 select:focus {
    outline: none;
    border-color: var(--primary-color);
}
.hash-form-group2 input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e0e3eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}
.hash-form-group2 input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 分割线样式 */
.hash-line4 {
    height: 1px;
    background: #e0e3eb;
    margin: 20px 0;
}

/* ========== 响应式样式 ========== */
@media (max-width: 1024px) {
    .tool-mainbox {
        flex-direction: column;
    }
    .tool-mainleft {
        width: 100%;
    }
    .tool-mainright {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }
}
@media (max-width: 768px) {
    .tool-mainbox {
        padding: 0 15px;
        margin-top: 80px;
    }
    .tool-sectionbox {
        padding: 20px 15px;
    }
    .tool-mainleft h2 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    .hash-btngroup {
        gap: 10px;
    }
    .hash-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    .hash-modal-content {
        max-height: 90vh;
    }
    .hash-item {
        padding: 12px;
    }
    .hash-value {
        font-size: 11px;
    }
    .image-scroll-wrapper {
        flex-wrap: wrap;
    }
    .hash-img-upload-btn,
    .hash-file-item {
        min-width: calc(50% - 10px);
    }
}
@media (max-width: 480px) {
    .tool-sectionheader h3 {
        font-size: 12px;
    }
    .tool-sectionheader h3 i {
        margin-right: 10px;
    }
    .tool-sectionheader a {
        padding: 3px 8px;
    }
    .hash-mode-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
    .hash-modal-title {
        font-size: 16px;
    }
    .hash-file-info-modal-item label {
        min-width: 70px;
    }
    .hash-img-upload-btn,
    .hash-file-item {
        min-width: 100%;
    }
}