* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 30px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #eb7350;
}

h2 {
    margin-bottom: 15px;
    color: #eb7350;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab.active {
    color: #eb7350;
    border-bottom: 2px solid #eb7350;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input[type="text"],
input[type="url"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.upload-area {
    margin: 20px 0;
}

.drop-area {
    border: 2px dashed #ddd;
    border-radius: 4px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.drop-area:hover {
    border-color: #eb7350;
}

.drop-area p {
    margin-bottom: 10px;
    color: #666;
}

.preview {
    margin-top: 15px;
    max-width: 100%;
}

.preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-upload {
    background-color: #eb7350;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    width: 100%;
}

.btn-upload:hover {
    background-color: #d66240;
}

.result-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.result-content {
    display: flex;
    flex-wrap: wrap;
}

.result-image {
    flex: 0 0 200px;
    margin-right: 20px;
    margin-bottom: 20px;
}

.result-image img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.result-info {
    flex: 1;
    min-width: 300px;
}

.info-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 10px;
}

.info-group span {
    flex: 0 0 80px;
    font-weight: 600;
}

.info-group input {
    flex: 1;
    margin-right: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background-color: #f9f9f9;
}

.btn-copy {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.btn-copy:hover {
    background-color: #45a049;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    
    .result-content {
        flex-direction: column;
    }
    
    .result-image {
        flex: 0 0 100%;
        margin-right: 0;
        text-align: center;
    }
    
    .info-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-group span {
        flex: 0 0 100%;
        margin-bottom: 5px;
    }
    
    .info-group input {
        flex: 0 0 100%;
        margin-bottom: 5px;
        margin-right: 0;
    }
    
    .btn-copy {
        align-self: flex-end;
    }
}

/* API文档样式 */
.api-docs {
    padding: 10px;
}

.api-section {
    margin-bottom: 30px;
}

.api-section h4 {
    color: #444;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.api-section h5 {
    color: #555;
    margin: 15px 0 10px;
}

.api-table {
    overflow-x: auto;
}

.api-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.api-table th, .api-table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.api-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.api-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.api-code {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 13px;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre;
    color: #333;
    display: block;
    margin: 10px 0;
}

code {
    background-color: #f5f5f5;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 14px;
    color: #e83e8c;
} 