/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: center;
}

header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

header p {
    font-size: 16px;
    opacity: 0.9;
}

main {
    margin-bottom: 30px;
}

section {
    background-color: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

section h2 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
    font-weight: 600;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.form-group input[type="number"] {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fafbfc;
}

.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 14px;
    min-height: 120px;
    resize: vertical;
    transition: all 0.3s ease;
    background-color: #fafbfc;
}

.form-group input[type="number"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background-color: white;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    background: linear-gradient(135deg, #2980b9, #1f618d);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 13px;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c757d);
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(149, 165, 166, 0.3);
}

.result, .verify-result {
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 8px;
    padding: 25px;
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.result-item:hover {
    background-color: #f0f4f8;
    border-color: #d3e0e9;
}

.result-item label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.result-item div {
    padding: 12px;
    background-color: #fafbfc;
    border: 1px solid #e0e6ed;
    border-radius: 6px;
    word-break: break-all;
    font-size: 14px;
}

#result-license-key {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
}

footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid #e0e0e0;
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 40px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.success {
    color: #27ae60;
    font-weight: 600;
}

.error {
    color: #e74c3c;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    section {
        padding: 25px;
    }
    
    header {
        padding: 25px;
    }
    
    header h1 {
        font-size: 24px;
    }
    
    section h2 {
        font-size: 18px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .btn-secondary {
        padding: 8px 16px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(52, 152, 219, 0.3);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 卡片阴影效果 */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 按钮组样式 */
.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* 统计信息样式 */
.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    flex: 1;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 28px;
    font-weight: 600;
    color: #3498db;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
}

/* 消息提示样式 */
.message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
}

.message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    box-shadow: 0 2px 4px rgba(21, 87, 36, 0.1);
}

.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    box-shadow: 0 2px 4px rgba(114, 28, 36, 0.1);
}

/* 配置和管理部分样式 */
.config-content,
.admin-content {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.config-content .form-group {
    flex: 1;
    min-width: 300px;
}

.admin-list {
    margin-top: 25px;
}

.admin-item {
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.admin-item:hover {
    background-color: #f0f4f8;
    border-color: #d3e0e9;
    transform: translateY(-1px);
}

/* 记录列表样式 */
.records-list {
    margin-top: 25px;
}

.record-item {
    padding: 25px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.record-item:hover {
    background-color: #f0f4f8;
    border-color: #d3e0e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.record-header {
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.record-content {
    margin-bottom: 20px;
}

.record-actions {
    text-align: right;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* 复制按钮样式 */
.copy-btn {
    background: linear-gradient(135deg, #27ae60, #219a52);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #219a52, #1e8449);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(39, 174, 96, 0.3);
}

/* 删除按钮样式 */
.delete-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

/* 分页样式 */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination button {
    margin: 0 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #e0e6ed;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background-color: #f0f4f8;
    border-color: #3498db;
    transform: translateY(-1px);
}

.pagination button.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

/* 记录统计样式 */
#records-stats {
    margin-top: 15px;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* 搜索部分样式 */
.search-section {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.search-section h2 {
    margin-bottom: 20px;
}

.search-section .form-group {
    margin-bottom: 20px;
}

.search-section input[type="text"] {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fafbfc;
}

.search-section input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background-color: white;
}

/* 批量操作样式 */
.batch-operations {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.batch-operations .btn {
    font-size: 13px;
    padding: 10px 20px;
}

/* 复选框样式 */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3498db;
}

/* 表单验证样式 */
input:invalid,
textarea:invalid {
    border-color: #e74c3c;
}

input:valid,
textarea:valid {
    border-color: #27ae60;
}