* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

h2 {
    color: #34495e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.form-section {
    background-color: white;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.versions-section {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
select:hover {
    border-color: #bdc3c7;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

textarea:hover {
    border-color: #bdc3c7;
}

/* 禁用状态样式 */
input:disabled,
select:disabled,
textarea:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

/* 输入框占位符样式 */
input::placeholder,
textarea::placeholder {
    color: #bdc3c7;
    opacity: 1;
}

input:focus::placeholder,
textarea:focus::placeholder {
    color: #95a5a6;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

button:active {
    background-color: #2471a3;
}

#versions-list {
    margin-top: 20px;
}

.version-item {
    background-color: #f9f9f9;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 6px;
    position: relative;
}

.version-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 20px;
}

/* 产品展示页面专用样式 */
#product-section .version-item h3 {
    color: #A6AAB5;
    /* 使用CSS变量设置背景色 */
    background: var(--bg-bg-overlay-l2, rgba(237, 239, 242, .08));
    /* 使用CSS变量设置边框 */
    border: 1px solid var(--border-border-neutral-l3, hsla(0, 0%, 100%, .18));
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin: 0;
    font-family: var(--font-family-mono, "JetBrains Mono");
}

.version-date {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
}

.version-changelog {
    background-color: white;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #eee;
    margin-bottom: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.version-actions {
    display: flex;
    gap: 10px;
}

.edit-btn, .delete-btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

.edit-btn {
    background-color: #f39c12;
    color: white;
}

.edit-btn:hover {
    background-color: #e67e22;
}

.delete-btn {
    background-color: #e74c3c;
    color: white;
}

.delete-btn:hover {
    background-color: #c0392b;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .form-section,
    .versions-section {
        padding: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20% auto;
    }
    
    .version-actions {
        flex-direction: column;
    }
    
    .version-actions button {
        width: 100%;
    }
}

/* 产品信息编辑样式 */
.product-info-edit {
    background-color: #f0f8ff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e0f0ff;
}

/* 展示页面链接样式 */
.display-link {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 16px;
    background-color: #2ecc71;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.display-link:hover {
    background-color: #27ae60;
}