* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 900px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.panel {
    padding: 30px;
}

.panel-header {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.hidden {
    display: none !important;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.form-group input:focus {
    border-color: #409eff;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

.row {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
}

.half {
    flex: 1;
    margin-bottom: 0;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    text-align: center;
}

.btn:active {
    transform: scale(0.98);
}

.primary-btn {
    background-color: #409eff;
    color: white;
}

.primary-btn:hover {
    background-color: #337ecc;
}

.secondary-btn {
    background-color: #f0f2f5;
    color: #606266;
}

.secondary-btn:hover {
    background-color: #e0e3e9;
}

.user-bar {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ebeef5;
}

#user-greeting {
    font-weight: 500;
    color: #333;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #ebeef5;
    margin-bottom: 25px;
}

.tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.3s, border-color 0.3s;
}

.tab.active {
    color: #409eff;
    border-bottom-color: #409eff;
    font-weight: 500;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

#license-result {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

#license-text {
    width: 100%;
    height: 120px;
    margin: 10px 0 15px;
    padding: 10px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    resize: vertical;
    font-family: monospace;
    background: white;
}

.account-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.account-info h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.account-info p {
    margin-bottom: 8px;
    font-size: 15px;
}

hr {
    border: none;
    border-top: 1px solid #ebeef5;
    margin: 25px 0;
}

/* 许可证列表 */
.license-section {
    margin-bottom: 30px;
}

.license-section h3 {
    margin-bottom: 12px;
    color: #2c3e50;
}

.license-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.license-table th,
.license-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #ebeef5;
    text-align: left;
    white-space: nowrap;
}

.license-table th {
    background-color: #f5f7fa;
    color: #909399;
    font-weight: 500;
}

.license-table td {
    color: #606266;
}

.action-cell {
    display: flex;
    gap: 8px;
}

.small-btn {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
    background-color: #ecf5ff;
    color: #409eff;
    border: 1px solid #d9ecff;
}

.small-btn:hover {
    background-color: #409eff;
    color: white;
    border-color: #409eff;
}

.no-data {
    text-align: center;
    padding: 20px;
    color: #999;
}

/* 响应式 */
@media (max-width: 700px) {
    .row {
        flex-direction: column;
        gap: 0;
    }
    .half {
        flex: none;
    }
    .license-table {
        display: block;
        overflow-x: auto;
    }
    .panel {
        padding: 20px;
    }
}