/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 标题样式 */
.page-title {
    color: #2c3e50;

    
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
    overflow: visible; /* 防止内容被裁剪 */
    height: auto;
    display: flex;
    align-items: center;
}

label {
    width: 120px;
    font-weight: 500;
    color: #4a5568;
    margin-right: 15px;
}

input, select, textarea {
    padding: 10px 12px;
    flex: 1;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

/* AI生成按钮样式 */
.btn-ai {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-ai:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-ai:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-ai.loading {
    background: #9ca3af;
    cursor: wait;
}

.btn-ai.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    background-color: #3182ce;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    text-decoration: none;
}

.btn:hover {
    background-color: #2c5282;
}

.btn-secondary {
    background-color: #e2e8f0;
    color: #4a5568;
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: #cbd5e0;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
}

.data-table th {
    background-color: #f7fafc;
    color: #4a5568;
    font-weight: 500;
    border-bottom: 1px solid #e2e8f0;
}

.data-table tr:nth-child(even) {
    background-color: #f7fafc;
}

.data-table tr:hover {
    background-color: #edf2f7;
}

/* 搜索栏样式 */
.search-form {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.search-form select, .search-form input {
    margin-right: 0;
}

/* 分页样式 */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination-btn {
    padding: 8px 14px;
    margin: 0 4px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
}

.pagination-btn:hover:not(.active) {
    background-color: #edf2f7;
}

.pagination-btn.active {
    background-color: #3182ce;
    color: white;
    border-color: #3182ce;
}

/* 登录页面样式 */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
    color: #2d3748;
}

.login-form .form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.login-form label {
    width: 100%;
    margin-bottom: 8px;
}

.login-form input {
    width: 100%;
}

.login-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.error-message {
    color: #e53e3e;
    text-align: center;
    margin-top: 15px;
}

/* 详情页样式 */
.detail-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* 参数表格样式 */
.container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.son-table-container {
    overflow-x: auto;
    margin-top: 10px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    width: 980px;
}

.son-table {
    min-width: 100%;
    border-collapse: collapse;

}

.son-table th,
.son-table td {
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    text-align: left;
    word-wrap: break-word;
    vertical-align: top;
}

.son-table th {
    background-color: #f7fafc;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 2px solid #cbd5e0;
}

.son-table tr:hover {
    background-color: #edf2f7;
}

.son-table tr:nth-child(even) {
    background-color: #f7fafc;
}

.son-table img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 4px;
}   




.info-item {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
}

.info-label {
    min-width: 120px;
    font-weight: 500;
    color: #4a5568;
    margin-right: 15px;
}
  

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: #4a5568;
    margin-right: 10px;
}

/* 参数容器样式 */
.params-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.param-item {
    display: flex;
    flex-direction: column;
}

.param-item label {
    width: auto;
    margin-bottom: 5px;
}

.param-item input {
    width: 100%;
}

/* 修复表单元素可见性 */
#classify1, #url {
    display: block;
    visibility: visible;
    opacity: 1;
    height: auto;
    width: 320px; /* 确保与其他输入框宽度一致 */
}
