/* 工具二专用样式 */

/* 页面头部 */
.page-header {
    background-color: #1e1e1e;
    padding: 40px 0;
    border-bottom: 1px solid #333333;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #03dac6;
}

.page-header p {
    font-size: 16px;
    color: #b0b0b0;
    max-width: 700px;
}

/* 转换工具区域 */
.conversion-tool {
    padding: 48px 0;
}

/* 格式选择卡片 */
.format-selector-card {
    margin-bottom: 32px;
}

.format-selector-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ffffff;
    padding-bottom: 8px;
    border-bottom: 1px solid #333333;
}

.format-selector-container {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.format-select {
    flex: 1;
    min-width: 200px;
}

.format-select label {
    display: block;
    margin-bottom: 8px;
    color: #b0b0b0;
    font-size: 14px;
}

.format-dropdown {
    width: 100%;
    padding: 10px 12px;
    background-color: #2d2d2d;
    border: 1px solid #333333;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 14px;
    cursor: pointer;
}

.format-dropdown:focus {
    outline: none;
    border-color: #03dac6;
}

.swap-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #2d2d2d;
    border: 1px solid #333333;
    color: #03dac6;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.swap-button:hover {
    background-color: #383838;
    transform: rotate(180deg);
}

/* 转换区域 */
.conversion-container {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.conversion-panel {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.panel-header {
    padding: 16px;
    border-bottom: 1px solid #333333;
}

.panel-header h3 {
    font-size: 18px;
    color: #ffffff;
}

.panel-content {
    flex-grow: 1;
    padding: 16px;
}

.data-input, .data-output pre {
    width: 100%;
    min-height: 300px;
    padding: 16px;
    background-color: #2d2d2d;
    border: 1px solid #333333;
    border-radius: 6px;
    color: #e0e0e0;
    font-family: monospace;
    font-size: 14px;
    resize: vertical;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.data-input:focus {
    outline: none;
    border-color: #03dac6;
}

.panel-actions {
    padding: 16px;
    border-top: 1px solid #333333;
    display: flex;
    gap: 12px;
}

.conversion-action {
    flex-shrink: 0;
}

.convert-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.output-placeholder {
    color: #888888;
    padding: 16px;
    font-style: italic;
    border: 1px dashed #333333;
    border-radius: 6px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-message {
    color: #cf6679;
    padding: 16px;
    background-color: rgba(207, 102, 121, 0.1);
    border: 1px solid #442c32;
    border-radius: 6px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 格式说明区域 */
.format-info-section {
    padding: 48px 0;
    background-color: #1e1e1e;
}

.format-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.format-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.format-icon {
    font-size: 32px;
    font-weight: 700;
    color: #03dac6;
    margin-bottom: 16px;
    display: inline-block;
}

.format-details h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #ffffff;
}

.format-details p {
    color: #b0b0b0;
    font-size: 14px;
    flex-grow: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .conversion-container {
        flex-direction: column;
    }
    
    .conversion-action {
        order: -1;
    }
    
    .convert-btn {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
}
